@@ -25,11 +25,11 @@ yarn add @creativecodeco/ui
2525### Dependencies
2626
2727``` bash
28- npm install --save-dev tailwindcss postcss postcss-import autoprefixer usehooks-ts cssnano
28+ npm install --save-dev tailwindcss postcss usehooks-ts cssnano
2929
3030or
3131
32- yarn add -D tailwindcss postcss postcss-import autoprefixer usehooks-ts cssnano
32+ yarn add -D tailwindcss postcss usehooks-ts cssnano
3333```
3434
3535### Setting Tailwind
@@ -45,8 +45,8 @@ const themeConfig = {
4545 content: [
4646 ... creativeCodeTheme .content ,
4747 ' ./src/**/*.{js,jsx,ts,tsx}' ,
48- ' ./app/**/*.{js,jsx,ts,tsx}' ,
49- ],
48+ ' ./app/**/*.{js,jsx,ts,tsx}'
49+ ]
5050};
5151
5252export default themeConfig ;
@@ -63,7 +63,7 @@ const themeConfig = {
6363 content: [
6464 ... creativeCodeTheme .content ,
6565 ' ./src/**/*.{js,jsx,ts,tsx}' ,
66- ' ./app/**/*.{js,jsx,ts,tsx}' ,
66+ ' ./app/**/*.{js,jsx,ts,tsx}'
6767 ],
6868 daisyui: {
6969 ... creativeCodeTheme .daisyui ,
@@ -75,11 +75,11 @@ const themeConfig = {
7575 secondary: ' #427AA1' ,
7676 neutral: ' #EBF2FA' ,
7777 accent: ' #679436' ,
78- other: ' #A5BE00' ,
79- },
80- },
81- ],
82- },
78+ other: ' #A5BE00'
79+ }
80+ }
81+ ]
82+ }
8383};
8484
8585export default themeConfig ;
@@ -92,12 +92,8 @@ Create file `postcss.config.js` and add
9292``` js
9393module .exports = {
9494 plugins: {
95- ' postcss-import' : {},
96- ' tailwindcss/nesting' : {},
97- tailwindcss: {},
98- autoprefixer: {},
99- ... (process .env .NODE_ENV === ' production' ? { cssnano: {} } : {}),
100- },
95+ ' @tailwindcss/postcss' : {}
96+ }
10197};
10298```
10399
@@ -114,9 +110,7 @@ export default function RootLayout({ children }) {
114110 return (
115111 <html >
116112 <body >
117- <CreativeCodeUIProvider >
118- { children }
119- </CreativeCodeUIProvider >
113+ <CreativeCodeUIProvider >{ children } </CreativeCodeUIProvider >
120114 </body >
121115 </html >
122116 );
0 commit comments