-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
145 lines (135 loc) · 3.79 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
134
135
136
137
138
139
140
141
142
143
144
145
const plugin = require(`tailwindcss/plugin`);
module.exports = {
mode: 'jit',
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
colors: {
light: {
full: "#ffffff",
high: "#FCFCFC",
emphasis: "#ECECEC",
mid: "#A6A6A6",
low: "#787878",
disabled: "#A9A9A9"
},
transparent: "transparent",
dark: {
full: "#000",
high: "#1B1B1B",
emphasis: "#030303",
mid: "#070B09",
low: "#787878",
disabled: "#A9A9A9"
},
red: "#c73238",
"red-light": "#cb575bfa"
},
backgroundImage: {
"body-bg":
"radial-gradient(112.6% 112.6% at 50% -12.6%,#372627 0,#030303 44.79%)"
},
backgroundColor: {
none: "none",
transparent: "transparent",
"side-bar": "#171717",
"sideBar-navLinkActive": "#1b1b1b",
dropDown: "#282828",
tabHeader: "#181818",
tabContent: "rgba(24, 24, 24, 0.6)",
input: "rgba(27, 27, 27, 0.6)",
red: "#c73238",
"red-light": "#cb575bfa",
"black-full": "#000",
"black-900": "#171717",
"black-800": "#181818",
"black-700": "#1b1b1b",
"black-600": "#1b1b1b99",
"black-500": "#17171799",
"black-400": "#282828",
"white-full": "#ffffff",
"white-high": "#FCFCFC",
"white-emphasis": "#ECECEC",
"white-mid": "#A6A6A6",
"white-low": "#787878",
disabled: "#A9A9A9"
},
fontFamily: {
primary: ["Poppins", "sans-serif"]
},
fontSize: {
xsm: "0.75rem", // 12px
sm: "0.875rem", // 14px
base: "1rem", //16px
lg: "1.125rem", //18px
xl: "1.25rem", // 20px
"2xl": "1.375rem", // 22px
"3xl": "1.5rem", //24px
"4xl": "2.25rem", // 36px
h1: ["6rem", { lineHeight: "7rem" }],
h2: ["3.75rem", { lineHeight: "4.5rem" }],
h3: ["3rem", { lineHeight: "3.5rem" }],
h4: ["2.25rem", { lineHeight: "2.25rem" }],
h5: ["1.5rem", { lineHeight: "2rem" }],
h6: ["1.25rem", { lineHeight: "1.5rem" }],
subtitle1: ["1rem", { lineHeight: "1.5rem" }],
subtitle2: ["0.875rem", { lineHeight: "1.5rem" }],
body1: ["1rem", { lineHeight: "1.5rem" }],
body2: ["0.875rem", { lineHeight: "1.25rem" }],
button: ["0.875rem", { lineHeight: "1rem" }],
caption: ["0.75rem", { lineHeight: "0.875rem" }],
overline: ["0.625rem", { lineHeight: "1rem" }]
},
screens: {
"2xl": { max: "1536px" },
// => @media (max-width: 1536px) { ... }
"1.5xl": { max: "1408px" },
// => @media (max-width: 1408px) { ... }
xl: { max: "1280px" },
// => @media (max-width: 1280px) { ... }
"1.5lg": { max: "1152px" },
// => @media (max-width: 1152px) { ... }
lg: { max: "1024px" },
// => @media (max-width: 1024px) { ... }
"1.5md": { max: "896px" },
// => @media (max-width: 896px) { ... }
md: { max: "768px" },
// => @media (max-width: 768px) { ... }
"1.5xs": { max: "640px" },
// => @media (max-width: 640px) { ... }
// "1.5xs": { max: "512px" },
// // => @media (max-width: 512px) { ... }
sm: { max: "512px" }
},
extend: {
keyframes: {
'menu-open': {
'0%': {
opacity: '0',
transform: 'scale(0.9)',
},
'100%': {
opacity: '1',
transform: 'scale(1)',
},
},
},
animation: {
'menu-open': 'menu-open 200ms ease-in-out',
},
},
},
variants: {
extend: {
backgroundColor: ['checked'],
},
},
plugins: [
plugin(
({addVariant}) =>
{
addVariant('hocus', ['&:hover', '&:focus']);
addVariant('child-list', '& ol', '& ul');
addVariant('child-code', '& pre');
}),
],
};