Files
Profeto/frontend/tailwind.config.js
T
shangfangjian 130f41a31e 修复 CSS 加载超时:移除 Google Fonts 依赖
国内网络无法访问 Google Fonts,导致首页 CSS 加载超时(ERR_CONNECTION_TIMED_OUT)。
→ 移除 Google Fonts 外部字体链接
→ font-brush 回退到系统楷体(KaiTi / STKaiti),仍有书法韵味且零依赖

Co-Authored-By: new-provider/LongCat-2.0 <<EMAIL>>
)
2026-09-20 22:25:03 +08:00

64 lines
1.7 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{ts,tsx}'],
theme: {
extend: {
colors: {
// 纸白:微暖底色,像新闻纸而不是纯白画布
paper: {
50: '#FDFCF8',
100: '#F7F4EC',
200: '#EDE9DE',
300: '#DDD7C7',
},
// 墨色:暖黑灰阶,替代冷调 slate
ink: {
50: '#FAF9F7',
100: '#F0EEE9',
200: '#E2DFD7',
300: '#C9C4B8',
400: '#9C9587',
500: '#6E675B',
600: '#524C42',
700: '#3B362E',
800: '#282420',
900: '#17140F',
},
// 印报红:全站唯一强调色,克制使用
press: {
DEFAULT: '#9E1B1B',
dark: '#7C1414',
wash: '#F7E9E4',
},
},
fontFamily: {
// 毛笔字:先知刊头,书法艺术字体(离线回退到系统楷体/宋体)
brush: ['"KaiTi"', '"STKaiti"', '"Kaiti SC"', '"楷体"', '"Songti SC"', '"Noto Serif CJK SC"', 'serif'],
// 标题与比分:宋体血统,报纸版面的骨架
serif: [
'Georgia',
'"Times New Roman"',
'"Songti SC"',
'STSong',
'SimSun',
'"Noto Serif CJK SC"',
'serif',
],
// 正文:中文黑体栈
sans: [
'"PingFang SC"',
'"Hiragino Sans GB"',
'"Microsoft YaHei"',
'"Noto Sans CJK SC"',
'sans-serif',
],
mono: ['ui-monospace', 'SFMono-Regular', 'Menlo', 'Consolas', 'monospace'],
},
fontSize: {
'2xs': ['11px', { lineHeight: '16px' }],
},
},
},
plugins: [],
}