-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
64 lines (63 loc) · 1.92 KB
/
tailwind.config.ts
File metadata and controls
64 lines (63 loc) · 1.92 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
64
import type { Config } from 'tailwindcss';
export default {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
gridTemplateRows: {
layout: 'auto 1fr', // header and content rows
},
gridTemplateColumns: {
layout: 'repeat(12, minmax(0, 1fr))', // 12 column layout
},
maxWidth: {
screen: '100dvw',
},
maxHeight: {
screen: '100dvh',
page: 'calc(100dvh - var(--header-height-app))',
},
screens: {
tablet: '640px',
desktop: '1024px',
},
colors: {
'app-visited': 'var(--visited)',
'app-primary': 'var(--primary)',
'app-primary-hover': 'var(--primary-hover)',
'app-secondary': 'var(--secondary)',
'app-secondary-hover': 'var(--secondary-hover)',
'app-error': 'var(--error)',
'app-error-hover': 'var(--error-hover)',
'app-info': 'var(--info)',
'app-info-hover': 'var(--info-hover)',
'app-success': 'var(--success)',
'app-success-hover': 'var(--success-hover)',
app: 'var(--text)',
'app-inverted': 'var(--inverted-text)',
},
backgroundColor: {
'app-background': 'var(--background)',
'app-foreground': 'var(--foreground)',
},
height: {
'app-post-image-multi-small': '150px',
'app-post-image-single-small': '300px',
'app-page-header': 'var(--header-height-app)',
'app-page-minus-header': 'var(--page-height-app))',
},
width: {
'app-post-image-multi-small': '150px',
'app-post-image-single-small': '100%',
},
borderColor: {
'app-border': 'var(--border)',
},
},
},
// eslint-disable-next-line @typescript-eslint/no-require-imports
plugins: [require('@tailwindcss/aspect-ratio')],
} satisfies Config;