Versions in this module Expand all Collapse all v0 v0.4.0 Nov 19, 2026 Changes in this version + func Contrast(fg, bg color.NRGBA) float64 + func Hex(s string) color.NRGBA + func Mix(a, b color.NRGBA, t float64) color.NRGBA + func Over(c, bg color.NRGBA) color.NRGBA + type Density int + const Comfortable + const Compact + const Regular + type DiffColors struct + Add color.NRGBA + AddWord color.NRGBA + Blank color.NRGBA + Del color.NRGBA + DelWord color.NRGBA + Fold color.NRGBA + type Pair struct + Dark color.NRGBA + Light color.NRGBA + type Palette struct + ANSI [16]color.NRGBA + Accent color.NRGBA + AccentHover color.NRGBA + Canvas color.NRGBA + Chrome color.NRGBA + Content color.NRGBA + ControlBorder color.NRGBA + CurrentLine color.NRGBA + Danger color.NRGBA + DangerTint color.NRGBA + Diff DiffColors + Divider color.NRGBA + Field color.NRGBA + Focus color.NRGBA + Hover color.NRGBA + Info color.NRGBA + InfoTint color.NRGBA + Match color.NRGBA + OnAccent color.NRGBA + Pressed color.NRGBA + Raised color.NRGBA + SelectionActive color.NRGBA + SelectionInactive color.NRGBA + Shadow color.NRGBA + Success color.NRGBA + SuccessTint color.NRGBA + Syntax SyntaxColors + Text color.NRGBA + TextDisabled color.NRGBA + TextMuted color.NRGBA + TextSecondary color.NRGBA + TextSelection color.NRGBA + Warning color.NRGBA + WarningTint color.NRGBA + type Problem struct + Appearance string + Bg string + Fg string + Need float64 + Ratio float64 + func (p Problem) String() string + type Radii struct + Lg float64 + Md float64 + Sm float64 + type Roundness int + const Round + const Square + const Subtle + type Seeds struct + Accent *Pair + Density Density + Roundness Roundness + type Sizes struct + Bar float64 + Control float64 + Header float64 + Icon float64 + Popover float64 + Row float64 + type Strokes struct + Control float64 + Divider float64 + Focus float64 + type SyntaxColors struct + Comment color.NRGBA + Func color.NRGBA + Keyword color.NRGBA + Number color.NRGBA + String color.NRGBA + Type color.NRGBA + type TextSpec struct + Line float64 + Size float64 + Tracking float64 + Weight int + type Theme struct + Dark Palette + Font string + Light Palette + MonoFont string + Radius Radii + Size Sizes + Space [6]float64 + Stroke Strokes + Type TypeScale + func Default() Theme + func (t *Theme) Palette(dark bool) *Palette + func (t Theme) Check() []Problem + func (t Theme) With(s Seeds) Theme + type TypeScale struct + Body TextSpec + Caption TextSpec + Code TextSpec + Meta TextSpec + PageTitle TextSpec + Title TextSpec