-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
61 lines (59 loc) · 1.46 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
import { THEME_COLOR_DARK, THEME_COLOR_LIGHT } from './src/constants/theme';
/* eslint-disable @typescript-eslint/no-var-requires */
const { fontFamily } = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
// const colors = require('tailwindcss/colors');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
darkMode: 'class',
theme: {
extend: {
fontFamily: {
primary: ['Rubik', ...fontFamily.sans],
},
colors: {
primary: {
50: '#E5F1FF',
100: '#CCE4FF',
200: '#9ECBFF',
300: '#6BB0FF',
400: '#3895FF',
500: '#097BFF',
600: '#0062D1',
700: '#004A9E',
800: '#00326B',
900: '#001833',
950: '#000C19',
},
dark: THEME_COLOR_DARK,
light: THEME_COLOR_LIGHT,
},
textShadow: {
none: 'none',
DEFAULT: '0 0.0625rem 0.125rem var(--tw-shadow-color)',
},
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('tailwindcss-animate'),
plugin(function ({
matchUtilities,
theme,
}: {
matchUtilities: any;
theme: any;
}) {
matchUtilities(
{
'text-shadow': (value: any) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') }
);
}),
],
};