forked from epam/ai-dial-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
109 lines (107 loc) · 3.46 KB
/
tailwind.config.js
File metadata and controls
109 lines (107 loc) · 3.46 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
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
// Default color palette is black when no themes presented
const commonBgColors = {
transparent: 'transparent',
'layer-0': 'var(--bg-layer-0, #000000)',
'layer-1': 'var(--bg-layer-1, #090D13)',
'layer-2': 'var(--bg-layer-2, #141A23)',
'layer-3': 'var(--bg-layer-3, #222932)',
'layer-4': 'var(--bg-layer-4, #333942)',
blackout: 'var(--bg-blackout, #090D13B3)',
error: 'var(--bg-error, #402027)',
'accent-primary': 'var(--bg-accent-primary, #5C8DEA)',
'accent-secondary': 'var(--bg-accent-secondary, #37BABC)',
'accent-tertiary': 'var(--bg-accent-tertiary, #A972FF)',
'accent-primary-alpha': 'var(--bg-accent-primary-alpha, #5C8DEA2B)',
'accent-secondary-alpha': 'var(--bg-accent-secondary-alpha, #37BABC26)',
'accent-tertiary-alpha': 'var(--bg-accent-tertiary-alpha, #A972FF2B)',
};
const commonBorderColors = {
transparent: 'transparent',
primary: 'var(--stroke-primary, #333942)',
secondary: 'var(--stroke-secondary, #222932)',
tertiary: 'var(--stroke-tertiary, #090D13)',
error: 'var(--stroke-error, #F76464)',
hover: 'var(--stroke-hover, #F3F4F6)',
'accent-primary': 'var(--stroke-accent-primary, #5C8DEA)',
'accent-secondary': 'var(--stroke-accent-secondary, #37BABC)',
'accent-tertiary': 'var(--stroke-accent-tertiary, #A972FF)',
};
// Do not use palette directly, only through semantic colors
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/app/**/*.{js,ts,jsx,tsx}',
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
theme: {
backgroundColor: {
...commonBgColors,
'controls-accent': 'var(--controls-bg-accent, #5C8DEA)',
'controls-permanent': 'var(--controls-text-permanent, #FCFCFC)',
'controls-accent-hover': 'var(--controls-bg-accent-hover, #4878D2)',
'controls-disable': 'var(--controls-bg-disable, #7F8792)',
},
borderColor: commonBorderColors,
stroke: commonBorderColors,
divideColor: commonBorderColors,
textColor: {
transparent: 'transparent',
primary: 'var(--text-primary, #F3F4F6)',
secondary: 'var(--text-secondary, #7F8792)',
error: 'var(--text-error, #F76464)',
'accent-primary': 'var(--text-accent-primary, #5C8DEA)',
'accent-secondary': 'var(--text-accent-secondary, #37BABC)',
'accent-tertiary': 'var(--text-accent-tertiary, #A972FF)',
'controls-permanent': 'var(--controls-text-permanent, #FCFCFC)',
'controls-disable': 'var(--controls-text-disable, #333942)',
},
gradientColorStops: commonBgColors,
/////////
extend: {
colors: {
transparent: 'transparent',
},
screens: {
sm: '560px',
},
borderRadius: {
DEFAULT: '3px',
},
opacity: {
15: '15%',
},
boxShadow: {
DEFAULT: '0 0 4px 0 var(--bg-blackout, #090D13B3)',
},
fontFamily: {
DEFAULT: ['var(--font-inter)'],
},
fontSize: {
xxs: '10px',
},
typography: {
DEFAULT: {
css: {
color: 'var(--text-primary, #F3F4F6)',
a: {
color: 'var(--text-accent-primary, #5C8DEA)',
},
pre: {
border: 'none',
borderRadius: '0',
backgroundColor: 'transparent',
},
},
},
},
},
},
variants: {
extend: {
visibility: ['group-hover'],
},
},
plugins: [require('@tailwindcss/typography')],
};