-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
83 lines (79 loc) · 2.12 KB
/
tailwind.config.ts
File metadata and controls
83 lines (79 loc) · 2.12 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
import type { Config } from 'tailwindcss';
type AccType = Record<string, string>;
const range = (start: number, end: number): number[] => {
let array = [];
for (let i = start; i <= end; ++i) {
array.push(i);
}
return array;
};
const pxToRem = (px: number, base = 16) => `${px / base}rem`;
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./page-layout/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./page-layout/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
spacing: {
...range(0, 2000).reduce((acc: AccType, px: number) => {
acc[`${px}pxr`] = pxToRem(px);
return acc;
}, {}),
},
fontSize: {
...range(0, 2000).reduce((acc: AccType, px: number) => {
acc[`${px}pxr`] = pxToRem(px);
return acc;
}, {}),
},
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
colors: {
black: '#171717',
gray70: '#333236',
gray60: '#4B4B4B',
gray50: '#787486',
gray40: '#9fa6b2',
gray30: '#d9d9d9',
gray20: '#EEEEEE',
gray10: '#fafafa',
white: '#ffffff',
violet: '#5534da',
violet8: '#f1effd',
red: '#d6173a',
green: '#7ac555',
purple: '#760dde',
orange: '#ffa500',
blue: '#76a5ea',
pink: '#e876ea',
yellow: '#ffd600',
brown: '#694b41',
lightgreen: '#d1f2ae',
lightpurple: '#d0def2',
lightorange: '#ffE9A9',
lightblue: 'e8f4ff',
lightpink: '#fadce9',
lightred: '#FF8758',
greenyellow: '#8F8209',
pastelred: '#FFCFC1',
pastelnavy: '#81a3ca',
pastelblue: '#D4E6FF',
lightbrown: '#e1d3c0',
},
},
screens: {
mobile: { min: '375px', max: '743px' },
tablet: { min: '744px', max: '1023px' },
desktop: '1024px',
},
},
plugins: [],
};
export default config;