-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.mjs
50 lines (45 loc) · 1.23 KB
/
tailwind.config.mjs
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
/* eslint-disable import/no-extraneous-dependencies */
import aspectRatioPlugin from '@tailwindcss/aspect-ratio';
import containerQueries from '@tailwindcss/container-queries';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
import colors from 'tailwindcss/colors';
const isDevelopment =
process.env.NODE_ENV !== 'production' || process.env.SB === '1';
const customColors = Object.keys(colors).reduce(
(acc, key) => {
// deprecated colors
if (key === 'gray' || key.includes('Gray') || key === 'lightBlue') {
return acc;
}
// @ts-ignore
acc[key] = colors[key];
return acc;
},
// replace gray with grey
{grey: colors.neutral}
);
/** @type {TailwindConfig} */
export default {
content:
isDevelopment ?
['./app/**/*.{ts,tsx}', './.storybook/**/*.{ts,tsx}']
: ['./app/**/*!(.stories).{ts,tsx}'],
darkMode: 'class',
plugins: [aspectRatioPlugin, containerQueries, forms, typography],
theme: {
colors: customColors,
container: {
center: true,
},
extend: {
fontFamily: {
mono: ['Source Code Pro', 'monospace'],
sans: ['Inter', 'sans-serif'],
},
screens: {
sm: '390px',
},
},
},
};