-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
50 lines (49 loc) · 1.59 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
fontFamily: {
// FIXME: Add the real project font families, which are imported in the "fonts.css" file,
// and give them the human-readable names
sans: ['', ...defaultTheme.fontFamily.sans],
// FIXME: Remove the "mono" font family, if it is not used in the project
mono: ['', ...defaultTheme.fontFamily.mono],
},
colors: ({ colors }) => ({
inherit: colors.inherit,
current: colors.current,
transparent: colors.transparent,
// FIXME: Add colors which are used in the project. Make sure that they are prepared
// in the Figma and followed the naming "primary/secondary/gray-${number}"
// Example of correctly prepared colors in Figma — https://user-images.githubusercontent.com/20713191/143586876-5e834233-9639-4166-9811-b00e63820d98.png
black: '',
white: '',
primary: {
1: '',
},
secondary: {
1: '',
},
gray: {
1: '',
},
}),
// FIXME: Check if the breakpoints ("screens") are correct for the project
screens: {
xl: { max: '1439px' },
lg: { max: '1279px' },
md: { max: '1023px' },
sm: { max: '767px' },
xs: { max: '639px' },
'2xs': { max: '413px' },
},
},
corePlugins: {
container: false,
},
plugins: [
// eslint-disable-next-line import/no-extraneous-dependencies
require('tailwindcss-safe-area'),
],
};