-
Notifications
You must be signed in to change notification settings - Fork 11
/
tailwind.config.ts
84 lines (74 loc) · 1.91 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
import type { Config } from 'tailwindcss';
import type { PluginAPI } from 'tailwindcss/types/config';
const sharedColors = {
transparent: 'transparent',
inherit: 'inherit',
accent: { DEFAULT: '#2ab9d5', dark: '#7fd5e6' },
status: {
info: '#2196FD',
success: '#8aff59',
warning: '#FFCC33',
error: '#FF7259',
},
};
const colors = {
text: {
...sharedColors,
primary: { DEFAULT: '#050505', dark: '#fafafa' },
secondary: { DEFAULT: '#303030', dark: '#d7d7d7' },
},
bg: {
...sharedColors,
background: { DEFAULT: '#fafafa', dark: '#121212' }, // #050505
primary: { DEFAULT: '#90f0bf', dark: '#90f0bf' },
secondary: { DEFAULT: '#e9e6e2', dark: '#1d1a16' },
},
};
const config: Config = {
darkMode: ['class', '[data-theme="dark"]'],
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
textColor: colors.text,
backgroundColor: colors.bg,
borderColor: colors.bg,
outlineColor: colors.bg,
textDecorationColor: colors.bg,
extend: {
fontFamily: {
sans: ['var(--font-tasa-orbiter-text)'],
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
borderWidth: {
1: '1px',
},
minWidth: {
'2xs': '16rem/* 256px */',
'3xs': '12rem/* 192px */',
},
maxWidth: {
'2xs': '16rem/* 256px */',
'3xs': '12rem/* 192px */',
},
screens: {
xs: '475px',
},
},
},
plugins: [
({ addVariant }: PluginAPI) => {
addVariant('scrollbar', '&::-webkit-scrollbar');
addVariant('scrollbar-track', '&::-webkit-scrollbar-track');
addVariant('scrollbar-thumb', '&::-webkit-scrollbar-thumb');
addVariant('slider-track', '&::-webkit-slider-runnable-track');
addVariant('slider-thumb', '&::-webkit-slider-thumb');
},
],
};
export default config;