generated from the-pudding/svelte-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
39 lines (36 loc) · 1003 Bytes
/
tailwind.config.js
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
// @ts-check
import { join } from "path";
// 1. Import the Skeleton plugin
import { skeleton } from "@skeletonlabs/tw-plugin";
/** @type {import('tailwindcss').Config} */
export default {
// 2. Opt for dark mode to be handled via the class method
darkMode: "class",
content: [
"./src/**/*.{html,js,svelte,ts}",
// 3. Append the path to the Skeleton package
join(
require.resolve("@skeletonlabs/skeleton"),
"../**/*.{html,js,svelte,ts}"
)
],
theme: {
fontFamily: {
serif: ["Old Standard TT", "serif"],
sans: ["Chivo Variable", "sans-serif"],
sansAlt: ["Bungee Hairline", "sans-serif"],
// display: ["Bungee Shade", "sans-serif"],
display: ["Bungee Outline", "sans-serif"],
displayAlt: ["Bungee Hairline", "sans-serif"]
// sans: ["Manrope Variable", "sans-serif"]
// sans: ["Barlow", "sans-serif"]
// sans: ["sans-serif"]
},
extend: {}
},
plugins: [
skeleton({
themes: { preset: ["crimson"] }
})
]
};