-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
68 lines (64 loc) · 1.63 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
/* eslint-disable global-require */
/* eslint-disable import/no-extraneous-dependencies */
import type { Config } from 'tailwindcss';
type Theme = {
primary: string;
secondary: string;
error: string;
accent: string;
neutral: string;
info: string;
success: string;
warning: string;
'base-100': string;
'base-200': string;
'base-300': string;
};
const customThemes: Record<string, Theme> = {
dark: {
primary: 'hsl(227, 15%, 30%)',
secondary: 'hsl(255, 9%, 69%)',
error: 'hsl(9, 30%, 60%)',
accent: 'hsl(316, 96%, 60%)',
neutral: 'hsl(240, 11%, 8%)',
info: 'hsl(187, 11%, 60%)',
success: 'hsl(117, 10%, 60%)',
warning: 'hsl(50, 98%, 50%)',
'base-100': 'hsl(227, 15%, 13%)',
'base-200': 'hsl(227, 15%, 10%)',
'base-300': 'hsl(227, 15%, 8%)',
},
};
const config: Config = {
content: ['./src/**/*.jsx', './src/**/*.js', './src/**/*.ts', './src/**/*.tsx'],
plugins: [
require('daisyui'),
require('@tailwindcss/typography'),
require('tailwindcss-animated'),
require('@headlessui/tailwindcss'),
],
theme: {
colors: {
'primary-loading': 'hsl(227, 15%, 28%)',
},
extend: {
screens: {
xs: '380px',
tall: {
raw: `only screen and (max-height: 960px) and (max-width: 480px)`,
},
wide: {
raw: `only screen and (max-height: 480px) and (max-width: 960px)`,
},
portrait: {
raw: '(orientation: portrait)',
},
landscape: {
raw: '(orientation: landscape)',
},
},
},
},
daisyui: { logs: false, themes: [customThemes] },
};
export default config;