Styling the application
To build the user interface supastarter comes with Tailwind CSS and Radix Vue pre-installed.
The combination of Tailwind CSS and Radix UI allows gives ready-to-use, complex UI components that can be fully customized to match your brands design.
Theme configuration
In the packages/config/tailwind/index.ts
file you can configure the Tailwind CSS theme. Next to the default Tailwind CSS
theme configuration you will also find two color variable objects in the file for light and dark mode. These color variables
will be passed into the Tailwind CSS theme configuration and are used across the UI of the application.
There is a known issue with Tailwind CSS in monorepos which requires you to
restart the development server after changing the theme configuration. If this
does not work, try also saving the globals.css
file in the web
package and
do a hard refresh in the browser.
shadcn-vue
supastarter is also fully compatible with shadcn-vue, which is an amazing tool to quickly build your own component library with Radix UI and Tailwind CSS.
To use the shadcn-vue CLI in your supastarter project simply run the following command from your projects root:
For example to add the skeleton component you would run: