-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
62 lines (61 loc) · 2.33 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const defaultTheme = require('tailwindcss/defaultTheme')
/** @type {import('tailwindcss').Config} */
module.exports = {
experimental: {
optimizeUniversalDefaults: true
},
content: ['./src/**/*.{js,jsx,ts,tsx,vue,md,mdx}'],
darkMode: 'class',
theme: {
screens: {
xxs: '320px',
xs: '375px',
'3xl': '1920px',
...defaultTheme.screens
},
extend: {
colors: {
brown: {
900: '#382519',
800: '#462e20',
700: '#63412c',
600: '#7f5439',
500: '#8d5d3f',
400: '#9b6646',
300: '#b37a56',
200: '#c09072',
100: '#cc868e',
50: '#d9bcab'
}
},
fontFamily: {
sans: ["'Jetbrains Mono'", ...defaultTheme.fontFamily.sans],
serif: ["'Mulish'", ...defaultTheme.fontFamily.serif],
mono: ["'Ubuntu'", ...defaultTheme.fontFamily.mono],
sen: ["'Sen'", 'sans-serif']
},
gridTemplateColumns: {
nav: 'minmax(auto, 1.5fr) minmax(0, 6.5fr) minmax(auto, 2fr)'
},
backgroundImage: {
ticTacToe:
"url(\"data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm33.414-6l5.95-5.95L45.95.636 40 6.586 34.05.636 32.636 2.05 38.586 8l-5.95 5.95 1.414 1.414L40 9.414l5.95 5.95 1.414-1.414L41.414 8zM40 48c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM9.414 40l5.95-5.95-1.414-1.414L8 38.586l-5.95-5.95L.636 34.05 6.586 40l-5.95 5.95 1.414 1.414L8 41.414l5.95 5.95 1.414-1.414L9.414 40z' fill='%23fdb43e' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E\")"
}
}
},
variants: {
extend: {}
},
plugins: [
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/line-clamp'),
require('@tailwindcss/typography'),
// direct child selector variant
function ({ addVariant }) {
addVariant('children', '& > *')
addVariant('not-first', '& > *:not(:first-child)')
addVariant('not-last', '& > *:not(:last-child)')
}
]
}