next-windfonts/tailwind.config.js
bo.yu 1caa9448c0 feat: 初始化项目基础架构和核心功能
添加项目基础架构,包括字体管理、文档系统、API路由和UI组件。实现字体预览、收藏、搜索和文档浏览功能。

- 初始化Next.js项目结构和配置
- 添加字体管理API路由和数据库模型
- 实现字体预览和收藏功能
- 添加文档系统支持MDX内容
- 创建核心UI组件库
- 配置Redux状态管理和持久化
- 添加Storybook组件文档
- 实现响应式布局和主题系统
- 添加测试工具和CI配置
- 完善开发环境和构建配置
2025-08-11 18:01:43 +08:00

74 lines
1.9 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
const { fontFamily } = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
content: [
'./node_modules/pliny/**/*.js',
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
'./posts/**/*.mdx',
],
theme: {
extend: {
lineHeight: {
11: '2.75rem',
12: '3rem',
13: '3.25rem',
14: '3.5rem',
},
fontFamily: {
sans: ['var(--font-space-grotesk)', ...fontFamily.sans],
},
colors: {
primary: colors.wfColors,
gray: colors.gray,
},
zIndex: {
60: '60',
70: '70',
80: '80',
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
a: {
color: theme('colors.primary.500'),
'&:hover': {
color: `${theme('colors.primary.600')}`,
},
textDecoration: 'none',
code: { color: theme('colors.primary.400') },
},
'h1,h2': {
fontWeight: '700',
letterSpacing: theme('letterSpacing.tight'),
},
h3: {
fontWeight: '600',
},
code: {
color: theme('colors.indigo.500'),
},
},
},
invert: {
css: {
a: {
color: theme('colors.primary.500'),
'&:hover': {
color: `${theme('colors.primary.400')}`,
},
code: { color: theme('colors.primary.400') },
},
'h1,h2,h3,h4,h5,h6': {
color: theme('colors.gray.100'),
},
},
},
}),
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
}