-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
63 lines (56 loc) · 1.37 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
/** @type {import('tailwindcss').Config} */
import type { Config } from 'tailwindcss';
import { skeleton } from '@skeletonlabs/tw-plugin';
import { myCustomTheme } from './my-custom-theme';
import plugin from 'tailwindcss/plugin';
import { join } from 'path';
module.exports = {
darkMode: 'class',
content: [
'./src/**/*.{html,js,svelte,ts}',
join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')
],
theme: {
extend: {
colors: {
stone: {
50: 'var(--novel-stone-50)',
100: 'var(--novel-stone-100)',
200: 'var(--novel-stone-200)',
300: 'var(--novel-stone-300)',
400: 'var(--novel-stone-400)',
500: 'var(--novel-stone-500)',
600: 'var(--novel-stone-600)',
700: 'var(--novel-stone-700)',
800: 'var(--novel-stone-800)',
900: 'var(--novel-stone-900)'
}
}
}
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
plugin(function ({ addVariant, matchUtilities, theme }) {
addVariant('hocus', ['&:hover', '&:focus']);
matchUtilities(
{
square: (value) => ({
width: value,
height: value
})
},
{ values: theme('spacing') }
);
}),
skeleton({
themes: {
custom: [myCustomTheme]
}
}),
function ({ addVariant }) {
addVariant('child', '& > *');
addVariant('child-hover', '& > *:hover');
}
]
} satisfies Config;