https://gist.github.com/Apostolique/31543d592dfabc42e169436f45727036
You can drop that file in your projects, change the namespace if you want.
The colors are from: https://tailwindcss.com/docs/customizing-colors#color-palette-reference , they were picked by a designer called Steve Schoger .
I find those colors useful for both debugging tools or in game colors.
The way it works, each colors have 10 shades. The shades are labeled 050
, 100
, 200
, … 900
. Lower numbers give you a lighter color, higher numbers give you a darker color. To draw, you pick a color and append a shade to it: TWColor.Blue500
.
Colors:
Black
White
BlueGray
CoolGray
Gray
TrueGray
WarmGray
Red
Orange
Amber
Yellow
Lime
Green
Emerald
Teal
Cyan
Sky
Blue
Indigo
Violet
Purple
Fuchsia
Pink
Rose
2 Likes
I updated the gist to use the new unified colors names from Tailwindcss 3.0.0.
tailwindlabs:master
← tailwindlabs:enable-extended-color-palette
opened 03:55PM - 03 Sep 21 UTC
BlueGray becomes Slate.
CoolGray becomes Gray.
Gray becomes Zinc.
TrueGray becomes Neutral.
WarmGray becomes Stone.
2 Likes
The new 950 shades have been added
tailwindlabs:master
← tailwindlabs:950-colors
opened 06:00PM - 27 Mar 23 UTC
This PR extends the default color palette with a set of new `950` shades.
![9… 50-colors](https://user-images.githubusercontent.com/882133/228030608-e63d4fea-37de-402b-abca-0cbb63aad713.png)
| Utility | Color |
|---|---|
| `{utility}-slate-950` | `#020617` |
| `{utility}-gray-950` | `#030712` |
| `{utility}-zinc-950` | `#09090b` |
| `{utility}-neutral-950` | `#0a0a0a` |
| `{utility}-stone-950` | `#0c0a09` |
| `{utility}-red-950` | `#450a0a` |
| `{utility}-orange-950` | `#431407` |
| `{utility}-amber-950` | `#451a03` |
| `{utility}-yellow-950` | `#422006` |
| `{utility}-lime-950` | `#1a2e05` |
| `{utility}-green-950` | `#052e16` |
| `{utility}-emerald-950` | `#022c22` |
| `{utility}-teal-950` | `#042f2e` |
| `{utility}-cyan-950` | `#083344` |
| `{utility}-sky-950` | `#082f49` |
| `{utility}-blue-950` | `#172554` |
| `{utility}-indigo-950` | `#1e1b4b` |
| `{utility}-violet-950` | `#2e1065` |
| `{utility}-purple-950` | `#3b0764` |
| `{utility}-fuchsia-950` | `#4a044e` |
| `{utility}-pink-950` | `#500724` |
| `{utility}-rose-950` | `#4c0519` |
The new 950 shades are the next step in the Tailwind CSS color scale which are great for further reaching dark UIs:
![image](https://user-images.githubusercontent.com/882133/228031367-8f33da75-2702-4181-8075-a2110c3574da.png)
They are also great for creating interfaces with higher contrast elements, such as dark text on a colored background:
![image](https://user-images.githubusercontent.com/882133/228032082-91dd8286-392a-4006-88ce-15febe304473.png)
1 Like