-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
133 lines (130 loc) · 3.75 KB
/
tailwind.config.js
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
/*
* @Author: aelf-lxy
* @Date: 2023-08-02 01:50:01
* @LastEditors: Peterbjx
* @LastEditTime: 2023-08-18 11:18:49
* @Description: tailwind config
*/
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
// if using `src` directory:
'./src/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
'main-blue': '#1D2A51',
'rise-red': '#FF4D4F',
'fall-green': '#05bd72',
'global-grey': '#f7f8f9',
foreground: '#020617',
'secondary-foreground': '#0F172A',
'muted-foreground': '#64748B',
muted: '#F1F5F9',
muted05: '#F8FAFC',
accentBlue: '#1D4ED8',
'accent-teal': '#0F766E',
'accent-pink': '#BE185D',
border: '#E2E8F0',
success: '#16A34A',
warning: '#CA8A04',
destructive: '#DC2626',
primary: '#2563EB',
secondary: '#EFF6FF',
'accent-blue-background': '#EFF6FF',
'accent-teal-background': '#F0FDFA',
'accent-pink-background': '#FDF2F8',
base: {
100: '#252525',
200: '#858585',
},
link: '#266CD3',
D0: '#D0D0D0',
'00': '#000000',
32: '#327DEC',
F7: '#F7F8FA',
'color-divider': '#E6E6E6',
confirm: '#00A186',
title: '#383947',
'confirm-br': '#BCE1D8',
'confirm-bg': '#EAF5F3',
ECEEF2: '#ECEEF2',
button_active: '#155ABF',
pink_stroke: '#FFD0D0',
pink_fill: '#FFEDED',
scorpion: '#595959',
positive: '#00A186',
'yellow-stroke': '#FADEAB',
'yellow-fill': '#FEF6E7',
},
boxShadow: {
table: '0px 8px 16px 0px rgba(0, 0, 0, 0.04)',
search: '0px 6px 24px 0px rgba(0, 0, 0, 0.24)',
row_tab: '0px -2px 0px 0px #266CD3',
row_tab_inset: '0px -2px 0px 0px #266CD3 inset',
title_bot: '0px -1px 0px 0px #E6E6E6 inset',
card_box: '0px 1px 2px 0px rgba(0, 0, 0, 0.05)',
},
lineHeight: {
20: '20px',
22: '1.375rem',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
flex: {
'00auto': '0 0 auto',
},
screens: {
md: '769px',
},
},
},
plugins: [
function ({ addUtilities }) {
addUtilities({
'.font-medium': {
fontVariationSettings: '"wght" 500',
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale',
fontWeight: 'normal !important',
},
'.font-semibold': {
fontVariationSettings: '"wght" 600',
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale',
fontWeight: 'normal !important',
},
'.font-bold': {
fontVariationSettings: '"wght" 700',
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale',
fontWeight: 'normal !important',
},
});
},
function ({ addComponents }) {
const newStyles = {};
const baseBottom = -14;
const incrementPer10px = 2;
const start = 400;
const end = 450;
for (let width = start; width <= end; width += 10) {
const bottomValue = baseBottom - ((width - start) / 10) * incrementPer10px;
newStyles[`@media (min-width: ${width}px)`] = {
'.banner-bg': {
bottom: `${bottomValue}px !important`,
},
};
}
newStyles[`@media (min-width: 450px)`] = {
'.banner-bg': {
bottom: `-16px !important`,
},
};
addComponents(newStyles);
},
],
};