Color Tokens
Colors define the visual identity of the CTD Learns App. Every color lives as a named token in theme.js. Never hardcode hex values in your components. Tokens keep the app consistent and make dark mode work. Click any swatch to copy its hex. Use the copy icon next to a token name to copy its full reference path.
Brand
primary
tokens.color.primary#E8541APrimary CTA buttons, links, active states
primaryLight
tokens.color.primaryLight#FDEEE8Button hover states, selected backgrounds
primaryDark
tokens.color.primaryDark#C4420EButton active/pressed states
// In MUI sx prop or styled components: color: theme.palette.primary.main // #E8541A color: theme.palette.primary.dark // #C4420E backgroundColor: theme.palette.navy // #12284C
Grays
gray50
tokens.color.gray50#F7F7F8Page background (light mode)
gray100
tokens.color.gray100#F0F0F1Subtle surfaces, striped table rows
gray200
tokens.color.gray200#E2E2E4Borders, dividers
gray300
tokens.color.gray300#C8C8CBPlaceholder text, disabled borders
gray400
tokens.color.gray400#9E9EA3Placeholder text, inactive icons
gray500
tokens.color.gray500#6B6B72Secondary text, captions
gray600
tokens.color.gray600#4A4A50Body text
gray900
tokens.color.gray900#141414Primary text (light mode)
// Borders & dividers borderColor: tokens.color.gray200 // #E2E2E4 // Secondary text color: "text.secondary" // #6B6B72 // Primary text color: "text.primary" // #141414
Semantic
success
tokens.color.success#22C55EActive states, success feedback
successLight
tokens.color.successLight#DCFCE7Success badge backgrounds
successDark
tokens.color.successDark#15803DSuccess badge text, dark contrast
warning
tokens.color.warning#F59E0BPaused states, warnings
warningLight
tokens.color.warningLight#FEF3C7Warning badge backgrounds
warningDark
tokens.color.warningDark#B45309Warning badge text, dark contrast
danger
tokens.color.danger#EF4444Destructive actions, errors
dangerLight
tokens.color.dangerLight#FEE2E2Error backgrounds
dangerDark
tokens.color.dangerDark#B91C1CError text, dark contrast
info
tokens.color.info#3B82F6Hyperlinks, info highlights
infoLight
tokens.color.infoLight#EFF6FFInfo badge backgrounds
// Success chip backgroundColor: tokens.color.successLight // #DCFCE7 color: tokens.color.successDark // #15803D // Error state color: theme.palette.error.main // #EF4444 backgroundColor: tokens.color.dangerLight // #FEE2E2
Surfaces
surfaceLight#FFFFFFCards, modals, sidebar (light mode)
bgLight#F3F4F6Page background (light mode)
surfaceDark#1E1E20Cards, modals (dark mode)
bgDark#0B0C0CPage background (dark mode)