-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.js
More file actions
89 lines (82 loc) · 3.14 KB
/
tailwind.config.js
File metadata and controls
89 lines (82 loc) · 3.14 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
const colorVar = (variable) => `rgb(var(${variable}) / <alpha-value>)`;
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./App.{js,jsx,ts,tsx}',
'./src/**/*.{js,jsx,ts,tsx}',
'./src/screens/**/*.{js,jsx,ts,tsx}',
],
darkMode: 'class',
presets: [require('nativewind/preset')],
theme: {
extend: {
colors: {
primary: colorVar('--background'),
background: {
primary: colorVar('--background'),
secondary: colorVar('--color-secondary'),
tertiary: colorVar('--color-tertiary'),
},
text: {
primary: colorVar('--color-text-primary'),
secondary: colorVar('--color-text-secondary'),
tertiary: colorVar('--color-text-tertiary'),
disabled: colorVar('--color-disabled'),
},
brand: {
primary: colorVar('--color-brand-primary'),
secondary: colorVar('--color-brand-secondary'),
disabled: colorVar('--color-brand-disabled'),
light: colorVar('--color-brand-light'),
},
button: {
primary: colorVar('--color-button-primary'),
'primary-text': colorVar('--color-button-primary-text'),
'primary-disabled': colorVar('--color-button-primary-disabled'),
'primary-disabled-text': colorVar('--color-button-primary-disabled-text'),
secondary: colorVar('--color-button-secondary'),
'secondary-text': colorVar('--color-button-secondary-text'),
},
// Sửa: overlay đã có alpha trong CSS variable rồi
overlay: {
dark: 'rgb(var(--color-overlay-dark))',
light: 'rgb(var(--color-overlay-light))',
card: 'rgb(var(--color-overlay-card))',
},
border: {
primary: colorVar('--color-border-primary'),
secondary: colorVar('--color-border-secondary'),
},
system: {
white: colorVar('--color-system-white'),
black: colorVar('--color-system-black'),
success: colorVar('--color-system-success'),
warning: colorVar('--color-system-warning'),
error: colorVar('--color-system-error'),
info: colorVar('--color-system-info'),
},
},
fontFamily: {
regular: ['Figtree-Regular', 'System'],
medium: ['Figtree-Medium', 'System'],
semibold: ['Figtree-SemiBold', 'System'],
bold: ['Figtree-Bold', 'System'],
},
fontSize: {
h4: ['32px', { lineHeight: '38px', fontWeight: '600' }],
h3: ['24px', { lineHeight: '32px', fontWeight: '600' }],
h5: ['18px', { lineHeight: '26px', fontWeight: '600' }],
button: ['18px', { lineHeight: '26px', fontWeight: '500' }],
body: ['16px', { lineHeight: '24px', fontWeight: '400' }],
label: ['14px', { lineHeight: '20px', fontWeight: '400' }],
caption: ['12px', { lineHeight: '18px', fontWeight: '400' }],
word: ['18px', { lineHeight: '26px', fontWeight: '400' }],
system: ['11px', { lineHeight: '16px', fontWeight: '400' }],
},
},
},
plugins: [require('tailwindcss-animate')],
corePlugins: {
preflight: false,
},
};