Introduction
First of all, we have to say thank you to Nuxt devs, who create this beatiful library called Nuxt UI, making easier to structure and understand some key points on making a component library to Nuxt framework.
While Nuxt UI use tailwind we choose to use UnoCSS, check the docs to know more and understand differences between them.
Dark Mode
All components are dark mode friendly, you only need to configure on your side, i recommend to check the @nuxtjs/color-mode .
Components
Each component has a ui
prop to allow you to customize each component individually, you can change any value of the default preset.
Global Presets
To avoid repeat same syntax accross the app.config.js
we share some values multiple times, they are:
- - Radius
- - Size
- - Padding
- - Icon