-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
71 lines (67 loc) · 1.73 KB
/
tailwind.config.ts
File metadata and controls
71 lines (67 loc) · 1.73 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
65
66
67
68
69
70
71
import defaultTheme from 'tailwindcss/defaultTheme';
import type { Config } from 'tailwindcss';
import ibmPlexSerifMetrics from '@capsizecss/metrics/iBMPlexSerif';
import manropeMetrics from '@capsizecss/metrics/manrope';
import capsize from 'tailwindcss-capsize';
import {
colorProject,
colorSlateDark,
colorSlateLight,
colorSocial,
colorTheme,
containerWidths,
screens,
} from './theme';
const tailwindScreens: Record<string, string> = {};
const tailwindContainerWidths: Record<string, string> = {};
Object.keys(screens).forEach((key) => {
tailwindScreens[key] = `${screens[key as keyof typeof screens]}px`;
});
Object.keys(containerWidths).forEach((key) => {
tailwindContainerWidths[key] = `${containerWidths[key as keyof typeof containerWidths]}px`;
});
const config: Config = {
content: ['./components/**/*.{js,ts,jsx,tsx,mdx}', './app/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
screens: tailwindScreens,
colors: {
transparent: 'transparent',
white: 'white',
black: 'black',
green: 'oklch(52.89% 0.127 167.17 / <alpha-value>)',
slate: {
...colorSlateDark,
light: colorSlateLight,
},
...colorProject,
...colorSocial,
theme: {
...colorTheme,
},
},
fontFamily: {
display: ['var(--font-display)'],
body: ['var(--font-body)'],
},
fontMetrics: {
display: ibmPlexSerifMetrics,
body: manropeMetrics,
},
outlineOffset: {
...defaultTheme.spacing,
},
extend: {
willChange: {
motion: 'transform, opacity',
},
maxWidth: {
...tailwindContainerWidths,
},
},
},
plugins: [capsize],
future: {
hoverOnlyWhenSupported: true,
},
};
export default config;