-
Notifications
You must be signed in to change notification settings - Fork 13
/
tailwind.config.js
125 lines (122 loc) · 4.07 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
/** @type {import('tailwindcss').Config} */
export default {
// darkMode: 'class', // {{ edit_1 }}
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
white: 'var(--color-white)',
black: 'var(--color-black)',
transparent: 'var(--color-transparent)',
neutral: {
50: 'var(--color-neutral-50)',
100: 'var(--color-neutral-100)',
150: 'var(--color-neutral-150)',
200: 'var(--color-neutral-200)',
300: 'var(--color-neutral-300)',
400: 'var(--color-neutral-400)',
500: 'var(--color-neutral-500)',
600: 'var(--color-neutral-600)',
700: 'var(--color-neutral-700)',
750: 'var(--color-neutral-750)',
800: 'var(--color-neutral-800)',
850: 'var(--color-neutral-850)',
900: 'var(--color-neutral-900)',
},
primary: {
50: 'var(--color-primary-50)',
100: 'var(--color-primary-100)',
200: 'var(--color-primary-200)',
300: 'var(--color-primary-300)',
400: 'var(--color-primary-400)',
500: 'var(--color-primary-500)',
600: 'var(--color-primary-600)',
700: 'var(--color-primary-700)',
800: 'var(--color-primary-800)',
900: 'var(--color-primary-900)',
},
bg: {
default: 'var(--color-bg-default)',
hover: 'var(--color-bg-hover)',
contrastDefault: 'var(--color-bg-contrast-default)',
contrastHover: 'var(--color-bg-contrast-hover)',
},
stroke: {
default: 'var(--color-stroke-default)',
},
text: {
primary: 'var(--color-text-primary)',
secondary: 'var(--color-text-secondary)',
},
button: {
primary: {
fill: {
default: 'var(--color-button-primary-fill-default)',
hover: 'var(--color-button-primary-fill-hover)',
disabled: 'var(--color-button-primary-fill-disabled)',
},
text: {
default: 'var(--color-button-primary-text-default)',
disabled: 'var(--color-button-primary-text-disabled)',
},
},
plain: {
fill: {
default: 'var(--color-button-plain-fill-default)',
hover: 'var(--color-button-plain-fill-hover)',
disabled: 'var(--color-button-plain-fill-disabled)',
},
text: {
default: 'var(--color-button-plain-text-default)',
disabled: 'var(--color-button-plain-text-disabled)',
},
},
secondary: {
fill: {
default: 'var(--color-button-secondary-fill-default)',
hover: 'var(--color-button-secondary-fill-hover)',
disabled: 'var(--color-button-secondary-fill-disabled)',
},
text: {
default: 'var(--color-button-secondary-text-default)',
disabled: 'var(--color-button-secondary-text-disabled)',
},
},
outline: {
fill: {
default: 'var(--color-button-outline-fill-default)',
hover: 'var(--color-button-outline-fill-hover)',
disabled: 'var(--color-button-outline-fill-disabled)',
},
stroke: {
default: 'var(--color-button-outline-stroke-default)',
},
text: {
default: 'var(--color-button-outline-text-default)',
disabled: 'var(--color-button-outline-text-disabled)',
},
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
function ({ addUtilities }) {
addUtilities({
'.text-base-semibold': {
fontSize: '1rem',
fontWeight: '600',
},
'.text-sm-semibold': {
fontSize: '0.875rem',
fontWeight: '600',
},
'.text-xs-semibold': {
fontSize: '0.75rem',
fontWeight: '600',
},
});
},
],
};