-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.ts
96 lines (87 loc) · 2.77 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
88
89
90
91
92
93
94
95
96
import './plugins/css-plugin'
import { addDynamicIconSelectors } from '@iconify/tailwind'
import { nextui } from '@nextui-org/theme'
import radxiColors from '@radix-ui/colors'
import typography from '@tailwindcss/typography'
import { withTV } from 'tailwind-variants/transformer'
import type { Config } from 'tailwindcss'
import { createPlugin } from 'windy-radix-palette'
const twConfig: Config = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
darkMode: ['class', '[data-theme="dark"]'],
safelist: [],
theme: {
extend: {
fontFamily: {
sans: 'var(--font-sans),system-ui,-apple-system,PingFang SC,"Microsoft YaHei",Segoe UI,Roboto,Helvetica,noto sans sc,hiragino sans gb,"sans-serif",Apple Color Emoji,Segoe UI Emoji,Not Color Emoji',
serif:
'"Noto Serif CJK SC","Noto Serif SC",var(--font-serif),"Source Han Serif SC","Source Han Serif",source-han-serif-sc,SongTi SC,SimSum,"Hiragino Sans GB",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,"Microsoft YaHei","WenQuanYi Micro Hei",sans-serif',
mono: `"OperatorMonoSSmLig Nerd Font","Cascadia Code PL","FantasqueSansMono Nerd Font","operator mono",JetBrainsMono,"Fira code Retina","Fira code","Consolas", Monaco, "Hannotate SC", monospace, -apple-system`,
},
screens: {
'light-mode': { raw: '(prefers-color-scheme: light)' },
'dark-mode': { raw: '(prefers-color-scheme: dark)' },
'w-screen': '100vw',
'h-screen': '100vh',
},
maxWidth: {
screen: '100vw',
},
width: {
screen: '100vw',
},
height: {
screen: '100vh',
},
maxHeight: {
screen: '100vh',
},
colors: {},
},
},
plugins: [
addDynamicIconSelectors(),
typography,
require('tailwind-scrollbar'),
createPlugin({
colors: radxiColors,
}).plugin,
nextui({
prefix: 'next',
themes: {
dark: {
colors: {
primary: {
DEFAULT: '#111827',
foreground: '#000',
'50': '#3f5a92',
'100': '#364c7c',
'200': '#2d3f67',
'300': '#243252',
'400': '#1a253c',
'500': '#111827',
'600': '#080b12',
'700': '#000000',
'800': '#000000',
'900': '#000000',
},
},
},
},
layout: {
borderWidth: {
small: '1px', // border-small
medium: '1px', // border-medium (default)
large: '2px', // border-large
},
radius: {
small: '6px', // rounded-small
medium: '6px', // rounded-medium
large: '6px', // rounded-large
},
},
}),
require('./layer.css'),
],
}
export default withTV(twConfig)