-
Notifications
You must be signed in to change notification settings - Fork 253
/
tailwind.config.js
60 lines (56 loc) · 1.76 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
const defaultTheme = require('tailwindcss/defaultTheme')
const FONT_FAMILY = process.env.NEXT_PUBLIC_FONT_FAMILY || 'Inter'
const BODY_FONT_FAMILY = process.env.NEXT_PUBLIC_BODY_FONT_FAMILY || 'Inter'
const MONO_FONT_FAMILY =
process.env.NEXT_PUBLIC_BODY_FONT_FAMILY || 'ui-monospace'
const PRIMARY_COLOR = process.env.NEXT_PUBLIC_PRIMARY_COLOR || 'default'
const primaryColors = require('./colors')
module.exports = {
presetColors: primaryColors,
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
theme: {
extend: {
gridTemplateColumns: {
16: 'repeat(16, minmax(0, 1fr))',
21: 'repeat(21, minmax(0, 1fr))',
},
screens: {
'3xl': '1920px',
'4xl': '2560px',
},
fontFamily: {
sans: [`"${BODY_FONT_FAMILY}"`, ...defaultTheme.fontFamily.sans],
headings: [`"${FONT_FAMILY}"`, ...defaultTheme.fontFamily.sans],
mono: [`"${MONO_FONT_FAMILY}"`, ...defaultTheme.fontFamily.mono],
},
keyframes: {
'slide-down': {
'0%': { opacity: 0, transform: 'translateY(-10px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
},
animation: {
'spin-loading': 'spin 1s cubic-bezier(0.76, 0.35, 0.2, 0.7) infinite',
'slide-down': 'slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1)',
'spin-reverse': 'spin 1s reverse linear infinite',
},
colors: {
primary: primaryColors[PRIMARY_COLOR],
'dark-backdrop': 'rgba(0, 0, 0, 0.8)',
backdrop: 'rgba(255, 255, 255, 0.8)',
},
},
},
plugins: [
require('tailwindcss-radix')(),
require('@ramosdiego/reservoir')({
buttons: {
animate: true,
},
}),
],
}