theme

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = defaultTheme()

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 = "inset-shadow"
	DropShadow  Namespace = "drop-shadow"
	TextShadow  Namespace = "text-shadow"
	Blur        Namespace = "blur"
	Perspective Namespace = "perspective"
	Aspect      Namespace = "aspect"
	Ease        Namespace = "ease"
	Animate     Namespace = "animate"
	Custom      Namespace = ""
)

type Theme

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

func CreateTheme

func CreateTheme(name string, params ...ThemeParam) *Theme

func (*Theme) AddKeyframe

func (t *Theme) AddKeyframe(name string, value string)

func (*Theme) AddVariable

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

func (*Theme) RawCSS added in v0.0.15

func (t *Theme) RawCSS() 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 ThemeParam

type ThemeParam func(t *Theme)

func AnimateBounce

func AnimateBounce(val value.Value) ThemeParam

func AnimatePing

func AnimatePing(val value.Value) ThemeParam

func AnimatePulse

func AnimatePulse(val value.Value) ThemeParam

func AnimateSpin

func AnimateSpin(val value.Value) ThemeParam

func AnimateVar

func AnimateVar(variant string, val value.Value) ThemeParam

func AspectVar

func AspectVar(variant string, val value.Value) ThemeParam

func AspectVideo

func AspectVideo(val value.Value) ThemeParam

func Blur2xl

func Blur2xl(blurSize value.Value) ThemeParam

func Blur3xl

func Blur3xl(blurSize value.Value) ThemeParam

func BlurLg

func BlurLg(blurSize value.Value) ThemeParam

func BlurMd

func BlurMd(blurSize value.Value) ThemeParam

func BlurSm

func BlurSm(blurSize value.Value) ThemeParam

func BlurVar

func BlurVar(variant string, blurSize value.Value) ThemeParam

func BlurXl

func BlurXl(blurSize value.Value) ThemeParam

func BlurXs

func BlurXs(blurSize value.Value) ThemeParam

func Breakpoint2xl

func Breakpoint2xl(breakpoint value.Value) ThemeParam

func BreakpointLg

func BreakpointLg(breakpoint value.Value) ThemeParam

func BreakpointMd

func BreakpointMd(breakpoint value.Value) ThemeParam

func BreakpointSm

func BreakpointSm(breakpoint value.Value) ThemeParam

func BreakpointXl

func BreakpointXl(breakpoint value.Value) ThemeParam

func ColorAmber

func ColorAmber(scale int, value string) ThemeParam

func ColorAmberAlpha

func ColorAmberAlpha(scale int, value string) ThemeParam

func ColorAmberDark

func ColorAmberDark(scale int, value string) ThemeParam

func ColorAmberDarkAlpha

func ColorAmberDarkAlpha(scale int, value string) ThemeParam

func ColorBlackAlpha

func ColorBlackAlpha(scale int, value string) ThemeParam

func ColorBlue

func ColorBlue(scale int, value string) ThemeParam

func ColorBlueAlpha

func ColorBlueAlpha(scale int, value string) ThemeParam

func ColorBlueDark

func ColorBlueDark(scale int, value string) ThemeParam

func ColorBlueDarkAlpha

func ColorBlueDarkAlpha(scale int, value string) ThemeParam

func ColorBronze

func ColorBronze(scale int, value string) ThemeParam

func ColorBronzeAlpha

func ColorBronzeAlpha(scale int, value string) ThemeParam

func ColorBronzeDark

func ColorBronzeDark(scale int, value string) ThemeParam

func ColorBronzeDarkAlpha

func ColorBronzeDarkAlpha(scale int, value string) ThemeParam

func ColorBrown

func ColorBrown(scale int, value string) ThemeParam

func ColorBrownAlpha

func ColorBrownAlpha(scale int, value string) ThemeParam

func ColorBrownDark

func ColorBrownDark(scale int, value string) ThemeParam

func ColorBrownDarkAlpha

func ColorBrownDarkAlpha(scale int, value string) ThemeParam

func ColorCrimson

func ColorCrimson(scale int, value string) ThemeParam

func ColorCrimsonAlpha

func ColorCrimsonAlpha(scale int, value string) ThemeParam

func ColorCrimsonDark

func ColorCrimsonDark(scale int, value string) ThemeParam

func ColorCrimsonDarkAlpha

func ColorCrimsonDarkAlpha(scale int, value string) ThemeParam

func ColorCyan

func ColorCyan(scale int, value string) ThemeParam

func ColorCyanAlpha

func ColorCyanAlpha(scale int, value string) ThemeParam

func ColorCyanDark

func ColorCyanDark(scale int, value string) ThemeParam

func ColorCyanDarkAlpha

func ColorCyanDarkAlpha(scale int, value string) ThemeParam

func ColorGold

func ColorGold(scale int, value string) ThemeParam

func ColorGoldAlpha

func ColorGoldAlpha(scale int, value string) ThemeParam

func ColorGoldDark

func ColorGoldDark(scale int, value string) ThemeParam

func ColorGoldDarkAlpha

func ColorGoldDarkAlpha(scale int, value string) ThemeParam

func ColorGrass

func ColorGrass(scale int, value string) ThemeParam

func ColorGrassAlpha

func ColorGrassAlpha(scale int, value string) ThemeParam

func ColorGrassDark

func ColorGrassDark(scale int, value string) ThemeParam

func ColorGrassDarkAlpha

func ColorGrassDarkAlpha(scale int, value string) ThemeParam

func ColorGray

func ColorGray(scale int, value string) ThemeParam

func ColorGrayAlpha

func ColorGrayAlpha(scale int, value string) ThemeParam

func ColorGrayDark

func ColorGrayDark(scale int, value string) ThemeParam

func ColorGrayDarkAlpha

func ColorGrayDarkAlpha(scale int, value string) ThemeParam

func ColorGreen

func ColorGreen(scale int, value string) ThemeParam

func ColorGreenAlpha

func ColorGreenAlpha(scale int, value string) ThemeParam

func ColorGreenDark

func ColorGreenDark(scale int, value string) ThemeParam

func ColorGreenDarkAlpha

func ColorGreenDarkAlpha(scale int, value string) ThemeParam

func ColorIndigo

func ColorIndigo(scale int, value string) ThemeParam

func ColorIndigoAlpha

func ColorIndigoAlpha(scale int, value string) ThemeParam

func ColorIndigoDark

func ColorIndigoDark(scale int, value string) ThemeParam

func ColorIndigoDarkAlpha

func ColorIndigoDarkAlpha(scale int, value string) ThemeParam

func ColorIris

func ColorIris(scale int, value string) ThemeParam

func ColorIrisAlpha

func ColorIrisAlpha(scale int, value string) ThemeParam

func ColorIrisDark

func ColorIrisDark(scale int, value string) ThemeParam

func ColorIrisDarkAlpha

func ColorIrisDarkAlpha(scale int, value string) ThemeParam

func ColorJade

func ColorJade(scale int, value string) ThemeParam

func ColorJadeAlpha

func ColorJadeAlpha(scale int, value string) ThemeParam

func ColorJadeDark

func ColorJadeDark(scale int, value string) ThemeParam

func ColorJadeDarkAlpha

func ColorJadeDarkAlpha(scale int, value string) ThemeParam

func ColorLime

func ColorLime(scale int, value string) ThemeParam

func ColorLimeAlpha

func ColorLimeAlpha(scale int, value string) ThemeParam

func ColorLimeDark

func ColorLimeDark(scale int, value string) ThemeParam

func ColorLimeDarkAlpha

func ColorLimeDarkAlpha(scale int, value string) ThemeParam

func ColorMauve

func ColorMauve(scale int, value string) ThemeParam

func ColorMauveAlpha

func ColorMauveAlpha(scale int, value string) ThemeParam

func ColorMauveDark

func ColorMauveDark(scale int, value string) ThemeParam

func ColorMauveDarkAlpha

func ColorMauveDarkAlpha(scale int, value string) ThemeParam

func ColorMint

func ColorMint(scale int, value string) ThemeParam

func ColorMintAlpha

func ColorMintAlpha(scale int, value string) ThemeParam

func ColorMintDark

func ColorMintDark(scale int, value string) ThemeParam

func ColorMintDarkAlpha

func ColorMintDarkAlpha(scale int, value string) ThemeParam

func ColorOlive

func ColorOlive(scale int, value string) ThemeParam

func ColorOliveAlpha

func ColorOliveAlpha(scale int, value string) ThemeParam

func ColorOliveDark

func ColorOliveDark(scale int, value string) ThemeParam

func ColorOliveDarkAlpha

func ColorOliveDarkAlpha(scale int, value string) ThemeParam

func ColorOrange

func ColorOrange(scale int, value string) ThemeParam

func ColorOrangeAlpha

func ColorOrangeAlpha(scale int, value string) ThemeParam

func ColorOrangeDark

func ColorOrangeDark(scale int, value string) ThemeParam

func ColorOrangeDarkAlpha

func ColorOrangeDarkAlpha(scale int, value string) ThemeParam

func ColorPink

func ColorPink(scale int, value string) ThemeParam

func ColorPinkAlpha

func ColorPinkAlpha(scale int, value string) ThemeParam

func ColorPinkDark

func ColorPinkDark(scale int, value string) ThemeParam

func ColorPinkDarkAlpha

func ColorPinkDarkAlpha(scale int, value string) ThemeParam

func ColorPlum

func ColorPlum(scale int, value string) ThemeParam

func ColorPlumAlpha

func ColorPlumAlpha(scale int, value string) ThemeParam

func ColorPlumDark

func ColorPlumDark(scale int, value string) ThemeParam

func ColorPlumDarkAlpha

func ColorPlumDarkAlpha(scale int, value string) ThemeParam

func ColorPurple

func ColorPurple(scale int, value string) ThemeParam

func ColorPurpleAlpha

func ColorPurpleAlpha(scale int, value string) ThemeParam

func ColorPurpleDark

func ColorPurpleDark(scale int, value string) ThemeParam

func ColorPurpleDarkAlpha

func ColorPurpleDarkAlpha(scale int, value string) ThemeParam

func ColorRed

func ColorRed(scale int, value string) ThemeParam

func ColorRedAlpha

func ColorRedAlpha(scale int, value string) ThemeParam

func ColorRedDark

func ColorRedDark(scale int, value string) ThemeParam

func ColorRedDarkAlpha

func ColorRedDarkAlpha(scale int, value string) ThemeParam

func ColorRuby

func ColorRuby(scale int, value string) ThemeParam

func ColorRubyAlpha

func ColorRubyAlpha(scale int, value string) ThemeParam

func ColorRubyDark

func ColorRubyDark(scale int, value string) ThemeParam

func ColorRubyDarkAlpha

func ColorRubyDarkAlpha(scale int, value string) ThemeParam

func ColorSage

func ColorSage(scale int, value string) ThemeParam

func ColorSageAlpha

func ColorSageAlpha(scale int, value string) ThemeParam

func ColorSageDark

func ColorSageDark(scale int, value string) ThemeParam

func ColorSageDarkAlpha

func ColorSageDarkAlpha(scale int, value string) ThemeParam

func ColorSand

func ColorSand(scale int, value string) ThemeParam

func ColorSandAlpha

func ColorSandAlpha(scale int, value string) ThemeParam

func ColorSandDark

func ColorSandDark(scale int, value string) ThemeParam

func ColorSandDarkAlpha

func ColorSandDarkAlpha(scale int, value string) ThemeParam

func ColorSky

func ColorSky(scale int, value string) ThemeParam

func ColorSkyAlpha

func ColorSkyAlpha(scale int, value string) ThemeParam

func ColorSkyDark

func ColorSkyDark(scale int, value string) ThemeParam

func ColorSkyDarkAlpha

func ColorSkyDarkAlpha(scale int, value string) ThemeParam

func ColorSlate

func ColorSlate(scale int, value string) ThemeParam

func ColorSlateAlpha

func ColorSlateAlpha(scale int, value string) ThemeParam

func ColorSlateDark

func ColorSlateDark(scale int, value string) ThemeParam

func ColorSlateDarkAlpha

func ColorSlateDarkAlpha(scale int, value string) ThemeParam

func ColorTeal

func ColorTeal(scale int, value string) ThemeParam

func ColorTealAlpha

func ColorTealAlpha(scale int, value string) ThemeParam

func ColorTealDark

func ColorTealDark(scale int, value string) ThemeParam

func ColorTealDarkAlpha

func ColorTealDarkAlpha(scale int, value string) ThemeParam

func ColorTomato

func ColorTomato(scale int, value string) ThemeParam

func ColorTomatoAlpha

func ColorTomatoAlpha(scale int, value string) ThemeParam

func ColorTomatoDark

func ColorTomatoDark(scale int, value string) ThemeParam

func ColorTomatoDarkAlpha

func ColorTomatoDarkAlpha(scale int, value string) ThemeParam

func ColorVar

func ColorVar(name string, scale int, value string) ThemeParam

func ColorViolet

func ColorViolet(scale int, value string) ThemeParam

func ColorVioletAlpha

func ColorVioletAlpha(scale int, value string) ThemeParam

func ColorVioletDark

func ColorVioletDark(scale int, value string) ThemeParam

func ColorVioletDarkAlpha

func ColorVioletDarkAlpha(scale int, value string) ThemeParam

func ColorWhiteAlpha

func ColorWhiteAlpha(scale int, value string) ThemeParam

func ColorYellow

func ColorYellow(scale int, value string) ThemeParam

func ColorYellowAlpha

func ColorYellowAlpha(scale int, value string) ThemeParam

func ColorYellowDark

func ColorYellowDark(scale int, value string) ThemeParam

func ColorYellowDarkAlpha

func ColorYellowDarkAlpha(scale int, value string) ThemeParam

func Container2xl

func Container2xl(breakpoint value.Value) ThemeParam

func Container2xs

func Container2xs(breakpoint value.Value) ThemeParam

func Container3xl

func Container3xl(breakpoint value.Value) ThemeParam

func Container3xs

func Container3xs(breakpoint value.Value) ThemeParam

func Container4xl

func Container4xl(breakpoint value.Value) ThemeParam

func Container5xl

func Container5xl(breakpoint value.Value) ThemeParam

func Container6xl

func Container6xl(breakpoint value.Value) ThemeParam

func Container7xl

func Container7xl(breakpoint value.Value) ThemeParam

func ContainerLg

func ContainerLg(breakpoint value.Value) ThemeParam

func ContainerMd

func ContainerMd(breakpoint value.Value) ThemeParam

func ContainerSm

func ContainerSm(breakpoint value.Value) ThemeParam

func ContainerXl

func ContainerXl(breakpoint value.Value) ThemeParam

func ContainerXs

func ContainerXs(breakpoint value.Value) ThemeParam

func DropShadow2xl

func DropShadow2xl(value string) ThemeParam

func DropShadowLg

func DropShadowLg(value string) ThemeParam

func DropShadowMd

func DropShadowMd(value string) ThemeParam

func DropShadowSm

func DropShadowSm(value string) ThemeParam

func DropShadowVar

func DropShadowVar(variant string, value string) ThemeParam

func DropShadowXl

func DropShadowXl(value string) ThemeParam

func DropShadowXs

func DropShadowXs(value string) ThemeParam

func EaseIn

func EaseIn(val value.Value) ThemeParam

func EaseInOut

func EaseInOut(val value.Value) ThemeParam

func EaseOut

func EaseOut(val value.Value) ThemeParam

func EaseVar

func EaseVar(variant string, val value.Value) ThemeParam

func FontBlack

func FontBlack(weight int) ThemeParam

func FontBold

func FontBold(weight int) ThemeParam

func FontExtraBold

func FontExtraBold(weight int) ThemeParam

func FontExtraLight

func FontExtraLight(weight int) ThemeParam

func FontLight

func FontLight(weight int) ThemeParam

func FontMedium

func FontMedium(weight int) ThemeParam

func FontMono

func FontMono(fonts ...string) ThemeParam

func FontNormal

func FontNormal(weight int) ThemeParam

func FontSans

func FontSans(fonts ...string) ThemeParam

func FontSemibold

func FontSemibold(weight int) ThemeParam

func FontSerif

func FontSerif(fonts ...string) ThemeParam

func FontThin

func FontThin(weight int) ThemeParam

func FontVar

func FontVar(name string, fonts ...string) ThemeParam

func InsetShadow2xs

func InsetShadow2xs(value string) ThemeParam

func InsetShadowSm

func InsetShadowSm(value string) ThemeParam

func InsetShadowVar

func InsetShadowVar(variant string, value string) ThemeParam

func InsetShadowXs

func InsetShadowXs(value string) ThemeParam

func KeyframeBounce

func KeyframeBounce(value string) ThemeParam

func KeyframePing

func KeyframePing(value string) ThemeParam

func KeyframePulse

func KeyframePulse(value string) ThemeParam

func KeyframeSpin

func KeyframeSpin(value string) ThemeParam

func KeyframeVar

func KeyframeVar(variant string, value string) ThemeParam

func LeadingLoose

func LeadingLoose(val value.Value) ThemeParam

func LeadingNormal

func LeadingNormal(val value.Value) ThemeParam

func LeadingRelaxed

func LeadingRelaxed(val value.Value) ThemeParam

func LeadingSnug

func LeadingSnug(val value.Value) ThemeParam

func LeadingTight

func LeadingTight(val value.Value) ThemeParam

func LineHeight2xl

func LineHeight2xl(val value.Value) ThemeParam

func LineHeight3xl

func LineHeight3xl(val value.Value) ThemeParam

func LineHeight4xl

func LineHeight4xl(val value.Value) ThemeParam

func LineHeight5xl

func LineHeight5xl(val value.Value) ThemeParam

func LineHeight6xl

func LineHeight6xl(val value.Value) ThemeParam

func LineHeight7xl

func LineHeight7xl(val value.Value) ThemeParam

func LineHeight8xl

func LineHeight8xl(val value.Value) ThemeParam

func LineHeight9xl

func LineHeight9xl(val value.Value) ThemeParam

func LineHeightBase

func LineHeightBase(val value.Value) ThemeParam

func LineHeightLg

func LineHeightLg(val value.Value) ThemeParam

func LineHeightSm

func LineHeightSm(val value.Value) ThemeParam

func LineHeightXl

func LineHeightXl(val value.Value) ThemeParam

func LineHeightXs

func LineHeightXs(val value.Value) ThemeParam

func PerspectiveDistant

func PerspectiveDistant(val value.Value) ThemeParam

func PerspectiveDramatic

func PerspectiveDramatic(val value.Value) ThemeParam

func PerspectiveMidrange

func PerspectiveMidrange(val value.Value) ThemeParam

func PerspectiveNear

func PerspectiveNear(val value.Value) ThemeParam

func PerspectiveNormal

func PerspectiveNormal(val value.Value) ThemeParam

func PerspectiveVar

func PerspectiveVar(variant string, val value.Value) ThemeParam

func Radius2xl

func Radius2xl(radius value.Value) ThemeParam

func Radius3xl

func Radius3xl(radius value.Value) ThemeParam

func Radius4xl

func Radius4xl(radius value.Value) ThemeParam

func RadiusLg

func RadiusLg(radius value.Value) ThemeParam

func RadiusMd

func RadiusMd(radius value.Value) ThemeParam

func RadiusSm

func RadiusSm(radius value.Value) ThemeParam

func RadiusVar

func RadiusVar(variant string, radius value.Value) ThemeParam

func RadiusXl

func RadiusXl(radius value.Value) ThemeParam

func RadiusXs

func RadiusXs(radius value.Value) ThemeParam

func Shadow2xl

func Shadow2xl(value string) ThemeParam

func Shadow2xs

func Shadow2xs(value string) ThemeParam

func ShadowLg

func ShadowLg(value string) ThemeParam

func ShadowMd

func ShadowMd(value string) ThemeParam

func ShadowSm

func ShadowSm(value string) ThemeParam

func ShadowVar

func ShadowVar(variant string, value string) ThemeParam

func ShadowXl

func ShadowXl(value string) ThemeParam

func ShadowXs

func ShadowXs(value string) ThemeParam

func SpacingVar

func SpacingVar(spacing value.Value) ThemeParam

func Text2xl

func Text2xl(size value.Value) ThemeParam

func Text3xl

func Text3xl(size value.Value) ThemeParam

func Text4xl

func Text4xl(size value.Value) ThemeParam

func Text5xl

func Text5xl(size value.Value) ThemeParam

func Text6xl

func Text6xl(size value.Value) ThemeParam

func Text7xl

func Text7xl(size value.Value) ThemeParam

func Text8xl

func Text8xl(size value.Value) ThemeParam

func Text9xl

func Text9xl(size value.Value) ThemeParam

func TextBase

func TextBase(size value.Value) ThemeParam

func TextLg

func TextLg(size value.Value) ThemeParam

func TextShadow2xs

func TextShadow2xs(value string) ThemeParam

func TextShadowLg

func TextShadowLg(value string) ThemeParam

func TextShadowMd

func TextShadowMd(value string) ThemeParam

func TextShadowSm

func TextShadowSm(value string) ThemeParam

func TextShadowVar

func TextShadowVar(variant string, value string) ThemeParam

func TextShadowXs

func TextShadowXs(value string) ThemeParam

func TextSm

func TextSm(size value.Value) ThemeParam

func TextXl

func TextXl(size value.Value) ThemeParam

func TextXs

func TextXs(size value.Value) ThemeParam

func TrackingNormal

func TrackingNormal(val value.Value) ThemeParam

func TrackingTight

func TrackingTight(val value.Value) ThemeParam

func TrackingTighter

func TrackingTighter(val value.Value) ThemeParam

func TrackingWide

func TrackingWide(val value.Value) ThemeParam

func TrackingWider

func TrackingWider(val value.Value) ThemeParam

func TrackingWidest

func TrackingWidest(val value.Value) ThemeParam

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 (*Variables) ToCSSVariables

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

Jump to

Keyboard shortcuts

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