-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
executable file
·131 lines (129 loc) · 3.47 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
/* eslint-disable @typescript-eslint/explicit-function-return-type */
const {join} = require('path');
const plugin = require('tailwindcss/plugin');
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
function withOpacityValue(variable) {
return ({opacityValue}) => {
if (opacityValue === undefined) {
return `hsl(var(${variable}))`;
}
return `hsl(var(${variable}) / ${opacityValue})`;
};
}
module.exports = {
content: [
'./components/**/*.{js,ts,jsx,tsx}',
'./components/**/**/*.{js,ts,jsx,tsx}',
'./contexts/**/*.{js,ts,jsx,tsx}',
'./hooks/**/*.{js,ts,jsx,tsx}',
'./pages/**/*.{js,ts,jsx,tsx}',
join(__dirname, 'node_modules', '@yearn-finance', 'web-lib', 'components', '**', '*.{js,ts,jsx,tsx}'),
join(__dirname, 'node_modules', '@yearn-finance', 'web-lib', 'contexts', '**', '*.{js,ts,jsx,tsx}'),
join(__dirname, 'node_modules', '@yearn-finance', 'web-lib', 'hooks', '**', '*.{js,ts,jsx,tsx}'),
join(__dirname, 'node_modules', '@yearn-finance', 'web-lib', 'icons', '**', '*.{js,ts,jsx,tsx}'),
join(__dirname, 'node_modules', '@yearn-finance', 'web-lib', 'utils', '**', '*.{js,ts,jsx,tsx}')
],
theme: {
colors: {
black: 'hsl(0, 0%, 0%)',
white: 'rgb(255, 255, 255)',
transparent: 'transparent',
inherit: 'inherit',
primary: {
0: '#FFFFFF',
50: '#ebf4f3',
100: '#d7eae6',
200: '#b0d5cd',
300: '#88bfb5',
400: '#61aa9c',
500: '#399583',
600: '#2e7769',
700: '#22594f',
800: '#173c34',
900: '#0b1e1a'
},
orange: {
50: '#fff7ed',
100: '#ffedd5',
200: '#fed7aa',
300: '#fdba74',
400: '#fb923c',
500: '#f97316',
600: '#ea580c',
700: '#c2410c',
800: '#9a3412',
900: '#7c2d12',
950: '#431407'
},
neutral: {
0: withOpacityValue('--color-neutral-0'),
50: withOpacityValue('--color-neutral-50'),
100: withOpacityValue('--color-neutral-100'),
200: withOpacityValue('--color-neutral-200'),
300: withOpacityValue('--color-neutral-300'),
400: withOpacityValue('--color-neutral-400'),
500: withOpacityValue('--color-neutral-500'),
600: withOpacityValue('--color-neutral-600'),
700: withOpacityValue('--color-neutral-700'),
800: withOpacityValue('--color-neutral-800'),
900: withOpacityValue('--color-neutral-900')
},
pink: colors.pink,
red: colors.rose,
green: colors.emerald,
blue: colors.blue,
teal: colors.teal
},
extend: {
fontFamily: {
sans: ['var(--inter-font)', 'Inter', 'Roboto', ...defaultTheme.fontFamily.sans],
mono: ['Source Code Pro', ...defaultTheme.fontFamily.mono]
},
width: {
inherit: 'inherit'
},
fontSize: {
xxs: ['10px', '16px'],
xs: ['12px', '16px'],
sm: ['14px', '20px'],
base: ['16px', '24px'],
intermediate: ['18px', '24px'],
lg: ['20px', '32px'],
xl: ['24px', '32px'],
'3xl': ['32px', '40px'],
'4xl': ['40px', '56px'],
'7xl': ['80px', '96px']
},
maxWidth: {
xl: '552px',
'4xl': '904px',
'6xl': '1200px'
},
animation: {
fadeIn: 'fadeIn 200ms ease-in'
},
keyframes: {
fadeIn: {
'0%': {opacity: 0},
'100%': {opacity: 100}
}
}
}
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
plugin(function ({addUtilities}) {
addUtilities({
'.scrollbar-none': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none',
'&::-webkit-scrollbar': {
display: 'none'
}
}
});
})
]
};