-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
87 lines (84 loc) · 2.39 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss'
import colors from 'tailwindcss/colors'
import plugin from 'tailwindcss/plugin'
const neutral = colors.slate
const primaryColor = colors.rose
const secondaryColor = colors.sky
export const teamAColor = colors.amber
export const teamBColor = colors.sky
const borderColor = `rgb(from ${neutral['500']} r g b / 0.1)`
const config: Config = {
content: [
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial':
'radial-gradient(closest-side, var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
borderColor: {
DEFAULT: borderColor,
},
colors: {
bgColor: neutral['950'],
borderColor,
primaryColor,
secondaryColor,
dangerColor: colors.red,
fadedTextColor: primaryColor['500'],
infoColor: colors.blue,
neutral,
shadedBgColor: borderColor,
successColor: colors.emerald,
teamAColor,
teamBColor,
textColor: primaryColor['50'],
warningColor: colors.amber,
},
},
fontFamily: {
body: ['var(--font-inter)', 'sans-serif'],
icon: ["'Font Awesome 6 Pro'"],
mono: ['monospace'],
},
},
plugins: [
plugin(function ({ addBase, theme }) {
addBase({
'html': {
backgroundColor: theme('colors.bgColor'),
color: theme('colors.textColor'),
fontSize: '32px',
overflow: 'hidden',
overscrollBehavior: 'none',
scrollBehavior: 'smooth',
scrollPaddingTop: theme('spacing.12'),
},
'*': {
scrollbarColor: `${theme('colors.primaryColor[500]')} transparent`,
},
'*::-webkit-scrollbar': {
height: theme('spacing.2'),
width: theme('spacing.2'),
},
'*::-webkit-scrollbar-track': {
background: 'transparent',
},
'*::-webkit-scrollbar-thumb': {
background: theme('colors.primaryColor[500]'),
borderRadius: theme('spacing.8'),
},
'a, button, input, textarea': {
touchAction: 'manipulation',
},
})
}),
require('tailwindcss-3d'),
require('@tailwindcss/forms'),
],
}
export default config