-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
105 lines (100 loc) · 4.45 KB
/
Copy pathtailwind.config.js
File metadata and controls
105 lines (100 loc) · 4.45 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
screens: {
xs: '480px', // small phones (matches app's tightest breakpoint)
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
extend: {
// ── Colors ────────────────────────────────────────────────────────────
// Mapped from the existing design system (base.css + component inline styles)
colors: {
primary: '#2c3e50', // headers, primary text
accent: {
DEFAULT: '#2c7fb8', // active states, links (Latin UI)
light: '#e3f2fd', // active button background
hover: '#1e5a8a', // darker on hover
},
arabic: {
DEFAULT: '#c85a17', // active states (Arabic UI)
light: '#fef3e6', // active button background
hover: '#a34a12', // darker on hover
},
muted: '#666666', // secondary text, labels
ink: {
DEFAULT: '#333333', // body text, dark UI buttons
hover: '#555555', // hover state for dark buttons
},
neutral: {
DEFAULT: '#6c757d', // reset/secondary buttons
hover: '#5a6268',
},
surface: {
DEFAULT: '#f8f9fa', // input/button backgrounds
alt: '#e9ecef', // hover backgrounds
dark: '#dee2e6', // active/pressed backgrounds
},
border: {
DEFAULT: '#cccccc',
light: '#dddddd',
dark: '#adb5bd', // hover border
},
// Status
success: '#28a745',
danger: '#dc3545',
info: '#007bff',
warning: '#ffc107',
},
// ── Font Families ─────────────────────────────────────────────────────
fontFamily: {
serif: ['Noto Serif', 'Georgia', 'serif'],
arabic: ['Amiri', 'Scheherazade New', 'Noto Naskh Arabic', 'serif'],
latin: ['-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'sans-serif'],
mono: ['Monaco', 'Menlo', 'Ubuntu Mono', 'monospace'],
},
// ── Font Sizes ────────────────────────────────────────────────────────
// text-dynamic-* scale with the Latin slider because html font-size
// is driven by --font-scale-latin; all rem values scale automatically.
// text-arabic-* use px-based CSS variables for independent Arabic scaling.
fontSize: {
'dynamic-base': ['1rem', { lineHeight: '1.6' }],
'dynamic-lg': ['1.125rem', { lineHeight: '1.5' }],
'dynamic-sm': ['0.875rem', { lineHeight: '1.5' }],
'dynamic-xs': ['0.75rem', { lineHeight: '1.4' }],
'arabic-base': ['var(--arabic-base)', { lineHeight: '1.8' }],
'arabic-lg': ['var(--arabic-lg)', { lineHeight: '1.8' }],
'arabic-sm': ['var(--arabic-sm)', { lineHeight: '1.8' }],
'arabic-xs': ['var(--arabic-xs)', { lineHeight: '1.6' }],
},
// ── Shadows ───────────────────────────────────────────────────────────
boxShadow: {
light: '0 2px 10px rgba(0, 0, 0, 0.1)',
medium: '0 4px 15px rgba(0, 0, 0, 0.1)',
dark: '0 8px 25px rgba(0, 0, 0, 0.15)',
},
// ── Z-index scale ─────────────────────────────────────────────────────
zIndex: {
dropdown: '100',
sticky: '200',
modal: '1000',
tooltip: '1100',
overlay: '10000',
},
// ── Sizing helpers ────────────────────────────────────────────────────
minHeight: {
touch: '40px', // minimum touch target for mobile
},
minWidth: {
touch: '40px',
select: '120px', // uniform-select minimum
},
},
},
plugins: [],
};