palette

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

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.

Documentation

Overview

Package palette holds the Tailwind CSS colors Godwit draws with, copied verbatim from tailwindcss v4.1.14 theme.css (oklch lightness as 0–1). Only the colors in use are here; add more from the same file.

Index

Constants

This section is empty.

Variables

View Source
var (
	White = OKLCH{1, 0, 0} // #fff
	Black = OKLCH{0, 0, 0} // #000
	// MacAlertGray is the gray macOS washes a window with under an alert, at 60%.
	MacAlertGray = OKLCH{0.7412, 0, 0} // #ababab

	Neutral50  = OKLCH{0.985, 0, 0}
	Neutral100 = OKLCH{0.97, 0, 0}
	Neutral200 = OKLCH{0.922, 0, 0}
	Neutral300 = OKLCH{0.87, 0, 0}
	Neutral400 = OKLCH{0.708, 0, 0}
	Neutral500 = OKLCH{0.556, 0, 0}
	Neutral600 = OKLCH{0.439, 0, 0}
	Neutral700 = OKLCH{0.371, 0, 0}
	Neutral800 = OKLCH{0.269, 0, 0}
	Neutral900 = OKLCH{0.205, 0, 0}
	Neutral950 = OKLCH{0.145, 0, 0}

	Green50  = OKLCH{0.982, 0.018, 155.826}
	Green100 = OKLCH{0.962, 0.044, 156.743}
	Green200 = OKLCH{0.925, 0.084, 155.995}
	Green600 = OKLCH{0.627, 0.194, 149.214}
	Green700 = OKLCH{0.527, 0.154, 150.069}
	Green800 = OKLCH{0.448, 0.119, 151.328}
	Green300 = OKLCH{0.871, 0.15, 154.449}
	Green950 = OKLCH{0.266, 0.065, 152.934}

	Amber50  = OKLCH{0.987, 0.022, 95.277}
	Amber300 = OKLCH{0.879, 0.169, 91.605}
	Amber500 = OKLCH{0.769, 0.188, 70.08}
	Amber800 = OKLCH{0.473, 0.137, 46.201}
	Amber950 = OKLCH{0.279, 0.077, 45.635}

	Yellow200 = OKLCH{0.945, 0.129, 101.54}
	Yellow100 = OKLCH{0.973, 0.071, 103.193}
	Yellow900 = OKLCH{0.421, 0.095, 57.708}

	Blue500 = OKLCH{0.623, 0.214, 259.815}

	Red50  = OKLCH{0.971, 0.013, 17.38}
	Red200 = OKLCH{0.885, 0.062, 18.334}
	Red600 = OKLCH{0.577, 0.245, 27.325}
	Red700 = OKLCH{0.505, 0.213, 27.518}
	Red300 = OKLCH{0.808, 0.114, 19.571}
	Red800 = OKLCH{0.444, 0.177, 26.899}
	Red950 = OKLCH{0.258, 0.092, 26.042}

	Red100 = OKLCH{0.936, 0.032, 17.717}
	Red500 = OKLCH{0.637, 0.237, 25.331}

	Orange100 = OKLCH{0.954, 0.038, 75.164}
	Orange200 = OKLCH{0.901, 0.076, 70.697}
	Orange300 = OKLCH{0.837, 0.128, 66.29}
	Orange500 = OKLCH{0.705, 0.213, 47.604}
	Orange700 = OKLCH{0.553, 0.195, 38.402}
	Orange800 = OKLCH{0.47, 0.157, 37.304}
	Orange950 = OKLCH{0.266, 0.079, 36.259}

	Amber100 = OKLCH{0.962, 0.059, 95.617}
	Amber200 = OKLCH{0.924, 0.12, 95.746}
	Amber700 = OKLCH{0.555, 0.163, 48.998}

	Green500 = OKLCH{0.723, 0.219, 149.579}

	Blue100 = OKLCH{0.932, 0.032, 255.585}
	Blue200 = OKLCH{0.882, 0.059, 254.128}
	Blue300 = OKLCH{0.809, 0.105, 251.813}
	Blue700 = OKLCH{0.488, 0.243, 264.376}
	Blue800 = OKLCH{0.424, 0.199, 265.638}
	Blue950 = OKLCH{0.282, 0.091, 267.935}

	Violet100 = OKLCH{0.943, 0.029, 294.588}
	Violet200 = OKLCH{0.894, 0.057, 293.283}
	Violet300 = OKLCH{0.811, 0.111, 293.571}
	Violet500 = OKLCH{0.606, 0.25, 292.717}
	Violet700 = OKLCH{0.491, 0.27, 292.581}
	Violet800 = OKLCH{0.432, 0.232, 292.759}
	Violet950 = OKLCH{0.283, 0.141, 291.089}

	Pink100 = OKLCH{0.948, 0.028, 342.258}
	Pink200 = OKLCH{0.899, 0.061, 343.231}
	Pink300 = OKLCH{0.823, 0.12, 346.018}
	Pink500 = OKLCH{0.656, 0.241, 354.308}
	Pink700 = OKLCH{0.525, 0.223, 3.958}
	Pink800 = OKLCH{0.459, 0.187, 3.815}
	Pink950 = OKLCH{0.284, 0.109, 3.907}

	Yellow300 = OKLCH{0.905, 0.182, 98.111}
	Yellow500 = OKLCH{0.795, 0.184, 86.047}
	Yellow700 = OKLCH{0.554, 0.135, 66.442}
	Yellow800 = OKLCH{0.476, 0.114, 61.907}
	Yellow950 = OKLCH{0.286, 0.066, 53.813}

	Lime100 = OKLCH{0.967, 0.067, 122.328}
	Lime200 = OKLCH{0.938, 0.127, 124.321}
	Lime300 = OKLCH{0.897, 0.196, 126.665}
	Lime500 = OKLCH{0.768, 0.233, 130.85}
	Lime700 = OKLCH{0.532, 0.157, 131.589}
	Lime800 = OKLCH{0.453, 0.124, 130.933}
	Lime950 = OKLCH{0.274, 0.072, 132.109}

	Teal100 = OKLCH{0.953, 0.051, 180.801}
	Teal200 = OKLCH{0.91, 0.096, 180.426}
	Teal300 = OKLCH{0.855, 0.138, 181.071}
	Teal500 = OKLCH{0.704, 0.14, 182.503}
	Teal700 = OKLCH{0.511, 0.096, 186.391}
	Teal800 = OKLCH{0.437, 0.078, 188.216}
	Teal950 = OKLCH{0.277, 0.046, 192.524}

	Sky100 = OKLCH{0.951, 0.026, 236.824}
	Sky200 = OKLCH{0.901, 0.058, 230.902}
	Sky300 = OKLCH{0.828, 0.111, 230.318}
	Sky500 = OKLCH{0.685, 0.169, 237.323}
	Sky700 = OKLCH{0.5, 0.134, 242.749}
	Sky800 = OKLCH{0.443, 0.11, 240.79}
	Sky950 = OKLCH{0.293, 0.066, 243.157}
)

Functions

This section is empty.

Types

type OKLCH

type OKLCH struct{ L, C, H float32 }

OKLCH is a color as CSS's oklch(L C H): lightness 0–1, chroma, hue in degrees.

func Mid

func Mid(a, b OKLCH) OKLCH

Mid is the color halfway between a and b: each component averaged, the hue along the shorter arc. A gray (chroma 0) has no hue, so the mid takes the other's.

func (OKLCH) Color

func (o OKLCH) Color() ui.Color

Color is the color to draw, wide where the screen is.

Jump to

Keyboard shortcuts

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