-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
60 lines (58 loc) · 2.05 KB
/
tailwind.config.cjs
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
// https://tailwindcss.com/docs/configuration
module.exports = {
content: [
'./index.php',
'./assets/**/*.{php,html,js}',
'./inc/**/*.php',
'./templates/**/*.php',
'./parts/**/*.php',
'./patterns/**/*.php',
],
theme: {
colors: {
/* if changes are made - update variables in blocks.scss and theme.json */
'grey': '#4d4d4f',
'light-grey': '#f6f6f6',
'medium-grey': '#667080',
'dark-grey': '#333333',
'blue': '#003da7',
'dark-blue': '#002668',
'orange': '#f5873c',
'green': '#3e6533',
'dark-green': '#375d2c',
'black': '#000000',
'white': '#ffffff',
'transparent': 'transparent',
'error': '#ff0000',
},
fontFamily: { /* TODO - this needs to match what is in the theme.json if we are using classes like `font-sans` to set a font */
sans: ['greycliff-cf', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'sans-serif'],
serif: ['Roboto Slab', 'Times New Roman', 'Times', 'serif'],
},
screens: {
/* min-width */
'2xs': '320px', /* Small Phone */
'xs': '375px', /* Phone */
'sm': '525px', /* Large Phone, Small Tablet */
'md': '781px', /* Tablet */
'ml': '960px', /* Small Laptop */
'lg': '1100px', /* Laptop */
'xl': '1240px', /* Container size */
'2xl': '1440px', /* Large Laptop, Desktop */
'3xl': '1920px', /* 4k Desktop */
/* max-width - Only if needed to override core styles that use max-width */
'-2xs': { max: '320px' }, /* Small Phone */
'-xs': { max: '375px' }, /* Phone */
'-sm': { max: '525px' }, /* Large Phone, Small Tablet */
'-md': { max: '781px' }, /* Tablet */
'-ml': { max: '960px' }, /* Small Laptop */
'-lg': { max: '1100px' }, /* Laptop */
'-xl': { max: '1240px' }, /* Container size */
'-2xl': { max: '1440px' }, /* Large Laptop, Desktop */
'-3xl': { max: '1920px' }, /* 4k Desktop */
},
},
corePlugins: {
preflight: false,
},
};