-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.mjs
More file actions
64 lines (64 loc) · 1.66 KB
/
Copy pathtailwind.config.mjs
File metadata and controls
64 lines (64 loc) · 1.66 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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class', // 启用基于 class 的暗色模式
theme: {
extend: {
colors: {
'background': 'var(--color-background)',
'text': 'var(--color-text)',
primary: {
50: '#eff6ff',
100: '#dbeafe',
200: '#bfdbfe',
300: '#93c5fd',
400: '#60a5fa',
500: '#3b82f6',
600: '#2563eb',
700: '#1d4ed8',
800: '#1e40af',
900: '#1e3a8a',
}
},
typography: {
DEFAULT: {
css: {
maxWidth: 'none',
color: '#333333',
a: {
color: '#2563eb', // primary-600
textDecoration: 'none',
fontWeight: '500',
transition: 'all 0.2s',
'&:hover': {
color: '#1d4ed8', // primary-700
textDecoration: 'underline',
},
},
code: {
color: '#1f2937',
backgroundColor: '#f3f4f6',
padding: '0.2rem 0.3rem',
borderRadius: '0.25rem',
fontWeight: '500',
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
blockquote: {
fontStyle: 'normal',
color: '#52525b',
borderLeftColor: '#3b82f6', // primary-500
}
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
],
}