mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
- Fix gray/zinc alias confusion (gray→neutral, zinc→zen) - Consolidate duplicate gray color definition - Add finance components to ui/ directory - Clean up documentation structure - Remove test artifacts and backup files The color aliases were incorrectly mapped: Before: gray→zen, zinc→neutral (wrong) After: gray→neutral, zinc→zen (correct) This ensures Hanzo's branded 'zen' color properly maps to zinc while gray correctly references the standard neutral palette. Verified: - Production build: 544 pages ✓ - All tests passing: 219/219 ✓ - Visual verification: /colors page working ✓ - Code review: Approved ✓ Ready for deployment to ui.hanzo.ai
38 lines
675 B
TypeScript
38 lines
675 B
TypeScript
import { baseColors } from "@/registry/base-colors"
|
|
|
|
// All Tailwind colors in hue order (matching /colors page)
|
|
const COLOR_SCHEMES = [
|
|
"zen", // zinc renamed to zen (default Hanzo theme)
|
|
"neutral",
|
|
"stone",
|
|
"slate",
|
|
"gray",
|
|
"red",
|
|
"orange",
|
|
"amber",
|
|
"yellow",
|
|
"lime",
|
|
"green",
|
|
"emerald",
|
|
"teal",
|
|
"cyan",
|
|
"sky",
|
|
"blue",
|
|
"indigo",
|
|
"violet",
|
|
"purple",
|
|
"fuchsia",
|
|
"pink",
|
|
"rose",
|
|
]
|
|
|
|
export const THEMES = baseColors
|
|
.map((theme) => {
|
|
// Rename zinc to zen
|
|
if (theme.name === "zinc") {
|
|
return { ...theme, name: "zen", label: "Zen" }
|
|
}
|
|
return theme
|
|
})
|
|
.filter((theme) => COLOR_SCHEMES.includes(theme.name))
|