@rokkit/core 1.5.0 → 1.7.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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Categorical colour families with full 50-950 ladders, used to differentiate
3
+ * open-ended groups (chart series, graph node groups).
4
+ *
5
+ * Deliberately NOT merged into `defaultColors`: core's `tailwind.json` is a
6
+ * different palette that disagrees on shared families, so merging would move
7
+ * every chart's resolved colours.
8
+ */
9
+ export declare const categoricalPalette: Record<string, Record<string, string>>;
10
+ export declare const categoricalFamilies: string[];
@@ -45,3 +45,4 @@ export declare const syntaxColors: {
45
45
  };
46
46
  };
47
47
  export declare const defaultColors: PresetMiniColors & typeof extraColors;
48
+ export { categoricalPalette, categoricalFamilies } from './brewer.js';
@@ -67,4 +67,4 @@ export namespace DEFAULT_THEME_MAPPING {
67
67
  }
68
68
  export const INVERTED_ROLES: Set<string>;
69
69
  export const DEFAULT_STATE_ICONS: any;
70
- export { defaultColors, syntaxColors, shades, defaultPalette } from "./colors/index";
70
+ export { defaultColors, syntaxColors, shades, defaultPalette, categoricalPalette, categoricalFamilies } from "./colors/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/core",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Contains core utility functions and classes that can be used in various components.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,6 +47,6 @@
47
47
  "ramda": "^0.32.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@rokkit/icons": "1.5.0"
50
+ "@rokkit/icons": "1.7.0"
51
51
  }
52
52
  }
@@ -0,0 +1,13 @@
1
+ import categorical from './categorical.json' with { type: 'json' }
2
+
3
+ /**
4
+ * Categorical colour families with full 50-950 ladders, used to differentiate
5
+ * open-ended groups (chart series, graph node groups).
6
+ *
7
+ * Deliberately NOT merged into `defaultColors`: core's `tailwind.json` is a
8
+ * different palette that disagrees on shared families, so merging would move
9
+ * every chart's resolved colours.
10
+ */
11
+ export const categoricalPalette: Record<string, Record<string, string>> = categorical
12
+
13
+ export const categoricalFamilies = Object.keys(categorical).sort()
@@ -0,0 +1,277 @@
1
+ {
2
+ "gold": {
3
+ "50": "#fffef7",
4
+ "100": "#fffdf0",
5
+ "200": "#fffadb",
6
+ "300": "#fff6c4",
7
+ "400": "#ffec96",
8
+ "500": "#ffde6b",
9
+ "600": "#e6c257",
10
+ "700": "#bf953b",
11
+ "800": "#996f26",
12
+ "900": "#734a16",
13
+ "950": "#4a2909"
14
+ },
15
+ "lavender": {
16
+ "50": "#fffaff",
17
+ "100": "#fcf2fc",
18
+ "200": "#fce1fc",
19
+ "300": "#facff9",
20
+ "400": "#f5abf4",
21
+ "500": "#ef89ee",
22
+ "600": "#d96fd2",
23
+ "700": "#b34da5",
24
+ "800": "#8f317a",
25
+ "900": "#6b1c55",
26
+ "950": "#450c30"
27
+ },
28
+ "teal": {
29
+ "50": "#f2fcfc",
30
+ "100": "#e3fafa",
31
+ "200": "#bdf2f1",
32
+ "300": "#96ebe9",
33
+ "400": "#51dbd7",
34
+ "500": "#15cbc4",
35
+ "600": "#11b8aa",
36
+ "700": "#0b9984",
37
+ "800": "#077a60",
38
+ "900": "#045c41",
39
+ "950": "#023b25"
40
+ },
41
+ "rose": {
42
+ "50": "#fffbf7",
43
+ "100": "#fcf6f0",
44
+ "200": "#fce8dc",
45
+ "300": "#fad7c8",
46
+ "400": "#f5aa9d",
47
+ "500": "#f07575",
48
+ "600": "#d95f5f",
49
+ "700": "#b34242",
50
+ "800": "#8f2929",
51
+ "900": "#6b1818",
52
+ "950": "#450a0a"
53
+ },
54
+ "sky": {
55
+ "50": "#f2fdff",
56
+ "100": "#e6fbff",
57
+ "200": "#bff3ff",
58
+ "300": "#99ebff",
59
+ "400": "#4fd6ff",
60
+ "500": "#02b8ff",
61
+ "600": "#029ee6",
62
+ "700": "#027abf",
63
+ "800": "#025799",
64
+ "900": "#003b73",
65
+ "950": "#00234a"
66
+ },
67
+ "yellow": {
68
+ "50": "#fffef2",
69
+ "100": "#fffce8",
70
+ "200": "#fff8c4",
71
+ "300": "#fcf09f",
72
+ "400": "#fce25b",
73
+ "500": "#facc15",
74
+ "600": "#e0b010",
75
+ "700": "#ba860b",
76
+ "800": "#966208",
77
+ "900": "#704304",
78
+ "950": "#472601"
79
+ },
80
+ "pink": {
81
+ "50": "#fef5ff",
82
+ "100": "#fbebfc",
83
+ "200": "#f9cffc",
84
+ "300": "#f3b4fa",
85
+ "400": "#e77af5",
86
+ "500": "#d946ef",
87
+ "600": "#bb38d9",
88
+ "700": "#9227b3",
89
+ "800": "#6b188f",
90
+ "900": "#490e6b",
91
+ "950": "#290645"
92
+ },
93
+
94
+ "lime": {
95
+ "50": "#fbfcf2",
96
+ "100": "#f7fae8",
97
+ "200": "#eaf2c7",
98
+ "300": "#ddeba7",
99
+ "400": "#c2db6e",
100
+ "500": "#a2cb39",
101
+ "600": "#8cb82e",
102
+ "700": "#6d9920",
103
+ "800": "#4e7a15",
104
+ "900": "#355c0c",
105
+ "950": "#1e3b05"
106
+ },
107
+ "red": {
108
+ "50": "#fff5fa",
109
+ "100": "#ffebf5",
110
+ "200": "#fccce3",
111
+ "300": "#faafcd",
112
+ "400": "#f77499",
113
+ "500": "#f63a57",
114
+ "600": "#db304a",
115
+ "700": "#b82135",
116
+ "800": "#941524",
117
+ "900": "#6e0c17",
118
+ "950": "#47050c"
119
+ },
120
+ "cyan": {
121
+ "50": "#f0fbfc",
122
+ "100": "#e1f8fa",
123
+ "200": "#baeff5",
124
+ "300": "#91e4ed",
125
+ "400": "#48cce0",
126
+ "500": "#06b6d4",
127
+ "600": "#069abf",
128
+ "700": "#03779e",
129
+ "800": "#035880",
130
+ "900": "#013b5e",
131
+ "950": "#01223d"
132
+ },
133
+ "orange": {
134
+ "50": "#fffdf5",
135
+ "100": "#fffae8",
136
+ "200": "#fcefc5",
137
+ "300": "#fce3a4",
138
+ "400": "#fac65f",
139
+ "500": "#f79f1e",
140
+ "600": "#de8818",
141
+ "700": "#ba6b11",
142
+ "800": "#944d0a",
143
+ "900": "#703406",
144
+ "950": "#471d02"
145
+ },
146
+ "violet": {
147
+ "50": "#fdfaff",
148
+ "100": "#f8f2fc",
149
+ "200": "#eedefa",
150
+ "300": "#e0cbf7",
151
+ "400": "#c4a7f2",
152
+ "500": "#9f84ec",
153
+ "600": "#866bd6",
154
+ "700": "#634bb3",
155
+ "800": "#45318f",
156
+ "900": "#2b1b6b",
157
+ "950": "#150b45"
158
+ },
159
+ "emerald": {
160
+ "50": "#f2fcf9",
161
+ "100": "#e6faf3",
162
+ "200": "#bdf0dc",
163
+ "300": "#9be8c6",
164
+ "400": "#5ad694",
165
+ "500": "#22c55e",
166
+ "600": "#1ab04f",
167
+ "700": "#13943c",
168
+ "800": "#0c752b",
169
+ "900": "#07591d",
170
+ "950": "#03380f"
171
+ },
172
+ "wood": {
173
+ "50": "#faf5f0",
174
+ "100": "#f2e6dc",
175
+ "200": "#e3c4b1",
176
+ "300": "#d19c86",
177
+ "400": "#ad5140",
178
+ "500": "#890e0e",
179
+ "600": "#7d0b0b",
180
+ "700": "#660707",
181
+ "800": "#520505",
182
+ "900": "#3d0202",
183
+ "950": "#290101"
184
+ },
185
+ "blue": {
186
+ "50": "#f2fcff",
187
+ "100": "#e6f9ff",
188
+ "200": "#bfeeff",
189
+ "300": "#99e0ff",
190
+ "400": "#4cbffc",
191
+ "500": "#0092fd",
192
+ "600": "#007de3",
193
+ "700": "#0061bd",
194
+ "800": "#004696",
195
+ "900": "#003073",
196
+ "950": "#001c4a"
197
+ },
198
+
199
+ "amber": {
200
+ "50": "#fffbf5",
201
+ "100": "#fff7eb",
202
+ "200": "#ffe9cc",
203
+ "300": "#ffd6ab",
204
+ "400": "#ffa86e",
205
+ "500": "#ff6e2f",
206
+ "600": "#e65b25",
207
+ "700": "#bf4519",
208
+ "800": "#993111",
209
+ "900": "#732009",
210
+ "950": "#4a1204"
211
+ },
212
+ "purple": {
213
+ "50": "#fdf7ff",
214
+ "100": "#faedff",
215
+ "200": "#f0d4fc",
216
+ "300": "#e7bbfc",
217
+ "400": "#ca87fa",
218
+ "500": "#a855f7",
219
+ "600": "#8f45de",
220
+ "700": "#6d2fba",
221
+ "800": "#4f1e94",
222
+ "900": "#341170",
223
+ "950": "#1d0747"
224
+ },
225
+ "zinc": {
226
+ "50": "#f7f9fa",
227
+ "100": "#edf2f5",
228
+ "200": "#d3dde3",
229
+ "300": "#bac8d1",
230
+ "400": "#8d9eb0",
231
+ "500": "#64748b",
232
+ "600": "#536580",
233
+ "700": "#384a69",
234
+ "800": "#243454",
235
+ "900": "#142140",
236
+ "950": "#091129"
237
+ },
238
+ "stone": {
239
+ "50": "#f7f7f7",
240
+ "100": "#f2f1f0",
241
+ "200": "#dedcd9",
242
+ "300": "#c9c6c1",
243
+ "400": "#a19b95",
244
+ "500": "#78716c",
245
+ "600": "#6b5f57",
246
+ "700": "#59473c",
247
+ "800": "#473227",
248
+ "900": "#361f15",
249
+ "950": "#241009"
250
+ },
251
+ "indigo": {
252
+ "50": "#f7fbff",
253
+ "100": "#f0f7ff",
254
+ "200": "#d7e5fc",
255
+ "300": "#bed1fa",
256
+ "400": "#92a3f7",
257
+ "500": "#6366f1",
258
+ "600": "#5153db",
259
+ "700": "#383ab5",
260
+ "800": "#242691",
261
+ "900": "#14156e",
262
+ "950": "#090a47"
263
+ },
264
+ "gray": {
265
+ "50": "#f7f9fa",
266
+ "100": "#edf0f2",
267
+ "200": "#d7dde0",
268
+ "300": "#c0c6cc",
269
+ "400": "#949ba6",
270
+ "500": "#6b7280",
271
+ "600": "#576073",
272
+ "700": "#3b455e",
273
+ "800": "#26304d",
274
+ "900": "#151d38",
275
+ "950": "#090e24"
276
+ }
277
+ }
@@ -23,3 +23,5 @@ export const defaultColors: PresetMiniColors & typeof extraColors = {
23
23
  ...colors,
24
24
  ...extraColors
25
25
  }
26
+
27
+ export { categoricalPalette, categoricalFamilies } from './brewer.js'
package/src/constants.js CHANGED
@@ -1,4 +1,11 @@
1
- export { defaultColors, syntaxColors, shades, defaultPalette } from './colors/index'
1
+ export {
2
+ defaultColors,
3
+ syntaxColors,
4
+ shades,
5
+ defaultPalette,
6
+ categoricalPalette,
7
+ categoricalFamilies
8
+ } from './colors/index'
2
9
  export const DATA_IMAGE_REGEX = /^data:image\/(jpeg|png|gif|bmp|webp|svg\+xml)/i
3
10
 
4
11
  // ─── Snippet names ────────────────────────────────────────────────────────────