windy

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 2 Imported by: 4 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Windy

Tailwind CSS color definitions for your Go applications.

Screenshot 2026-02-28 at 23 53 24

With support for Tailwind V3 and V4 colors, Windy makes it easy to choose your palette.

[!NOTE] You can use both V3 and V4 colors directly in your full color terminal apps. Windy derives its colors directly from tailwindcss/colors and provides convenient format conversions.

Windy ❤ Lip Gloss

style := lipgloss.NewStyle().Foreground(windy.Rose500.Glossy()).Bold(true)

fmt.Println(style.Render("It's like Windy is made for Lip Gloss"))

[!IMPORTANT] When using V4 colors with Lip Gloss, oklch colors are converted to their closest hex counterpart.

Preview Windy

See how all the colors will look in your own terminal:

go run github.com/connordoman/windy/preview@latest

Installation

go get github.com/connordoman/windy

Tailwind V4

Screenshot 2026-03-01 at 00 33 13

Since Windy is just a registry of strings, you can retrieve Tailind V4 colors exactly as they're used on the frontend. If your context doesn't support oklch, all V4 colors support best-match conversion to hex colors. All you have to do is import windy4:

import "github.com/connordoman/windy/windy4"

mauve500 := windy4.Mauve500 // oklch(54.2% 0.034 322.5)

style := lipgloss.NewStyle().Background(
          mauve500.Glossy() // lipgloss.Color("#79697b")
        )

When using V4 colors with Lip Gloss (or converting to hex in general) there are 57 colors that overlap exactly between V3 and V4:

Screenshot 2026-03-01 at 00 55 19

Windy is not affiliated with or endorsed by Tailwind Labs.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var V3Colors = []TailwindColor{}/* 242 elements not displayed */

V3Colors is a slice of all Tailwind V3 colors.

V3Families is a slice of all Tailwind V3 family names.

Functions

func ForEachShadeByFamily

func ForEachShadeByFamily(fn func(family TailwindFamily, color TailwindColor, shade string))

ForEachShadeByFamily iterates over each shade of each family and calls the provided function.

Types

type TailwindColor

type TailwindColor string

TailwindColor is a type that represents a Tailwind V3 color (RGB hexadecimal string).

const (
	Slate50  TailwindColor = "#f8fafc"
	Slate100 TailwindColor = "#f1f5f9"
	Slate200 TailwindColor = "#e2e8f0"
	Slate300 TailwindColor = "#cbd5e1"
	Slate400 TailwindColor = "#94a3b8"
	Slate500 TailwindColor = "#64748b"
	Slate600 TailwindColor = "#475569"
	Slate700 TailwindColor = "#334155"
	Slate800 TailwindColor = "#1e293b"
	Slate900 TailwindColor = "#0f172a"
	Slate950 TailwindColor = "#020617"

	Gray50  TailwindColor = "#f9fafb"
	Gray100 TailwindColor = "#f3f4f6"
	Gray200 TailwindColor = "#e5e7eb"
	Gray300 TailwindColor = "#d1d5db"
	Gray400 TailwindColor = "#9ca3af"
	Gray500 TailwindColor = "#6b7280"
	Gray600 TailwindColor = "#4b5563"
	Gray700 TailwindColor = "#374151"
	Gray800 TailwindColor = "#1f2937"
	Gray900 TailwindColor = "#111827"
	Gray950 TailwindColor = "#030712"

	Zinc50  TailwindColor = "#fafafa"
	Zinc100 TailwindColor = "#f4f4f5"
	Zinc200 TailwindColor = "#e4e4e7"
	Zinc300 TailwindColor = "#d4d4d8"
	Zinc400 TailwindColor = "#a1a1aa"
	Zinc500 TailwindColor = "#71717a"
	Zinc600 TailwindColor = "#52525b"
	Zinc700 TailwindColor = "#3f3f46"
	Zinc800 TailwindColor = "#27272a"
	Zinc900 TailwindColor = "#18181b"
	Zinc950 TailwindColor = "#09090b"

	Neutral50  TailwindColor = "#fafafa"
	Neutral100 TailwindColor = "#f5f5f5"
	Neutral200 TailwindColor = "#e5e5e5"
	Neutral300 TailwindColor = "#d4d4d4"
	Neutral400 TailwindColor = "#a3a3a3"
	Neutral500 TailwindColor = "#737373"
	Neutral600 TailwindColor = "#525252"
	Neutral700 TailwindColor = "#404040"
	Neutral800 TailwindColor = "#262626"
	Neutral900 TailwindColor = "#171717"
	Neutral950 TailwindColor = "#0a0a0a"

	Stone50  TailwindColor = "#fafaf9"
	Stone100 TailwindColor = "#f5f5f4"
	Stone200 TailwindColor = "#e7e5e4"
	Stone300 TailwindColor = "#d6d3d1"
	Stone400 TailwindColor = "#a8a29e"
	Stone500 TailwindColor = "#78716c"
	Stone600 TailwindColor = "#57534e"
	Stone700 TailwindColor = "#44403c"
	Stone800 TailwindColor = "#292524"
	Stone900 TailwindColor = "#1c1917"
	Stone950 TailwindColor = "#0c0a09"

	Red50  TailwindColor = "#fef2f2"
	Red100 TailwindColor = "#fee2e2"
	Red200 TailwindColor = "#fecaca"
	Red300 TailwindColor = "#fca5a5"
	Red400 TailwindColor = "#f87171"
	Red500 TailwindColor = "#ef4444"
	Red600 TailwindColor = "#dc2626"
	Red700 TailwindColor = "#b91c1c"
	Red800 TailwindColor = "#991b1b"
	Red900 TailwindColor = "#7f1d1d"
	Red950 TailwindColor = "#450a0a"

	Orange50  TailwindColor = "#fff7ed"
	Orange100 TailwindColor = "#ffedd5"
	Orange200 TailwindColor = "#fed7aa"
	Orange300 TailwindColor = "#fdba74"
	Orange400 TailwindColor = "#fb923c"
	Orange500 TailwindColor = "#f97316"
	Orange600 TailwindColor = "#ea580c"
	Orange700 TailwindColor = "#c2410c"
	Orange800 TailwindColor = "#9a3412"
	Orange900 TailwindColor = "#7c2d12"
	Orange950 TailwindColor = "#431407"

	Amber50  TailwindColor = "#fffbeb"
	Amber100 TailwindColor = "#fef3c7"
	Amber200 TailwindColor = "#fde68a"
	Amber300 TailwindColor = "#fcd34d"
	Amber400 TailwindColor = "#fbbf24"
	Amber500 TailwindColor = "#f59e0b"
	Amber600 TailwindColor = "#d97706"
	Amber700 TailwindColor = "#b45309"
	Amber800 TailwindColor = "#92400e"
	Amber900 TailwindColor = "#78350f"
	Amber950 TailwindColor = "#451a03"

	Yellow50  TailwindColor = "#fefce8"
	Yellow100 TailwindColor = "#fef9c3"
	Yellow200 TailwindColor = "#fef08a"
	Yellow300 TailwindColor = "#fde047"
	Yellow400 TailwindColor = "#facc15"
	Yellow500 TailwindColor = "#eab308"
	Yellow600 TailwindColor = "#ca8a04"
	Yellow700 TailwindColor = "#a16207"
	Yellow800 TailwindColor = "#854d0e"
	Yellow900 TailwindColor = "#713f12"
	Yellow950 TailwindColor = "#422006"

	Lime50  TailwindColor = "#f7fee7"
	Lime100 TailwindColor = "#ecfccb"
	Lime200 TailwindColor = "#d9f99d"
	Lime300 TailwindColor = "#bef264"
	Lime400 TailwindColor = "#a3e635"
	Lime500 TailwindColor = "#84cc16"
	Lime600 TailwindColor = "#65a30d"
	Lime700 TailwindColor = "#4d7c0f"
	Lime800 TailwindColor = "#3f6212"
	Lime900 TailwindColor = "#365314"
	Lime950 TailwindColor = "#1a2e05"

	Green50  TailwindColor = "#f0fdf4"
	Green100 TailwindColor = "#dcfce7"
	Green200 TailwindColor = "#bbf7d0"
	Green300 TailwindColor = "#86efac"
	Green400 TailwindColor = "#4ade80"
	Green500 TailwindColor = "#22c55e"
	Green600 TailwindColor = "#16a34a"
	Green700 TailwindColor = "#15803d"
	Green800 TailwindColor = "#166534"
	Green900 TailwindColor = "#14532d"
	Green950 TailwindColor = "#052e16"

	Emerald50  TailwindColor = "#ecfdf5"
	Emerald100 TailwindColor = "#d1fae5"
	Emerald200 TailwindColor = "#a7f3d0"
	Emerald300 TailwindColor = "#6ee7b7"
	Emerald400 TailwindColor = "#34d399"
	Emerald500 TailwindColor = "#10b981"
	Emerald600 TailwindColor = "#059669"
	Emerald700 TailwindColor = "#047857"
	Emerald800 TailwindColor = "#065f46"
	Emerald900 TailwindColor = "#064e3b"
	Emerald950 TailwindColor = "#022c22"

	Teal50  TailwindColor = "#f0fdfa"
	Teal100 TailwindColor = "#ccfbf1"
	Teal200 TailwindColor = "#99f6e4"
	Teal300 TailwindColor = "#5eead4"
	Teal400 TailwindColor = "#2dd4bf"
	Teal500 TailwindColor = "#14b8a6"
	Teal600 TailwindColor = "#0d9488"
	Teal700 TailwindColor = "#0f766e"
	Teal800 TailwindColor = "#115e59"
	Teal900 TailwindColor = "#134e4a"
	Teal950 TailwindColor = "#042f2e"

	Cyan50  TailwindColor = "#ecfeff"
	Cyan100 TailwindColor = "#cffafe"
	Cyan200 TailwindColor = "#a5f3fc"
	Cyan300 TailwindColor = "#67e8f9"
	Cyan400 TailwindColor = "#22d3ee"
	Cyan500 TailwindColor = "#06b6d4"
	Cyan600 TailwindColor = "#0891b2"
	Cyan700 TailwindColor = "#0e7490"
	Cyan800 TailwindColor = "#155e75"
	Cyan900 TailwindColor = "#164e63"
	Cyan950 TailwindColor = "#083344"

	Sky50  TailwindColor = "#f0f9ff"
	Sky100 TailwindColor = "#e0f2fe"
	Sky200 TailwindColor = "#bae6fd"
	Sky300 TailwindColor = "#7dd3fc"
	Sky400 TailwindColor = "#38bdf8"
	Sky500 TailwindColor = "#0ea5e9"
	Sky600 TailwindColor = "#0284c7"
	Sky700 TailwindColor = "#0369a1"
	Sky800 TailwindColor = "#075985"
	Sky900 TailwindColor = "#0c4a6e"
	Sky950 TailwindColor = "#082f49"

	Blue50  TailwindColor = "#eff6ff"
	Blue100 TailwindColor = "#dbeafe"
	Blue200 TailwindColor = "#bfdbfe"
	Blue300 TailwindColor = "#93c5fd"
	Blue400 TailwindColor = "#60a5fa"
	Blue500 TailwindColor = "#3b82f6"
	Blue600 TailwindColor = "#2563eb"
	Blue700 TailwindColor = "#1d4ed8"
	Blue800 TailwindColor = "#1e40af"
	Blue900 TailwindColor = "#1e3a8a"
	Blue950 TailwindColor = "#172554"

	Indigo50  TailwindColor = "#eef2ff"
	Indigo100 TailwindColor = "#e0e7ff"
	Indigo200 TailwindColor = "#c7d2fe"
	Indigo300 TailwindColor = "#a5b4fc"
	Indigo400 TailwindColor = "#818cf8"
	Indigo500 TailwindColor = "#6366f1"
	Indigo600 TailwindColor = "#4f46e5"
	Indigo700 TailwindColor = "#4338ca"
	Indigo800 TailwindColor = "#3730a3"
	Indigo900 TailwindColor = "#312e81"
	Indigo950 TailwindColor = "#1e1b4b"

	Violet50  TailwindColor = "#f5f3ff"
	Violet100 TailwindColor = "#ede9fe"
	Violet200 TailwindColor = "#ddd6fe"
	Violet300 TailwindColor = "#c4b5fd"
	Violet400 TailwindColor = "#a78bfa"
	Violet500 TailwindColor = "#8b5cf6"
	Violet600 TailwindColor = "#7c3aed"
	Violet700 TailwindColor = "#6d28d9"
	Violet800 TailwindColor = "#5b21b6"
	Violet900 TailwindColor = "#4c1d95"
	Violet950 TailwindColor = "#2e1065"

	Purple50  TailwindColor = "#faf5ff"
	Purple100 TailwindColor = "#f3e8ff"
	Purple200 TailwindColor = "#e9d5ff"
	Purple300 TailwindColor = "#d8b4fe"
	Purple400 TailwindColor = "#c084fc"
	Purple500 TailwindColor = "#a855f7"
	Purple600 TailwindColor = "#9333ea"
	Purple700 TailwindColor = "#7e22ce"
	Purple800 TailwindColor = "#6b21a8"
	Purple900 TailwindColor = "#581c87"
	Purple950 TailwindColor = "#3b0764"

	Fuchsia50  TailwindColor = "#fdf4ff"
	Fuchsia100 TailwindColor = "#fae8ff"
	Fuchsia200 TailwindColor = "#f5d0fe"
	Fuchsia300 TailwindColor = "#f0abfc"
	Fuchsia400 TailwindColor = "#e879f9"
	Fuchsia500 TailwindColor = "#d946ef"
	Fuchsia600 TailwindColor = "#c026d3"
	Fuchsia700 TailwindColor = "#a21caf"
	Fuchsia800 TailwindColor = "#86198f"
	Fuchsia900 TailwindColor = "#701a75"
	Fuchsia950 TailwindColor = "#4a044e"

	Pink50  TailwindColor = "#fdf2f8"
	Pink100 TailwindColor = "#fce7f3"
	Pink200 TailwindColor = "#fbcfe8"
	Pink300 TailwindColor = "#f9a8d4"
	Pink400 TailwindColor = "#f472b6"
	Pink500 TailwindColor = "#ec4899"
	Pink600 TailwindColor = "#db2777"
	Pink700 TailwindColor = "#be185d"
	Pink800 TailwindColor = "#9d174d"
	Pink900 TailwindColor = "#831843"
	Pink950 TailwindColor = "#500724"

	Rose50  TailwindColor = "#fff1f2"
	Rose100 TailwindColor = "#ffe4e6"
	Rose200 TailwindColor = "#fecdd3"
	Rose300 TailwindColor = "#fda4af"
	Rose400 TailwindColor = "#fb7185"
	Rose500 TailwindColor = "#f43f5e"
	Rose600 TailwindColor = "#e11d48"
	Rose700 TailwindColor = "#be123c"
	Rose800 TailwindColor = "#9f1239"
	Rose900 TailwindColor = "#881337"
	Rose950 TailwindColor = "#4c0519"
)

func (TailwindColor) Glossy

func (c TailwindColor) Glossy() lipgloss.Color

Glossy converts a Tailwind V3 color to a lipgloss.Color.

func (TailwindColor) String

func (c TailwindColor) String() string

type TailwindFamily

type TailwindFamily string

TailwindFamily is a type that represents a Tailwind V3 family (e.g. Slate, Gray, etc.).

const (
	Slate   TailwindFamily = "Slate"
	Gray    TailwindFamily = "Gray"
	Zinc    TailwindFamily = "Zinc"
	Neutral TailwindFamily = "Neutral"
	Stone   TailwindFamily = "Stone"
	Red     TailwindFamily = "Red"
	Orange  TailwindFamily = "Orange"
	Amber   TailwindFamily = "Amber"
	Yellow  TailwindFamily = "Yellow"
	Lime    TailwindFamily = "Lime"
	Green   TailwindFamily = "Green"
	Emerald TailwindFamily = "Emerald"
	Teal    TailwindFamily = "Teal"
	Cyan    TailwindFamily = "Cyan"
	Sky     TailwindFamily = "Sky"
	Blue    TailwindFamily = "Blue"
	Indigo  TailwindFamily = "Indigo"
	Violet  TailwindFamily = "Violet"
	Purple  TailwindFamily = "Purple"
	Fuchsia TailwindFamily = "Fuchsia"
	Pink    TailwindFamily = "Pink"
	Rose    TailwindFamily = "Rose"
)

func (TailwindFamily) String

func (f TailwindFamily) String() string

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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