Skip to content

Commit 6bb93e2

Browse files
docs: revert logo (#873)
* docs: revert logo * up * up * up * up * up * up * up * Update index.yml * Update 2.viewer.md * Revert "Update 2.viewer.md" This reverts commit 26ad139. * Revert "Update index.yml" This reverts commit b371ba3. --------- Co-authored-by: Inesh Bose <[email protected]>
1 parent 36febad commit 6bb93e2

File tree

17 files changed

+93
-56
lines changed

17 files changed

+93
-56
lines changed

docs/app.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export default defineAppConfig({
1414
prose: {
1515
code: {
1616
icon: {
17-
'nuxt.config': 'vscode-icons:file-type-nuxt'
18-
}
19-
}
20-
}
21-
}
17+
'nuxt.config': 'vscode-icons:file-type-nuxt',
18+
},
19+
},
20+
},
21+
},
2222
},
2323
header: {
2424
logo: {

docs/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ useHead({
2020
})
2121
2222
useSeoMeta({
23-
ogSiteName: 'Nuxt TailwindCSS',
23+
ogSiteName: 'Nuxt Tailwind',
2424
twitterCard: 'summary_large_image',
2525
})
2626

docs/components/AppFooter.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ const { footer } = useAppConfig()
66
<UFooter>
77
<template #left>
88
<span class="text-sm text-gray-500 dark:text-gray-400">
9-
© 2024 | <NuxtLink to="https://github.com/nuxt-modules/tailwindcss/blob/main/LICENSE" target="_blank" class="text-gray-900 dark:text-white">MIT License</NuxtLink> | v{{ footer.pkgVersion }}
9+
© 2024 | <NuxtLink
10+
to="https://github.com/nuxt-modules/tailwindcss/blob/main/LICENSE"
11+
target="_blank"
12+
class="text-gray-900 dark:text-white"
13+
>MIT License</NuxtLink> | v{{ footer.pkgVersion }}
1014
</span>
1115
</template>
1216

docs/components/AppHeader.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ const { header } = useAppConfig()
77
</script>
88

99
<template>
10-
<UHeader :ui="{ logo: 'items-center' }">
10+
<UHeader>
1111
<template #logo>
12-
<TheLogo class="h-12" />
13-
<span>Nuxt</span>
14-
<TailwindText class="h-3.5" />
12+
<TheLogo class="h-6" />
1513
</template>
1614

17-
<template v-if="header?.search" #center>
15+
<template
16+
v-if="header?.search"
17+
#center
18+
>
1819
<UContentSearchButton class="hidden lg:flex" />
1920
</template>
2021

docs/components/TailwindText.vue

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

docs/components/TheLogo.vue

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,60 @@
11
<template>
2-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 512 512">
2+
<svg
3+
viewBox="0 0 1565 201"
4+
fill="none"
5+
xmlns="http://www.w3.org/2000/svg"
6+
>
37
<path
4-
d="M281.4 397.7h156.9c5 0 9.8-1.8 14.1-4.2 4.3-2.5 8.8-5.6 11.3-9.9 2.5-4.3 4.2-9.2 4.2-14.1 0-5-1.7-9.8-4.2-14.1l-106-182.3c-2.5-4.3-5.6-7.4-9.9-9.9-4.3-2.5-10.5-4.2-15.5-4.2s-9.8 1.8-14.1 4.2c-4.3 2.5-7.4 5.6-9.9 9.9l-26.9 46.6-53.7-90.5c-2.5-4.3-5.6-8.8-9.9-11.3-4.3-2.5-9.1-2.8-14.1-2.8s-9.8.3-14.1 2.8c-4.3 2.5-8.8 7-11.3 11.3L46.8 355.3c-2.5 4.3-2.8 9.2-2.8 14.1 0 5 .3 9.8 2.8 14.1 2.5 4.3 7 7.4 11.3 9.9 4.3 2.5 9.1 4.2 14.1 4.2h98.9c39.2 0 67.7-17.6 87.6-50.9l48.1-83.4 25.4-43.8 77.7 132.9h-103l-25.5 45.3zm-111.6-45.3h-69.3l103.2-178.1 52.3 89-34.6 60.4c-13.2 21.7-28.3 28.7-51.6 28.7z"
5-
style="fill: #00dc82"
8+
d="M377 200C379.16 200 381 198.209 381 196V103C381 103 386 112 395 127L434 194C435.785 197.74 439.744 200 443 200H470V50H443C441.202 50 439 51.4941 439 54V148L421 116L385 55C383.248 51.8912 379.479 50 376 50H350V200H377Z"
9+
fill="currentColor"
610
/>
711
<path
8-
d="M315.8 141c-44.3 0-71.9 21.3-83 63.8 16.6-21.3 36-29.2 58.1-23.9 12.6 3 21.7 11.8 31.6 21.6 16.3 15.9 35.1 34.3 76.3 34.3 44.3 0 71.9-21.3 83-63.8-16.6 21.3-36 29.2-58.1 23.9-12.6-3-21.7-11.8-31.6-21.6-16.3-15.9-35.1-34.3-76.3-34.3zm-83 95.7c-44.3 0-71.9 21.3-83 63.8 16.6-21.3 36-29.2 58.1-23.9 12.6 3 21.7 11.8 31.6 21.6 16.3 15.9 35.1 34.3 76.3 34.3 44.3 0 71.9-21.3 83-63.8-16.6 21.3-36 29.2-58.1 23.9-12.6-3-21.7-11.8-31.6-21.6-16.3-15.9-35.1-34.3-76.3-34.3z"
9-
style="fill: #38bdf8"
12+
d="M726 92H739C742.314 92 745 89.3137 745 86V60H773V92H800V116H773V159C773 169.5 778.057 174 787 174H800V200H783C759.948 200 745 185.071 745 160V116H726V92Z"
13+
fill="currentColor"
1014
/>
1115
<path
12-
d="M221.4 323.8c39.2 0 17.6 56.3 37.5 23l48.1-83.4 25.4-43.8 77.7 132.9H306.9l-25.4 45.2h156.9c5 0 9.8-1.8 14.1-4.2 4.3-2.5 8.8-5.6 11.3-9.9 2.5-4.3 4.2-9.2 4.2-14.1 0-5-1.7-9.8-4.2-14.1l-106-182.3c-2.5-4.3-5.6-7.4-9.9-9.9-4.3-2.5-10.5-4.2-15.5-4.2s-9.8 1.8-14.1 4.2c-4.3 2.5-7.4 5.6-9.9 9.9l-26.9 46.6M256 263.4l-34.6 60.4"
13-
style="fill: #00dc82"
16+
d="M591 92V154C591 168.004 585.742 179.809 578 188C570.258 196.191 559.566 200 545 200C530.434 200 518.742 196.191 511 188C503.389 179.809 498 168.004 498 154V92H514C517.412 92 520.769 92.622 523 95C525.231 97.2459 526 98.5652 526 102V154C526 162.059 526.457 167.037 530 171C533.543 174.831 537.914 176 545 176C552.217 176 555.457 174.831 559 171C562.543 167.037 563 162.059 563 154V102C563 98.5652 563.769 96.378 566 94C567.96 91.9107 570.028 91.9599 573 92C573.411 92.0055 574.586 92 575 92H591Z"
17+
fill="currentColor"
18+
/>
19+
<path
20+
d="M676 144L710 92H684C680.723 92 677.812 93.1758 676 96L660 120L645 97C643.188 94.1758 639.277 92 636 92H611L645 143L608 200H634C637.25 200 640.182 196.787 642 194L660 167L679 195C680.818 197.787 683.75 200 687 200H713L676 144Z"
21+
fill="currentColor"
22+
/>
23+
<path
24+
d="M168 200H279C282.542 200 285.932 198.756 289 197C292.068 195.244 295.23 193.041 297 190C298.77 186.959 300.002 183.51 300 179.999C299.998 176.488 298.773 173.04 297 170.001L222 41C220.23 37.96 218.067 35.7552 215 34C211.933 32.2448 207.542 31 204 31C200.458 31 197.067 32.2448 194 34C190.933 35.7552 188.77 37.96 187 41L168 74L130 9.99764C128.228 6.95784 126.068 3.75491 123 2C119.932 0.245087 116.542 0 113 0C109.458 0 106.068 0.245087 103 2C99.9323 3.75491 96.7717 6.95784 95 9.99764L2 170.001C0.226979 173.04 0.00154312 176.488 1.90993e-06 179.999C-0.0015393 183.51 0.229648 186.959 2 190C3.77035 193.04 6.93245 195.244 10 197C13.0675 198.756 16.4578 200 20 200H90C117.737 200 137.925 187.558 152 164L186 105L204 74L259 168H186L168 200ZM89 168H40L113 42L150 105L125.491 147.725C116.144 163.01 105.488 168 89 168Z"
25+
fill="#00DC82"
26+
/>
27+
<path
28+
d="M911.345 199.402H881.368V85.3584H840V59.5937H952.714V85.3584H911.345V199.402Z"
29+
fill="#00DC82"
30+
/>
31+
<path
32+
d="M983.649 97.1423C992.043 97.1423 999.571 98.7401 1006.23 101.936C1012.89 104.998 1018.09 109.392 1021.82 115.118C1025.68 120.71 1027.62 127.234 1027.62 134.691V199.402H1000.04V185.421C998.305 190.082 994.841 193.876 989.645 196.806C984.582 199.602 978.587 201 971.659 201C965.264 201 959.535 199.735 954.472 197.205C949.542 194.542 945.679 190.947 942.881 186.42C940.083 181.76 938.684 176.567 938.684 170.841C938.684 160.988 942.015 153.265 948.676 147.673C955.471 141.948 964.398 139.085 975.456 139.085H992.443C994.841 139.085 996.706 138.419 998.038 137.088C999.371 135.623 1000.04 133.825 1000.04 131.695C1000.04 127.434 998.438 124.039 995.241 121.509C992.043 118.846 987.646 117.514 982.051 117.514C976.322 117.514 971.792 119.046 968.461 122.108C965.264 125.171 963.532 128.965 963.265 133.492H938.484C938.884 126.702 940.949 120.577 944.679 115.118C948.41 109.525 953.606 105.131 960.267 101.936C966.929 98.7401 974.723 97.1423 983.649 97.1423ZM978.653 180.828C985.315 180.828 990.511 178.697 994.241 174.436C998.105 170.176 1000.04 164.716 1000.04 158.059V156.661H979.653C975.389 156.661 971.925 157.859 969.26 160.256C966.596 162.653 965.264 165.782 965.264 169.643C965.264 172.972 966.529 175.701 969.061 177.832C971.592 179.829 974.79 180.828 978.653 180.828Z"
33+
fill="#00DC82"
34+
/>
35+
<path
36+
d="M1074.66 199.402H1046.68V98.7401H1074.66V199.402ZM1045.88 84.3598V55H1075.46V84.3598H1045.88Z"
37+
fill="#00DC82"
38+
/>
39+
<path
40+
d="M1124.46 199.402H1096.68V55H1124.46V199.402Z"
41+
fill="#00DC82"
42+
/>
43+
<path
44+
d="M1195.37 199.402H1171.19L1138.42 98.7401H1166.4L1183.38 160.855L1201.17 98.7401H1226.55L1244.54 160.855L1261.52 98.7401H1289.3L1256.73 199.402H1232.35L1213.96 136.688L1195.37 199.402Z"
45+
fill="#00DC82"
46+
/>
47+
<path
48+
d="M1329.74 199.402H1301.76V98.7401H1329.74V199.402ZM1300.96 84.3598V55H1330.54V84.3598H1300.96Z"
49+
fill="#00DC82"
50+
/>
51+
<path
52+
d="M1350.16 199.402V98.7401H1378.14V112.721C1380.94 107.794 1385 104 1390.33 101.337C1395.66 98.5404 1401.79 97.1423 1408.72 97.1423C1416.18 97.1423 1422.71 98.8067 1428.3 102.135C1434.03 105.464 1438.43 110.124 1441.49 116.116C1444.69 122.108 1446.29 128.965 1446.29 136.688V199.402H1418.31V142.88C1418.31 136.755 1416.51 131.762 1412.91 127.9C1409.32 123.906 1404.65 121.908 1398.93 121.908C1392.8 121.908 1387.8 124.039 1383.94 128.3C1380.07 132.427 1378.14 137.753 1378.14 144.278V199.402H1350.16Z"
53+
fill="#00DC82"
54+
/>
55+
<path
56+
d="M1509.64 201C1499.92 201 1491.39 198.87 1484.06 194.609C1476.87 190.348 1471.27 184.29 1467.27 176.434C1463.41 168.578 1461.48 159.457 1461.48 149.071C1461.48 138.685 1463.41 129.565 1467.27 121.709C1471.27 113.853 1476.87 107.794 1484.06 103.534C1491.26 99.2727 1499.65 97.1423 1509.24 97.1423C1515.37 97.1423 1520.83 98.2741 1525.63 100.538C1530.43 102.668 1534.29 105.597 1537.22 109.326V55H1565V199.402H1537.22V188.417C1534.42 192.279 1530.56 195.341 1525.63 197.605C1520.7 199.868 1515.37 201 1509.64 201ZM1514.24 177.033C1521.57 177.033 1527.5 174.503 1532.03 169.443C1536.56 164.25 1538.82 157.46 1538.82 149.071C1538.82 140.549 1536.56 133.759 1532.03 128.699C1527.63 123.506 1521.7 120.91 1514.24 120.91C1506.78 120.91 1500.78 123.506 1496.25 128.699C1491.86 133.759 1489.66 140.549 1489.66 149.071C1489.66 157.46 1491.92 164.25 1496.45 169.443C1500.98 174.503 1506.91 177.033 1514.24 177.033Z"
57+
fill="#00DC82"
1458
/>
1559
</svg>
1660
</template>

docs/content/2.tailwind/2.viewer.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Viewer
33
description: Visualize your Tailwind configuration with the viewer.
44
---
55

6-
By default, the module will expose a route in development and in [Nuxt DevTools](https://devtools.nuxt.com/), so that you can visualize your Tailwind configuration, with the help of [`tailwind-config-viewer`](https://github.com/rogden/tailwind-config-viewer)
6+
By default, the module will expose a `/_tailwind/` route in development, so you can quickly visualize your Tailwind configuration with easy copy-pasting (thanks to the awesome [tailwind-config-viewer](https://github.com/rogden/tailwind-config-viewer) package ✨).
77

88
The viewer is available starting from version `v3.4.0` of `@nuxtjs/tailwindcss`.
99

@@ -13,10 +13,10 @@ The viewer is available starting from version `v3.4.0` of `@nuxtjs/tailwindcss`
1313
<source src="https://res.cloudinary.com/nuxt/video/upload/q_auto/v1608225750/nuxt-tailwind-viewer_ktowjm.ogv" type="video/ogg" />
1414
</video>
1515

16-
When enabled, you will see the Tailwind Viewer URL in your terminal:
16+
When enabled, you will see the Tailwind viewer url in your terminal:
1717

18-
```bash
19-
> Tailwind Viewer: http://localhost:3000/_tailwind/
20-
```
18+
<img src="/tailwind-viewer.png" width="530" height="246" style="margin: 0;" />
2119

22-
Check out the [`viewer`](/getting-started/configuration#viewer) configuration options to disable the viewer or for further customisations.
20+
::callout{icon="i-heroicons-light-bulb"}
21+
Check out the [`viewer`](/getting-started/configuration#viewer) option to disable the viewer in development.
22+
::

docs/content/index.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ title: 'Tailwind CSS for Nuxt'
22
description: 'Add Tailwind CSS to your Nuxt Applications.'
33
navigation: false
44
hero:
5-
title: '[Tailwind CSS]{.text-nowrap .text-tailwind} for your [Nuxt Apps]{.text-primary}.'
6-
description: 'The Tailwind CSS module for Nuxt enables you to set up Tailwind CSS in your Nuxt application in seconds, with many goodies 🍬'
5+
title: 'Tailwind CSS for your [Nuxt Apps]{.text-primary}.'
6+
description: 'The Tailwind CSS module for Nuxt lets you set up Tailwind CSS in your Nuxt application in seconds, with many goodies 🍬'
77
orientation: horizontal
88
links:
99
- label: 'Get started'
@@ -17,10 +17,7 @@ hero:
1717
target: '_blank'
1818
size: lg
1919
code: |
20-
```bash
21-
npx nuxi@latest module add tailwindcss
22-
```
23-
```ts [nuxt.config]
20+
```ts [nuxt.config.ts]
2421
export default defineNuxtConfig({
2522
modules: ['@nuxtjs/tailwindcss'],
2623
tailwindcss: {
@@ -34,21 +31,21 @@ features:
3431
title: 'Shipped with many features.'
3532
items:
3633
- title: 'Zero Configuration'
37-
description: 'Enables using Tailwind CSS after simply installing, with support for Nuxt Layers.'
34+
description: 'This module enables a quick and easy setup of Tailwind CSS in your Nuxt application.'
3835
to: '/getting-started/installation'
3936
- title: 'CSS Nesting'
4037
description: 'Supports CSS Nesting with postcss-nesting to use the latest CSS syntax.'
4138
to: 'https://drafts.csswg.org/css-nesting-1/'
4239
target: '_blank'
43-
- title: 'Config Viewer'
44-
description: 'Discover your configuration visually with the viewer as well as the Nuxt DevTools integration.'
40+
- title: 'Tailwind Viewer'
41+
description: 'Discover your tailwind config visually with the viewer as well as the Nuxt Devtools integration.'
4542
to: /tailwind/viewer
46-
- title: 'Referencing Config'
47-
description: 'Reference your Tailwind configuration in your app with tree-shaking.'
43+
- title: 'Tailwind Config'
44+
description: 'Reference your Tailwind config in your application using the #tailwind-config alias, supporting tree-shaking.'
4845
to: '/tailwind/config#referencing-in-the-application'
4946
target: '_blank'
5047
- title: 'Extendable'
51-
description: 'Allows other modules to extend the configuration using hooks.'
48+
description: 'The module supports the ability to extend the Tailwind config from Nuxt modules or layers.'
5249
to: '/tailwind/config#hooks'
5350
- title: 'Open Source'
5451
description: 'Boasting over 85+ contributors and over 500k+ monthly downloads.'

docs/error.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { ParsedContent } from '@nuxt/content/dist/runtime/types'
33
import type { NuxtError } from '#app'
44
55
useSeoMeta({
6-
title: 'Page not found - Nuxt TailwindCSS',
6+
title: 'Page not found - Nuxt Tailwind',
77
description: 'We are sorry but this page could not be found.',
88
})
99

docs/nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default defineNuxtConfig({
2626
},
2727
nitro: {
2828
prerender: {
29-
routes: ['/']
30-
}
29+
routes: ['/'],
30+
},
3131
},
3232
routeRules: {
3333
'/getting-started': { redirect: '/getting-started/installation' },

docs/pages/[...slug].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const { data: surround } = await useAsyncData(`${route.path}-surround`, () => qu
2020
)
2121
2222
useSeoMeta({
23-
titleTemplate: '%s - Tailwind CSS module for Nuxt',
23+
titleTemplate: '%s - Nuxt Tailwind',
2424
title: page.value.title,
25-
ogTitle: `${page.value.title} - Tailwind CSS module for Nuxt`,
25+
ogTitle: `${page.value.title} - Nuxt Tailwind`,
2626
description: page.value.description,
2727
ogDescription: page.value.description,
2828
})

docs/public/favicon.ico

-5.18 KB
Binary file not shown.

docs/tailwind.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export default <Partial<Config>>{
2121
900: '#0A5331',
2222
950: '#052e16',
2323
},
24-
tailwind: '#38bdf8'
2524
},
2625
},
2726
},

nuxt2-playground/layouts/default.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<script>
66
export default {
77
head: {
8-
title: 'Nuxt.js with TailwindCSS',
8+
title: 'Nuxt.js with Tailwind CSS',
99
meta: [
1010
{ charset: 'utf-8' },
1111
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
1212
{
1313
hid: 'description',
1414
name: 'description',
15-
content: 'Nuxt.js with TailwindCSS example',
15+
content: 'Nuxt.js with Tailwind CSS example',
1616
},
1717
],
1818
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],

nuxt2-playground/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** TailwindCSS Configuration File
2+
** Tailwind CSS Configuration File
33
**
44
** Docs: https://tailwindcss.com/docs/configuration
55
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nuxtjs/tailwindcss",
33
"version": "6.12.0",
4-
"description": "TailwindCSS module for Nuxt",
4+
"description": "Tailwind CSS module for Nuxt",
55
"repository": "nuxt-modules/tailwindcss",
66
"license": "MIT",
77
"type": "module",

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default defineNuxtModule<ModuleOptions>({
136136

137137
nuxt.hook('devtools:customTabs', (tabs: import('@nuxt/devtools').ModuleOptions['customTabs']) => {
138138
tabs?.push({
139-
title: 'TailwindCSS',
139+
title: 'Tailwind CSS',
140140
name: 'tailwindcss',
141141
icon: 'logos-tailwindcss-icon',
142142
category: 'modules',

0 commit comments

Comments
 (0)