Skip to content

Commit bce2cf2

Browse files
chore: playground migrate to tailwind 4
1 parent 478fc94 commit bce2cf2

File tree

10 files changed

+671
-276
lines changed

10 files changed

+671
-276
lines changed

playground/assets/css/tailwind.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@import 'tailwindcss';
2+
@plugin "daisyui";
3+
4+
pre {
5+
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
6+
}
7+
8+
@utility container {
9+
margin-inline: auto;
10+
padding-inline: 2rem;
11+
}

playground/components/SiteFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<footer class="navbar bg-base-200">
3-
<div class="container">
3+
<div class="container flex">
44
<div class="flex flex-row gap-8 mx-auto">
55
<SocialShare
66
v-for="network in ['facebook', 'x', 'linkedin', 'email']"

playground/components/SiteHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<header class="navbar bg-base-200">
3-
<div class="container">
3+
<div class="container flex">
44
<h1 class="font-bold text-xl">Nuxt Social Share</h1>
55

66
<ul class="ml-auto">

playground/nuxt.config.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
import tailwindcss from '@tailwindcss/vite'
2+
13
export default defineNuxtConfig({
24
modules: [
35
'../src/module',
4-
'@nuxtjs/tailwindcss',
56
],
67

7-
socialShare: {
8-
// styled: true,
9-
// label: false,
10-
// icon: false,
11-
baseUrl: 'https://stefanobartoletti.github.io/nuxt-social-share/',
8+
css: [
9+
'./assets/css/tailwind.css',
10+
],
11+
12+
vite: {
13+
plugins: [
14+
tailwindcss(),
15+
],
1216
},
1317

1418
devtools: { enabled: true },

playground/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"generate": "nuxi generate"
99
},
1010
"dependencies": {
11-
"@nuxtjs/tailwindcss": "^6.13.1",
12-
"daisyui": "^4.12.23",
13-
"nuxt": "^3.15.2"
11+
"@tailwindcss/vite": "^4.1.3",
12+
"daisyui": "^5.0.17",
13+
"nuxt": "^3.15.2",
14+
"tailwindcss": "^4.1.3"
1415
}
1516
}

playground/pages/composable.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,4 @@ const getFacebook = useSocialShare({ network: 'facebook' })
4141
border-radius: 0;
4242
}
4343
}
44-
45-
pre {
46-
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
47-
}
4844
</style>

playground/pages/index.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,4 @@ const instances = [
8484
border-radius: 0;
8585
}
8686
}
87-
88-
pre {
89-
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
90-
}
9187
</style>

playground/pages/urls.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,4 @@ testNetworks.forEach((el) => {
5353
border-radius: 0;
5454
}
5555
}
56-
57-
pre {
58-
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
59-
}
6056
</style>

playground/tailwind.config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 644 additions & 234 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)