-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.mjs
More file actions
99 lines (99 loc) · 3.54 KB
/
tailwind.config.mjs
File metadata and controls
99 lines (99 loc) · 3.54 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: ['class', '[data-theme="dark"]'],
theme: {
extend: {
colors: {
// Semantic color system using CSS variables
primary: 'var(--text-primary)',
secondary: 'var(--text-secondary)',
tertiary: 'var(--text-tertiary)',
'bg-primary': 'var(--bg-primary)',
'bg-secondary': 'var(--bg-secondary)',
'bg-tertiary': 'var(--bg-tertiary)',
accent: 'var(--accent-color)',
'accent-dim': 'var(--accent-color-dim)',
border: 'var(--border-color)',
},
fontFamily: {
mono: ['Fira Code', 'D2Coding', 'Cascadia Code', 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Ubuntu Mono', 'Menlo', 'Consolas', 'monospace'],
display: ['Source Serif 4', 'Source Serif Pro', 'Noto Serif KR', 'Apple SD Gothic Neo', 'Georgia', 'serif'],
body: ['Source Serif 4', 'Source Serif Pro', 'Noto Serif KR', 'Apple SD Gothic Neo', 'Georgia', 'serif'],
},
spacing: {
'safe-top': 'var(--safe-area-top)',
'header': '44px',
},
transitionTimingFunction: {
'smooth': 'cubic-bezier(0.4, 0, 0.2, 1)',
'bounce': 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
},
animation: {
'fade-in': 'fadeIn 0.3s ease-out',
'slide-in': 'slideIn 0.3s ease-out',
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
slideIn: {
'0%': { transform: 'translateX(-10px)', opacity: '0' },
'100%': { transform: 'translateX(0)', opacity: '1' },
},
},
typography: {
DEFAULT: {
css: {
'--tw-prose-body': 'var(--text-primary)',
'--tw-prose-headings': 'var(--text-primary)',
'--tw-prose-links': 'var(--accent-color)',
'--tw-prose-bold': 'var(--text-primary)',
'--tw-prose-counters': 'var(--text-secondary)',
'--tw-prose-bullets': 'var(--text-secondary)',
'--tw-prose-hr': 'var(--border-color)',
'--tw-prose-quotes': 'var(--text-secondary)',
'--tw-prose-quote-borders': 'var(--accent-color)',
'--tw-prose-code': 'var(--text-primary)',
'--tw-prose-pre-code': 'var(--text-primary)',
'--tw-prose-pre-bg': 'var(--bg-tertiary)',
'code': {
backgroundColor: 'var(--bg-tertiary)',
padding: '0.2rem 0.4rem',
borderRadius: '3px',
fontWeight: '400',
},
'code::before': { content: 'none' },
'code::after': { content: 'none' },
'pre': {
backgroundColor: 'var(--bg-tertiary)',
border: '1px solid var(--border-color)',
},
'blockquote': {
borderLeftColor: 'var(--accent-color)',
fontStyle: 'italic',
},
'a': {
color: 'var(--accent-color)',
textDecoration: 'none',
borderBottom: '1px solid var(--accent-color-dim)',
'&:hover': {
borderBottomColor: 'var(--accent-color)',
},
},
'h2': {
scrollMarginTop: '2rem',
},
'h3': {
scrollMarginTop: '2rem',
},
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
],
};