SimpleSvelte includes pre-built Tailwind CSS and DaisyUI styles that you can import into your project.
/* In your main CSS file (e.g., app.css) */
@import 'simplesvelte/styles.css';// In your main app file (e.g., main.ts, app.ts)
import 'simplesvelte/styles.css'/* Alternative import */
@import 'simplesvelte/index.css';The CSS includes:
- Tailwind CSS v4 - All utility classes
- DaisyUI v5 - Component library with themes
- Custom component styles - Styles for SimpleSvelte components
If you're using Vite, make sure to include the CSS in your vite.config.ts:
// vite.config.ts
export default defineConfig({
// ... other config
css: {
preprocessorOptions: {
css: {
additionalData: `@import 'simplesvelte/styles.css';`,
},
},
},
})DaisyUI themes are included. You can change themes by adding the data-theme attribute:
<html data-theme="dark">
<!-- Your app -->
</html>Available themes: light, dark, cupcake, and more.