Files
ThriveX-Blog/tailwind.config.ts
罗远祥 0ce0a3ed6b refactor(tailwind.config.ts): 更新文件中的引号样式
将 `tailwind.config.ts` 文件中的双引号统一替换为单引号,以保持代码风格的一致性。具体修改包括导入语句和配置项中的路径字符串。```plaintext
refactor(tailwind.config.ts): 更新文件中的引号样式

将 `tailwind.config.ts` 文件中的双引号统一替换为单引号,
以保持代码风格的一致性。具体修改包括导入语句和配置项中的路径字符串。
```
2025-09-11 17:15:59 +08:00

38 lines
826 B
TypeScript
Executable File

import { heroui } from '@heroui/react';
import type { Config } from 'tailwindcss';
const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {
screens: {
'xs': '400px',
},
colors: {
primary: '#539dfd', // 添加自定义颜色
'black-a': '#232931',
'black-b': '#2c333e'
},
transitionDuration: {
'DEFAULT': '300ms', // 添加默认过渡时间为0.3秒
}
},
},
darkMode: 'class',
plugins: [heroui({
themes: {
dark: {
colors: {
background: '#232931',
},
},
}
})]
};
export default config;