tint

package module
v0.0.0-...-5615d40 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 Imported by: 2

README ΒΆ

πŸ”— Table of Contents

✨ Features

  • βœ” Utilize 280+ built-in tints. Check them all out here! We're taking advantage of the great work others have done with Windows Terminal Themes and iTerm2-Color-Schemes, and making them more accessible in a programmatic fashion.
  • βœ” Support for dynamically changing tints at runtime, to give immediate feedback on which tints might look the best for your application and terminal setup.
  • βœ” Piecemeal support for specific tints. Really like one specific tint, and want to use that as the standard for your TUI? No problem!
  • βœ” Extendible via interfaces. Easily create custom tints.
  • βœ” Works with lipgloss and similar tools which support the color.Color interface from stdlib!

βš™ Usage

go get -u github.com/lrstanley/bubbletint@latest

Take a look at all tints here.

BubbleTint supports three different modes of usage, as shown below:

Global registry

package main

import (
	// [...]
	tint "github.com/lrstanley/bubbletint"
)


func main() {
	// [...]
	tint.NewDefaultRegistry()
	tint.SetTint(tint.TintDraculaPlus) // Set a specific tint.
	tint.SetTintID("dracula_plus") // Or by ID (this aligns with a Tint's ID() method).

	// You can now use methods like tint.Bg(), tint.Fg(), tint.BrightGreen(), etc.
	style := lipgloss.NewStyle().SetForeground(tint.Fg()).Background(tint.BrightGreen())
}

Custom Registry

package main

import (
	// [...]
	tint "github.com/lrstanley/bubbletint"
)


func main() {
	// [...]
	theme := tint.NewRegistry(
		tint.TintDraculaPlus, // Set default/current tint.
		tint.TintGithub,
		tint.TintTomorrow,
		tint.TintTokyoNight,
	}

	theme.Register(tint.TintNord) // Register additional tints on the custom registry.
	theme.SetTint(tint.TintNord) // Can still set a tint on a custom registry.

	// Can also paginate through tints, using PreviousTint/NextTint
	theme.NextTint()

	// You can now use methods like theme.Bg(), theme.Fg(), theme.BrightGreen(), etc.
	style := lipgloss.NewStyle().SetForeground(theme.Fg()).Background(theme.BrightGreen())
}

Use specific tints

package main

import (
	// [...]
	tint "github.com/lrstanley/bubbletint"
)

var (
	statusbarStyle = lipgloss.NewStyle().
		SetForeground(tint.TintDraculaPlus.Fg()).
		Background(tint.TintDraculaPlus.BrightGreen())
)

// Or:
var (
	theme = tint.TintDraculaPlus
	statusbarStyle = lipgloss.NewStyle().SetForeground(theme.Fg()).Background(theme.BrightGreen())
)

... and that's it!


πŸ‘ Examples

Package manager example

  • Uses a static theme with a specific palette for the entire application.
  • Example source.

package-manager example

Complex example

  • Uses the default registry (with all tints), and has keybinds to paginate through each tint.
  • Note that only a portion of this example is styled (e.g. not a full background color, which may make sense for some of the provided tints).
  • Example source.

complex example


πŸ™‹β™‚ Support & Assistance

  • ❀ Please review the Code of Conduct for guidelines on ensuring everyone has the best experience interacting with the community.
  • πŸ™‹β™‚ Take a look at the support document on guidelines for tips on how to ask the right questions.
  • 🐞 For all features/bugs/issues/questions/etc, head over here.

🀝 Contributing

  • ❀ Please review the Code of Conduct for guidelines on ensuring everyone has the best experience interacting with the community.
  • πŸ“‹ Please review the contributing doc for submitting issues/a guide on submitting pull requests and helping out.
  • πŸ— For anything security related, please review this repositories security policy.

βš– License

MIT License

Copyright (c) 2022 Liam Stanley <me@liamstanley.io>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Also located here

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

func About ΒΆ

func About() string

About returns information about the tint (and if we have credit for who assisted with/created it), using the default registry.

func Bg ΒΆ

Bg returns the recommended default background color for this tint, using the default registry.

func Black ΒΆ

func Black() lipgloss.TerminalColor

Black returns the recommended color for black, using the default registry.

func Blue ΒΆ

func Blue() lipgloss.TerminalColor

Blue returns the recommended color for blue, using the default registry.

func BrightBlack ΒΆ

func BrightBlack() lipgloss.TerminalColor

BrightBlack returns the recommended color for bright black, using the default registry.

func BrightBlue ΒΆ

func BrightBlue() lipgloss.TerminalColor

BrightBlue returns the recommended color for bright blue, using the default registry.

func BrightCyan ΒΆ

func BrightCyan() lipgloss.TerminalColor

BrightCyan returns the recommended color for bright cyan, using the default registry.

func BrightGreen ΒΆ

func BrightGreen() lipgloss.TerminalColor

BrightGreen returns the recommended color for bright green, using the default registry.

func BrightPurple ΒΆ

func BrightPurple() lipgloss.TerminalColor

BrightPurple returns the recommended color for bright purple, using the default registry.

func BrightRed ΒΆ

func BrightRed() lipgloss.TerminalColor

BrightRed returns the recommended color for bright red, using the default registry.

func BrightWhite ΒΆ

func BrightWhite() lipgloss.TerminalColor

BrightWhite returns the recommended color for bright white, using the default registry.

func BrightYellow ΒΆ

func BrightYellow() lipgloss.TerminalColor

BrightYellow returns the recommended color for bright yellow, using the default registry.

func Cursor ΒΆ

func Cursor() lipgloss.TerminalColor

Cursor returns the recommended color for the cursor, using the default registry.

func Cyan ΒΆ

func Cyan() lipgloss.TerminalColor

Cyan returns the recommended color for cyan, using the default registry.

func DisplayName ΒΆ

func DisplayName() string

DisplayName returns the display name of the tint, using the default registry.

func Fg ΒΆ

Fg returns the recommended default foreground color for this tint, using the default registry.

func FromTo ΒΆ

func FromTo(from, to lipgloss.TerminalColor, steps int) (gradient []lipgloss.TerminalColor)

FromTo converts a color from one color space to another colorful's BlendLuv -- which blends two colors in the CIE-L*u*v* color-space. The result is a slice of lipgloss.TerminalColor (compatible with lipgloss methods).

func FromToHex ΒΆ

func FromToHex(from, to lipgloss.TerminalColor, steps int) (gradient []string)

FromToHex converts a color from one color space to another colorful's BlendLuv -- which blends two colors in the CIE-L*u*v* color-space. The result is a slice of hex colors.

func Green ΒΆ

func Green() lipgloss.TerminalColor

Green returns the recommended color for green, using the default registry.

func Hex ΒΆ

func ID ΒΆ

func ID() string

ID returns the name of the tint (normalized, snakecase style), using the default registry.

func NewDefaultRegistry ΒΆ

func NewDefaultRegistry()

func NextTint ΒΆ

func NextTint()

NextTint sets the current tint to the next tint in the list of registered tints, using the default registry. If the current tint is the last tint in the list, it will pin to the last tint in the list (i.e. won't rollback to the start).

NextTint uses a sorted list of tint IDs.

func PreviousTint ΒΆ

func PreviousTint()

PreviousTint sets the current tint to the previous tint in the list of registered tints, using the default registry. If the current tint is the first tint in the list, it will pin to the first tint in the list (i.e. won't rollback to the end).

PreviousTint uses a sorted list of tint IDs.

func Purple ΒΆ

func Purple() lipgloss.TerminalColor

Purple returns the recommended color for purple, using the default registry.

func Red ΒΆ

func Red() lipgloss.TerminalColor

Red returns the recommended color for red, using the default registry.

func Register ΒΆ

func Register(tint ...Tint)

Register registers one or more tints, using the default registry. It does not change to the provided tint.

func SelectionBg ΒΆ

func SelectionBg() lipgloss.TerminalColor

SelectionBg returns the recommended background color for selected text, using the default registry.

func SetTint ΒΆ

func SetTint(tint Tint)

SetTint sets the current tint to the provided tint, and adds it to the list of registered tints if it isn't already, using the default registry.

func SetTintID ΒΆ

func SetTintID(id string) (ok bool)

SetTintID sets the current tint to the provided tint ID, using the default registry.

func TintIDs ΒΆ

func TintIDs() (ids []string)

TintIDs returns a list of all registered tint IDs, sorted alphabetically by their ID, using the default registry.

func Unregister ΒΆ

func Unregister(tint ...Tint)

Unregister unregisters one or more provided tints, using the default registry.

func UnregisterAll ΒΆ

func UnregisterAll()

UnregisterAll unregisters all tints, using the default registry.

func UnregisterIDs ΒΆ

func UnregisterIDs(id ...string)

UnregisterIDs unregisters the tints with the provided ID(s), using the default registry.

func White ΒΆ

func White() lipgloss.TerminalColor

White returns the recommended color for white, using the default registry.

func Yellow ΒΆ

func Yellow() lipgloss.TerminalColor

Yellow returns the recommended color for yellow, using the default registry.

Types ΒΆ

type Registry ΒΆ

type Registry struct {
	// contains filtered or unexported fields
}
var DefaultRegistry *Registry

DefaultRegistry is an app-wide default registry, which can be initialized with all default tints using bubbletint.NewDefaultRegistry(). This can be overridden, though make sure to do it before your app initializes and uses the registry.

func NewRegistry ΒΆ

func NewRegistry(defaultTint Tint, tints ...Tint) *Registry

NewRegistry returns a new Registry, with the provided tints registered.

func (*Registry) About ΒΆ

func (r *Registry) About() string

About returns information about the tint (and if we have credit for who assisted with/created it).

func (*Registry) Bg ΒΆ

Bg returns the recommended default background color for this tint.

func (*Registry) Black ΒΆ

func (r *Registry) Black() lipgloss.TerminalColor

Black returns the recommended color for black.

func (*Registry) Blue ΒΆ

func (r *Registry) Blue() lipgloss.TerminalColor

Blue returns the recommended color for blue.

func (*Registry) BrightBlack ΒΆ

func (r *Registry) BrightBlack() lipgloss.TerminalColor

BrightBlack returns the recommended color for bright black.

func (*Registry) BrightBlue ΒΆ

func (r *Registry) BrightBlue() lipgloss.TerminalColor

BrightBlue returns the recommended color for bright blue.

func (*Registry) BrightCyan ΒΆ

func (r *Registry) BrightCyan() lipgloss.TerminalColor

BrightCyan returns the recommended color for bright cyan.

func (*Registry) BrightGreen ΒΆ

func (r *Registry) BrightGreen() lipgloss.TerminalColor

BrightGreen returns the recommended color for bright green.

func (*Registry) BrightPurple ΒΆ

func (r *Registry) BrightPurple() lipgloss.TerminalColor

BrightPurple returns the recommended color for bright purple.

func (*Registry) BrightRed ΒΆ

func (r *Registry) BrightRed() lipgloss.TerminalColor

BrightRed returns the recommended color for bright red.

func (*Registry) BrightWhite ΒΆ

func (r *Registry) BrightWhite() lipgloss.TerminalColor

BrightWhite returns the recommended color for bright white.

func (*Registry) BrightYellow ΒΆ

func (r *Registry) BrightYellow() lipgloss.TerminalColor

BrightYellow returns the recommended color for bright yellow.

func (*Registry) Cursor ΒΆ

func (r *Registry) Cursor() lipgloss.TerminalColor

Cursor returns the recommended color for the cursor.

func (*Registry) Cyan ΒΆ

func (r *Registry) Cyan() lipgloss.TerminalColor

Cyan returns the recommended color for cyan.

func (*Registry) DisplayName ΒΆ

func (r *Registry) DisplayName() string

DisplayName returns the display name of the tint.

func (*Registry) Fg ΒΆ

Fg returns the recommended default foreground color for this tint.

func (*Registry) GetCurrentTint ΒΆ

func (r *Registry) GetCurrentTint() (tint Tint)

GetCurrenTint returns the current tint.

func (*Registry) GetTint ΒΆ

func (r *Registry) GetTint(id string) (tint Tint, ok bool)

GetTint returns the tint with the provided ID, or nil if it doesn't exist.

func (*Registry) Green ΒΆ

func (r *Registry) Green() lipgloss.TerminalColor

Green returns the recommended color for green.

func (*Registry) ID ΒΆ

func (r *Registry) ID() (id string)

ID returns the name of the current tint (normalized, snakecase style).

func (*Registry) NextTint ΒΆ

func (r *Registry) NextTint()

NextTint sets the current tint to the next tint in the list of registered tints. If the current tint is the last tint in the list, it will pin to the last tint in the list (i.e. won't rollback to the start).

NextTint uses a sorted list of tint IDs.

func (*Registry) PreviousTint ΒΆ

func (r *Registry) PreviousTint()

PreviousTint sets the current tint to the previous tint in the list of registered tints. If the current tint is the first tint in the list, it will pin to the first tint in the list (i.e. won't rollback to the end).

PreviousTint uses a sorted list of tint IDs.

func (*Registry) Purple ΒΆ

func (r *Registry) Purple() lipgloss.TerminalColor

Purple returns the recommended color for purple.

func (*Registry) Red ΒΆ

func (r *Registry) Red() lipgloss.TerminalColor

Red returns the recommended color for red.

func (*Registry) Register ΒΆ

func (r *Registry) Register(tint ...Tint)

Register registers one or more tints within the registry. It does not change to the provided tint.

func (*Registry) SelectionBg ΒΆ

func (r *Registry) SelectionBg() lipgloss.TerminalColor

SelectionBg returns the recommended background color for selected text, using

func (*Registry) SetTint ΒΆ

func (r *Registry) SetTint(tint Tint)

SetTint sets the current tint to the provided tint, and adds it to the list of registered tints if it isn't already.

func (*Registry) SetTintID ΒΆ

func (r *Registry) SetTintID(id string) (ok bool)

SetTintID sets the current tint to the provided tint ID.

func (*Registry) TintIDs ΒΆ

func (r *Registry) TintIDs() (ids []string)

TintIDs returns a list of all registered tint IDs, sorted alphabetically by their ID.

func (*Registry) Tints ΒΆ

func (r *Registry) Tints() []Tint

Tints returns a list of all registered tints, sorted alphabetically by their ID.

func (*Registry) Unregister ΒΆ

func (r *Registry) Unregister(tint ...Tint)

Unregister unregisters one or more provided tints from the registry.

func (*Registry) UnregisterAll ΒΆ

func (r *Registry) UnregisterAll()

UnregisterAll unregisters all tints from the registry.

func (*Registry) UnregisterIDs ΒΆ

func (r *Registry) UnregisterIDs(id ...string)

UnregisterIDs unregisters the tints with the provided ID(s) from the registry.

func (*Registry) White ΒΆ

func (r *Registry) White() lipgloss.TerminalColor

White returns the recommended color for white.

func (*Registry) Yellow ΒΆ

func (r *Registry) Yellow() lipgloss.TerminalColor

Yellow returns the recommended color for yellow.

type Tint ΒΆ

type Tint interface {
	// DisplayName returns the display name of the tint.
	DisplayName() string

	// ID returns the name of the tint (normalized, snakecase style).
	ID() string

	// About returns information about the tint (and if we have credit for who
	// assisted with/created it).
	About() string

	// Fg returns the recommended default foreground color for this tint.
	Fg() lipgloss.TerminalColor

	// Bg returns the recommended default background color for this tint.
	Bg() lipgloss.TerminalColor

	// SelectionBg returns the recommended background color for selected text.
	SelectionBg() lipgloss.TerminalColor

	// Cursor returns the recommended color for the cursor.
	Cursor() lipgloss.TerminalColor

	BrightBlack() lipgloss.TerminalColor
	BrightBlue() lipgloss.TerminalColor
	BrightCyan() lipgloss.TerminalColor
	BrightGreen() lipgloss.TerminalColor
	BrightPurple() lipgloss.TerminalColor
	BrightRed() lipgloss.TerminalColor
	BrightWhite() lipgloss.TerminalColor
	BrightYellow() lipgloss.TerminalColor

	Black() lipgloss.TerminalColor
	Blue() lipgloss.TerminalColor
	Cyan() lipgloss.TerminalColor
	Green() lipgloss.TerminalColor
	Purple() lipgloss.TerminalColor
	Red() lipgloss.TerminalColor
	White() lipgloss.TerminalColor
	Yellow() lipgloss.TerminalColor
}

Tint is an interface that represents each tint in this package.

var (
	Tint3024Day                        Tint = &defaulttints.Tint3024Day{}
	Tint3024Night                      Tint = &defaulttints.Tint3024Night{}
	TintAdventure                      Tint = &defaulttints.TintAdventure{}
	TintAdventureTime                  Tint = &defaulttints.TintAdventureTime{}
	TintAfterglow                      Tint = &defaulttints.TintAfterglow{}
	TintAlienBlood                     Tint = &defaulttints.TintAlienBlood{}
	TintAndromeda                      Tint = &defaulttints.TintAndromeda{}
	TintArgonaut                       Tint = &defaulttints.TintArgonaut{}
	TintArthur                         Tint = &defaulttints.TintArthur{}
	TintAtelierSulphurpool             Tint = &defaulttints.TintAtelierSulphurpool{}
	TintAtom                           Tint = &defaulttints.TintAtom{}
	TintAtomOneLight                   Tint = &defaulttints.TintAtomOneLight{}
	TintAurora                         Tint = &defaulttints.TintAurora{}
	TintBananaBlueberry                Tint = &defaulttints.TintBananaBlueberry{}
	TintBatman                         Tint = &defaulttints.TintBatman{}
	TintBelafonteDay                   Tint = &defaulttints.TintBelafonteDay{}
	TintBelafonteNight                 Tint = &defaulttints.TintBelafonteNight{}
	TintBirdsOfParadise                Tint = &defaulttints.TintBirdsOfParadise{}
	TintBlazer                         Tint = &defaulttints.TintBlazer{}
	TintBlueMatrix                     Tint = &defaulttints.TintBlueMatrix{}
	TintBlueBerryPie                   Tint = &defaulttints.TintBlueBerryPie{}
	TintBlulocoDark                    Tint = &defaulttints.TintBlulocoDark{}
	TintBlulocoLight                   Tint = &defaulttints.TintBlulocoLight{}
	TintBorland                        Tint = &defaulttints.TintBorland{}
	TintBreeze                         Tint = &defaulttints.TintBreeze{}
	TintBrightLights                   Tint = &defaulttints.TintBrightLights{}
	TintBroadcast                      Tint = &defaulttints.TintBroadcast{}
	TintBrogrammer                     Tint = &defaulttints.TintBrogrammer{}
	TintBubbles                        Tint = &defaulttints.TintBubbles{}
	TintBuiltinDark                    Tint = &defaulttints.TintBuiltinDark{}
	TintBuiltinLight                   Tint = &defaulttints.TintBuiltinLight{}
	TintBuiltinPastelDark              Tint = &defaulttints.TintBuiltinPastelDark{}
	TintBuiltinSolarizedDark           Tint = &defaulttints.TintBuiltinSolarizedDark{}
	TintBuiltinSolarizedLight          Tint = &defaulttints.TintBuiltinSolarizedLight{}
	TintBuiltinTangoDark               Tint = &defaulttints.TintBuiltinTangoDark{}
	TintBuiltinTangoLight              Tint = &defaulttints.TintBuiltinTangoLight{}
	TintC64                            Tint = &defaulttints.TintC64{}
	TintCLRS                           Tint = &defaulttints.TintCLRS{}
	TintCalamity                       Tint = &defaulttints.TintCalamity{}
	TintCatppuccinFrappe               Tint = &defaulttints.TintCatppuccinFrappe{}
	TintCatppuccinLatte                Tint = &defaulttints.TintCatppuccinLatte{}
	TintCatppuccinMacchiato            Tint = &defaulttints.TintCatppuccinMacchiato{}
	TintCatppuccinMocha                Tint = &defaulttints.TintCatppuccinMocha{}
	TintChalk                          Tint = &defaulttints.TintChalk{}
	TintChalkboard                     Tint = &defaulttints.TintChalkboard{}
	TintChallengerDeep                 Tint = &defaulttints.TintChallengerDeep{}
	TintChester                        Tint = &defaulttints.TintChester{}
	TintCiapre                         Tint = &defaulttints.TintCiapre{}
	TintCobaltNeon                     Tint = &defaulttints.TintCobaltNeon{}
	TintCobalt2                        Tint = &defaulttints.TintCobalt2{}
	TintContrastLight                  Tint = &defaulttints.TintContrastLight{}
	TintCrayonPonyFish                 Tint = &defaulttints.TintCrayonPonyFish{}
	TintCrystalViolet                  Tint = &defaulttints.TintCrystalViolet{}
	TintCyberCube                      Tint = &defaulttints.TintCyberCube{}
	TintCyberPunk2077                  Tint = &defaulttints.TintCyberPunk2077{}
	TintCyberdyne                      Tint = &defaulttints.TintCyberdyne{}
	TintDarkPastel                     Tint = &defaulttints.TintDarkPastel{}
	TintDarkPlus                       Tint = &defaulttints.TintDarkPlus{}
	TintDarkside                       Tint = &defaulttints.TintDarkside{}
	TintDesert                         Tint = &defaulttints.TintDesert{}
	TintDimmedMonokai                  Tint = &defaulttints.TintDimmedMonokai{}
	TintDjango                         Tint = &defaulttints.TintDjango{}
	TintDjangoRebornAgain              Tint = &defaulttints.TintDjangoRebornAgain{}
	TintDjangoSmooth                   Tint = &defaulttints.TintDjangoSmooth{}
	TintDoomPeacock                    Tint = &defaulttints.TintDoomPeacock{}
	TintDoomOne                        Tint = &defaulttints.TintDoomOne{}
	TintDotGov                         Tint = &defaulttints.TintDotGov{}
	TintDracula                        Tint = &defaulttints.TintDracula{}
	TintDraculaPlus                    Tint = &defaulttints.TintDraculaPlus{}
	TintDuotoneDark                    Tint = &defaulttints.TintDuotoneDark{}
	TintENCOM                          Tint = &defaulttints.TintENCOM{}
	TintEarthsong                      Tint = &defaulttints.TintEarthsong{}
	TintElemental                      Tint = &defaulttints.TintElemental{}
	TintElementary                     Tint = &defaulttints.TintElementary{}
	TintEspresso                       Tint = &defaulttints.TintEspresso{}
	TintEspressoLibre                  Tint = &defaulttints.TintEspressoLibre{}
	TintFahrenheit                     Tint = &defaulttints.TintFahrenheit{}
	TintFideloper                      Tint = &defaulttints.TintFideloper{}
	TintFirefoxDev                     Tint = &defaulttints.TintFirefoxDev{}
	TintFirewatch                      Tint = &defaulttints.TintFirewatch{}
	TintFishTank                       Tint = &defaulttints.TintFishTank{}
	TintFlat                           Tint = &defaulttints.TintFlat{}
	TintFlatland                       Tint = &defaulttints.TintFlatland{}
	TintFloraverse                     Tint = &defaulttints.TintFloraverse{}
	TintForestBlue                     Tint = &defaulttints.TintForestBlue{}
	TintFramer                         Tint = &defaulttints.TintFramer{}
	TintFrontEndDelight                Tint = &defaulttints.TintFrontEndDelight{}
	TintFunForrest                     Tint = &defaulttints.TintFunForrest{}
	TintGalaxy                         Tint = &defaulttints.TintGalaxy{}
	TintGalizur                        Tint = &defaulttints.TintGalizur{}
	TintGanyu                          Tint = &defaulttints.TintGanyu{}
	TintGithub                         Tint = &defaulttints.TintGithub{}
	TintGlacier                        Tint = &defaulttints.TintGlacier{}
	TintGlorious                       Tint = &defaulttints.TintGlorious{}
	TintGrape                          Tint = &defaulttints.TintGrape{}
	TintGrass                          Tint = &defaulttints.TintGrass{}
	TintGruvboxDark                    Tint = &defaulttints.TintGruvboxDark{}
	TintGruvboxLight                   Tint = &defaulttints.TintGruvboxLight{}
	TintGuezwhoz                       Tint = &defaulttints.TintGuezwhoz{}
	TintHacktober                      Tint = &defaulttints.TintHacktober{}
	TintHardcore                       Tint = &defaulttints.TintHardcore{}
	TintHarper                         Tint = &defaulttints.TintHarper{}
	TintHighway                        Tint = &defaulttints.TintHighway{}
	TintHipsterGreen                   Tint = &defaulttints.TintHipsterGreen{}
	TintHivacruz                       Tint = &defaulttints.TintHivacruz{}
	TintHomebrew                       Tint = &defaulttints.TintHomebrew{}
	TintHopscotch                      Tint = &defaulttints.TintHopscotch{}
	TintHopscotch256                   Tint = &defaulttints.TintHopscotch256{}
	TintHorizon                        Tint = &defaulttints.TintHorizon{}
	TintHurtado                        Tint = &defaulttints.TintHurtado{}
	TintHybrid                         Tint = &defaulttints.TintHybrid{}
	TintHyper                          Tint = &defaulttints.TintHyper{}
	TintICGreenPPL                     Tint = &defaulttints.TintICGreenPPL{}
	TintICOrangePPL                    Tint = &defaulttints.TintICOrangePPL{}
	TintIRBlack                        Tint = &defaulttints.TintIRBlack{}
	TintJackieBrown                    Tint = &defaulttints.TintJackieBrown{}
	TintJapanesque                     Tint = &defaulttints.TintJapanesque{}
	TintJellybeans                     Tint = &defaulttints.TintJellybeans{}
	TintJetBrainsDarcula               Tint = &defaulttints.TintJetBrainsDarcula{}
	TintJuicyColors                    Tint = &defaulttints.TintJuicyColors{}
	TintKibble                         Tint = &defaulttints.TintKibble{}
	TintKolorit                        Tint = &defaulttints.TintKolorit{}
	TintKonsolas                       Tint = &defaulttints.TintKonsolas{}
	TintLabFox                         Tint = &defaulttints.TintLabFox{}
	TintLaser                          Tint = &defaulttints.TintLaser{}
	TintLaterThisEvening               Tint = &defaulttints.TintLaterThisEvening{}
	TintLavandula                      Tint = &defaulttints.TintLavandula{}
	TintLiquidCarbon                   Tint = &defaulttints.TintLiquidCarbon{}
	TintLiquidCarbonTransparent        Tint = &defaulttints.TintLiquidCarbonTransparent{}
	TintLiquidCarbonTransparentInverse Tint = &defaulttints.TintLiquidCarbonTransparentInverse{}
	TintManPage                        Tint = &defaulttints.TintManPage{}
	TintMaterial                       Tint = &defaulttints.TintMaterial{}
	TintMaterialDark                   Tint = &defaulttints.TintMaterialDark{}
	TintMaterialDarker                 Tint = &defaulttints.TintMaterialDarker{}
	TintMaterialOcean                  Tint = &defaulttints.TintMaterialOcean{}
	TintMathias                        Tint = &defaulttints.TintMathias{}
	TintMedallion                      Tint = &defaulttints.TintMedallion{}
	TintMirage                         Tint = &defaulttints.TintMirage{}
	TintMisterioso                     Tint = &defaulttints.TintMisterioso{}
	TintMolokai                        Tint = &defaulttints.TintMolokai{}
	TintMonaLisa                       Tint = &defaulttints.TintMonaLisa{}
	TintMonokaiCmder                   Tint = &defaulttints.TintMonokaiCmder{}
	TintMonokaiOctagon                 Tint = &defaulttints.TintMonokaiOctagon{}
	TintMonokaiPro                     Tint = &defaulttints.TintMonokaiPro{}
	TintMonokaiProFilterOctagon        Tint = &defaulttints.TintMonokaiProFilterOctagon{}
	TintMonokaiProFilterRistretto      Tint = &defaulttints.TintMonokaiProFilterRistretto{}
	TintMonokaiRemastered              Tint = &defaulttints.TintMonokaiRemastered{}
	TintMonokaiSoda                    Tint = &defaulttints.TintMonokaiSoda{}
	TintMonokaiVivid                   Tint = &defaulttints.TintMonokaiVivid{}
	TintMoonlightII                    Tint = &defaulttints.TintMoonlightII{}
	TintN0Tch2K                        Tint = &defaulttints.TintN0Tch2K{}
	TintNeopolitan                     Tint = &defaulttints.TintNeopolitan{}
	TintNeutron                        Tint = &defaulttints.TintNeutron{}
	TintNightOwlishLight               Tint = &defaulttints.TintNightOwlishLight{}
	TintNightLionV1                    Tint = &defaulttints.TintNightLionV1{}
	TintNightLionV2                    Tint = &defaulttints.TintNightLionV2{}
	TintNocturnalWinter                Tint = &defaulttints.TintNocturnalWinter{}
	TintNovel                          Tint = &defaulttints.TintNovel{}
	TintObsidian                       Tint = &defaulttints.TintObsidian{}
	TintOcean                          Tint = &defaulttints.TintOcean{}
	TintOceanicMaterial                Tint = &defaulttints.TintOceanicMaterial{}
	TintOllie                          Tint = &defaulttints.TintOllie{}
	TintOneDark                        Tint = &defaulttints.TintOneDark{}
	TintOneHalfDark                    Tint = &defaulttints.TintOneHalfDark{}
	TintOneHalfLight                   Tint = &defaulttints.TintOneHalfLight{}
	TintOneStar                        Tint = &defaulttints.TintOneStar{}
	TintOperatorMonoDark               Tint = &defaulttints.TintOperatorMonoDark{}
	TintOvernightSlumber               Tint = &defaulttints.TintOvernightSlumber{}
	TintPaleNightHC                    Tint = &defaulttints.TintPaleNightHC{}
	TintPandora                        Tint = &defaulttints.TintPandora{}
	TintParaisoDark                    Tint = &defaulttints.TintParaisoDark{}
	TintParasioDark                    Tint = &defaulttints.TintParasioDark{}
	TintPaulMillr                      Tint = &defaulttints.TintPaulMillr{}
	TintPencilDark                     Tint = &defaulttints.TintPencilDark{}
	TintPencilLight                    Tint = &defaulttints.TintPencilLight{}
	TintPiattoLight                    Tint = &defaulttints.TintPiattoLight{}
	TintPnevma                         Tint = &defaulttints.TintPnevma{}
	TintPoppingAndLocking              Tint = &defaulttints.TintPoppingAndLocking{}
	TintPrimer                         Tint = &defaulttints.TintPrimer{}
	TintPro                            Tint = &defaulttints.TintPro{}
	TintProLight                       Tint = &defaulttints.TintProLight{}
	TintPurpleRain                     Tint = &defaulttints.TintPurpleRain{}
	TintQB64SuperDarkBlue              Tint = &defaulttints.TintQB64SuperDarkBlue{}
	TintRapture                        Tint = &defaulttints.TintRapture{}
	TintRedAlert                       Tint = &defaulttints.TintRedAlert{}
	TintRedPlanet                      Tint = &defaulttints.TintRedPlanet{}
	TintRedSands                       Tint = &defaulttints.TintRedSands{}
	TintRelaxed                        Tint = &defaulttints.TintRelaxed{}
	TintRetrowave                      Tint = &defaulttints.TintRetrowave{}
	TintRippedcasts                    Tint = &defaulttints.TintRippedcasts{}
	TintRosePine                       Tint = &defaulttints.TintRosePine{}
	TintRouge2                         Tint = &defaulttints.TintRouge2{}
	TintRoyal                          Tint = &defaulttints.TintRoyal{}
	TintRyuuko                         Tint = &defaulttints.TintRyuuko{}
	TintSakura                         Tint = &defaulttints.TintSakura{}
	TintScarletProtocol                Tint = &defaulttints.TintScarletProtocol{}
	TintSeaShells                      Tint = &defaulttints.TintSeaShells{}
	TintSeafoamPastel                  Tint = &defaulttints.TintSeafoamPastel{}
	TintSerendipityMidnight            Tint = &defaulttints.TintSerendipityMidnight{}
	TintSerendipityMorning             Tint = &defaulttints.TintSerendipityMorning{}
	TintSerendipitySunset              Tint = &defaulttints.TintSerendipitySunset{}
	TintSeti                           Tint = &defaulttints.TintSeti{}
	TintShaman                         Tint = &defaulttints.TintShaman{}
	TintSlate                          Tint = &defaulttints.TintSlate{}
	TintSleepyHollow                   Tint = &defaulttints.TintSleepyHollow{}
	TintSmyck                          Tint = &defaulttints.TintSmyck{}
	TintSnazzy                         Tint = &defaulttints.TintSnazzy{}
	TintSoftServer                     Tint = &defaulttints.TintSoftServer{}
	TintSolarizedDarcula               Tint = &defaulttints.TintSolarizedDarcula{}
	TintSolarizedDarkPatched           Tint = &defaulttints.TintSolarizedDarkPatched{}
	TintSolarizedDarkHigherContrast    Tint = &defaulttints.TintSolarizedDarkHigherContrast{}
	TintSonoranGothic                  Tint = &defaulttints.TintSonoranGothic{}
	TintSonoranSunrise                 Tint = &defaulttints.TintSonoranSunrise{}
	TintSpaceGray                      Tint = &defaulttints.TintSpaceGray{}
	TintSpaceGrayEighties              Tint = &defaulttints.TintSpaceGrayEighties{}
	TintSpaceGrayEightiesDull          Tint = &defaulttints.TintSpaceGrayEightiesDull{}
	TintSpacedust                      Tint = &defaulttints.TintSpacedust{}
	TintSpiderman                      Tint = &defaulttints.TintSpiderman{}
	TintSpring                         Tint = &defaulttints.TintSpring{}
	TintSquare                         Tint = &defaulttints.TintSquare{}
	TintSublette                       Tint = &defaulttints.TintSublette{}
	TintSubliminal                     Tint = &defaulttints.TintSubliminal{}
	TintSundried                       Tint = &defaulttints.TintSundried{}
	TintSymfonic                       Tint = &defaulttints.TintSymfonic{}
	TintTangoAdapted                   Tint = &defaulttints.TintTangoAdapted{}
	TintTangoHalfAdapted               Tint = &defaulttints.TintTangoHalfAdapted{}
	TintTeerb                          Tint = &defaulttints.TintTeerb{}
	TintTerminalBasic                  Tint = &defaulttints.TintTerminalBasic{}
	TintThayerBright                   Tint = &defaulttints.TintThayerBright{}
	TintTheHulk                        Tint = &defaulttints.TintTheHulk{}
	TintTinaciousDesignDark            Tint = &defaulttints.TintTinaciousDesignDark{}
	TintTinaciousDesignLight           Tint = &defaulttints.TintTinaciousDesignLight{}
	TintTokyoNight                     Tint = &defaulttints.TintTokyoNight{}
	TintTokyoNightLight                Tint = &defaulttints.TintTokyoNightLight{}
	TintTokyoNightStorm                Tint = &defaulttints.TintTokyoNightStorm{}
	TintTomorrow                       Tint = &defaulttints.TintTomorrow{}
	TintTomorrowNight                  Tint = &defaulttints.TintTomorrowNight{}
	TintTomorrowNightBlue              Tint = &defaulttints.TintTomorrowNightBlue{}
	TintTomorrowNightBright            Tint = &defaulttints.TintTomorrowNightBright{}
	TintTomorrowNightBurns             Tint = &defaulttints.TintTomorrowNightBurns{}
	TintTomorrowNightEighties          Tint = &defaulttints.TintTomorrowNightEighties{}
	TintToyChest                       Tint = &defaulttints.TintToyChest{}
	TintTreehouse                      Tint = &defaulttints.TintTreehouse{}
	TintTwilight                       Tint = &defaulttints.TintTwilight{}
	TintUbuntu                         Tint = &defaulttints.TintUbuntu{}
	TintUltraViolent                   Tint = &defaulttints.TintUltraViolent{}
	TintUnderTheSea                    Tint = &defaulttints.TintUnderTheSea{}
	TintUnholy                         Tint = &defaulttints.TintUnholy{}
	TintUnikitty                       Tint = &defaulttints.TintUnikitty{}
	TintUrple                          Tint = &defaulttints.TintUrple{}
	TintVaughn                         Tint = &defaulttints.TintVaughn{}
	TintVibrantInk                     Tint = &defaulttints.TintVibrantInk{}
	TintVioletDark                     Tint = &defaulttints.TintVioletDark{}
	TintVioletLight                    Tint = &defaulttints.TintVioletLight{}
	TintWarmNeon                       Tint = &defaulttints.TintWarmNeon{}
	TintWez                            Tint = &defaulttints.TintWez{}
	TintWhimsy                         Tint = &defaulttints.TintWhimsy{}
	TintWildCherry                     Tint = &defaulttints.TintWildCherry{}
	TintWombat                         Tint = &defaulttints.TintWombat{}
	TintWryan                          Tint = &defaulttints.TintWryan{}
	TintZenburn                        Tint = &defaulttints.TintZenburn{}
	TintZeonica                        Tint = &defaulttints.TintZeonica{}
	TintAyu                            Tint = &defaulttints.TintAyu{}
	TintAyuLight                       Tint = &defaulttints.TintAyuLight{}
	TintCoffeeTheme                    Tint = &defaulttints.TintCoffeeTheme{}
	TintCoolnight                      Tint = &defaulttints.TintCoolnight{}
	TintCyberpunk                      Tint = &defaulttints.TintCyberpunk{}
	TintDeep                           Tint = &defaulttints.TintDeep{}
	TintH4Rithd                        Tint = &defaulttints.TintH4Rithd{}
	TintH4RithdCom                     Tint = &defaulttints.TintH4RithdCom{}
	TintIdea                           Tint = &defaulttints.TintIdea{}
	TintIdleToes                       Tint = &defaulttints.TintIdleToes{}
	TintJubi                           Tint = &defaulttints.TintJubi{}
	TintLovelace                       Tint = &defaulttints.TintLovelace{}
	TintMidnightInMojave               Tint = &defaulttints.TintMidnightInMojave{}
	TintNord                           Tint = &defaulttints.TintNord{}
	TintPrimary                        Tint = &defaulttints.TintPrimary{}
	TintPurplepeter                    Tint = &defaulttints.TintPurplepeter{}
	TintRebecca                        Tint = &defaulttints.TintRebecca{}
	TintShadesOfPurple                 Tint = &defaulttints.TintShadesOfPurple{}
	TintSynthwave                      Tint = &defaulttints.TintSynthwave{}
	TintSynthwaveEverything            Tint = &defaulttints.TintSynthwaveEverything{}
)

func DefaultTints ΒΆ

func DefaultTints() []Tint

func GetCurrentTint ΒΆ

func GetCurrentTint() (tint Tint)

GetCurrenTint returns the current tint, using the default registry.

func GetTint ΒΆ

func GetTint(id string) (tint Tint, ok bool)

GetTint returns the tint with the provided ID, or nil if it doesn't exist, using the default registry.

func Tints ΒΆ

func Tints() []Tint

Tints returns a list of all registered tints, sorted alphabetically by their ID, using the default registry.

Directories ΒΆ

Path Synopsis
cmd
examples module

Jump to

Keyboard shortcuts

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