-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
80 lines (78 loc) · 1.8 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/** @type {import('tailwindcss').Config} */
const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
module.exports = {
content: [
// Note: https://github.com/gatsbyjs/gatsby/issues/35775
'./src/assets/**/*.css',
'./src/components/**/*.{ts,tsx}',
'./src/context/**/*.{ts,tsx}',
'./src/pages/**/*.{ts,tsx}',
'./src/templates/**/*.{ts,tsx}',
],
theme: {
extend: {
maxHeight: {
'screen-50': '50vh',
},
maxWidth: {
'65ch': '65ch',
'73ch': '73ch',
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
color: theme('colors.current'),
},
},
},
}),
},
colors: {
inherit: 'inherit',
transparent: 'transparent',
current: 'currentColor',
black: '#000',
white: '#fff',
status: {
info: colors.blue[600],
error: colors.red[600],
success: colors.green[600],
},
favorite: {
100: colors.red[100],
200: colors.red[200],
700: colors.red[700],
},
featured: {
100: colors.blue[100],
200: colors.blue[200],
700: colors.blue[700],
},
finished: {
100: colors.green[100],
200: colors.green[200],
700: colors.green[700],
},
gray: colors.gray,
primary: colors.red,
},
aspectRatio: {
'16x9': [16, 9],
},
container: (theme) => ({
center: true,
padding: {
DEFAULT: theme('padding.4'),
sm: theme('padding.6'),
},
}),
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
plugin(({ addVariant }) => addVariant('def', ':where(&)')),
],
}