forked from rose-pine/rose-pine-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
55 lines (54 loc) · 1.64 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
const { fontFamily } = require('tailwindcss/defaultTheme')
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,svelte,js,ts}'],
theme: {
extend: {
spacing: {
'page-top': 'var(--page-top)',
'page-gutter': 'var(--page-gutter)',
'header-height': 'var(--header-height)',
'footer-height': 'var(--footer-height)',
},
maxWidth: {
content: 'var(--content-width)',
},
minHeight: {
content: 'var(--content-height)',
},
fontFamily: {
display: ['"Pier Sans"', ...fontFamily.sans],
},
colors: {
base: 'hsl(var(--color-base) / <alpha-value>)',
surface: 'hsl(var(--color-surface) / <alpha-value>)',
overlay: 'hsl(var(--color-overlay) / <alpha-value>)',
muted: 'hsl(var(--color-muted) / <alpha-value>)',
subtle: 'hsl(var(--color-subtle) / <alpha-value>)',
text: 'hsl(var(--color-text) / <alpha-value>)',
love: 'hsl(var(--color-love) / <alpha-value>)',
gold: 'hsl(var(--color-gold) / <alpha-value>)',
rose: 'hsl(var(--color-rose) / <alpha-value>)',
pine: 'hsl(var(--color-pine) / <alpha-value>)',
foam: 'hsl(var(--color-foam) / <alpha-value>)',
iris: 'hsl(var(--color-iris) / <alpha-value>)',
},
borderColor: {
DEFAULT: 'hsl(var(--color-muted) / 0.2)',
},
ringColor: {
DEFAULT: 'hsl(var(--color-muted) / 0.3)',
},
boxShadow: {
DEFAULT: '0 10px 30px -20px rgba(87, 82, 121, 0.2)',
lg: '0 10px 40px -15px rgba(87, 82, 121, 0.2)',
},
},
},
plugins: [
plugin(({ addVariant }) => {
addVariant('supports-blur', '@supports(backdrop-filter:blur(0))')
}),
],
}