forked from SmolDapp/smoldapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
executable file
·106 lines (104 loc) · 3.03 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
/* 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}',
'./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',
'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
},
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'
}
}
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
plugin(function ({addUtilities}) {
addUtilities({
'.scrollbar-none': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none',
'&::-webkit-scrollbar': {
display: 'none'
}
}
});
})
]
};