-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtailwind.config.js
More file actions
61 lines (55 loc) · 1.58 KB
/
Copy pathtailwind.config.js
File metadata and controls
61 lines (55 loc) · 1.58 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
/** @type {import('tailwindcss').Config} */
const backgroundColors = {
primary: 'hsl(var(--color-bg-primary) / <alpha-value>)',
light: 'hsl(var(--color-bg-light) / <alpha-value>)',
acent: 'hsl(var(--color-bg-acent) / <alpha-value>)',
highlight: 'hsl(var(--color-bg-highlight) / <alpha-value>)',
};
const borderColors = {
primary: 'hsl(var(--color-border-primary) / <alpha-value>)',
};
const textColors = {
primary: 'hsl(var(--color-text-primary) / <alpha-value>)',
secondary: 'hsl(var(--color-text-secondary) / <alpha-value>)',
body: 'hsl(var(--color-text-body) / <alpha-value>)',
light: 'hsl(var(--color-text-light) / <alpha-value>)',
light2: 'hsl(var(--color-text-light2) / <alpha-value>)',
};
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx,svg}'],
theme: {
colors: {
inherit: 'inherit',
transparent: 'transparent',
current: 'currentColor',
red: 'hsl(var(--color-red) / <alpha-value>)',
},
fontSize: {
sm: '0.625rem', // ~ 12px
md: '0.875rem', // ~ 14px
xl: '1.25rem', // ~ 20px
},
borderRadius: {
none: '0',
sm: '.3125rem', // ~ 5px
md: '1.25rem', // ~ 20px
},
extend: {
backgroundImage: {},
// Background concerns
backgroundColor: backgroundColors,
gradientColorStops: backgroundColors,
// Border concerns
borderColor: borderColors,
stroke: borderColors,
outlineColor: borderColors,
ringColor: borderColors,
textColor: textColors,
fill: textColors,
},
},
plugins: [],
corePlugins: {
preflight: true,
},
};