-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.cjs
52 lines (51 loc) · 1.44 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
49
50
51
52
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/**/*.{html,js,svelte,ts}',
'./node_modules/svhighlight/**/*.svelte',
],
darkMode: 'class',
theme: {
extend: {
textShadow: {
sm: '0 1px 2px var(--tw-shadow-color)',
DEFAULT: '0 2px 4px var(--tw-shadow-color)',
lg: '0 8px 16px var(--tw-shadow-color)',
// https://codepen.io/ananyaneogi/pen/Bgozrz
// neon: '0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000'
neon: '0 0 5px #ffa500, 0 0 7px #ffa500, 0 0 10px #ffa500, 0 0 14px #ffa500, 0 0 18px #ff0000, 0 0 9px #ff8d00, 0 0 25px #ff0000'
},
},
},
plugins: [
require('@tailwindcss/typography'),
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') }
)
}),
// plugin(function({ addVariant }) {
// addVariant('step-1', '')
// })
// plugin(function ({ matchVariant }) {
// matchVariant('stepTW', (n) => `&[data-number="${n}"]`)
// }),
],
// safelist: [
// {
// pattern: /duration-\d+/
// },
// {
// pattern: /opacity-\d+/
// },
// {
// pattern: /scale-\d+/
// }
// ],
}