-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtailwind.config.cjs
80 lines (79 loc) · 2.33 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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
safelist: ['font-heading', 'scroll-mt-20'],
darkMode: 'class',
theme: {
extend: {
colors: {
'rich-black': '#020209',
secondary: 'rgba(255, 255, 255, 0.7)',
tertiary: 'rgba(255, 255, 255, 0.35)',
panel: '#0f0f15',
'panel-hover': '#1a1a25',
discord: '#5A65EA',
'discord-hover': '#6a74ec',
twitch: '#874BF6',
'twitch-hover': '#935cf6',
link: '#D94977',
border: '#1b1d2a',
'white-60': 'rgba(255, 255, 255, 0.6)',
},
boxShadow: {
'hero-cta':
'0px 4px 8px rgba(0, 0, 0, 0.25), inset 0px 2px 0px 0px ' +
'rgba(255, 255, 255, 0.15)',
},
animation: {
'smooth-enter-top': 'slide-in-top 1.6s ease-out, fade-in 1.6s ease-out',
'smooth-enter-bottom':
'slide-in-bottom 1.6s ease-out, fade-in 1.6s ease-out',
},
backgroundImage: {
'noise-texture': "url('/noise-texture.png')",
},
keyframes: {
'slide-in-top': {
'0%': { transform: 'translateY(-2%)' },
'100%': { transform: 'translateY(0)' },
},
'slide-in-bottom': {
'0%': { transform: 'translateY(5%)' },
'100%': { transform: 'translateY(0)' },
},
'slide-out-top': {
'0%': { transform: 'translateY(0)' },
'100%': { transform: 'translateY(-2%)' },
},
'slide-out-bottom': {
'0%': { transform: 'translateY(0)' },
'100%': { transform: 'translateY(5%)' },
},
'fade-in': {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
'fade-out': {
'0%': { opacity: 1 },
'100%': { opacity: 0 },
},
},
},
fontFamily: {
body: [
['Inter', ...defaultTheme.fontFamily.sans],
{ fontFeatureSettings: '"ss01", "ss02"' },
],
heading: [
['Cal Sans', ...defaultTheme.fontFamily.sans],
{ fontFeatureSettings: '"ss02"' },
],
mono: defaultTheme.fontFamily.mono,
},
},
plugins: [
require('@tailwindcss/container-queries'),
require('@tailwindcss/typography'),
],
}