forked from melt-ui/melt-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
107 lines (104 loc) · 1.89 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
import type { Config } from 'tailwindcss';
import plugin from 'tailwindcss/plugin';
import typography from '@tailwindcss/typography';
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1540px',
},
},
extend: {
colors: {
magnum: {
'50': '#fff9ed',
'100': '#fef2d6',
'200': '#fce0ac',
'300': '#f9c978',
'400': '#f7b155',
'500': '#f38d1c',
'600': '#e47312',
'700': '#bd5711',
'800': '#964516',
'900': '#793a15',
'950': '#411c09',
},
},
fontFamily: {
sans: [
'Inter',
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
],
display: [
'GT Maru',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
],
mono: [
'GT Maru Mono',
'ui-monospace',
'SFMono-Regular',
'SF Mono',
'Menlo',
'Consolas',
'Liberation Mono',
'monospace',
],
},
typography: (theme) => ({
DEFAULT: {
css: {
code: {
position: 'relative',
borderRadius: theme('borderRadius.md'),
},
},
},
}),
},
},
plugins: [
typography,
plugin(function ({ addVariant, matchUtilities, theme }) {
addVariant('hocus', ['&:hover', '&:focus']);
// Square utility
matchUtilities(
{
square: (value) => ({
width: value,
height: value,
}),
},
{ values: theme('spacing') }
);
}),
],
} satisfies Config;