Files
flotilla/tailwind.config.js
2025-09-29 10:25:02 -07:00

50 lines
1.3 KiB
JavaScript

import {config} from "dotenv"
import daisyui from "daisyui"
import themes from "daisyui/src/theming/themes"
config({path: ".env"})
config({path: ".env.template"})
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{html,js,svelte,ts}"],
darkMode: ['selector', '[data-theme="dark"]'],
theme: {
extend: {},
zIndex: {
none: 0,
"nav-active": 1,
"nav-item": 2,
feature: 3,
nav: 4,
popover: 5,
modal: 6,
"modal-feature": 7,
toast: 8,
},
},
plugins: [daisyui],
daisyui: {
themes: [
{
dark: {
...themes["dark"],
primary: process.env.VITE_PLATFORM_ACCENT,
"primary-content": process.env.VITE_PLATFORM_ACCENT_CONTENT || "#EAE7FF",
secondary: process.env.VITE_PLATFORM_SECONDARY,
"secondary-content": process.env.VITE_PLATFORM_SECONDARY_CONTENT || "#EAE7FF",
},
light: {
...themes["winter"],
neutral: '#F2F7FF',
warning: '#FD8D0B',
primary: process.env.VITE_PLATFORM_ACCENT,
"primary-content": process.env.VITE_PLATFORM_ACCENT_CONTENT || "#EAE7FF",
secondary: process.env.VITE_PLATFORM_SECONDARY,
"secondary-content": process.env.VITE_PLATFORM_SECONDARY_CONTENT || "#EAE7FF",
},
},
],
},
}