2024-11-17 17:17:40 +08:00
|
|
|
import type { Config } from "tailwindcss";
|
|
|
|
|
|
|
|
export default {
|
2024-11-27 19:52:49 +08:00
|
|
|
content: [
|
|
|
|
"./app/**/*.{js,jsx,ts,tsx}",
|
|
|
|
"./common/**/*.{js,jsx,ts,tsx}",
|
|
|
|
"./core/**/*.{js,jsx,ts,tsx}",
|
2024-11-30 14:03:32 +08:00
|
|
|
"./hooks/**/*.{js,jsx,ts,tsx}",
|
2024-11-27 19:52:49 +08:00
|
|
|
],
|
2024-11-17 17:17:40 +08:00
|
|
|
theme: {
|
|
|
|
extend: {
|
|
|
|
fontFamily: {
|
2024-11-27 19:52:49 +08:00
|
|
|
sans: ["Inter", "system-ui", "sans-serif"],
|
|
|
|
},
|
|
|
|
colors: {
|
|
|
|
custom: {
|
2024-11-30 02:15:46 +08:00
|
|
|
bg: {
|
2024-11-30 14:03:32 +08:00
|
|
|
light: "#FAFAFA", // 更柔和的背景色
|
|
|
|
dark: "#111827", // 更深邃的暗色背景
|
2024-11-27 19:52:49 +08:00
|
|
|
},
|
2024-11-30 02:15:46 +08:00
|
|
|
box: {
|
|
|
|
light: "#FFFFFF",
|
|
|
|
dark: "#1E293B",
|
2024-11-27 19:52:49 +08:00
|
|
|
},
|
2024-11-30 02:15:46 +08:00
|
|
|
p: {
|
2024-11-30 14:03:32 +08:00
|
|
|
light: "#374151", // 更清晰的文本颜色
|
|
|
|
dark: "#D1D5DB", // 更亮的暗色文本,提高可读性
|
2024-11-27 19:52:49 +08:00
|
|
|
},
|
2024-11-30 02:15:46 +08:00
|
|
|
title: {
|
|
|
|
light: "#111827",
|
2024-11-30 14:03:32 +08:00
|
|
|
dark: "#F8FAFC", // 更亮的标题颜色
|
2024-11-30 22:24:35 +08:00
|
|
|
}
|
2024-11-27 19:52:49 +08:00
|
|
|
},
|
2024-11-17 17:17:40 +08:00
|
|
|
},
|
2024-11-30 14:03:32 +08:00
|
|
|
animation: {
|
|
|
|
hide: 'hide 100ms ease-in',
|
|
|
|
slideIn: 'slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1)',
|
|
|
|
swipeOut: 'swipeOut 100ms ease-out',
|
|
|
|
},
|
2024-11-17 17:17:40 +08:00
|
|
|
},
|
|
|
|
},
|
2024-11-27 19:52:49 +08:00
|
|
|
darkMode: "class",
|
2024-11-17 17:17:40 +08:00
|
|
|
} satisfies Config;
|