fix: 缺少default

This commit is contained in:
bietiaop
2025-02-09 12:00:02 +08:00
parent 9f78e1ce1e
commit ce7614de46
2 changed files with 9 additions and 2 deletions

View File

@@ -38,7 +38,14 @@ const values = [
'-800',
'-900'
]
const colors = ['primary', 'secondary', 'success', 'danger', 'warning']
const colors = [
'primary',
'secondary',
'success',
'danger',
'warning',
'default'
]
function PreviewThemeCard({ theme, onPreview }: PreviewThemeCardProps) {
const style = document.createElement('style')

View File

@@ -12,7 +12,7 @@ export default {
safelist: [
{
pattern:
/bg-(primary|secondary|success|danger|warning)-(50|100|200|300|400|500|600|700|800|900)/
/bg-(primary|secondary|success|danger|warning|default)-(50|100|200|300|400|500|600|700|800|900)/
}
],
theme: {