This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
tailwind.config.cjs
48 lines (46 loc) · 1.67 KB
/
tailwind.config.cjs
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
const colors = require('tailwindcss/colors');
const { tailwindExtractor } = require('tailwindcss/lib/lib/purgeUnusedStyles');
module.exports = {
purge: {
content: ['./src/**/*.html', './src/**/*.svelte', './src/**/*.svx'],
options: {
defaultExtractor: (content) => [
// This is an internal Tailwind function that we're not supposed to be allowed to use
// So if this stops working, please open an issue at
// https://github.com/svelte-add/tailwindcss/issues
// rather than bothering Tailwind Labs about it
...tailwindExtractor(content),
// Match Svelte class: directives (https://github.com/tailwindlabs/tailwindcss/discussions/1731)
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
([_match, group, ..._rest]) => group
),
],
keyframes: true,
},
},
theme: {
colors: {
// svelte theme
primary: '#ff3e00',
secondary: '#676778',
// adjusted defaults
transparent: 'transparent',
current: 'currentColor',
gray: colors.warmGray, // better match svelte colors
red: colors.red,
orange: colors.orange,
yellow: colors.amber,
green: colors.emerald,
lime: colors.lime,
blue: colors.blue,
indigo: colors.indigo,
purple: colors.violet,
pink: colors.pink,
},
extend: {},
},
variants: {
extend: {},
},
plugins: [require('@tailwindcss/typography')],
};