-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
101 lines (99 loc) · 2.13 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
import type { Config } from 'tailwindcss'
import defaultTheme from 'tailwindcss/defaultTheme'
import plugin from 'tailwindcss/plugin'
import typography from '@tailwindcss/typography'
const toRem = (px: number): string => {
return `${px / 16}rem`
}
const spacings = [2, 4, 6, 8, 12, 16, 18, 24, 48, 72, 124]
const config: Config = {
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
borderRadius: {
DEFAULT: '9px',
},
colors: {
black: '#000',
dark: {
900: '#000',
},
light: {
900: '#fff',
},
primary: {
900: '#734B5E',
},
secondary: {
900: '#E8F6B6',
},
project: {
gust: '#AFD7FC',
nota: '#67BBBC',
'the-doe': '#f4f4f4',
},
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
fontSize: {
base: toRem(1),
'heading-900': [
'clamp(2.875rem, -0.4728rem + 16.7391vw, 12.5rem)',
{
fontWeight: 900,
lineHeight: '1',
},
],
//'heading-800': [],
'heading-700': [
'clamp(1.9963rem, -0.092rem + 10.4413vw, 8rem)',
{
fontWeight: 900,
lineHeight: '1',
},
],
'heading-500': [
toRem(24),
{
fontWeight: 900,
lineHeight: '1',
},
],
700: [
toRem(24),
{
fontWeight: 600,
},
],
},
spacing: {
0: '0px',
full: '100%',
'site-gutter': toRem(24),
'shadow-offset': toRem(6),
...Object.fromEntries(spacings.map((px) => [`${px}px`, toRem(px)])),
},
textShadow: {
DEFAULT: `-${toRem(6)} ${toRem(6)} var(--tw-shadow-color)`,
},
extend: {
transitionTimingFunction: {
bounce: 'cubic-bezier(.34,2.06,.21,.48)',
},
},
},
plugins: [
typography,
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') },
)
}),
],
}
export default config