-
Notifications
You must be signed in to change notification settings - Fork 13
/
tailwind.config.js
110 lines (109 loc) · 2.62 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
/**
* Tailwind CSS configuration file
*
* docs: https://tailwindcss.com/docs/configuration
* default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
*/
const path = require('path')
let plugin = require('tailwindcss/plugin')
module.exports = {
content: [
'./layout/*.liquid',
'./sections/*.liquid',
'./snippets/*.liquid',
'./templates/*.liquid',
'./src/**/*.{js,jsx,ts,tsx}'
],
safelist: [
'skip-to-content-link'
],
theme: {
container: {
center: true,
// padding: {
// DEFAULT: '1rem',
// sm: '2rem',
// },
screens: {
sm: `640px`,
md: `768px`,
lg: `1024px`,
xl: `1280px`,
'2xl': `calc(1536px + 4rem)`,
},
},
screens: {
sm: '640px',
// => @media (min-width: 640px) { ... }
md: '768px',
// => @media (min-width: 768px) { ... }
lg: '1024px',
// => @media (min-width: 1024px) { ... }
xl: '1280px',
// => @media (min-width: 1280px) { ... }
'2xl': '1536px',
// => @media (min-width: 1536px) { ... }
},
extend: {
fontFamily: {
'open-sans': ['"Open Sans"', 'sans-serif'],
},
typography: {
DEFAULT: {
css: {
maxWidth: 'none',
color: 'var(--color-neutral-400)',
iframe: {
width: '100%',
height: '100%',
aspectRatio: '16/9'
},
a: {
color: 'var(--color-secondary-500)',
'&:hover': {
color: 'var(--color-secondary-200)',
},
},
},
},
},
colors: {
'cloud-burst': {
DEFAULT: '#252A59',
50: '#7179C4',
100: '#636CBE',
200: '#4953AF',
300: '#3D4593',
400: '#313876',
500: '#252A59',
600: '#151731',
700: '#04050A',
800: '#000000',
900: '#000000',
},
woodland: {
DEFAULT: '#595425',
50: '#C4BC71',
100: '#BEB563',
200: '#AFA649',
300: '#938A3D',
400: '#766F31',
500: '#595425',
600: '#312F15',
700: '#0A0904',
800: '#000000',
900: '#000000',
950: '#000000',
}
}
},
},
plugins: [
require('@tailwindcss/container-queries'),
require('@tailwindcss/typography')(),
plugin(function ({ addVariant }) {
addVariant('scrolled', '.scrolled &'),
addVariant('mobile-menu-visible', '.mobile-menu-visible &')
}),
],
}