-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
60 lines (60 loc) · 1.85 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
/** @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}',
],
safelist: ['border-blue-800'],
theme: {
container: {
padding: '1rem',
},
extend: {
backgroundImage: {
'gradient-loading': `
linear-gradient(to right, hsl(var(--loader-from)), hsl(var(--loader-to)))
`,
'hero-blob': `
linear-gradient(to bottom, hsl(var(--background)) 0%, transparent 20%, hsl(var(--background)) 60%),
url('../../public/hero-blob.svg')
`,
// the url() path is relative to 'src/app/globals.css' not this file (tailwind.config.js)
},
backgroundSize: {
'size-loading': '400% 400%',
},
colors: {
text: 'hsl(var(--text))',
muted: 'hsl(var(--muted))',
background: 'hsl(var(--background))',
'background-light': 'hsl(var(--background-light))',
'background-bright': 'hsl(var(--background-bright))',
primary: 'hsl(var(--primary))',
secondary: 'hsl(var(--secondary))',
accent: 'hsl(var(--accent))',
correct: 'hsl(var(--correct))',
incorrect: 'hsl(var(--incorrect))',
unanswered: 'hsl(var(--unanswered))',
},
animation: {
loading: 'gradient-moving 1s ease infinite',
},
keyframes: {
'gradient-moving': {
'0%, 100%': { backgroundPosition: '0% 50%' },
'50%': { backgroundPosition: '100% 50%' },
},
},
boxShadow: {
'card-inset': '0px 0px 10px 0px rgba(0, 0, 0, 0.25) inset',
},
fontFamily: {
sans: ['var(--font-inter)'],
display: ['var(--font-interdisplay)'],
},
},
},
plugins: [require('tailwindcss-animate')],
darkMode: 'class',
}