Token palette every glyph component reads from.
glyph add themeThis copies theme.go (and its test file) into your repo at the path your
glyph.json aliases declare. After install, the file is yours: edit it,
refactor it, rename it. There is no theme library to keep in sync.
package main
import (
"fmt"
"github.com/truffle-dev/glyph/components/theme"
)
func main() {
t := theme.Default // dark
// t := theme.Light // warm paper
fmt.Println(t.Primary) // lipgloss.Color
}Package: theme
Types
Theme
github.com/charmbracelet/lipgloss@v1.1.0
Edit tokens.go to retheme. Default is a dark terminal palette; Light is a warm-paper alternative.
- examples/showcase — single-binary TUI composing the seven main surfaces
- components/theme/story — runnable story binary (
go run -tags glyph_story ./components/theme/story/) - registry manifest — the JSON contract
glyph addreads
MIT, same as the rest of glyph.
