-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
154 lines (146 loc) · 4.22 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss'
import plugin from 'tailwindcss/plugin'
import defaultTheme from 'tailwindcss/defaultTheme'
const config: Config = {
content: ['./src/**/**/*.{js,ts,jsx,tsx,mdx}'],
safelist: ['material-icons'],
theme: {
colors: {
primary: {
// Background 1 color
DEFAULT: '#080809',
border: '#ffffff55',
label: {
primary: '#F2F4FF',
secondary: '#F2F4FFcc',
active: '#FFFFFF',
},
},
secondary: {
// Background 2 color
DEFAULT: '#0E0F0F',
border: '#ffffff55',
label: {
primary: '#FFFFFFdd',
secondary: '#FFFFFFaa',
active: '#FFFFFF',
},
},
accent: {
// Brand color
DEFAULT: '#08fabd',
active: '#08faee',
label: {
primary: '#0f0f0f',
active: '#ff0000',
},
},
feedback: {
info: {
DEFAULT: '',
active: '',
},
sucess: {
DEFAULT: '',
active: '',
},
error: {
DEFAULT: '#ff0000',
active: '',
},
warning: {
DEFAULT: '',
active: '',
},
},
transparent: 'transparent',
},
fontFamily: {
satoshi: ['Satoshi', 'sans-serif', ...defaultTheme.fontFamily.sans],
cabinetGrotesk: ['Cabinet Grotesk', 'serif', ...defaultTheme.fontFamily.sans],
},
extend: {
screens: {
xs: '425px',
},
keyframes: {
slideDownAndFade: {
from: { opacity: '0', transform: 'translateY(-2px)' },
to: { opacity: '1', transform: 'translateY(0)' },
},
slideLeftAndFade: {
from: { opacity: '0', transform: 'translateX(2px)' },
to: { opacity: '1', transform: 'translateX(0)' },
},
slideUpAndFade: {
from: { opacity: '0', transform: 'translateY(2px)' },
to: { opacity: '1', transform: 'translateY(0)' },
},
slideRightAndFade: {
from: { opacity: '0', transform: 'translateX(-2px)' },
to: { opacity: '1', transform: 'translateX(0)' },
},
},
animation: {
slideDownAndFade: 'slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
slideLeftAndFade: 'slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
slideUpAndFade: 'slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
slideRightAndFade: 'slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)',
},
},
},
plugins: [
plugin(function ({ addComponents }) {
addComponents({
'.styled-scrollbars': {
'scrollbar-color': 'red',
'scrollbar-width': 'thin',
'&::-webkit-scrollbar': {
width: '4px',
height: '4px',
},
'&::-webkit-scrollbar-track': {
background: 'transparent',
},
'@media (hover:hover)': {
'&': {
scrollbarColor: '#47484baa transparent',
scrollbarWidth: 'thin',
transition: 'cubic-bezier(0.165, 0.84, 0.44, 1) 500ms all',
},
'&:hover': {
scrollbarColor: '#47484b transparent',
},
'&::-webkit-scrollbar-thumb': {
'background': '#47484b',
'-ms-overflow-style': 'none',
'scrollbarWidth': 'thin',
},
},
},
'.mui-icon-filled': {
fontFamily: 'Material Icons',
fontWeight: 'normal',
fontStyle: 'normal',
fontSize: '24px', /* Preferred icon size */
display: 'inline-block',
lineHeight: '1',
textTransform: 'none',
letterSpacing: 'normal',
wordWrap: 'normal',
whiteSpace: 'nowrap',
direction: 'ltr',
/* Support for all WebKit browsers. */
WebkitFontSmoothing: 'antialiased',
/* Support for Safari and Chrome. */
textRendering: 'optimizeLegibility',
/* Support for Firefox. */
MozOsxFontSmoothing: 'grayscale',
/* Support for IE. */
fontFeatureSettings: 'liga',
},
})
}),
],
}
export default config