mirror of
https://github.com/LiuYuYang01/ThriveX-Blog.git
synced 2026-05-06 22:03:08 +08:00
将 `tailwind.config.ts` 文件中的双引号统一替换为单引号,以保持代码风格的一致性。具体修改包括导入语句和配置项中的路径字符串。```plaintext refactor(tailwind.config.ts): 更新文件中的引号样式 将 `tailwind.config.ts` 文件中的双引号统一替换为单引号, 以保持代码风格的一致性。具体修改包括导入语句和配置项中的路径字符串。 ```
38 lines
826 B
TypeScript
Executable File
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;
|