This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
61 lines (60 loc) · 1.78 KB
/
tailwind.config.js
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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
mode: process.env.NODE_ENV ? 'jit' : undefined,
purge: {
mode: 'layers',
enabled: process.env.NODE_ENV === 'production',
content: ['./pages/**/*.{js,ts,jsx,tsx}', './src/**/*.{js,ts,jsx,tsx}'],
},
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
colors: {
'color-section': '#2ca9d4',
southsystem: '#ff5100',
'twitter-opacity': 'rgba(29, 161, 242, 0.08)',
twitter: 'rgba(29, 161, 242, 1)',
'github-opacity': 'rgba(51, 51, 51, 0.4)',
github: 'rgba(51, 51, 51, 3)',
'instagram-opacity': 'rgba(193, 53, 132, 0.1)',
instagram: '#C13584',
'twitch-opacity': 'rgba(100,65,164, 0.1)',
twitch: 'rgb(100,65,164)',
'linkedin-opacity': 'rgba(40,103,178, 0.08)',
linkedin: 'rgba(40,103,178, 1)',
},
fontFamily: {
sans: ['Nunito', ...defaultTheme.fontFamily.sans],
mono: ['JetBrains Mono', ...defaultTheme.fontFamily.mono],
},
fontSize: {
xl: '1.375rem', // 22px
'2xl': '1.5625rem', // 25px
'3xl': '1.875rem', // 30px
'4xl': '2.5rem', // 40px
'5xl': '3.125rem', // 50px
'6xl': '3.75rem', // 60px
'7xl': '4.375rem', // 70px
},
spacing: {
'5vw': '5vw',
'8vw': '8vw',
'10vw': '10vw',
},
maxWidth: {
'8xl': '96rem',
},
height: {
hero: 'min(60rem, calc(100vh - 10rem))',
'hero-sm': 'calc(50vh + 10rem)',
code: '560px',
},
},
},
variants: {
extend: {},
},
// eslint-disable-next-line global-require
plugins: [require('@tailwindcss/aspect-ratio')],
}