forked from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
89 lines (83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
darkMode: 'class',
theme: {
extend: {
keyframes: {
'cc-spin': {
'from': { transform: 'rotate(0deg)' },
'to': { transform: 'rotate(360deg)' }
}
},
animation: {
'cc-spin': 'cc-spin 1s linear infinite'
}
},
},
plugins: [],
prefix: 'cc-',
corePlugins: {
preflight: false,
},
safelist: [
// Basic utility classes
'cc-opacity-0',
'cc-opacity-50',
'cc-opacity-100',
'cc-transition-opacity',
'cc-duration-200',
'cc-duration-300',
'cc-ease-in-out',
'cc-animate-spin',
'cc-w-4',
'cc-h-4',
'cc-gap-2',
'cc-gap-3',
'cc-items-center',
'cc-justify-end',
'cc-flex',
'cc-flex-col',
'cc-mt-4',
'cc-text-xs',
'cc-text-sm',
'cc-font-medium',
'cc-px-4',
'cc-py-2',
'cc-rounded-lg',
// Dark mode classes
'dark:cc-bg-gray-800/50',
'dark:cc-text-white',
'dark:cc-text-gray-300',
'dark:cc-text-gray-400',
'dark:cc-text-gray-500',
'dark:hover:cc-bg-gray-800/50',
'dark:hover:cc-text-gray-300',
'dark:cc-border-gray-700',
// Background colors
'cc-bg-gray-100',
'cc-bg-blue-100',
'dark:cc-bg-blue-900/50',
// Text colors
'cc-text-gray-800',
'cc-text-gray-900',
'cc-text-gray-600',
'cc-text-blue-600',
'cc-text-blue-700',
'dark:cc-text-blue-200',
'dark:cc-text-blue-400',
// Hover states
'hover:cc-bg-gray-100',
'hover:cc-text-gray-600',
'hover:cc-text-gray-800',
'hover:cc-bg-blue-200',
'dark:hover:cc-bg-blue-800/50',
'dark:hover:cc-text-blue-300',
// Border colors
'cc-border-gray-200',
// Component specific classes
'loading-spinner',
'loading-spinner-container',
'cc-animate-spin'
]
};