mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-06-28 14:55:49 +00:00
117 lines
3.3 KiB
JavaScript
117 lines
3.3 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
const plugin = require("tailwindcss/plugin");
|
|
const daisyuiColorObj = require("daisyui/src/theming/index");
|
|
|
|
module.exports = {
|
|
daisyui: {
|
|
themes: [
|
|
{
|
|
light: {
|
|
primary: "#0369a1",
|
|
secondary: "#0891b2",
|
|
accent: "#6d28d9",
|
|
neutral: "#6b7280",
|
|
"neutral-content": "#d1d5db",
|
|
"base-100": "#ffffff",
|
|
"base-200": "#f3f4f6",
|
|
"base-content": "#0a0a0a",
|
|
info: "#a5f3fc",
|
|
success: "#22c55e",
|
|
warning: "#facc15",
|
|
error: "#dc2626",
|
|
},
|
|
},
|
|
{
|
|
dark: {
|
|
primary: "#7dd3fc",
|
|
secondary: "#22d3ee",
|
|
accent: "#6d28d9",
|
|
neutral: "#9ca3af",
|
|
"neutral-content": "#404040",
|
|
"base-100": "#171717",
|
|
"base-200": "#262626",
|
|
"base-content": "#fafafa",
|
|
info: "#009ee4",
|
|
success: "#00b17d",
|
|
warning: "#eac700",
|
|
error: "#f1293c",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
darkMode: ["class", '[data-theme="dark"]'],
|
|
content: [
|
|
"./app/**/*.{js,ts,jsx,tsx}",
|
|
"./pages/**/*.{js,ts,jsx,tsx}",
|
|
"./components/**/*.{js,ts,jsx,tsx}",
|
|
|
|
// For the "layouts" directory
|
|
"./layouts/**/*.{js,ts,jsx,tsx}",
|
|
],
|
|
plugins: [
|
|
require("daisyui"),
|
|
plugin(({ addVariant }) => {
|
|
addVariant("dark", '&[data-theme="dark"]');
|
|
}),
|
|
require("tailwindcss-animate"),
|
|
],
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
border: daisyuiColorObj["neutral-content"],
|
|
input: daisyuiColorObj["base-content"],
|
|
ring: daisyuiColorObj["base-content"],
|
|
background: daisyuiColorObj["base-100"],
|
|
foreground: daisyuiColorObj["base-content"],
|
|
primary: {
|
|
DEFAULT: daisyuiColorObj["primary"],
|
|
foreground: daisyuiColorObj["primary-content"],
|
|
},
|
|
secondary: {
|
|
DEFAULT: daisyuiColorObj["secondary"],
|
|
foreground: daisyuiColorObj["secondary-content"],
|
|
},
|
|
destructive: {
|
|
DEFAULT: daisyuiColorObj["error"],
|
|
foreground: daisyuiColorObj["error-content"],
|
|
},
|
|
muted: {
|
|
DEFAULT: daisyuiColorObj["base-300"],
|
|
foreground: daisyuiColorObj["base-content"],
|
|
},
|
|
accent: {
|
|
DEFAULT: daisyuiColorObj["accent"],
|
|
foreground: daisyuiColorObj["accent-content"],
|
|
},
|
|
popover: {
|
|
DEFAULT: daisyuiColorObj["base-200"],
|
|
foreground: daisyuiColorObj["base-content"],
|
|
},
|
|
card: {
|
|
DEFAULT: daisyuiColorObj["base-100"],
|
|
foreground: daisyuiColorObj["base-content"],
|
|
},
|
|
},
|
|
borderRadius: {
|
|
lg: "var(--rounded-btn)",
|
|
md: "calc(var(--rounded-btn) - 2px)",
|
|
sm: "calc(var(--rounded-btn) - 4px)",
|
|
},
|
|
keyframes: {
|
|
"accordion-down": {
|
|
from: { height: "0" },
|
|
to: { height: "var(--radix-accordion-content-height)" },
|
|
},
|
|
"accordion-up": {
|
|
from: { height: "var(--radix-accordion-content-height)" },
|
|
to: { height: "0" },
|
|
},
|
|
},
|
|
animation: {
|
|
"accordion-down": "accordion-down 0.2s ease-out",
|
|
"accordion-up": "accordion-up 0.2s ease-out",
|
|
},
|
|
},
|
|
},
|
|
};
|