generated from NewcastleRSE/Standard-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
46 lines (41 loc) · 2.05 KB
/
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
40
41
42
43
44
45
46
// @ts-check
import { join } from 'path';
// 1. Import the Skeleton plugin
import { skeleton } from '@skeletonlabs/tw-plugin';
import forms from '@tailwindcss/forms';
import { beeTheme } from './bee-theme';
/** @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: {
clipPath: {
hexagonBorder: "path('M97.7267 2.96631C100.585 2.96631 103.226 4.4911 104.655 6.96631L133.881 57.5881C135.31 60.0633 135.31 63.1129 133.881 65.5881L104.655 116.21C103.226 118.685 100.585 120.21 97.7267 120.21L39.2737 120.21C36.4156 120.21 33.7745 118.685 32.3455 116.21L3.11899 65.5881C1.68994 63.1129 1.68994 60.0633 3.119 57.5881L32.3455 6.9663C33.7746 4.4911 36.4156 2.96631 39.2737 2.96631L97.7267 2.96631Z')",
hexagon: "path('M96.0133 5.75L121.74 50.3096C123.437 53.2489 123.437 56.8703 121.74 59.8096L96.0133 104.369C94.3163 107.309 91.1801 109.119 87.7861 109.119L36.3331 109.119C32.9391 109.119 29.8029 107.309 28.1059 104.369L2.37937 59.8096C0.682352 56.8703 0.682352 53.2489 2.37936 50.3096L28.1059 5.75C29.8029 2.81069 32.9391 0.999999 36.3331 0.999999L87.7861 1C91.1801 1 94.3163 2.81069 96.0133 5.75Z')",
hexagonLarge: "path('M193.305 5.25L251.531 106.101C253.229 109.041 253.229 112.662 251.531 115.601L193.305 216.453C191.608 219.392 188.472 221.203 185.078 221.203L68.6248 221.203C65.2307 221.202 62.0945 219.392 60.3975 216.453L2.17102 115.601C0.474001 112.662 0.474009 109.041 2.17102 106.101L60.3975 5.25C62.0945 2.31069 65.2307 0.500002 68.6248 0.5L185.078 0.499998C188.472 0.500001 191.608 2.31069 193.305 5.25Z')"
},
extend: {
fontFamily: {
'pfdisplay': ['Playfair Display', 'ui-serif']
}
},
},
plugins: [
forms,
require('tailwind-clip-path'),
// 4. Append the Skeleton plugin (after other plugins)
skeleton({
themes: {
custom: [beeTheme]
}
}),
]
}