mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
Introduces a unified light/dark terminal theme system: - Theme struct with sync.Once-backed Get()/Reset() singleton - darkPalette (softened Primary from 15 to 252) and lightPalette (new, WCAG AA compliant against white backgrounds) - Style constructors (Primary, Muted, Accent, Success, Warning, Danger, Info, Title, SelectedRow, Badge, Severity) - ANSISet for plain CLI output - Resolution precedence: NO_COLOR > SKILLSHARE_THEME > OSC 11 probe > dark fallback - 300ms timeout on OSC 11 probe with documented goroutine leak tradeoff - canDetect() gate for non-TTY, CI, TERM=dumb, Windows-safe - WCAG contrast tests as regression guard for future palette edits NO_COLOR env var follows the no-color.org spec: only activates when set AND non-empty (empty string does not enable no-color mode). This commit adds the package but does not migrate any existing callers. The next commits migrate list TUIs (fixes #125), plain CLI output, and remaining TUIs. Refs: #125