-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
83 lines (83 loc) · 2.45 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
screens: {
xs: '500px'
},
colors: {
grayscale: {
100: '#EEF2F6',
300: 'hsl(212deg 90% 6%)'
},
turquoise: {
100: 'hsl(182deg 88% 79%)',
200: 'hsl(182deg 88% 49%)',
'200/40': 'hsl(182deg 88% 49% / 40%)',
300: 'hsl(182deg 88% 39%)'
},
blue: {
100: '#B7CDE5',
200: '#476485',
'200/25': 'hsl(212deg 30% 40% / 25%)',
300: '#031F40',
400: 'hsl(215deg 89% 8%)'
}
},
blur: {
circle: '180px'
},
boxShadow: ({ theme }) => ({
'primary-btn-focus': `0 0 0 4px ${theme('colors.turquoise.300')}`,
'secondary-btn-focus': `0 0 0 2px ${theme('colors.turquoise.200')}`
}),
fontFamily: {
heading: ['Poppins', 'sans-serif'],
body: ['Inter', 'sans-serif'],
code: ['Menlo', 'sans-serif']
},
fontSize: {
h1: '48px',
h2: '36px',
h3: '28px',
h4: '18px',
h5: '16px',
p1: '24px',
p2: '22px',
p3: '20px',
p4: '18px',
p5: '16px',
p6: '14px'
},
gridTemplateColumns: {
blogPosts: 'repeat(auto-fill, minmax(350px, 1fr))',
relatedBlogPosts: 'repeat(auto-fill, minmax(260px, 1fr))'
},
backgroundImage: ({ theme }) => ({
hero: `linear-gradient(to right, ${theme(
'colors.turquoise.100'
)} 0%, ${theme('colors.turquoise.300')} 100%)`,
header: `linear-gradient(to right, transparent, ${theme(
'colors.blue.200/25'
)}, transparent)`,
about: `linear-gradient(to bottom, ${theme(
'colors.grayscale.300'
)} 31.25%, ${theme('colors.blue.400')} 100%)`,
'about-img':
'linear-gradient(52.82deg, rgba(2, 19, 39, 0.8) 18.42%, rgba(2, 19, 39, 0) 107.21%)',
post: `linear-gradient(to bottom, ${theme(
'colors.grayscale.300'
)} 150px, ${theme('colors.blue.400')} 550px)`,
'project-card':
'linear-gradient(to right, rgba(2, 19, 38, 0.9) 10%, rgba(2, 21, 43, 0.15) 73%)',
'project-card-reversed':
'linear-gradient(to left, rgba(2, 19, 38, 0.9) 10%, rgba(2, 21, 43, 0.15) 73%)'
})
}
},
plugins: [],
future: {
hoverOnlyWhenSupported: true
}
};