-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathtailwind.config.js
More file actions
75 lines (75 loc) · 2.16 KB
/
tailwind.config.js
File metadata and controls
75 lines (75 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
// Typora 风格配色 - 极简现代
'pure-white': '#FFFFFF',
'bg-gray': '#FAFAFA',
'light-gray': '#F5F5F5',
'border-gray': '#E0E0E0',
'text-primary': '#2C3E50',
'text-secondary': '#7F8C8D',
'text-muted': '#BDC3C7',
'accent': {
DEFAULT: '#5B9BD5',
light: '#7BAADE',
dark: '#4A7FB5',
},
},
fontFamily: {
sans: ['-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'sans-serif'],
mono: ['SF Mono', 'Monaco', 'Consolas', 'monospace'],
},
typography: (theme) => ({
DEFAULT: {
css: {
maxWidth: '100%',
color: theme('colors.text-primary'),
lineHeight: '1.7',
letterSpacing: '0.01em',
h1: {
color: theme('colors.text-primary'),
fontWeight: '600',
letterSpacing: '-0.02em',
},
h2: {
color: theme('colors.text-primary'),
fontWeight: '600',
letterSpacing: '-0.02em',
},
h3: {
color: theme('colors.text-primary'),
fontWeight: '600',
letterSpacing: '-0.02em',
},
p: {
color: theme('colors.text-primary'),
},
a: {
color: theme('colors.accent.DEFAULT'),
textDecoration: 'none',
transition: 'color 0.2s ease',
'&:hover': {
color: theme('colors.accent.dark'),
},
},
},
},
}),
boxShadow: {
'minimal': '0 1px 3px rgba(0, 0, 0, 0.04)',
'minimal-hover': '0 4px 12px rgba(0, 0, 0, 0.08)',
'soft': '0 2px 8px rgba(0, 0, 0, 0.06)',
},
},
},
plugins: [
import('@tailwindcss/typography'),
],
}