themes

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultVariables = map[string]*Variables{
	"FontSans": NewVariable(Font, "sans", `ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`),
}

Functions

This section is empty.

Types

type Namespace

type Namespace string
const (
	Color       Namespace = "color"
	Font        Namespace = "font"
	Text        Namespace = "text"
	FontWeight  Namespace = "fontweight"
	Tracking    Namespace = "tracking"
	Leading     Namespace = "leading"
	Breakpoint  Namespace = "breakpoint"
	Container   Namespace = "container"
	Spacing     Namespace = "spacing"
	Radius      Namespace = "radius"
	Shadow      Namespace = "shadow"
	InsetShadow Namespace = "insetshadow"
	DropShadow  Namespace = "dropshadow"
	Blur        Namespace = "blur"
	Perspective Namespace = "perspective"
	Aspect      Namespace = "aspect"
	Ease        Namespace = "ease"
	Animate     Namespace = "animate"
)

type Theme

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

func Default

func Default() *Theme

func NewTheme

func NewTheme(name string) *Theme

func (*Theme) AddVariable

func (t *Theme) AddVariable(namespace Namespace, class string, value string)

func (*Theme) ListVariables

func (t *Theme) ListVariables() (vars []string)

func (*Theme) UseVarKey

func (t *Theme) UseVarKey(namespace Namespace, class string) string

func (*Theme) VarKey

func (t *Theme) VarKey(namespace Namespace, class string) string

type UtilityClass

type UtilityClass map[string]string

func (*UtilityClass) Value

func (u *UtilityClass) Value(class string) string

type Variables

type Variables map[Namespace]UtilityClass

func NewVariable

func NewVariable(namespace Namespace, class string, value ...string) *Variables

func (*Variables) ToCSSVariables

func (v *Variables) ToCSSVariables() (vars []string)

Jump to

Keyboard shortcuts

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