generated from theodorusclarence/ts-nextjs-tailwind-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
119 lines (112 loc) · 3.58 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
110
111
112
113
114
115
116
117
118
119
/* eslint-disable @typescript-eslint/no-var-requires */
const { fontFamily } = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {
fontFamily: {
primary: ['Roobert TRIAL', ...fontFamily.sans],
secondary: ['Reckless Neue TRIAL', ...fontFamily.sans],
},
fontWeight: {
hairline: 100,
'extra-light': 100,
thin: 200,
light: 300,
normal: 400,
medium: 500,
semibold: 600,
bold: 700,
extrabold: 800,
'extra-bold': 800,
black: 900,
},
fontSize: {
xs: ['12px', '16px'],
sm: ['14px', '20px'],
lm: ['16px', '24px'],
base: ['18px', '28px'],
lg: ['20px', '28px'],
xl: ['24px', '32px'],
xxl: ['52px', '58px'],
},
screens: {
tp: { max: '380px' },
// => @media (max-width: 380px) { ... }
'for-mobile': { max: '767px' },
// => @media (max-width: 767px) { ... }
sm: '640px',
// => @media (min-width: 640px) { ... }
md: '768px',
// => @media (min-width: 768px) { ... }
lg: '1024px',
// => @media (min-width: 1024px) { ... }
xl: '1280px',
// => @media (min-width: 1280px) { ... }
'2xl': '1536px',
// => @media (min-width: 1536px) { ... }
},
colors: {
primary: {
// Customize it on globals.css :root
50: 'rgb(var(--tw-color-primary-50) / <alpha-value>)',
100: 'rgb(var(--tw-color-primary-100) / <alpha-value>)',
200: 'rgb(var(--tw-color-primary-200) / <alpha-value>)',
300: 'rgb(var(--tw-color-primary-300) / <alpha-value>)',
400: 'rgb(var(--tw-color-primary-400) / <alpha-value>)',
500: 'rgb(var(--tw-color-primary-500) / <alpha-value>)',
600: 'rgb(var(--tw-color-primary-600) / <alpha-value>)',
700: 'rgb(var(--tw-color-primary-700) / <alpha-value>)',
800: 'rgb(var(--tw-color-primary-800) / <alpha-value>)',
900: 'rgb(var(--tw-color-primary-900) / <alpha-value>)',
},
dark: 'var(--dark)',
light: 'var(--light)',
'top-bar': 'var(--top-bar)',
purple: 'var(--purple)',
'light-purple': 'var(--light-purple)',
'dark-purple': 'var(--dark-purple)',
'header-background': 'var(--header-background)',
'footer-background': 'var(--footer-background)',
'footer-title': 'var(--footer-title)',
'light-gray': 'var(--light-gray)',
'hover-bg': 'var(--hover-bg)',
},
spacing: {
7: '1.75rem',
9: '2.25rem',
11: '2.75rem',
13: '3.25rem',
14: '3.5rem',
15: '3.75rem',
},
keyframes: {
flicker: {
'0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100%': {
opacity: 0.99,
filter:
'drop-shadow(0 0 1px rgba(252, 211, 77)) drop-shadow(0 0 15px rgba(245, 158, 11)) drop-shadow(0 0 1px rgba(252, 211, 77))',
},
'20%, 21.999%, 63%, 63.999%, 65%, 69.999%': {
opacity: 0.4,
filter: 'none',
},
},
shimmer: {
'0%': {
backgroundPosition: '-700px 0',
},
'100%': {
backgroundPosition: '700px 0',
},
},
},
animation: {
flicker: 'flicker 3s linear infinite',
shimmer: 'shimmer 1.3s linear infinite',
},
},
},
plugins: [require('@tailwindcss/forms')],
};