-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.ts
119 lines (118 loc) · 2.73 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
119
import { black, colors, hoverColors, white } from '@carbon/colors';
import type { Config } from 'tailwindcss';
import defaultTheme from 'tailwindcss/defaultTheme';
export default {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/modules/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
screens: {
sm: '30rem',
md: '48rem',
lg: '64rem',
xl: '75rem',
'2xl': '82rem',
},
colors: {
...colors,
...hoverColors,
inherit: 'inherit',
current: 'currentColor',
transparent: 'transparent',
black,
white,
},
fontFamily: {
sans: ['var(--font-ibm-plex-sans)', ...defaultTheme.fontFamily.sans],
},
fontSize: ({ theme }) => ({
base: [
'1rem',
{
lineHeight: '1.5',
fontWeight: theme('fontWeight.normal'),
},
],
12: [
'0.75rem',
{
lineHeight: `${18 / 12}`,
fontWeight: theme('fontWeight.normal'),
},
],
14: [
'0.875rem',
{
lineHeight: `${18 / 14}`,
fontWeight: theme('fontWeight.normal'),
letterSpacing: '0.01rem',
},
],
20: [
'1.25rem',
{
lineHeight: `${26 / 20}`,
fontWeight: theme('fontWeight.normal'),
},
],
h1: [
'2.625rem',
{
lineHeight: `${50 / 42}`,
fontWeight: theme('fontWeight.light'),
},
],
h2: [
'1.5rem',
{
lineHeight: `${28 / 24}`,
fontWeight: theme('fontWeight.semibold'),
},
],
}),
fontWeight: {
light: '300',
normal: '400',
semibold: '600',
},
borderRadius: {
circle: '50%',
1: '0.25rem',
2: '0.5rem',
},
extend: {
textColor: {
dark: 'var(--text-dark)',
light: 'var(--text-light)',
secondary: 'var(--text-secondary)',
link: 'var(--text-link)',
},
backgroundColor: {
background: 'var(--bg-background)',
layer: 'var(--bg-layer)',
'layer-inverse': 'var(--bg-layer-inverse)',
overlay: 'var(--bg-overlay)',
},
borderColor: {
subtle: 'var(--border-subtle)',
},
fill: {
'layer-inverse': 'var(--bg-layer-inverse)',
},
transitionProperty: {
DEFAULT:
'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, visibility, box-shadow, transform, filter, backdrop-filter',
},
zIndex: {
1: '1',
},
},
},
corePlugins: {
container: false,
},
plugins: [],
} satisfies Config;