Files
DanDing1Todo_Web/tailwind.config.ts
Mr.Xia 2c4549ad79
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
fa
2026-02-26 21:29:54 +08:00

27 lines
559 B
TypeScript

import type { Config } from "tailwindcss";
const config: Config = {
// 关键配置:启用 class 模式的深色主题
darkMode: 'class',
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
},
},
},
plugins: [],
// 生产模式优化
future: {
hoverOnlyWhenSupported: true,
},
};
export default config;