forked from regen-network/regen-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.common.js
76 lines (76 loc) · 2.9 KB
/
tailwind.common.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
// This file defines the common tailwind configuration to be used as the basis
// of each project's tailwind.config.js file.
module.exports = {
theme: {
fontFamily: {
sans: ['"Lato"', '-apple-system', 'sans-serif'],
},
colors: {
// Make sure these guidelines are followed when adding new colors: https://tailwindcss.com/docs/customizing-colors#using-css-variables
// Color variables should be added to tailwind.css.
brand: {
400: 'rgb(var(--brand-400) / <alpha-value>)',
300: 'rgb(var(--brand-300) / <alpha-value>)',
200: 'rgb(var(--brand-200) / <alpha-value>)',
100: 'rgb(var(--brand-100) / <alpha-value>)',
},
grey: {
0: 'rgb(var(--grey-0) / <alpha-value>)',
100: 'rgb(var(--grey-100) / <alpha-value>)',
200: 'rgb(var(--grey-200) / <alpha-value>)',
300: 'rgb(var(--grey-300) / <alpha-value>)',
400: 'rgb(var(--grey-400) / <alpha-value>)',
500: 'rgb(var(--grey-500) / <alpha-value>)',
600: 'rgb(var(--grey-600) / <alpha-value>)',
700: 'rgb(var(--grey-700) / <alpha-value>)',
},
warning: {
400: 'rgb(var(--warning-400) / <alpha-value>)',
300: 'rgb(var(--warning-300) / <alpha-value>)',
200: 'rgb(var(--warning-200) / <alpha-value>)',
100: 'rgb(var(--warning-100) / <alpha-value>)',
},
error: {
400: 'rgb(var(--error-400) / <alpha-value>)',
300: 'rgb(var(--error-300) / <alpha-value>)',
200: 'rgb(var(--error-200) / <alpha-value>)',
100: 'rgb(var(--error-100) / <alpha-value>)',
},
blue: {
400: 'rgb(var(--blue-400) / <alpha-value>)',
300: 'rgb(var(--blue-300) / <alpha-value>)',
200: 'rgb(var(--blue-200) / <alpha-value>)',
100: 'rgb(var(--blue-100) / <alpha-value>)',
},
},
spacing: {
// This spacing scale is based on the actual pixel values converted to REM values.
// This diverges from tailwind's standard pattern of defining its own spacing numbers
// but should be easier for developers trying to match spacing to designs in Figma.
0: '0',
1: '0.0625rem', // 1px
3: '0.1875rem', // 3px
5: '0.3125rem', // 5px
10: '0.625rem', // 10px
15: '0.9375rem', // 15px
20: '1.25rem', // 20px
25: '1.5625rem', // 25px
30: '1.875rem', // 30px
35: '2.1875rem', // 35px
40: '2.5rem', // 40px
45: '2.8125rem', // 45px
50: '3.125rem', // 50px
60: '3.75rem', // 60px
},
extend: {},
},
plugins: [],
corePlugins: {
// Preflight needs to be disabled to avoid problems with MUI component styles.
// This has the side effect that some tailwind styles don't work as expected
// by default. For instance, in order for borders to show up at all,
// border-solid is needed whereas it would normally be set by default.
preflight: false,
},
darkMode: 'class',
};