-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
61 lines (58 loc) · 1.33 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
import { join } from 'path';
import type { Config } from 'tailwindcss';
import forms from '@tailwindcss/forms';
import { skeleton } from '@skeletonlabs/tw-plugin';
import { customCrimson } from './custom-crimson';
export default {
darkMode: 'selector',
content: [
'./src/**/*.{html,js,svelte,ts}',
join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')
],
safelist: [
'translate-x-6',
'translate-x-12',
'translate-x-45',
'translate-y-6',
'translate-y-12',
'translate-y-45',
'rotate-6',
'rotate-8',
'rotate-12',
'rotate-20'
],
theme: {
extend: {
maxHeight: {
'safe-screen': 'calc(100dvh - 188px)',
'safe-screen-with-header': 'calc(100dvh - 246px)' //assuming header is 58px incl. padding and stuff
},
backgroundImage: {
'gradient-165': 'linear-gradient(165deg, var(--tw-gradient-stops))'
}
},
screens: {
sm: '480px',
md: '640px',
lg: '812px'
}
},
plugins: [
forms,
skeleton({
themes: {
custom: [customCrimson]
}
}),
function ({ addComponents }) {
const opacities = [50, 60];
const newComponents = {};
opacities.forEach((opacity) => {
newComponents[`.card-transparent-${opacity}`] = {
[`@apply bg-white/${opacity} dark:bg-surface-700 shadow rounded-xl`]: {}
};
});
addComponents(newComponents);
}
]
} satisfies Config;