Repository navigation
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
55 lines (49 loc) · 1.86 KB
/
Copy pathtailwind.config.ts
File metadata and controls
55 lines (49 loc) · 1.86 KB
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
import { join } from 'path';
import type { Config } from 'tailwindcss';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
// Import the Skeleton plugin
import { skeleton } from '@skeletonlabs/tw-plugin';
// Import Custom Theme
import { SveltyCMSTheme } from './SveltyCMSTheme';
/** @type {import('tailwindcss').Config} */
module.exports = {
// Opt for dark mode to be handled via the class method
darkMode: 'class',
content: [
'./src/**/*.{html,js,svelte,ts}',
// Append Path for the Skeleton NPM package and files:
join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')
],
theme: {
extend: {
screens: {
//----------------- min-width------------------------------------------------
xs: '360px', // => @media (min-width: 360px) { ... }
sm: '567px', // => @media (min-width: 576px) { ... }
md: '768px', // => @media (min-width: 768px) { ... }
lg: '992px', // => @media (min-width: 992px) { ... }
xl: '1200px', // => @media (min-width: 1200px) { ... }
'2xl': '1536px', // => @media (min-width: 1536px) { ... }
//----------------- max-width------------------------------------------------
'max-xs': { max: '360px' }, // => @media (min-width: 360px) { ... }
'max-sm': { max: '567px' }, // => @media (min-width: 576px) { ... }
'max-md': { max: '768px' }, // => @media (min-width: 768px) { ... }
'max-lg': { max: '992px' }, // => @media (min-width: 992px) { ... }
'max-xl': { max: '1200px' }, // => @media (min-width: 1200px) { ... }
'max-2xl': { max: '1536px' } // => @media (min-width: 1536px) { ... }
}
}
},
plugins: [
forms,
typography,
// Append the Skeleton plugin (after other plugins)
//skeleton({ themes: { preset: [{ name: "skeleton", enhancements: true }]}}),
skeleton({
themes: {
custom: [SveltyCMSTheme]
}
})
]
} satisfies Config;