forked from KevinBatdorf/wp-xeet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
69 lines (68 loc) · 1.64 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
const colors = require('tailwindcss/colors');
delete colors['lightBlue'];
delete colors['warmGray'];
delete colors['trueGray'];
delete colors['coolGray'];
delete colors['blueGray'];
// See postcss.config.js for more parsing options.
module.exports = {
important: '.xeet-wp',
content: ['./src/**/*.{ts,tsx}'],
theme: {
screens: {
xxs: '280px',
xs: '480px',
sm: '600px',
md: '782px',
md2: '960px', // admin sidebar auto folds
lg: '1080px', // adminbar goes big
xl: '1280px',
'2xl': '1440px',
'3xl': '1600px',
'4xl': '1920px',
},
colors: {
...colors,
'wp-theme': {
500: 'var(--wp-admin-theme-color)',
600: 'var(--wp-admin-theme-color-darker-10)',
700: 'var(--wp-admin-theme-color-darker-20)',
},
wp: {
alert: {
yellow: '#f0b849',
red: '#cc1818',
green: '#4ab866',
},
},
// https://github.com/WordPress/gutenberg/blob/trunk/packages/base-styles/_colors.scss
gray: {
50: '#fbfbfb',
100: '#f0f0f0',
150: '#eaeaea', // This wasn't a variable but I saw it on buttons
200: '#e0e0e0', // Used sparingly for light borders.
300: '#dddddd', // Used for most borders.
400: '#cccccc',
500: '#cccccc',
600: '#949494', // Meets 3:1 UI or large text contrast against white.
700: '#757575', // Meets 4.6:1 text contrast against white.
900: '#1e1e1e',
},
},
extend: {
zIndex: {
high: '99999',
max: '2147483647', // max int values - don't block WP re-auth modal
},
ringWidth: {
wp: 'var(--wp-admin-border-width-focus)',
},
},
},
plugins: [],
corePlugins: {
preflight: false,
animation: false,
container: false,
},
};