NextJSUnoCSS
Create T3 App
To use UnoCSS
, do not selet install tailwindcss
Install UnoCSS
Install followings packages
- unocss
- @unocss/webpack
- @unocss/preset-attributify: for enable attributify
- @unocss/transformer-attributify-jsx: for enable attributify in jsx/tsx
Modify below files
unocss/examples/next at main · unocss/unocss (github.com)
Import uno.css
in _app.tsx
Attributify
https://unocss.dev/presets/attributify
Transformer
unocss/packages/transformer-attributify-jsx at main · unocss/unocss (github.com)