@grida/tailwindcss-colors 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +273 -0
- package/css/hex.css +244 -0
- package/css/oklch.css +244 -0
- package/css/rgb.css +244 -0
- package/css/rgba.css +244 -0
- package/json/hex.json +288 -0
- package/json/hex.json.d.ts +53 -0
- package/json/oklch.json +288 -0
- package/json/oklch.json.d.ts +65 -0
- package/json/rgb.json +288 -0
- package/json/rgb.json.d.ts +62 -0
- package/json/rgba.json +288 -0
- package/json/rgba.json.d.ts +65 -0
- package/json/rgbf.json +288 -0
- package/json/rgbf.json.d.ts +63 -0
- package/package.json +36 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RGB color tuple in RGB32F format.
|
|
3
|
+
*
|
|
4
|
+
* @unit RGB32F
|
|
5
|
+
* @spec RGB values as 32-bit floating-point numbers (0.0-1.0)
|
|
6
|
+
* @format [r, g, b]
|
|
7
|
+
* @example [0.384, 0.455, 0.557] // slate-500
|
|
8
|
+
*/
|
|
9
|
+
type RGBF = [number, number, number];
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Tailwind CSS color shade identifier.
|
|
13
|
+
*
|
|
14
|
+
* @spec Valid shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
|
|
15
|
+
*/
|
|
16
|
+
type ColorShade =
|
|
17
|
+
| "50"
|
|
18
|
+
| "100"
|
|
19
|
+
| "200"
|
|
20
|
+
| "300"
|
|
21
|
+
| "400"
|
|
22
|
+
| "500"
|
|
23
|
+
| "600"
|
|
24
|
+
| "700"
|
|
25
|
+
| "800"
|
|
26
|
+
| "900"
|
|
27
|
+
| "950";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Tailwind CSS v4 color palette in RGB32F format.
|
|
31
|
+
*
|
|
32
|
+
* @unit RGB32F
|
|
33
|
+
* @spec RGB values as 32-bit floating-point numbers (0.0-1.0)
|
|
34
|
+
* @format { [colorFamily]: { [shade]: [r, g, b] } }
|
|
35
|
+
* @example colors.slate["500"] // [0.384, 0.455, 0.557]
|
|
36
|
+
* @useCase WebGL, shaders, graphics APIs requiring normalized float values
|
|
37
|
+
*/
|
|
38
|
+
declare const colors: {
|
|
39
|
+
amber: Record<ColorShade, RGBF>;
|
|
40
|
+
blue: Record<ColorShade, RGBF>;
|
|
41
|
+
cyan: Record<ColorShade, RGBF>;
|
|
42
|
+
emerald: Record<ColorShade, RGBF>;
|
|
43
|
+
fuchsia: Record<ColorShade, RGBF>;
|
|
44
|
+
gray: Record<ColorShade, RGBF>;
|
|
45
|
+
green: Record<ColorShade, RGBF>;
|
|
46
|
+
indigo: Record<ColorShade, RGBF>;
|
|
47
|
+
lime: Record<ColorShade, RGBF>;
|
|
48
|
+
neutral: Record<ColorShade, RGBF>;
|
|
49
|
+
orange: Record<ColorShade, RGBF>;
|
|
50
|
+
pink: Record<ColorShade, RGBF>;
|
|
51
|
+
purple: Record<ColorShade, RGBF>;
|
|
52
|
+
red: Record<ColorShade, RGBF>;
|
|
53
|
+
rose: Record<ColorShade, RGBF>;
|
|
54
|
+
sky: Record<ColorShade, RGBF>;
|
|
55
|
+
slate: Record<ColorShade, RGBF>;
|
|
56
|
+
stone: Record<ColorShade, RGBF>;
|
|
57
|
+
teal: Record<ColorShade, RGBF>;
|
|
58
|
+
violet: Record<ColorShade, RGBF>;
|
|
59
|
+
yellow: Record<ColorShade, RGBF>;
|
|
60
|
+
zinc: Record<ColorShade, RGBF>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default colors;
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@grida/tailwindcss-colors",
|
|
3
|
+
"description": "Tailwind CSS color data package - provides color values in multiple formats (RGBA, HEX, OKLCH) for programmatic use. Not intended for direct CSS import in production.",
|
|
4
|
+
"version": "4.0.0",
|
|
5
|
+
"homepage": "https://grida.co",
|
|
6
|
+
"repository": "https://github.com/gridaco/grida",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "softmarshmallow",
|
|
9
|
+
"private": false,
|
|
10
|
+
"keywords": [
|
|
11
|
+
"grida",
|
|
12
|
+
"tailwind",
|
|
13
|
+
"colors",
|
|
14
|
+
"tailwindcss",
|
|
15
|
+
"data"
|
|
16
|
+
],
|
|
17
|
+
"files": [
|
|
18
|
+
"css",
|
|
19
|
+
"json",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
"./css/rgb.css": "./css/rgb.css",
|
|
24
|
+
"./css/rgba.css": "./css/rgba.css",
|
|
25
|
+
"./css/hex.css": "./css/hex.css",
|
|
26
|
+
"./css/oklch.css": "./css/oklch.css",
|
|
27
|
+
"./json/rgb.json": "./json/rgb.json",
|
|
28
|
+
"./json/rgbf.json": "./json/rgbf.json",
|
|
29
|
+
"./json/rgba.json": "./json/rgba.json",
|
|
30
|
+
"./json/hex.json": "./json/hex.json",
|
|
31
|
+
"./json/oklch.json": "./json/oklch.json"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"generate": "deno run --allow-read --allow-write --allow-net scripts/generate.ts"
|
|
35
|
+
}
|
|
36
|
+
}
|