-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
44 lines (44 loc) · 1.28 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
backgroundColor: {
primary: 'var(--color-background)',
secondary: 'var(--color-background-secondary)',
accent: 'var(--color-background-accent)',
'accent-hover': 'var(--color-text-accent-hover)',
},
textColor: {
primary: 'var(--color-text)',
muted: 'var(--color-text-muted)',
accent: 'var(--color-text-accent)',
'accent-hover': 'var(--color-text-accent-hover)',
},
borderColor: {
primary: 'var(--color-text)',
muted: 'var(--color-border-muted)',
accent: 'var(--color-text-accent)',
},
fontFamily: {
base: ['Lato', 'sans-serif'],
heading: ['Playfair Display', 'serif'],
},
boxShadow: {
card: '2px 2px 15px 2px var(--color-shadow)',
'card-hover': '2px 2px 20px 6px var(--color-shadow)',
},
dropShadow: {
card: '0px 2px 15px var(--color-shadow)',
},
transitionProperty: {
card: 'box-shadow transform',
},
},
},
// New feature to fix hover on touch devices
future: {
hoverOnlyWhenSupported: true,
},
plugins: [],
};