forked from codecov/gazebo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
157 lines (155 loc) · 5.74 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
146
147
148
149
150
151
152
153
154
155
156
157
const defaultTheme = require('tailwindcss/defaultTheme')
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue) {
return `rgba(var(${variableName}), ${opacityValue})`
}
return `rgb(var(${variableName}))`
}
}
module.exports = {
content: [
'./src/**/*.{css,js,jsx,ts,tsx}',
'./src/*.{css,js,jsx,ts,tsx}',
'./public/*.html',
],
mode: 'jit',
theme: {
container: {
center: true,
},
extend: {
fontFamily: {
sans: ['Poppins', ...defaultTheme.fontFamily.sans],
mono: ['"Source Code Pro"', ...defaultTheme.fontFamily.mono],
lato: ['Lato', ...defaultTheme.fontFamily.sans],
},
colors: {
transparent: `transparent`,
ds: {
pink: {
DEFAULT: withOpacity('--color-ds-pink-default'),
secondary: withOpacity('--color-ds-pink-secondary'),
tertiary: withOpacity('--color-ds-pink-tertiary'),
quinary: withOpacity('--color-ds-pink-default'),
},
blue: {
DEFAULT: withOpacity('--color-ds-blue-darker'),
light: withOpacity('--color-ds-blue-light'),
medium: withOpacity('--color-ds-blue-medium'),
darker: withOpacity('--color-ds-blue-darker'),
quinary: withOpacity('--color-ds-blue-quinary'),
septenary: withOpacity('--color-ds-blue-septenary'),
senary: withOpacity('--color-ds-blue-senary'),
selected: withOpacity('--color-ds-blue-selected'),
},
gray: {
DEFAULT: withOpacity('--color-ds-gray-default'),
primary: withOpacity('--color-ds-gray-primary'),
secondary: withOpacity('--color-ds-gray-secondary'),
tertiary: withOpacity('--color-ds-gray-tertiary'),
quaternary: withOpacity('--color-ds-gray-quaternary'),
quinary: withOpacity('--color-ds-gray-quinary'),
senary: withOpacity('--color-ds-gray-senary'),
octonary: withOpacity('--color-ds-gray-octonary'),
nonary: withOpacity('--color-ds-gray-default'),
},
primary: {
green: withOpacity('--color-ds-primary-green'),
red: withOpacity('--color-ds-primary-red'),
purple: withOpacity('--color-ds-primary-purple'),
yellow: withOpacity('--color-ds-primary-yellow'),
base: withOpacity('--color-ds-primary-base'),
},
coverage: {
covered: withOpacity('--color-success-100'),
uncovered: withOpacity('--color-error-100'),
partial: withOpacity('--color-ds-coverage-partial'),
},
error: {
quinary: withOpacity('--color-ds-error-quinary'),
nonary: withOpacity('--color-ds-error-nonary'),
},
},
codecov: {
red: withOpacity('--color-ds-primary-red'),
orange: withOpacity('--color-codecov-orange'),
footer: withOpacity('--color-codecov-footer'),
},
gray: {
100: withOpacity('--color-ds-gray-primary'),
200: withOpacity('--color-ds-gray-secondary'),
300: withOpacity('--color-gray-300'),
400: withOpacity('--color-ds-gray-quaternary'),
500: withOpacity('--color-ds-gray-quinary'),
600: withOpacity('--color-ds-gray-senary'),
800: withOpacity('--color-ds-gray-octonary'),
900: withOpacity('--color-ds-gray-default'),
},
pink: {
100: withOpacity('--color-ds-pink-secondary'),
500: withOpacity('--color-ds-pink-default'),
900: withOpacity('--color-ds-pink-tertiary'),
},
blue: {
100: withOpacity('--color-ds-blue-light'),
200: withOpacity('--color-ds-blue-medium'),
400: withOpacity('--color-ds-blue-default'),
600: withOpacity('--color-ds-blue-darker'),
800: withOpacity('--color-ds-blue-quinary'),
900: withOpacity('--color-ds-blue-senary'),
},
orange: {
100: withOpacity('--color-orange-100'),
500: withOpacity('--color-orange-500'),
},
warning: {
900: withOpacity('--color-warning-900'),
500: withOpacity('--color-ds-primary-yellow'),
100: withOpacity('--color-success-100'),
},
success: {
100: withOpacity('--color-success-100'),
500: withOpacity('--color-success-500'),
700: withOpacity('--color-ds-primary-green'),
900: withOpacity('--color-ds-gray-default'),
},
error: {
100: withOpacity('--color-error-100'),
500: withOpacity('--color-ds-error-quinary'),
900: withOpacity('--color-ds-error-nonary'),
},
info: {
100: withOpacity('--color-info-100'),
500: withOpacity('--color-info-500'),
900: withOpacity('--color-info-900'),
},
github: withOpacity('--color-github'),
gitlab: withOpacity('--color-gitlab'),
bitbucket: withOpacity('--color-bitbucket'),
okta: withOpacity('--color-okta'),
},
screens: {
print: { raw: 'print' },
},
backgroundImage: {
'enterprise-banner-bg': "url('/src/assets/enterprise-banner-bg.png')",
},
keyframes: {
slideDown: {
from: { height: 0 },
to: { height: 'var(--radix-accordion-content-height)' },
},
slideUp: {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: 0 },
},
},
animation: {
slideDown: 'slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)',
slideUp: 'slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)',
},
},
},
plugins: [require('@tailwindcss/container-queries')],
}