-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
67 lines (63 loc) · 1.12 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import ctpPlugin from '@catppuccin/tailwindcss'
const colors = [
'rosewater',
'flamingo',
'pink',
'mauve',
'red',
'maroon',
'peach',
'yellow',
'green',
'teal',
'sky',
'sapphire',
'blue',
'lavender',
'base',
'mantle',
'crust',
'surface0',
'surface1'
]
const safeList = [
'ctp-mocha',
'ctp-macchiato',
'ctp-frappe',
'ctp-latte',
'animate-colorchange'
]
colors.map((color) => {
safeList.push(`bg-ctp-${color}`)
safeList.push(`text-ctp-${color}`)
})
/** @type {import('tailwindcss').Config} */
const config = {
content: ['./src/**/*.{js,ts,j1sx,tsx}'],
theme: {
extend: {
animation: {
colorchange: 'colorchange 5s ease infinite'
},
keyframes: {
colorchange: {
'0%, 100%': {
'background-size': '200% 200%',
'background-position': 'left center'
},
'50%': {
'background-size': '200% 200%',
'background-position': 'right center'
}
}
}
}
},
safelist: safeList,
plugins: [
ctpPlugin({
prefix: 'ctp'
})
]
}
module.exports = config