-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
tailwind.config.js
123 lines (123 loc) · 2.6 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
module.exports = {
content: ['./resources/scripts/user-interface/**/*.js'],
/**
* WordPress wp-admin tailwind theme.
*/
theme: {
/**
* Breakpoints
*
* Derived from `@wordpress/viewport`.
*
* @link https://developer.wordpress.org/block-editor/reference-guides/packages/packages-viewport/
*/
screens: {
xs: '480px',
sm: '600px',
md: '782px',
lg: '960px',
xl: '1280px',
'2xl': '1440px',
},
/**
* Fonts
*
* Derived from WordPress wp-admin font families, no serif font exists.
*/
fontFamily: {
sans: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen-Sans',
'Ubuntu',
'Cantarell',
'Helvetica Neue',
'sans-serif',
],
mono: ['JetBrainsMonoMedium', 'monospace'],
'mono-bold': ['JetBrainsMonoBold', 'monospace'],
},
fontSize: {
12: '12px',
13: '13px',
14: '14px',
15: '15px',
16: '16px',
20: '20px',
23: '23px',
},
fontWeight: {
400: 400,
500: 500,
600: 600,
},
/**
* Colors
*
* Derived from WordPress 5.7 simplified colors.
*
* @link https://make.wordpress.org/core/2021/02/23/standardization-of-wp-admin-colors-in-wordpress-5-7/
* @link https://codepen.io/ryelle/full/WNGVEjw
*/
colors: {
primary: 'var(--wp-admin-theme-color)',
'primary-10': 'var(--wp-admin-theme-color-darker-10)',
'primary-20': 'var(--wp-admin-theme-color-darker-20)',
'gray-0': '#f6f7f7',
'gray-2': '#f0f0f1',
'gray-5': '#dcdcde',
'gray-10': '#c3c4c7',
'gray-20': '#a7aaad',
'gray-30': '#8c8f94',
'gray-40': '#787c82',
'gray-50': '#646970',
'gray-60': '#50575e',
'gray-70': '#3c434a',
'gray-80': '#2c3338',
'gray-90': '#1d2327',
'gray-100': '#101517',
red: '#710d0d',
white: '#fff',
black: '#000',
transparent: 'transparent',
},
/**
* Spacing
*/
spacing: {
0: '0',
1: '1px',
2: '2px',
4: '4px',
6: '6px',
8: '8px',
10: '10px',
12: '12px',
14: '14px',
16: '16px',
20: '20px',
24: '24px',
48: '48px',
60: '60px',
},
/**
* Border
*/
borderWidth: {
DEFAULT: '1px',
0: '0',
2: '2px',
4: '4px',
},
borderRadius: {
DEFAULT: '2px',
4: '4px',
full: '9999px',
},
boxShadow: {
inner: 'inset 0 0 1px 0 rgba(0, 0, 0, 0.35)',
},
},
};