theme

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Foreground = iota
	Background
	Base
	AlternateBase
	Text
	Selection
	Highlight
)

Color Roles in a Theme

Variables

View Source
var (
	MonokaiTheme = Theme{
		Name: "monokai",
		// contains filtered or unexported fields
	}
)

MonokaiTheme is a popular theme used for syntax highlighting

Functions

This section is empty.

Types

type Role

type Role int

Role is used for type-safety

type Theme

type Theme struct {
	Name string
	// contains filtered or unexported fields
}

A Theme is a collection of colors mapped to a role (or function)

func (Theme) Colors

func (t Theme) Colors() gamut.Colors

Colors returns all (unique) colors used in this theme

func (Theme) Role

func (t Theme) Role(r Role) gamut.Color

Role returns the theme's color for a specific role

Jump to

Keyboard shortcuts

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