theme

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package theme provides color palettes for syntax highlighting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Theme

type Theme struct {
	Accent     color.Color // type-level identifiers (block types, table headers, datetime, anchors)
	BoolFalse  color.Color // false, no, off
	BoolTrue   color.Color // true, yes, on
	Comment    color.Color // comments, null, tags
	Foreground color.Color // punctuation, structural tokens
	Key        color.Color // mapping/attribute keys
	Number     color.Color // numeric values
	Secondary  color.Color // secondary keys (nested keys)
	String     color.Color // string values
}

Theme defines a named color palette for syntax highlighting.

func CatppuccinFrappe

func CatppuccinFrappe() Theme

CatppuccinFrappe returns the Catppuccin Frappé (dark) color theme.

func CatppuccinLatte

func CatppuccinLatte() Theme

CatppuccinLatte returns the Catppuccin Latte (light) color theme.

func CatppuccinMacchiato

func CatppuccinMacchiato() Theme

CatppuccinMacchiato returns the Catppuccin Macchiato (dark) color theme.

func CatppuccinMocha

func CatppuccinMocha() Theme

CatppuccinMocha returns the Catppuccin Mocha (dark) color theme.

func Dracula

func Dracula() Theme

Dracula returns the Dracula color theme.

func Monokai

func Monokai() Theme

Monokai returns the Monokai color theme.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL