-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.mjs
More file actions
144 lines (123 loc) · 4.94 KB
/
tailwind.config.mjs
File metadata and controls
144 lines (123 loc) · 4.94 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import daisyui from 'daisyui';
import typography from '@tailwindcss/typography';
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
sans: ['Plus Jakarta Sans', 'system-ui', '-apple-system', 'sans-serif'],
mono: ['JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Menlo', 'monospace'],
},
/* ── Spacing / sizing ──────────────────────────────────── */
maxWidth: {
'2xl': '42rem', /* article prose ~672px */
'3xl': '48rem', /* post layout container ~768px */
'4xl': '56rem', /* content-wide ~896px */
'6xl': '72rem', /* site shell ~1152px */
},
/* ── Explicit z-index scale ─────────────────────────────── */
zIndex: {
0: '0',
10: '10', /* content overlays */
20: '20', /* dropdowns, tooltips */
30: '30', /* sticky navbar */
40: '40', /* modal backdrop */
50: '50', /* modal / drawer */
},
/* ── Typography scale additions ────────────────────────── */
fontSize: {
'2xs': ['0.625rem', { lineHeight: '1rem' }],
},
/* ── Border radius ──────────────────────────────────────── */
borderRadius: {
'4xl': '2rem',
},
/* ── Box shadow — editorial softness ────────────────────── */
boxShadow: {
'card': '0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06)',
'card-md': '0 4px 20px -4px rgb(37 99 235 / 0.10)',
'card-lg': '0 8px 30px -6px rgb(37 99 235 / 0.15)',
},
/* ── Animation ──────────────────────────────────────────── */
transitionDuration: {
150: '150ms',
200: '200ms',
300: '300ms',
},
keyframes: {
fadeUp: {
'0%': { opacity: '0', transform: 'translateY(8px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
shimmer: {
'0%': { backgroundPosition: '-200% 0' },
'100%': { backgroundPosition: '200% 0' },
},
},
animation: {
'fade-up': 'fadeUp 0.35s ease-out both',
shimmer: 'shimmer 1.5s infinite linear',
},
},
},
plugins: [typography, daisyui],
daisyui: {
themes: [
/* ── Light theme ─────────────────────────────────────────── */
{
light: {
/* Primary — confident blue */
'primary': '#2563EB',
'primary-content': '#ffffff',
/* Secondary — warm indigo */
'secondary': '#4F46E5',
'secondary-content': '#ffffff',
/* Accent — amber highlight */
'accent': '#F59E0B',
'accent-content': '#1C1917',
/* Neutral */
'neutral': '#374151',
'neutral-content': '#ffffff',
/* Base scale — white surfaces on slate-50 ground */
'base-100': '#ffffff', /* card / surface */
'base-200': '#F8FAFC', /* page background */
'base-300': '#E2E8F0', /* borders, dividers */
'base-content': '#0F172A', /* primary text */
/* Semantic */
'info': '#0EA5E9',
'success': '#10B981',
'warning': '#F59E0B',
'error': '#EF4444',
},
},
/* ── Dark theme ──────────────────────────────────────────── */
{
dark: {
/* Primary — lighter blue for dark-bg contrast */
'primary': '#60A5FA',
'primary-content': '#0F172A',
'secondary': '#818CF8',
'secondary-content': '#0F172A',
'accent': '#FCD34D',
'accent-content': '#1C1917',
'neutral': '#1E293B',
'neutral-content': '#F1F5F9',
/* Base scale — deep slate */
'base-100': '#0F172A', /* card / surface */
'base-200': '#1E293B', /* page background */
'base-300': '#334155', /* borders, dividers */
'base-content': '#E2E8F0', /* primary text */
'info': '#38BDF8',
'success': '#34D399',
'warning': '#FBBF24',
'error': '#F87171',
},
},
],
darkTheme: 'dark',
base: true,
styled: true,
utils: true,
logs: false,
},
};