-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
107 lines (106 loc) · 3.12 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
/* eslint-disable import/no-extraneous-dependencies, global-require */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
corePlugins: {
container: false,
},
theme: {
// TODO: Uncomment this part of the code and the import of "defaultTheme" above, and complete TODOs
fontFamily: {
sans: ['Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', ...defaultTheme.fontFamily.sans],
mono: ['', ...defaultTheme.fontFamily.mono],
},
fontSize: {
xs: ['12px'],
sm: ['14px'],
base: ['16px'],
lg: ['18px'],
xl: ['20px'],
'2xl': ['24px'],
'3xl': ['28px'],
'4xl': ['36px'],
'5xl': ['40px'],
'6xl': ['50px'],
'7xl': ['56px'],
'8xl': ['80px'],
'9xl': ['90px'],
'10xl': ['100px']
},
colors: ({ colors }) => ({
inherit: colors.inherit,
current: colors.current,
transparent: colors.transparent,
// TODO: Add colors
// Make sure that they are prepared in the Figma and follow 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
// Example of incorrectly prepared colors in Figma — https://user-images.githubusercontent.com/20713191/143586974-6986149f-aee3-450c-a1dd-26e73e3aca02.png
black: '#000000',
white: '#ffffff',
yellow: '#FFEA7D',
red: '#FF4B43',
blue: { 1: '#3333FF', 2: '#2929FF', 3: 'rgba(75, 125, 231, 0.5)' },
green: 'rgba(49, 184, 130, 0.5)',
orange: 'rgba(236, 138, 64, 0.5)',
primary: {
1: '#262F59',
2: 'rgba(38, 47, 89, 0.1)',
3: 'rgba(38, 47, 89, 0.3)',
4: 'rgba(38, 47, 89, 0.03)',
5: 'rgba(38, 47, 89, 0.8)',
6: '#FAF4F4',
},
gray: {
1: '#0D0D0D',
2: '#1A1A1A',
3: '#262626',
4: '#333333',
5: '#4D4D4D',
6: '#666666',
7: '#808080',
8: '#999999',
9: '#CCCCCC',
10: '#E6E6E6',
11: '#D1D1E0',
12: '#F5F5F5',
},
lightYellow: 'rgba(255, 234, 125, 0.3)',
lightGreen: 'rgba(125, 255, 208, 0.2)',
lightOrange: 'rgba(255, 180, 125, 0.2)',
rasin: '#1F1F29',
}),
backgroundImage: {
'header-gradient': 'linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%)',
...defaultTheme.backgroundImage,
},
screens: {
'2xl': { max: '1919px' },
xl: { max: '1535px' },
lg: { max: '1279px' },
md: { max: '1023px' },
sm: { max: '767px' },
xs: { max: '479px' },
},
extend: {
extend: {
zIndex: {
'-10': '-10',
'-100': '-100',
'-1000': '-1000',
}
},
lineHeight: {
denser: '1.125',
},
letterSpacing: {
tight: '-0.02em',
tighter: '-0.04em',
},
boxShadow: {
lg: '0px 14px 20px rgba(38, 47, 89, 0.1)',
xl: '0px 15px 40px #999999',
},
},
},
plugins: [require('tailwindcss-safe-area')],
};