@grida/tailwindcss-colors 4.0.1 → 4.0.2
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/README.md +78 -6
- package/css/hex.css +1 -1
- package/css/oklch.css +243 -243
- package/css/rgb.css +1 -1
- package/css/rgba.css +1 -1
- package/json/hex.d.cts +14 -0
- package/json/hex.json +2 -2
- package/json/oklch.d.cts +15 -0
- package/json/oklch.json +1 -1
- package/json/rgb.d.cts +13 -0
- package/json/rgb.json +1 -1
- package/json/rgba.d.cts +15 -0
- package/json/rgba.json +1 -1
- package/json/rgbf.d.cts +14 -0
- package/json/rgbf.json +82 -82
- package/package.json +45 -15
- package/types.d.ts +96 -0
- package/json/hex.json.d.ts +0 -53
- package/json/oklch.json.d.ts +0 -65
- package/json/rgb.json.d.ts +0 -62
- package/json/rgba.json.d.ts +0 -65
- package/json/rgbf.json.d.ts +0 -63
package/json/hex.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ColorName, ColorShade, Hex } from "../types.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tailwind CSS v4 color palette in hexadecimal format.
|
|
5
|
+
*
|
|
6
|
+
* @unit Hex string
|
|
7
|
+
* @spec Hexadecimal color strings in lowercase format (#rrggbb)
|
|
8
|
+
* @format { [colorFamily]: { [shade]: "#rrggbb" } }
|
|
9
|
+
* @example colors.slate["500"] // "#64748e"
|
|
10
|
+
* @useCase Web development, CSS, human-readable color strings
|
|
11
|
+
*/
|
|
12
|
+
declare const colors: Record<ColorName, Record<ColorShade, Hex>>;
|
|
13
|
+
|
|
14
|
+
export = colors;
|
package/json/hex.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"300": "#5ee9b5",
|
|
46
46
|
"400": "#00d492",
|
|
47
47
|
"500": "#00bc7d",
|
|
48
|
-
"600": "#
|
|
48
|
+
"600": "#009966",
|
|
49
49
|
"700": "#007a55",
|
|
50
50
|
"800": "#006045",
|
|
51
51
|
"900": "#004f3b",
|
|
@@ -285,4 +285,4 @@
|
|
|
285
285
|
"900": "#18181b",
|
|
286
286
|
"950": "#09090b"
|
|
287
287
|
}
|
|
288
|
-
}
|
|
288
|
+
}
|
package/json/oklch.d.cts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ColorName, ColorShade, OKLCH } from "../types.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tailwind CSS v4 color palette in OKLCH format.
|
|
5
|
+
*
|
|
6
|
+
* @unit OKLCH (perceptual color space)
|
|
7
|
+
* @spec Lightness (0.0-1.0), Chroma (0.0+), Hue (0.0-360.0 degrees)
|
|
8
|
+
* @format { [colorFamily]: { [shade]: [l, c, h] } }
|
|
9
|
+
* @note Hue is 0 for achromatic colors (grays)
|
|
10
|
+
* @example colors.slate["500"] // [0.384, 0.015, 255.59]
|
|
11
|
+
* @useCase Perceptual color operations, color mixing, modern color spaces
|
|
12
|
+
*/
|
|
13
|
+
declare const colors: Record<ColorName, Record<ColorShade, OKLCH>>;
|
|
14
|
+
|
|
15
|
+
export = colors;
|
package/json/oklch.json
CHANGED
package/json/rgb.d.cts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ColorName, ColorShade, RGB } from "../types.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tailwind CSS v4 color palette in RGB888 format.
|
|
5
|
+
*
|
|
6
|
+
* @unit RGB888
|
|
7
|
+
* @spec RGB values as unsigned 8-bit integers (0-255)
|
|
8
|
+
* @format { [colorFamily]: { [shade]: [r, g, b] } }
|
|
9
|
+
* @example colors.slate["500"] // [98, 116, 142]
|
|
10
|
+
*/
|
|
11
|
+
declare const colors: Record<ColorName, Record<ColorShade, RGB>>;
|
|
12
|
+
|
|
13
|
+
export = colors;
|
package/json/rgb.json
CHANGED
package/json/rgba.d.cts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ColorName, ColorShade, RGBA } from "../types.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tailwind CSS v4 color palette in RGB888A32F format.
|
|
5
|
+
*
|
|
6
|
+
* @unit RGB888A32F
|
|
7
|
+
* @spec RGB values as unsigned 8-bit integers (0-255), alpha as 32-bit float (0.0-1.0)
|
|
8
|
+
* @format { [colorFamily]: { [shade]: [r, g, b, a] } }
|
|
9
|
+
* @note Alpha channel is always 1.0 for all colors (fully opaque)
|
|
10
|
+
* @example colors.slate["500"] // [98, 116, 142, 1]
|
|
11
|
+
* @useCase Canvas rendering, CSS rgba() format compatibility
|
|
12
|
+
*/
|
|
13
|
+
declare const colors: Record<ColorName, Record<ColorShade, RGBA>>;
|
|
14
|
+
|
|
15
|
+
export = colors;
|
package/json/rgba.json
CHANGED
package/json/rgbf.d.cts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ColorName, ColorShade, RGBF } from "../types.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tailwind CSS v4 color palette in RGB32F format.
|
|
5
|
+
*
|
|
6
|
+
* @unit RGB32F
|
|
7
|
+
* @spec RGB values as 32-bit floating-point numbers (0.0-1.0)
|
|
8
|
+
* @format { [colorFamily]: { [shade]: [r, g, b] } }
|
|
9
|
+
* @example colors.slate["500"] // [0.384, 0.455, 0.557]
|
|
10
|
+
* @useCase WebGL, shaders, graphics APIs requiring normalized float values
|
|
11
|
+
*/
|
|
12
|
+
declare const colors: Record<ColorName, Record<ColorShade, RGBF>>;
|
|
13
|
+
|
|
14
|
+
export = colors;
|
package/json/rgbf.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"100": [0.9969999650348292, 0.9530826144695753, 0.777523895767482],
|
|
5
5
|
"200": [0.9957299225875352, 0.9012048259607065, 0.5221890750159695],
|
|
6
6
|
"300": [1, 0.8238498632655092, 0.18760540365348044],
|
|
7
|
-
"400": [1, 0.
|
|
7
|
+
"400": [1, 0.7272557116123316, 0],
|
|
8
8
|
"500": [0.9942714511844862, 0.6020927234987038, 0],
|
|
9
9
|
"600": [0.8837689331652918, 0.4433509016524632, 0],
|
|
10
10
|
"700": [0.7317888091953342, 0.30102330950550277, 0],
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
},
|
|
15
15
|
"blue": {
|
|
16
16
|
"50": [0.9369397781483655, 0.9640346236130356, 0.9988718494507932],
|
|
17
|
-
"100": [0.
|
|
17
|
+
"100": [0.8582405392342585, 0.9178275221599579, 0.997270487413772],
|
|
18
18
|
"200": [0.7450929940300531, 0.8586637667571722, 1],
|
|
19
19
|
"300": [0.5565924009906945, 0.7731643436401519, 1],
|
|
20
|
-
"400": [0.
|
|
21
|
-
"500": [0.
|
|
20
|
+
"400": [0.31579934659085745, 0.6355904471566135, 1],
|
|
21
|
+
"500": [0.16933250478016534, 0.49804946930374944, 1],
|
|
22
22
|
"600": [0.08361906898840096, 0.3644171340711108, 0.9863430390798346],
|
|
23
23
|
"700": [0.07790771362643972, 0.27913518695168477, 0.9017744159388529],
|
|
24
24
|
"800": [0.09978120745081598, 0.23377008556238343, 0.7229223923602304],
|
|
25
|
-
"900": [0.
|
|
25
|
+
"900": [0.10905590964395839, 0.22219257404237058, 0.5575136150170836],
|
|
26
26
|
"950": [0.08726257662821393, 0.14313230082127704, 0.3356920422858533]
|
|
27
27
|
},
|
|
28
28
|
"cyan": {
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"500": [0, 0.7218724374054267, 0.8573380164511498],
|
|
35
35
|
"600": [0, 0.5741973106149573, 0.7225723514690863],
|
|
36
36
|
"700": [0, 0.4590370456425879, 0.5832521237778528],
|
|
37
|
-
"800": [0, 0.
|
|
38
|
-
"900": [0.
|
|
39
|
-
"950": [0.021187917882950463, 0.2006470972520608, 0.
|
|
37
|
+
"800": [0, 0.3711744099307164, 0.4712478634198077],
|
|
38
|
+
"900": [0.06372827055484237, 0.3067085829441847, 0.3937416479342367],
|
|
39
|
+
"950": [0.021187917882950463, 0.2006470972520608, 0.26983208162944694]
|
|
40
40
|
},
|
|
41
41
|
"emerald": {
|
|
42
42
|
"50": [0.9243212973797691, 0.9920315603966111, 0.9601800285455678],
|
|
43
|
-
"100": [0.
|
|
44
|
-
"200": [0.
|
|
45
|
-
"300": [0.
|
|
43
|
+
"100": [0.815921476281658, 0.9808685466914201, 0.8965166062525964],
|
|
44
|
+
"200": [0.6444914835461676, 0.9558121939380896, 0.8133241244185571],
|
|
45
|
+
"300": [0.36985252757371245, 0.9150905511132279, 0.7087672821381559],
|
|
46
46
|
"400": [0, 0.8325921467227018, 0.5723413430992],
|
|
47
47
|
"500": [0, 0.7387891415713294, 0.48928084904728625],
|
|
48
48
|
"600": [0, 0.5989388696851466, 0.398983638277291],
|
|
@@ -58,59 +58,59 @@
|
|
|
58
58
|
"300": [0.9550995681947058, 0.6572811098996221, 1],
|
|
59
59
|
"400": [0.9299384509491758, 0.4175664149418738, 1],
|
|
60
60
|
"500": [0.8836880256353928, 0.16574675262196467, 0.984501375485079],
|
|
61
|
-
"600": [0.
|
|
62
|
-
"700": [0.6584703175652413, 0, 0.
|
|
61
|
+
"600": [0.7836063046344386, 0, 0.8715410634510126],
|
|
62
|
+
"700": [0.6584703175652413, 0, 0.7179514130186869],
|
|
63
63
|
"800": [0.5413972763623801, 0.005170685563423081, 0.5817819047303415],
|
|
64
64
|
"900": [0.44791519267309016, 0.07534362967602798, 0.46959667112749953],
|
|
65
|
-
"950": [0.
|
|
65
|
+
"950": [0.2938792664851056, 0.001466418215939002, 0.3106185389650783]
|
|
66
66
|
},
|
|
67
67
|
"gray": {
|
|
68
68
|
"50": [0.976394229222003, 0.9809921701981187, 0.985589520180738],
|
|
69
69
|
"100": [0.9528385020410951, 0.9569317557631177, 0.9651184315219944],
|
|
70
70
|
"200": [0.898343137762968, 0.9064381730859453, 0.9226285306518572],
|
|
71
|
-
"300": [0.
|
|
72
|
-
"400": [0.
|
|
71
|
+
"300": [0.819017674057823, 0.8358148741911837, 0.861008760947672],
|
|
72
|
+
"400": [0.6000088092938525, 0.6313951766141661, 0.6852225804848499],
|
|
73
73
|
"500": [0.41545434573203677, 0.4470909709995559, 0.5104967709257806],
|
|
74
|
-
"600": [0.28883345305135866, 0.
|
|
75
|
-
"700": [0.
|
|
74
|
+
"600": [0.28883345305135866, 0.3335459247322802, 0.39611636404285216],
|
|
75
|
+
"700": [0.21153233111089942, 0.25502958900962125, 0.32470522033483534],
|
|
76
76
|
"800": [0.11697349561786813, 0.1607542759184124, 0.2220155004790907],
|
|
77
77
|
"900": [0.06452562744067578, 0.09374159032906393, 0.15678442228058512],
|
|
78
78
|
"950": [0.01158472681716608, 0.02760733182216685, 0.07187579196071328]
|
|
79
79
|
},
|
|
80
80
|
"green": {
|
|
81
|
-
"50": [0.
|
|
81
|
+
"50": [0.9413932496954864, 0.9922020483060626, 0.9570246264083583],
|
|
82
82
|
"100": [0.8608796473786267, 0.9882110519823474, 0.9046970580517261],
|
|
83
|
-
"200": [0.7250790718564953, 0.9712606795730027, 0.
|
|
84
|
-
"300": [0.
|
|
83
|
+
"200": [0.7250790718564953, 0.9712606795730027, 0.8118364375894777],
|
|
84
|
+
"300": [0.48145507004106364, 0.9463488933134768, 0.6570021981837467],
|
|
85
85
|
"400": [0.01987058544778675, 0.8753122756349448, 0.44850967896731436],
|
|
86
86
|
"500": [0, 0.7871556117517596, 0.3156217584004384],
|
|
87
|
-
"600": [0, 0.
|
|
87
|
+
"600": [0, 0.651302259433401, 0.24199256158359794],
|
|
88
88
|
"700": [0, 0.5099976610911297, 0.20980960731121057],
|
|
89
89
|
"800": [0.005796004781300509, 0.4014766263363244, 0.18858840717794625],
|
|
90
|
-
"900": [0.051125419243570815, 0.
|
|
90
|
+
"900": [0.051125419243570815, 0.32868879391982925, 0.17017246918161313],
|
|
91
91
|
"950": [0.011995729439707083, 0.18100152929455016, 0.08350354091228876]
|
|
92
92
|
},
|
|
93
93
|
"indigo": {
|
|
94
94
|
"50": [0.9333945401373392, 0.9491385901836263, 1],
|
|
95
95
|
"100": [0.877996273422101, 0.9058982464712473, 1],
|
|
96
96
|
"200": [0.7783517053947316, 0.8231921402624691, 1],
|
|
97
|
-
"300": [0.
|
|
98
|
-
"400": [0.
|
|
99
|
-
"500": [0.3821760510124861, 0.
|
|
97
|
+
"300": [0.6391280283624032, 0.7021304925672915, 1],
|
|
98
|
+
"400": [0.4878469518853678, 0.5265172946061931, 1],
|
|
99
|
+
"500": [0.3821760510124861, 0.37188830557481944, 1],
|
|
100
100
|
"600": [0.3108854737097053, 0.22440451125786398, 0.9662612237308176],
|
|
101
101
|
"700": [0.2643529718519653, 0.17659247291246047, 0.8448341023580314],
|
|
102
|
-
"800": [0.
|
|
102
|
+
"800": [0.21542690950389093, 0.16322345397783988, 0.6737073985661062],
|
|
103
103
|
"900": [0.19164835902250116, 0.17264515958972382, 0.5226693832212138],
|
|
104
|
-
"950": [0.11713384067526272, 0.10263016972631489, 0.
|
|
104
|
+
"950": [0.11713384067526272, 0.10263016972631489, 0.30061912749039754]
|
|
105
105
|
},
|
|
106
106
|
"lime": {
|
|
107
107
|
"50": [0.9690420861598997, 0.9965202428182661, 0.9062309790820153],
|
|
108
108
|
"100": [0.9250763485679718, 0.988800686283649, 0.7933730437188471],
|
|
109
|
-
"200": [0.
|
|
110
|
-
"300": [0.7329368316134284, 0.9551594791962011, 0.
|
|
111
|
-
"400": [0.
|
|
109
|
+
"200": [0.8477643842504656, 0.9783046505481204, 0.5999008411702395],
|
|
110
|
+
"300": [0.7329368316134284, 0.9551594791962011, 0.3178040089029532],
|
|
111
|
+
"400": [0.6024434361607467, 0.9016712268885554, 0],
|
|
112
112
|
"500": [0.4872933125870264, 0.8099173831908869, 0],
|
|
113
|
-
"600": [0.
|
|
113
|
+
"600": [0.368720124517312, 0.647489084641401, 0],
|
|
114
114
|
"700": [0.2848082342661091, 0.49150212386028874, 0],
|
|
115
115
|
"800": [0.23722556142220147, 0.38807222194106794, 0],
|
|
116
116
|
"900": [0.20701804907674132, 0.32722384306591423, 0.05523693145217299],
|
|
@@ -121,24 +121,24 @@
|
|
|
121
121
|
"100": [0.9605869869200193, 0.9605869869200182, 0.9605869869200186],
|
|
122
122
|
"200": [0.8981606635856451, 0.8981606635856446, 0.8981606635856447],
|
|
123
123
|
"300": [0.8314444503075211, 0.8314444503075203, 0.8314444503075207],
|
|
124
|
-
"400": [0.
|
|
124
|
+
"400": [0.6301632042746149, 0.6301632042746144, 0.6301632042746146],
|
|
125
125
|
"500": [0.45151924296251883, 0.4515192429625184, 0.4515192429625185],
|
|
126
|
-
"600": [0.
|
|
126
|
+
"600": [0.3219928468994368, 0.3219928468994365, 0.3219928468994367],
|
|
127
127
|
"700": [0.25047090154248997, 0.2504709015424897, 0.25047090154248974],
|
|
128
128
|
"800": [0.14938207763559963, 0.14938207763559946, 0.14938207763559952],
|
|
129
129
|
"900": [0.0905274052494669, 0.09052740524946679, 0.09052740524946684],
|
|
130
130
|
"950": [0.03938823500000005, 0.03938823499999996, 0.039388234999999994]
|
|
131
131
|
},
|
|
132
132
|
"orange": {
|
|
133
|
-
"50": [1, 0.
|
|
133
|
+
"50": [1, 0.9690530609479145, 0.929262902544629],
|
|
134
134
|
"100": [1, 0.9288763358893759, 0.8325848199111553],
|
|
135
|
-
"200": [1, 0.
|
|
136
|
-
"300": [1, 0.
|
|
137
|
-
"400": [1, 0.5370230872254196, 0.
|
|
135
|
+
"200": [1, 0.8411152207277256, 0.6568333437153626],
|
|
136
|
+
"300": [1, 0.7222756429289536, 0.4139270191492547],
|
|
137
|
+
"400": [1, 0.5370230872254196, 0.013840866896880974],
|
|
138
138
|
"500": [1, 0.41073431021670703, 0],
|
|
139
139
|
"600": [0.9607054869223081, 0.2881907436987755, 0],
|
|
140
140
|
"700": [0.7918817553099514, 0.20726991176564336, 0],
|
|
141
|
-
"800": [0.
|
|
141
|
+
"800": [0.6244982060754211, 0.17663322927910224, 0],
|
|
142
142
|
"900": [0.49511850192186885, 0.1654188885704697, 0.04565223781437464],
|
|
143
143
|
"950": [0.266434358394173, 0.0744109924169021, 0.021905324058652184]
|
|
144
144
|
},
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"700": [0.7777568218580165, 0, 0.3589229194060834],
|
|
154
154
|
"800": [0.638603154091996, 0, 0.2980438078818423],
|
|
155
155
|
"900": [0.5251818453849645, 0.06328236908134338, 0.26133394569178936],
|
|
156
|
-
"950": [0.
|
|
156
|
+
"950": [0.3180017367733103, 0.01508370908640345, 0.13981923147075612]
|
|
157
157
|
},
|
|
158
158
|
"purple": {
|
|
159
159
|
"50": [0.9804396820431559, 0.9611090499837517, 0.9997745770307144],
|
|
@@ -166,30 +166,30 @@
|
|
|
166
166
|
"700": [0.5099056905764927, 0, 0.8572576419488926],
|
|
167
167
|
"800": [0.42999334864314853, 0.06663919706169075, 0.6907452186509337],
|
|
168
168
|
"900": [0.35072201526009156, 0.08730051114975582, 0.5451927861997663],
|
|
169
|
-
"950": [0.
|
|
169
|
+
"950": [0.2346311894380082, 0.01178013535032716, 0.401369237323756]
|
|
170
170
|
},
|
|
171
171
|
"red": {
|
|
172
172
|
"50": [0.9968413298978053, 0.9495853877602692, 0.9495856277055247],
|
|
173
173
|
"100": [0.9993008556247022, 0.8856429639115526, 0.8856769193846685],
|
|
174
174
|
"200": [1, 0.7898433960204853, 0.7900282556815347],
|
|
175
|
-
"300": [1, 0.
|
|
176
|
-
"400": [1, 0.
|
|
177
|
-
"500": [0.9826614269144941, 0.
|
|
178
|
-
"600": [0.9064575618212113, 0, 0.
|
|
175
|
+
"300": [1, 0.6346797909437322, 0.6363713790456833],
|
|
176
|
+
"400": [1, 0.3911527222554707, 0.4038567987456752],
|
|
177
|
+
"500": [0.9826614269144941, 0.17179709064943444, 0.21307020388143522],
|
|
178
|
+
"600": [0.9064575618212113, 0, 0.04221458098674311],
|
|
179
179
|
"700": [0.7568846979179915, 0, 0.028754347938460944],
|
|
180
180
|
"800": [0.622208158938634, 0.028790581777511277, 0.06893808765215217],
|
|
181
|
-
"900": [0.5091704998481184, 0.09232881280396668, 0.
|
|
182
|
-
"950": [0.
|
|
181
|
+
"900": [0.5091704998481184, 0.09232881280396668, 0.10068694419374091],
|
|
182
|
+
"950": [0.2753966630524283, 0.03159315680162606, 0.034497614387773476]
|
|
183
183
|
},
|
|
184
184
|
"rose": {
|
|
185
185
|
"50": [0.9990231290220054, 0.9447283627727611, 0.9486036054863457],
|
|
186
186
|
"100": [1, 0.8934201647145291, 0.9013286284309071],
|
|
187
|
-
"200": [1, 0.8011075755001305, 0.
|
|
187
|
+
"200": [1, 0.8011075755001305, 0.825655726999048],
|
|
188
188
|
"300": [1, 0.6299288099762543, 0.6795160126296866],
|
|
189
189
|
"400": [1, 0.3888605509516716, 0.494331555783405],
|
|
190
|
-
"500": [1, 0.12461523096854557, 0.
|
|
190
|
+
"500": [1, 0.12461523096854557, 0.33900326408201853],
|
|
191
191
|
"600": [0.9273908931331769, 0, 0.2487092018402235],
|
|
192
|
-
"700": [0.7785063806639113, 0, 0.
|
|
192
|
+
"700": [0.7785063806639113, 0, 0.2106962828258087],
|
|
193
193
|
"800": [0.6466910159034666, 0, 0.21166793226850972],
|
|
194
194
|
"900": [0.544502906640365, 0.030038689514922605, 0.21069892975641952],
|
|
195
195
|
"950": [0.3031469644083955, 0.008819827171387708, 0.09585870908751976]
|
|
@@ -197,67 +197,67 @@
|
|
|
197
197
|
"sky": {
|
|
198
198
|
"50": [0.9398366942378833, 0.9765926487525286, 1],
|
|
199
199
|
"100": [0.8755857141045668, 0.9489379805311832, 0.9978108000784492],
|
|
200
|
-
"200": [0.
|
|
200
|
+
"200": [0.7218523376019113, 0.9026974816558883, 0.9970122035841437],
|
|
201
201
|
"300": [0.4532183230466634, 0.8316647919920268, 1],
|
|
202
202
|
"400": [0, 0.7364118766007562, 1],
|
|
203
|
-
"500": [0, 0.6497637788539827, 0.
|
|
203
|
+
"500": [0, 0.6497637788539827, 0.9571310880366323],
|
|
204
204
|
"600": [0, 0.5181664436816557, 0.8197996432582632],
|
|
205
|
-
"700": [0, 0.41163487311840347, 0.
|
|
205
|
+
"700": [0, 0.41163487311840347, 0.6602958698381598],
|
|
206
206
|
"800": [0, 0.3490170071775055, 0.5398579214891074],
|
|
207
|
-
"900": [0.
|
|
208
|
-
"950": [0.
|
|
207
|
+
"900": [0.006753342546319398, 0.29027109023724, 0.44110542892295973],
|
|
208
|
+
"950": [0.01981498047558369, 0.18393749827221337, 0.29056123139313855]
|
|
209
209
|
},
|
|
210
210
|
"slate": {
|
|
211
211
|
"50": [0.9731488522540449, 0.9800426054662709, 0.9869375219463618],
|
|
212
212
|
"100": [0.9444747089424709, 0.9604953704340585, 0.9765152883989355],
|
|
213
|
-
"200": [0.
|
|
214
|
-
"300": [0.
|
|
215
|
-
"400": [0.5648487363231482, 0.
|
|
216
|
-
"500": [0.
|
|
213
|
+
"200": [0.8859544002236976, 0.9101960351218834, 0.9425160502172096],
|
|
214
|
+
"300": [0.7923478768572376, 0.8358279496588404, 0.8879724216514763],
|
|
215
|
+
"400": [0.5648487363231482, 0.6316962763094216, 0.7252391411445487],
|
|
216
|
+
"500": [0.3839120680408453, 0.4547872213486915, 0.5566604979380745],
|
|
217
217
|
"600": [0.2709961605079998, 0.33408154858074923, 0.42418876964238983],
|
|
218
218
|
"700": [0.19350013489640727, 0.2552660391485498, 0.3434872342112419],
|
|
219
219
|
"800": [0.11212771030560409, 0.16004398467081418, 0.2386724894066991],
|
|
220
220
|
"900": [0.05718432354423759, 0.09004246505833136, 0.1687959959194234],
|
|
221
|
-
"950": [0.
|
|
221
|
+
"950": [0.007429320741766291, 0.023281749419033586, 0.09250507951914488]
|
|
222
222
|
},
|
|
223
223
|
"stone": {
|
|
224
224
|
"50": [0.9805331813597383, 0.9805335062292132, 0.9775605364885184],
|
|
225
225
|
"100": [0.9608630861664552, 0.960863455722616, 0.9579018561508262],
|
|
226
226
|
"200": [0.9067104284114348, 0.897531747003126, 0.8929412664587454],
|
|
227
|
-
"300": [0.
|
|
227
|
+
"300": [0.8411658168922252, 0.8275092269394143, 0.8184011122745035],
|
|
228
228
|
"400": [0.6521305635454828, 0.6262227267183841, 0.6089382265532824],
|
|
229
229
|
"500": [0.4727141790875176, 0.44200215177756097, 0.4200373006027184],
|
|
230
|
-
"600": [0.
|
|
231
|
-
"700": [0.26848797345273384, 0.2504235021060844, 0.
|
|
230
|
+
"600": [0.34265047146151034, 0.3246754252193408, 0.3021830556172036],
|
|
231
|
+
"700": [0.26848797345273384, 0.2504235021060844, 0.23233119429809485],
|
|
232
232
|
"800": [0.16162397505748383, 0.14419479183203318, 0.13983765564387862],
|
|
233
233
|
"900": [0.1095120705758072, 0.09798768012353232, 0.09030699498911521],
|
|
234
|
-
"950": [0.046959212394505324, 0.039356111711251814, 0.
|
|
234
|
+
"950": [0.046959212394505324, 0.039356111711251814, 0.03554448401415078]
|
|
235
235
|
},
|
|
236
236
|
"teal": {
|
|
237
237
|
"50": [0.942264415835868, 0.9925186060972945, 0.9809167536907614],
|
|
238
238
|
"100": [0.7967792248302388, 0.9858463319166276, 0.9457265007541659],
|
|
239
|
-
"200": [0.5870300825650457, 0.9674542323535967, 0.
|
|
239
|
+
"200": [0.5870300825650457, 0.9674542323535967, 0.8945855391080421],
|
|
240
240
|
"300": [0.2756205260597759, 0.92743320461791, 0.8335047024203683],
|
|
241
241
|
"400": [0, 0.8352503934977448, 0.7433175862514426],
|
|
242
|
-
"500": [0, 0.
|
|
242
|
+
"500": [0, 0.7333587456917722, 0.6548707925920928],
|
|
243
243
|
"600": [0, 0.5892682376396243, 0.5372884597753133],
|
|
244
244
|
"700": [0, 0.4689987755513933, 0.4349716078760057],
|
|
245
245
|
"800": [0, 0.3731432796461611, 0.3521346605413762],
|
|
246
|
-
"900": [0.04200313629213056, 0.
|
|
247
|
-
"950": [0.
|
|
246
|
+
"900": [0.04200313629213056, 0.30817082957210795, 0.29175599091547866],
|
|
247
|
+
"950": [0.008121452965348866, 0.18475638376933684, 0.18082281767007446]
|
|
248
248
|
},
|
|
249
249
|
"violet": {
|
|
250
250
|
"50": [0.9605924924324111, 0.9527792887293464, 0.9996634988527536],
|
|
251
251
|
"100": [0.9290421500860007, 0.9130081548129572, 0.997068380188375],
|
|
252
|
-
"200": [0.8665415265005059, 0.
|
|
253
|
-
"300": [0.7700671196457528, 0.
|
|
252
|
+
"200": [0.8665415265005059, 0.8378734748372849, 1],
|
|
253
|
+
"300": [0.7700671196457528, 0.7039359698697331, 1],
|
|
254
254
|
"400": [0.6526055482928629, 0.5169347069554402, 1],
|
|
255
255
|
"500": [0.5559262801505183, 0.31816377603293, 1],
|
|
256
|
-
"600": [0.
|
|
256
|
+
"600": [0.49991114111405505, 0.1337047597740655, 0.9959982436016886],
|
|
257
257
|
"700": [0.43968586642094387, 0.03142319427594062, 0.9064205865926493],
|
|
258
258
|
"800": [0.3653835270009413, 0.05553910583587176, 0.7533062777024281],
|
|
259
|
-
"900": [0.
|
|
260
|
-
"950": [0.18254693023671884, 0.05090218177257511, 0.
|
|
259
|
+
"900": [0.3024733433854317, 0.08911598173638452, 0.6037157120081967],
|
|
260
|
+
"950": [0.18254693023671884, 0.05090218177257511, 0.4063526180299908]
|
|
261
261
|
},
|
|
262
262
|
"yellow": {
|
|
263
263
|
"50": [0.9955703006497268, 0.9878028178809953, 0.9100785396857242],
|
|
@@ -266,23 +266,23 @@
|
|
|
266
266
|
"300": [1, 0.8762567001636218, 0.12571207403734358],
|
|
267
267
|
"400": [0.9930035750967382, 0.781944599547609, 0],
|
|
268
268
|
"500": [0.9413119564243746, 0.6929154066525445, 0],
|
|
269
|
-
"600": [0.
|
|
269
|
+
"600": [0.81755409760895, 0.5296359893141336, 0],
|
|
270
270
|
"700": [0.6510636052795635, 0.3732093823582209, 0],
|
|
271
271
|
"800": [0.5359094292771415, 0.292712680375146, 0],
|
|
272
|
-
"900": [0.
|
|
273
|
-
"950": [0.2618609919343149, 0.
|
|
272
|
+
"900": [0.4504861621005513, 0.24240234180802367, 0.040903629199751344],
|
|
273
|
+
"950": [0.2618609919343149, 0.1240003022815171, 0.017420568848404906]
|
|
274
274
|
},
|
|
275
275
|
"zinc": {
|
|
276
276
|
"50": [0.9802559798510239, 0.980255979851023, 0.9802559798510234],
|
|
277
277
|
"100": [0.9563849496780165, 0.9563853273817099, 0.9593429413177964],
|
|
278
278
|
"200": [0.8944767219112582, 0.8944769095405369, 0.9061506216932224],
|
|
279
|
-
"300": [0.8310875321463256, 0.8310831943235725, 0.
|
|
280
|
-
"400": [0.
|
|
279
|
+
"300": [0.8310875321463256, 0.8310831943235725, 0.8483446141912067],
|
|
280
|
+
"400": [0.6226133255430647, 0.6225615603365655, 0.6633595925781616],
|
|
281
281
|
"500": [0.44299520411430815, 0.44292921637929855, 0.4838042927551956],
|
|
282
|
-
"600": [0.
|
|
282
|
+
"600": [0.3211818615075124, 0.32109020186048987, 0.3621075403712351],
|
|
283
283
|
"700": [0.24648490356540953, 0.2464470673269114, 0.27646490245035016],
|
|
284
|
-
"800": [0.15289691637693303, 0.15288684808701203, 0.
|
|
284
|
+
"800": [0.15289691637693303, 0.15288684808701203, 0.16577024780700778],
|
|
285
285
|
"900": [0.09379639112638324, 0.09379291703454026, 0.10583165480724857],
|
|
286
|
-
"950": [0.
|
|
286
|
+
"950": [0.035374260841250754, 0.035358999667475625, 0.04431813654457032]
|
|
287
287
|
}
|
|
288
|
-
}
|
|
288
|
+
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grida/tailwindcss-colors",
|
|
3
|
-
"
|
|
4
|
-
"version": "4.0.1",
|
|
5
|
-
"homepage": "https://grida.co",
|
|
6
|
-
"repository": "https://github.com/gridaco/grida",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"author": "softmarshmallow",
|
|
3
|
+
"version": "4.0.2",
|
|
9
4
|
"private": false,
|
|
5
|
+
"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.",
|
|
10
6
|
"keywords": [
|
|
7
|
+
"colors",
|
|
8
|
+
"data",
|
|
11
9
|
"grida",
|
|
12
10
|
"tailwind",
|
|
13
|
-
"
|
|
14
|
-
"tailwindcss",
|
|
15
|
-
"data"
|
|
11
|
+
"tailwindcss"
|
|
16
12
|
],
|
|
13
|
+
"homepage": "https://grida.co",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "softmarshmallow",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/gridaco/grida"
|
|
19
|
+
},
|
|
17
20
|
"files": [
|
|
18
21
|
"css",
|
|
19
22
|
"json",
|
|
23
|
+
"types.d.ts",
|
|
20
24
|
"README.md"
|
|
21
25
|
],
|
|
22
26
|
"exports": {
|
|
@@ -24,13 +28,39 @@
|
|
|
24
28
|
"./css/rgba.css": "./css/rgba.css",
|
|
25
29
|
"./css/hex.css": "./css/hex.css",
|
|
26
30
|
"./css/oklch.css": "./css/oklch.css",
|
|
27
|
-
"./json/rgb.json":
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"./json/
|
|
31
|
+
"./json/rgb.json": {
|
|
32
|
+
"types": "./json/rgb.d.cts",
|
|
33
|
+
"default": "./json/rgb.json"
|
|
34
|
+
},
|
|
35
|
+
"./json/rgbf.json": {
|
|
36
|
+
"types": "./json/rgbf.d.cts",
|
|
37
|
+
"default": "./json/rgbf.json"
|
|
38
|
+
},
|
|
39
|
+
"./json/rgba.json": {
|
|
40
|
+
"types": "./json/rgba.d.cts",
|
|
41
|
+
"default": "./json/rgba.json"
|
|
42
|
+
},
|
|
43
|
+
"./json/hex.json": {
|
|
44
|
+
"types": "./json/hex.d.cts",
|
|
45
|
+
"default": "./json/hex.json"
|
|
46
|
+
},
|
|
47
|
+
"./json/oklch.json": {
|
|
48
|
+
"types": "./json/oklch.d.cts",
|
|
49
|
+
"default": "./json/oklch.json"
|
|
50
|
+
},
|
|
51
|
+
"./types": {
|
|
52
|
+
"types": "./types.d.ts"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"typescript": "^6"
|
|
32
60
|
},
|
|
33
61
|
"scripts": {
|
|
34
|
-
"generate": "deno run --allow-read --allow-write --allow-net scripts/generate.ts"
|
|
62
|
+
"generate": "deno run --allow-read --allow-write --allow-net --allow-env --no-prompt scripts/generate.ts",
|
|
63
|
+
"test": "node --test scripts/package.test.mjs",
|
|
64
|
+
"typecheck": "tsc --noEmit"
|
|
35
65
|
}
|
|
36
66
|
}
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind CSS color name identifier.
|
|
3
|
+
*/
|
|
4
|
+
export type ColorName =
|
|
5
|
+
| "amber"
|
|
6
|
+
| "blue"
|
|
7
|
+
| "cyan"
|
|
8
|
+
| "emerald"
|
|
9
|
+
| "fuchsia"
|
|
10
|
+
| "gray"
|
|
11
|
+
| "green"
|
|
12
|
+
| "indigo"
|
|
13
|
+
| "lime"
|
|
14
|
+
| "neutral"
|
|
15
|
+
| "orange"
|
|
16
|
+
| "pink"
|
|
17
|
+
| "purple"
|
|
18
|
+
| "red"
|
|
19
|
+
| "rose"
|
|
20
|
+
| "sky"
|
|
21
|
+
| "slate"
|
|
22
|
+
| "stone"
|
|
23
|
+
| "teal"
|
|
24
|
+
| "violet"
|
|
25
|
+
| "yellow"
|
|
26
|
+
| "zinc";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Tailwind CSS color shade identifier.
|
|
30
|
+
*
|
|
31
|
+
* @spec Valid shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
|
|
32
|
+
*/
|
|
33
|
+
export type ColorShade =
|
|
34
|
+
| "50"
|
|
35
|
+
| "100"
|
|
36
|
+
| "200"
|
|
37
|
+
| "300"
|
|
38
|
+
| "400"
|
|
39
|
+
| "500"
|
|
40
|
+
| "600"
|
|
41
|
+
| "700"
|
|
42
|
+
| "800"
|
|
43
|
+
| "900"
|
|
44
|
+
| "950";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* RGB color value in hexadecimal format.
|
|
48
|
+
*
|
|
49
|
+
* @unit Hex string
|
|
50
|
+
* @spec Hexadecimal color strings in lowercase format (#rrggbb)
|
|
51
|
+
* @format "#rrggbb"
|
|
52
|
+
* @example #62748e // slate-500
|
|
53
|
+
*/
|
|
54
|
+
export type Hex = string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* RGB color tuple in RGB888 format.
|
|
58
|
+
*
|
|
59
|
+
* @unit RGB888
|
|
60
|
+
* @spec RGB values as unsigned 8-bit integers (0-255)
|
|
61
|
+
* @format [r, g, b]
|
|
62
|
+
* @example [98, 116, 142] // slate-500
|
|
63
|
+
*/
|
|
64
|
+
export type RGB = [red: number, green: number, blue: number];
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* RGB color tuple in RGB32F format.
|
|
68
|
+
*
|
|
69
|
+
* @unit RGB32F
|
|
70
|
+
* @spec RGB values as 32-bit floating-point numbers (0.0-1.0)
|
|
71
|
+
* @format [r, g, b]
|
|
72
|
+
* @example [0.384, 0.455, 0.557] // slate-500
|
|
73
|
+
*/
|
|
74
|
+
export type RGBF = [red: number, green: number, blue: number];
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* RGBA color tuple in RGB888A32F format.
|
|
78
|
+
*
|
|
79
|
+
* @unit RGB888A32F
|
|
80
|
+
* @spec RGB values as unsigned 8-bit integers (0-255), alpha as 32-bit float (0.0-1.0)
|
|
81
|
+
* @format [r, g, b, a]
|
|
82
|
+
* @note Alpha is always 1.0 for all Tailwind CSS v4 colors (fully opaque)
|
|
83
|
+
* @example [98, 116, 142, 1] // slate-500
|
|
84
|
+
*/
|
|
85
|
+
export type RGBA = [red: number, green: number, blue: number, alpha: number];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* OKLCH color tuple.
|
|
89
|
+
*
|
|
90
|
+
* @unit OKLCH (perceptual color space)
|
|
91
|
+
* @spec Lightness (0.0-1.0), Chroma (0.0+), Hue (0.0-360.0 degrees)
|
|
92
|
+
* @format [l, c, h]
|
|
93
|
+
* @note Hue may be 0 for achromatic colors (grays)
|
|
94
|
+
* @example [0.384, 0.015, 255.59] // slate-500
|
|
95
|
+
*/
|
|
96
|
+
export type OKLCH = [lightness: number, chroma: number, hue: number];
|