-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
118 lines (108 loc) · 3.61 KB
/
tailwind.config.ts
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import type { Config } from 'tailwindcss';
import colors from 'tailwindcss/colors';
import defaultTheme from 'tailwindcss/defaultTheme';
export default {
content: ['./app/**/*.{js,jsx,ts,tsx}'],
theme: {
fontFamily: {
// UI fonts
sans: '"PX Sans Nouveaux"',
display: '"DOS/V re. JPN24"',
'display-text': 'Paradise132',
// Article fonts
text: '"IBM Plex Sans"',
heading: '"IBM Plex Sans"',
title: '"DM Serif Display"',
mono: '"IBM Plex Mono"',
// Utility fonts
minesweeper: '"Nix8810 M15"',
bsod: '"IBM VGA"',
},
fontSize: {
// UI font sizes
base: ['0.5rem', '1rem'],
lg: ['0.75rem', '1rem'],
xl: ['1rem', '1.25rem'],
'2xl': ['1.5rem', '1'],
'3xl': ['2rem', '1'],
'4xl': ['3rem', '1'],
// Article font sizes
'content-xs': ['0.75rem', '1rem'],
'content-sm': ['0.875rem', '1.25rem'],
'content-base': ['1rem', '1.5rem'],
'content-lg': ['1.125rem', '1.75rem'],
'content-xl': ['1.25rem', '2rem'],
'content-2xl': ['1.5rem', '1'],
'content-3xl': ['2rem', '1'],
'content-4xl': ['2.5rem', '1'],
'content-5xl': ['3rem', '1'],
'content-6xl': ['4rem', '1'],
},
colors: {
// Utility colors
transparent: colors.transparent,
current: colors.current,
inherit: colors.inherit,
black: colors.black,
white: colors.white,
desktop: 'rgb(var(--color-desktop) / <alpha-value>)',
highlight: 'rgb(var(--color-highlight) / <alpha-value>)',
codeblock: 'rgb(var(--color-codeblock) / <alpha-value>)',
surface: 'rgb(var(--color-surface) / <alpha-value>)',
'surface-dark': 'rgb(var(--color-dark) / <alpha-value>)',
'surface-darker': 'rgb(var(--color-darker) / <alpha-value>)',
'surface-light': 'rgb(var(--color-light) / <alpha-value>)',
'surface-lighter': 'rgb(var(--color-lighter) / <alpha-value>)',
light: 'rgb(var(--color-text-light) / <alpha-value>)',
disabled: 'rgb(var(--color-text-disabled) / <alpha-value>)',
'disabled-shadow':
'rgb(var(--color-text-disabled-shadow) / <alpha-value>)',
},
zIndex: {
1000: '1000',
2000: '2000',
3000: '3000',
4000: '4000',
5000: '5000',
6000: '6000',
},
extend: {
maxWidth: {
...defaultTheme.spacing,
},
minWidth: {
...defaultTheme.spacing,
},
maxHeight: {
...defaultTheme.spacing,
},
minHeight: {
...defaultTheme.spacing,
},
backgroundColor: {
default: 'rgb(var(--color-background) / <alpha-value>)',
selection: 'rgb(var(--color-selection-bg) / <alpha-value>)',
text: 'rgb(var(--color-text) / <alpha-value>)',
},
textColor: {
default: 'rgb(var(--color-text) / <alpha-value>)',
title: 'rgb(var(--color-title) / <alpha-value>)',
h1: 'rgb(var(--color-heading) / <alpha-value>)',
h2: 'rgb(var(--color-heading-2) / <alpha-value>)',
h3: 'rgb(var(--color-heading-3) / <alpha-value>)',
accent: 'rgb(var(--color-text-accent) / <alpha-value>)',
link: 'rgb(var(--color-text-link) / <alpha-value>)',
visited: 'rgb(var(--color-text-visited) / <alpha-value>)',
selection: 'rgb(var(--color-selection-text) / <alpha-value>)',
background: 'rgb(var(--color-background) / <alpha-value>)',
},
borderColor: {
default: 'rgb(var(--color-text) / <alpha-value>)',
},
dropShadow: {
disabled: '1px 1px 0 rgb(var(--color-text-disabled-shadow))',
},
},
},
plugins: [],
} satisfies Config;