el.xwx.moe/tailwind.config.js

51 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-01-22 15:39:35 -06:00
/** @type {import('tailwindcss').Config} */
2023-11-24 02:06:33 -06:00
const plugin = require("tailwindcss/plugin");
2023-05-28 12:22:01 -05:00
2023-01-22 15:39:35 -06:00
module.exports = {
2023-11-24 02:06:33 -06:00
daisyui: {
themes: [
{
light: {
primary: "#0ea5e9",
secondary: "#22d3ee",
accent: "#4f46e5",
neutral: "#6b7280",
"base-100": "#f5f5f4",
info: "#a5f3fc",
success: "#22c55e",
warning: "#facc15",
error: "#dc2626",
},
},
{
dark: {
primary: "#38bdf8",
secondary: "#0284c7",
accent: "#818cf8",
neutral: "#1f2937",
"base-100": "#fcfcfc",
info: "#009ee4",
success: "#00b17d",
warning: "#eac700",
error: "#f1293c",
},
},
],
},
darkMode: ["class", '[data-theme="dark"]'],
2023-01-22 15:39:35 -06:00
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
2023-05-28 12:22:01 -05:00
// For the "layouts" directory
"./layouts/**/*.{js,ts,jsx,tsx}",
2023-01-22 15:39:35 -06:00
],
2023-11-20 11:53:15 -06:00
plugins: [
2023-11-24 02:06:33 -06:00
require("daisyui"),
plugin(({ addVariant }) => {
addVariant("dark", '&[data-theme="dark"]');
}),
2023-11-20 11:53:15 -06:00
],
2023-01-22 15:39:35 -06:00
};