-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.ts
53 lines (52 loc) · 1.03 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
import { join } from 'path';
import type { Config } from 'tailwindcss';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
import { skeleton } from '@skeletonlabs/tw-plugin';
import { preset } from './src/lib/presets';
import { screens } from './src/lib/screens';
export default {
darkMode: 'class',
content: [
'./src/**/*.{html,js,svelte,ts}',
join(
require.resolve('@skeletonlabs/skeleton'),
'../**/*.{html,js,svelte,ts}'
),
join(
require.resolve('svelte-skeleton-three-state-switch'),
'../**/*.{html,js,svelte,ts}'
)
],
theme: {
extend: {
aspectRatio: {
cover: '210 / 297'
},
width: {
'1/7': 'calc(100% / 7)',
'1/8': '12.5%',
'1/12': 'calc(100% / 12)',
'1/16': 'calc(100% / 16)',
'1/18': 'calc(100% / 18)'
},
maxWidth: {
'4/5': '80%',
'1/3': 'calc(100% / 3)'
},
screens,
borderRadius: {
olg: '0.47rem'
}
}
},
plugins: [
forms,
typography,
skeleton({
themes: {
preset
}
})
]
} satisfies Config;