el.xwx.moe/tailwind.config.js

57 lines
1.3 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",
"neutral-content": "#d1d5db",
2023-11-24 06:50:16 -06:00
"base-100": "#ffffff",
"base-200": "#f3f4f6",
2023-11-24 11:39:54 -06:00
"base-content": "#0a0a0a",
2023-11-24 02:06:33 -06:00
info: "#a5f3fc",
success: "#22c55e",
warning: "#facc15",
error: "#dc2626",
},
},
{
dark: {
primary: "#38bdf8",
secondary: "#0284c7",
accent: "#818cf8",
neutral: "#9ca3af",
"neutral-content": "#404040",
2023-11-24 06:50:16 -06:00
"base-100": "#171717",
2023-11-25 04:54:43 -06:00
"base-200": "#262626",
2023-11-24 11:39:54 -06:00
"base-content": "#fafafa",
2023-11-24 02:06:33 -06:00
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
};