Class Theme

Defines how to style highlight captures.

Mirrors this Rust definition.

Hierarchy

  • Theme

Constructors

Properties

Accessors

Methods

Constructors

Properties

styles: Record<string, Style>

Accessors

  • get bg(): null | Color
  • The default background color, if the theme defines one.

    Returns null | Color

  • get fg(): null | Color
  • The default foreground color, if the theme defines one.

    Returns null | Color

Methods

  • Retreives the style map for a BuiltinTheme.

    Parameters

    • theme: "abscs::abscs" | "aurora::aurora" | "blue_moon::blue_moon" | "boo::boo" | "catppuccin::frappe" | "catppuccin::latte" | "catppuccin::macchiato" | "catppuccin::mocha" | "darcula::darcula" | "dracula::dracula" | "everblush::everblush" | "everforest::dark" | "everforest::light" | "falcon::falcon" | "github::dark" | "github::dark_colorblind" | "github::dark_default" | "github::dark_dimmed" | "github::dark_high_contrast" | "github::dark_tritanopia" | "github::light" | "github::light_colorblind" | "github::light_default" | "github::light_high_contrast" | "github::light_tritanopia" | "gruvbox::dark" | "gruvbox::light" | "melange::melange" | "minimal::minimal" | "monochrome::monochrome" | "monokai::monokai" | "monokai::pro" | "monokai::ristretto" | "monokai::soda" | "moonfly::moonfly" | "moonlight::moonlight" | "neon::dark" | "neon::default" | "neon::doom" | "neon::light" | "nightfly::nightfly" | "nord::nord" | "oceanicnext::dark" | "oceanicnext::light" | "omni::omni" | "one::cool" | "one::dark" | "one::darker" | "one::deep" | "one::light" | "one::warm" | "one::warmer" | "oxocarbon::dark" | "oxocarbon::light" | "solarized::dark" | "solarized::light" | "tokyo::day" | "tokyo::moon" | "tokyo::night" | "tokyo::storm" | "vscode::dark" | "vscode::light" | "zephyr::zephyr"

    Returns Theme

Generated using TypeDoc