You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/sfui/frameworks/nuxt/CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# @storefront-ui/nuxt
2
2
3
+
## 2.5.1
4
+
5
+
### Patch Changes
6
+
7
+
-[#3166](https://github.com/vuestorefront/storefront-ui/pull/3166)[`2f0cc80`](https://github.com/vuestorefront/storefront-ui/commit/2f0cc80431bdcffd39b3f04544ff0d8319295a42) Thanks [@Szymon-dziewonski](https://github.com/Szymon-dziewonski)! - [FIXED] README.md file update, especially instalation process and required dependencies
Copy file name to clipboardexpand all lines: packages/sfui/frameworks/nuxt/README.md
+7-10
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,16 @@
1
-
2
1
### Install all dependencies
3
2
4
-
With Nuxt 3, the fastest way to get started is to use the `@storefront-ui/nuxt` module. The [Storefront-io Nuxt module](https://www.npmjs.com/package/@storefront-ui/nuxt) will automatically install `@nuxtjs/tailwindcss` and storefront-ui tailwindcss presets.
5
-
6
-
Additionally, you'll need to install the Storefront UI's Vue library and NuxtJs Tailwindcss Module.
3
+
With Nuxt 3, the fastest way to get started is to use the `@storefront-ui/nuxt` module. The [Storefront-io Nuxt module](https://www.npmjs.com/package/@storefront-ui/nuxt) will automatically install `@nuxtjs/tailwindcss` inside `nuxt` and storefront-ui tailwindcss presets.
7
4
8
5
```bash
9
6
# npm
10
-
npm i -D @storefront-ui/nuxt @storefront-ui/vue @nuxtjs/tailwindcss
Since we use `@nuxtjs/tailwindcss` under the hood, there is possibility to use `tailwindcss` property in `nuxt.config.ts` file. Other than that there is default `tailwind` way to create config via `tailwind.config.ts` file.
31
28
32
-
Priority of reading configuration, in most important from top to bottom:
29
+
Internally, `@nuxtjs/tailwindcss` will merge the three places that you can add configurations. In order of priority, the options are:
33
30
34
31
1.`tailwind.config.ts` file
35
32
2.`nuxt.config.ts` file with `tailwindcss` property
In order for Tailwind to properly detect the utility classes used in Storefront UI components, you need to add a path to wherever your `node_modules` folder is located to the `content` property. In the example below, we're using the default location for `node_modules`, but this may change if you're working in a monorepo.
@@ -61,4 +58,4 @@ If you're going to create your own Tailwind CSS file, make sure to add the @tail
61
58
62
59
### You're ready to go
63
60
64
-
Now, you can import Storefront UI components in your app and all the Tailwind utilities from the `@storefront-ui/vue` library will be available in your project. Because `storefront-ui` is served as well from module, `@storefront-ui/vue` is available from [nuxt autoimport](https://nuxt.com/docs/guide/concepts/auto-imports).
61
+
Now, you can import Storefront UI components in your app and all the Tailwind utilities from the `@storefront-ui/vue` library will be available in your project. Because `storefront-ui` is served as well from module, `@storefront-ui/vue` is available from [Nuxt autoimport](https://nuxt.com/docs/guide/concepts/auto-imports).
0 commit comments