-
Notifications
You must be signed in to change notification settings - Fork 64
/
tailwind.config.js
109 lines (106 loc) · 3.59 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
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/layouts/**/*.{js,ts,jsx,tsx,mdx}',
'./src/markdown/**/*.{js,ts,jsx,tsx,mdx}',
'./src/mdx-components.tsx',
],
theme: {
extend: {
colors: {
main: 'var(--main)',
main50: 'var(--main50)',
overlay: 'rgba(0,0,0,0.8)',
// light mode
bg: 'var(--bg)',
text: 'black',
border: 'var(--border)',
// dark mode
darkBg: 'var(--dark-bg)',
darkText: '#e6e6e6',
darkBorder: 'var(--dark-border)',
darkNavBorder: '#000',
secondaryBlack: '#212121',
},
translate: {
boxShadowX: 'var(--horizontal-box-shadow)',
boxShadowY: 'var(--vertical-box-shadow)',
reverseBoxShadowX: 'calc(var(--horizontal-box-shadow) * -1)',
reverseBoxShadowY: 'calc(var(--vertical-box-shadow) * -1)',
},
boxShadow: {
light:
'var(--horizontal-box-shadow) var(--vertical-box-shadow) 0px 0px var(--border)',
dark: 'var(--horizontal-box-shadow) var(--vertical-box-shadow) 0px 0px var(--dark-border)',
nav: '4px 4px 0px 0px var(--border)',
navDark: '4px 4px 0px 0px var(--dark-border)',
},
fontWeight: {
base: 'var(--base-font-weight)',
heading: 'var(--heading-font-weight)',
},
borderRadius: {
base: 'var(--border-radius)',
},
keyframes: {
marquee: {
'0%': { transform: 'translateX(0%)' },
'100%': { transform: 'translateX(-100%)' },
},
marquee2: {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(0%)' },
},
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
'caret-blink': {
'0%,70%,100%': { opacity: '1' },
'20%,50%': { opacity: '0' },
},
},
animation: {
marquee: 'marquee 5s linear infinite',
marquee2: 'marquee2 5s linear infinite',
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'caret-blink': 'caret-blink 1.25s ease-out infinite',
},
screens: {
m1600: { raw: '(max-width: 1600px)' },
m1500: { raw: '(max-width: 1500px)' },
m1400: { raw: '(max-width: 1400px)' },
m1300: { raw: '(max-width: 1300px)' },
m1250: { raw: '(max-width: 1250px)' },
m1200: { raw: '(max-width: 1200px)' },
m1100: { raw: '(max-width: 1100px)' },
m1000: { raw: '(max-width: 1000px)' },
m900: { raw: '(max-width: 900px)' },
m850: { raw: '(max-width: 850px)' },
m800: { raw: '(max-width: 800px)' },
m750: { raw: '(max-width: 750px)' },
m700: { raw: '(max-width: 700px)' },
m650: { raw: '(max-width: 650px)' },
m600: { raw: '(max-width: 600px)' },
m550: { raw: '(max-width: 550px)' },
m500: { raw: '(max-width: 500px)' },
m450: { raw: '(max-width: 450px)' },
m400: { raw: '(max-width: 400px)' },
m350: { raw: '(max-width: 350px)' },
},
width: {
container: '1300px',
},
},
},
plugins: [require('@tailwindcss/typography'), require('tailwindcss-animate')],
darkMode: 'class',
}