-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.js
More file actions
63 lines (62 loc) · 1.71 KB
/
Copy pathtailwind.config.js
File metadata and controls
63 lines (62 loc) · 1.71 KB
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
/** @type {import('tailwindcss').Config} */
import plugin from 'tailwindcss/plugin';
module.exports = {
content: ['./src/pages/**/*.{js,ts,jsx,tsx,mdx}', './src/components/**/*.{js,ts,jsx,tsx,mdx}', './src/app/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
colors: {
text: 'var(--color-text)',
background: 'var(--color-background)',
primary: 'var(--color-primary)',
secondary: 'var(--color-secondary)',
accent: 'var(--color-accent)',
},
boxShadow: {
'timeline-border': `0 0 0 4px var(--color-accent)`,
card: `0 0 5px 1px var(--color-text)`,
},
screens: {
xs: '448px',
'landscape-sm': { raw: '(max-width: 768px) and (orientation: landscape)' },
'landscape-md': { raw: '(max-width: 1024px) and (orientation: landscape)' },
},
height: {
screen: '100dvh',
'screen-small': '100svh',
'screen-large': '100lvh',
},
},
fontFamily: {
body: ['SF-Pro', 'sans-serif'],
mono: ['SF-Mono', 'monospace'],
},
backgroundSize: {
big: '200%',
},
},
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'bg-gradient': (angle) => ({
'background-image': `linear-gradient(${angle}, var(--tw-gradient-stops))`,
}),
},
{
values: Object.assign(theme('bgGradientDeg', {}), {
10: '10deg',
15: '15deg',
20: '20deg',
25: '25deg',
30: '30deg',
45: '45deg',
60: '60deg',
90: '90deg',
120: '120deg',
135: '135deg',
}),
}
);
}),
],
};