generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 121
/
tailwind.config.js
62 lines (58 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
51
52
53
54
55
56
57
58
59
60
61
62
const colors = require('tailwindcss/colors');
/*
Without these, we get warnings in our console regarding these colors being deprecated.
Changes were implemented based on this GitHub discussion: https://github.com/tailwindlabs/tailwindcss/issues/4690 */
delete colors['lightBlue'];
delete colors['warmGray'];
delete colors['coolGray'];
delete colors['trueGray'];
delete colors['blueGray'];
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}'
],
theme: {
/*These colors are taken from FreeCodeCamp's design guide
refer to https://design-style-guide.freecodecamp.org/ to have a clear understanding*/
colors: {
transparent: 'transparent',
current: 'currentColor',
fcc: {
gray: {
/*It's supposed to be 00 instead of 0o0 but
due to an error with writting 00, "Octal numbers are not allowed. Use the syntax '0o0'" */
//LIGHT GRAYs
0o0: '#ffffff',
0o5: '#f5f6f7',
10: '#dfdfe2',
15: '#d0d0d5',
// DARK GRAYs
75: '#3b3b4f',
80: '#2a2a40',
85: '#1b1b32',
90: '#0a0a23'
},
primary: {
purple: '#dbb8ff',
yellow: '#f1be32',
blue: '#99c9ff',
lightGreen: '#acd157'
},
secondary: {
darkPurple: '#5a01a7',
darkYellow: '#4d3800',
darkBlue: '#002ead',
darkGreen: '#00471b'
}
},
...colors
}
},
extend: {
colors: {
'gray-90': '#0a0a23'
}
},
plugins: []
};