@tldraw/tlschema 3.16.0-next.eafb52d15064 → 3.16.0-next.fe14f1b4181f

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.
@@ -22,7 +22,9 @@ __export(TLColorStyle_exports, {
22
22
  DefaultColorThemePalette: () => DefaultColorThemePalette,
23
23
  DefaultLabelColorStyle: () => DefaultLabelColorStyle,
24
24
  defaultColorNames: () => defaultColorNames,
25
- getDefaultColorTheme: () => getDefaultColorTheme
25
+ getColorValue: () => getColorValue,
26
+ getDefaultColorTheme: () => getDefaultColorTheme,
27
+ isDefaultThemeColor: () => isDefaultThemeColor
26
28
  });
27
29
  module.exports = __toCommonJS(TLColorStyle_exports);
28
30
  var import_StyleProp = require("./StyleProp");
@@ -50,275 +52,197 @@ const DefaultColorThemePalette = {
50
52
  black: {
51
53
  solid: "#1d1d1d",
52
54
  fill: "#1d1d1d",
53
- frame: {
54
- headingStroke: "#717171",
55
- headingFill: "#ffffff",
56
- stroke: "#717171",
57
- fill: "#ffffff",
58
- text: "#000000"
59
- },
60
- note: {
61
- fill: "#FCE19C",
62
- text: "#000000"
63
- },
55
+ frameHeadingStroke: "#717171",
56
+ frameHeadingFill: "#ffffff",
57
+ frameStroke: "#717171",
58
+ frameFill: "#ffffff",
59
+ frameText: "#000000",
60
+ noteFill: "#FCE19C",
61
+ noteText: "#000000",
64
62
  semi: "#e8e8e8",
65
63
  pattern: "#494949",
66
- highlight: {
67
- srgb: "#fddd00",
68
- p3: "color(display-p3 0.972 0.8205 0.05)"
69
- }
64
+ highlightSrgb: "#fddd00",
65
+ highlightP3: "color(display-p3 0.972 0.8205 0.05)"
70
66
  },
71
67
  blue: {
72
68
  solid: "#4465e9",
73
69
  fill: "#4465e9",
74
- frame: {
75
- headingStroke: "#6681ec",
76
- headingFill: "#f9fafe",
77
- stroke: "#6681ec",
78
- fill: "#f9fafe",
79
- text: "#000000"
80
- },
81
- note: {
82
- fill: "#8AA3FF",
83
- text: "#000000"
84
- },
70
+ frameHeadingStroke: "#6681ec",
71
+ frameHeadingFill: "#f9fafe",
72
+ frameStroke: "#6681ec",
73
+ frameFill: "#f9fafe",
74
+ frameText: "#000000",
75
+ noteFill: "#8AA3FF",
76
+ noteText: "#000000",
85
77
  semi: "#dce1f8",
86
78
  pattern: "#6681ee",
87
- highlight: {
88
- srgb: "#10acff",
89
- p3: "color(display-p3 0.308 0.6632 0.9996)"
90
- }
79
+ highlightSrgb: "#10acff",
80
+ highlightP3: "color(display-p3 0.308 0.6632 0.9996)"
91
81
  },
92
82
  green: {
93
83
  solid: "#099268",
94
84
  fill: "#099268",
95
- frame: {
96
- headingStroke: "#37a684",
97
- headingFill: "#f8fcfa",
98
- stroke: "#37a684",
99
- fill: "#f8fcfa",
100
- text: "#000000"
101
- },
102
- note: {
103
- fill: "#6FC896",
104
- text: "#000000"
105
- },
85
+ frameHeadingStroke: "#37a684",
86
+ frameHeadingFill: "#f8fcfa",
87
+ frameStroke: "#37a684",
88
+ frameFill: "#f8fcfa",
89
+ frameText: "#000000",
90
+ noteFill: "#6FC896",
91
+ noteText: "#000000",
106
92
  semi: "#d3e9e3",
107
93
  pattern: "#39a785",
108
- highlight: {
109
- srgb: "#00ffc8",
110
- p3: "color(display-p3 0.2536 0.984 0.7981)"
111
- }
94
+ highlightSrgb: "#00ffc8",
95
+ highlightP3: "color(display-p3 0.2536 0.984 0.7981)"
112
96
  },
113
97
  grey: {
114
98
  solid: "#9fa8b2",
115
99
  fill: "#9fa8b2",
116
- frame: {
117
- headingStroke: "#aaaaab",
118
- headingFill: "#fbfcfc",
119
- stroke: "#aaaaab",
120
- fill: "#fcfcfd",
121
- text: "#000000"
122
- },
123
- note: {
124
- fill: "#C0CAD3",
125
- text: "#000000"
126
- },
100
+ frameHeadingStroke: "#aaaaab",
101
+ frameHeadingFill: "#fbfcfc",
102
+ frameStroke: "#aaaaab",
103
+ frameFill: "#fcfcfd",
104
+ frameText: "#000000",
105
+ noteFill: "#C0CAD3",
106
+ noteText: "#000000",
127
107
  semi: "#eceef0",
128
108
  pattern: "#bcc3c9",
129
- highlight: {
130
- srgb: "#cbe7f1",
131
- p3: "color(display-p3 0.8163 0.9023 0.9416)"
132
- }
109
+ highlightSrgb: "#cbe7f1",
110
+ highlightP3: "color(display-p3 0.8163 0.9023 0.9416)"
133
111
  },
134
112
  "light-blue": {
135
113
  solid: "#4ba1f1",
136
114
  fill: "#4ba1f1",
137
- frame: {
138
- headingStroke: "#6cb2f3",
139
- headingFill: "#f8fbfe",
140
- stroke: "#6cb2f3",
141
- fill: "#fafcff",
142
- text: "#000000"
143
- },
144
- note: {
145
- fill: "#9BC4FD",
146
- text: "#000000"
147
- },
115
+ frameHeadingStroke: "#6cb2f3",
116
+ frameHeadingFill: "#f8fbfe",
117
+ frameStroke: "#6cb2f3",
118
+ frameFill: "#fafcff",
119
+ frameText: "#000000",
120
+ noteFill: "#9BC4FD",
121
+ noteText: "#000000",
148
122
  semi: "#ddedfa",
149
123
  pattern: "#6fbbf8",
150
- highlight: {
151
- srgb: "#00f4ff",
152
- p3: "color(display-p3 0.1512 0.9414 0.9996)"
153
- }
124
+ highlightSrgb: "#00f4ff",
125
+ highlightP3: "color(display-p3 0.1512 0.9414 0.9996)"
154
126
  },
155
127
  "light-green": {
156
128
  solid: "#4cb05e",
157
129
  fill: "#4cb05e",
158
- frame: {
159
- headingStroke: "#6dbe7c",
160
- headingFill: "#f8fcf9",
161
- stroke: "#6dbe7c",
162
- fill: "#fafdfa",
163
- text: "#000000"
164
- },
165
- note: {
166
- fill: "#98D08A",
167
- text: "#000000"
168
- },
130
+ frameHeadingStroke: "#6dbe7c",
131
+ frameHeadingFill: "#f8fcf9",
132
+ frameStroke: "#6dbe7c",
133
+ frameFill: "#fafdfa",
134
+ frameText: "#000000",
135
+ noteFill: "#98D08A",
136
+ noteText: "#000000",
169
137
  semi: "#dbf0e0",
170
138
  pattern: "#65cb78",
171
- highlight: {
172
- srgb: "#65f641",
173
- p3: "color(display-p3 0.563 0.9495 0.3857)"
174
- }
139
+ highlightSrgb: "#65f641",
140
+ highlightP3: "color(display-p3 0.563 0.9495 0.3857)"
175
141
  },
176
142
  "light-red": {
177
143
  solid: "#f87777",
178
144
  fill: "#f87777",
179
- frame: {
180
- headingStroke: "#f89090",
181
- headingFill: "#fffafa",
182
- stroke: "#f89090",
183
- fill: "#fffbfb",
184
- text: "#000000"
185
- },
186
- note: {
187
- fill: "#F7A5A1",
188
- text: "#000000"
189
- },
145
+ frameHeadingStroke: "#f89090",
146
+ frameHeadingFill: "#fffafa",
147
+ frameStroke: "#f89090",
148
+ frameFill: "#fffbfb",
149
+ frameText: "#000000",
150
+ noteFill: "#F7A5A1",
151
+ noteText: "#000000",
190
152
  semi: "#f4dadb",
191
153
  pattern: "#fe9e9e",
192
- highlight: {
193
- srgb: "#ff7fa3",
194
- p3: "color(display-p3 0.9988 0.5301 0.6397)"
195
- }
154
+ highlightSrgb: "#ff7fa3",
155
+ highlightP3: "color(display-p3 0.9988 0.5301 0.6397)"
196
156
  },
197
157
  "light-violet": {
198
158
  solid: "#e085f4",
199
159
  fill: "#e085f4",
200
- frame: {
201
- headingStroke: "#e59bf5",
202
- headingFill: "#fefaff",
203
- stroke: "#e59bf5",
204
- fill: "#fefbff",
205
- text: "#000000"
206
- },
207
- note: {
208
- fill: "#DFB0F9",
209
- text: "#000000"
210
- },
160
+ frameHeadingStroke: "#e59bf5",
161
+ frameHeadingFill: "#fefaff",
162
+ frameStroke: "#e59bf5",
163
+ frameFill: "#fefbff",
164
+ frameText: "#000000",
165
+ noteFill: "#DFB0F9",
166
+ noteText: "#000000",
211
167
  semi: "#f5eafa",
212
168
  pattern: "#e9acf8",
213
- highlight: {
214
- srgb: "#ff88ff",
215
- p3: "color(display-p3 0.9676 0.5652 0.9999)"
216
- }
169
+ highlightSrgb: "#ff88ff",
170
+ highlightP3: "color(display-p3 0.9676 0.5652 0.9999)"
217
171
  },
218
172
  orange: {
219
173
  solid: "#e16919",
220
174
  fill: "#e16919",
221
- frame: {
222
- headingStroke: "#e68544",
223
- headingFill: "#fef9f6",
224
- stroke: "#e68544",
225
- fill: "#fef9f6",
226
- text: "#000000"
227
- },
228
- note: {
229
- fill: "#FAA475",
230
- text: "#000000"
231
- },
175
+ frameHeadingStroke: "#e68544",
176
+ frameHeadingFill: "#fef9f6",
177
+ frameStroke: "#e68544",
178
+ frameFill: "#fef9f6",
179
+ frameText: "#000000",
180
+ noteFill: "#FAA475",
181
+ noteText: "#000000",
232
182
  semi: "#f8e2d4",
233
183
  pattern: "#f78438",
234
- highlight: {
235
- srgb: "#ffa500",
236
- p3: "color(display-p3 0.9988 0.6905 0.266)"
237
- }
184
+ highlightSrgb: "#ffa500",
185
+ highlightP3: "color(display-p3 0.9988 0.6905 0.266)"
238
186
  },
239
187
  red: {
240
188
  solid: "#e03131",
241
189
  fill: "#e03131",
242
- frame: {
243
- headingStroke: "#e55757",
244
- headingFill: "#fef7f7",
245
- stroke: "#e55757",
246
- fill: "#fef9f9",
247
- text: "#000000"
248
- },
249
- note: {
250
- fill: "#FC8282",
251
- text: "#000000"
252
- },
190
+ frameHeadingStroke: "#e55757",
191
+ frameHeadingFill: "#fef7f7",
192
+ frameStroke: "#e55757",
193
+ frameFill: "#fef9f9",
194
+ frameText: "#000000",
195
+ noteFill: "#FC8282",
196
+ noteText: "#000000",
253
197
  semi: "#f4dadb",
254
198
  pattern: "#e55959",
255
- highlight: {
256
- srgb: "#ff636e",
257
- p3: "color(display-p3 0.9992 0.4376 0.45)"
258
- }
199
+ highlightSrgb: "#ff636e",
200
+ highlightP3: "color(display-p3 0.9992 0.4376 0.45)"
259
201
  },
260
202
  violet: {
261
203
  solid: "#ae3ec9",
262
204
  fill: "#ae3ec9",
263
- frame: {
264
- headingStroke: "#bc62d3",
265
- headingFill: "#fcf7fd",
266
- stroke: "#bc62d3",
267
- fill: "#fdf9fd",
268
- text: "#000000"
269
- },
270
- note: {
271
- fill: "#DB91FD",
272
- text: "#000000"
273
- },
205
+ frameHeadingStroke: "#bc62d3",
206
+ frameHeadingFill: "#fcf7fd",
207
+ frameStroke: "#bc62d3",
208
+ frameFill: "#fdf9fd",
209
+ frameText: "#000000",
210
+ noteFill: "#DB91FD",
211
+ noteText: "#000000",
274
212
  semi: "#ecdcf2",
275
213
  pattern: "#bd63d3",
276
- highlight: {
277
- srgb: "#c77cff",
278
- p3: "color(display-p3 0.7469 0.5089 0.9995)"
279
- }
214
+ highlightSrgb: "#c77cff",
215
+ highlightP3: "color(display-p3 0.7469 0.5089 0.9995)"
280
216
  },
281
217
  yellow: {
282
218
  solid: "#f1ac4b",
283
219
  fill: "#f1ac4b",
284
- frame: {
285
- headingStroke: "#f3bb6c",
286
- headingFill: "#fefcf8",
287
- stroke: "#f3bb6c",
288
- fill: "#fffdfa",
289
- text: "#000000"
290
- },
291
- note: {
292
- fill: "#FED49A",
293
- text: "#000000"
294
- },
220
+ frameHeadingStroke: "#f3bb6c",
221
+ frameHeadingFill: "#fefcf8",
222
+ frameStroke: "#f3bb6c",
223
+ frameFill: "#fffdfa",
224
+ frameText: "#000000",
225
+ noteFill: "#FED49A",
226
+ noteText: "#000000",
295
227
  semi: "#f9f0e6",
296
228
  pattern: "#fecb92",
297
- highlight: {
298
- srgb: "#fddd00",
299
- p3: "color(display-p3 0.972 0.8705 0.05)"
300
- }
229
+ highlightSrgb: "#fddd00",
230
+ highlightP3: "color(display-p3 0.972 0.8705 0.05)"
301
231
  },
302
232
  white: {
303
233
  solid: "#FFFFFF",
304
234
  fill: "#FFFFFF",
305
235
  semi: "#f5f5f5",
306
236
  pattern: "#f9f9f9",
307
- frame: {
308
- headingStroke: "#7d7d7d",
309
- headingFill: "#ffffff",
310
- stroke: "#7d7d7d",
311
- fill: "#ffffff",
312
- text: "#000000"
313
- },
314
- note: {
315
- fill: "#FFFFFF",
316
- text: "#000000"
317
- },
318
- highlight: {
319
- srgb: "#ffffff",
320
- p3: "color(display-p3 1 1 1)"
321
- }
237
+ frameHeadingStroke: "#7d7d7d",
238
+ frameHeadingFill: "#ffffff",
239
+ frameStroke: "#7d7d7d",
240
+ frameFill: "#ffffff",
241
+ frameText: "#000000",
242
+ noteFill: "#FFFFFF",
243
+ noteText: "#000000",
244
+ highlightSrgb: "#ffffff",
245
+ highlightP3: "color(display-p3 1 1 1)"
322
246
  }
323
247
  },
324
248
  darkMode: {
@@ -329,316 +253,238 @@ const DefaultColorThemePalette = {
329
253
  black: {
330
254
  solid: "#f2f2f2",
331
255
  fill: "#f2f2f2",
332
- frame: {
333
- headingStroke: "#5c5c5c",
334
- headingFill: "#252525",
335
- stroke: "#5c5c5c",
336
- fill: "#0c0c0c",
337
- text: "#f2f2f2"
338
- },
339
- note: {
340
- fill: "#2c2c2c",
341
- text: "#f2f2f2"
342
- },
256
+ frameHeadingStroke: "#5c5c5c",
257
+ frameHeadingFill: "#252525",
258
+ frameStroke: "#5c5c5c",
259
+ frameFill: "#0c0c0c",
260
+ frameText: "#f2f2f2",
261
+ noteFill: "#2c2c2c",
262
+ noteText: "#f2f2f2",
343
263
  semi: "#2c3036",
344
264
  pattern: "#989898",
345
- highlight: {
346
- srgb: "#d2b700",
347
- p3: "color(display-p3 0.8078 0.6225 0.0312)"
348
- }
265
+ highlightSrgb: "#d2b700",
266
+ highlightP3: "color(display-p3 0.8078 0.6225 0.0312)"
349
267
  },
350
268
  blue: {
351
269
  solid: "#4f72fc",
352
270
  // 3c60f0
353
271
  fill: "#4f72fc",
354
- frame: {
355
- headingStroke: "#384994",
356
- headingFill: "#1C2036",
357
- stroke: "#384994",
358
- fill: "#11141f",
359
- text: "#f2f2f2"
360
- },
361
- note: {
362
- fill: "#2A3F98",
363
- text: "#f2f2f2"
364
- },
272
+ frameHeadingStroke: "#384994",
273
+ frameHeadingFill: "#1C2036",
274
+ frameStroke: "#384994",
275
+ frameFill: "#11141f",
276
+ frameText: "#f2f2f2",
277
+ noteFill: "#2A3F98",
278
+ noteText: "#f2f2f2",
365
279
  semi: "#262d40",
366
280
  pattern: "#3a4b9e",
367
- highlight: {
368
- srgb: "#0079d2",
369
- p3: "color(display-p3 0.0032 0.4655 0.7991)"
370
- }
281
+ highlightSrgb: "#0079d2",
282
+ highlightP3: "color(display-p3 0.0032 0.4655 0.7991)"
371
283
  },
372
284
  green: {
373
285
  solid: "#099268",
374
286
  fill: "#099268",
375
- frame: {
376
- headingStroke: "#10513C",
377
- headingFill: "#14241f",
378
- stroke: "#10513C",
379
- fill: "#0E1614",
380
- text: "#f2f2f2"
381
- },
382
- note: {
383
- fill: "#014429",
384
- text: "#f2f2f2"
385
- },
287
+ frameHeadingStroke: "#10513C",
288
+ frameHeadingFill: "#14241f",
289
+ frameStroke: "#10513C",
290
+ frameFill: "#0E1614",
291
+ frameText: "#f2f2f2",
292
+ noteFill: "#014429",
293
+ noteText: "#f2f2f2",
386
294
  semi: "#253231",
387
295
  pattern: "#366a53",
388
- highlight: {
389
- srgb: "#009774",
390
- p3: "color(display-p3 0.0085 0.582 0.4604)"
391
- }
296
+ highlightSrgb: "#009774",
297
+ highlightP3: "color(display-p3 0.0085 0.582 0.4604)"
392
298
  },
393
299
  grey: {
394
300
  solid: "#9398b0",
395
301
  fill: "#9398b0",
396
- frame: {
397
- headingStroke: "#42474D",
398
- headingFill: "#23262A",
399
- stroke: "#42474D",
400
- fill: "#151719",
401
- text: "#f2f2f2"
402
- },
403
- note: {
404
- fill: "#56595F",
405
- text: "#f2f2f2"
406
- },
302
+ frameHeadingStroke: "#42474D",
303
+ frameHeadingFill: "#23262A",
304
+ frameStroke: "#42474D",
305
+ frameFill: "#151719",
306
+ frameText: "#f2f2f2",
307
+ noteFill: "#56595F",
308
+ noteText: "#f2f2f2",
407
309
  semi: "#33373c",
408
310
  pattern: "#7c8187",
409
- highlight: {
410
- srgb: "#9cb4cb",
411
- p3: "color(display-p3 0.6299 0.7012 0.7856)"
412
- }
311
+ highlightSrgb: "#9cb4cb",
312
+ highlightP3: "color(display-p3 0.6299 0.7012 0.7856)"
413
313
  },
414
314
  "light-blue": {
415
315
  solid: "#4dabf7",
416
316
  fill: "#4dabf7",
417
- frame: {
418
- headingStroke: "#075797",
419
- headingFill: "#142839",
420
- stroke: "#075797",
421
- fill: "#0B1823",
422
- text: "#f2f2f2"
423
- },
424
- note: {
425
- fill: "#1F5495",
426
- text: "#f2f2f2"
427
- },
317
+ frameHeadingStroke: "#075797",
318
+ frameHeadingFill: "#142839",
319
+ frameStroke: "#075797",
320
+ frameFill: "#0B1823",
321
+ frameText: "#f2f2f2",
322
+ noteFill: "#1F5495",
323
+ noteText: "#f2f2f2",
428
324
  semi: "#2a3642",
429
325
  pattern: "#4d7aa9",
430
- highlight: {
431
- srgb: "#00bdc8",
432
- p3: "color(display-p3 0.0023 0.7259 0.7735)"
433
- }
326
+ highlightSrgb: "#00bdc8",
327
+ highlightP3: "color(display-p3 0.0023 0.7259 0.7735)"
434
328
  },
435
329
  "light-green": {
436
330
  solid: "#40c057",
437
331
  fill: "#40c057",
438
- frame: {
439
- headingStroke: "#1C5427",
440
- headingFill: "#18251A",
441
- stroke: "#1C5427",
442
- fill: "#0F1911",
443
- text: "#f2f2f2"
444
- },
445
- note: {
446
- fill: "#21581D",
447
- text: "#f2f2f2"
448
- },
332
+ frameHeadingStroke: "#1C5427",
333
+ frameHeadingFill: "#18251A",
334
+ frameStroke: "#1C5427",
335
+ frameFill: "#0F1911",
336
+ frameText: "#f2f2f2",
337
+ noteFill: "#21581D",
338
+ noteText: "#f2f2f2",
449
339
  semi: "#2a3830",
450
340
  pattern: "#4e874e",
451
- highlight: {
452
- srgb: "#00a000",
453
- p3: "color(display-p3 0.2711 0.6172 0.0195)"
454
- }
341
+ highlightSrgb: "#00a000",
342
+ highlightP3: "color(display-p3 0.2711 0.6172 0.0195)"
455
343
  },
456
344
  "light-red": {
457
345
  solid: "#ff8787",
458
346
  fill: "#ff8787",
459
- frame: {
460
- headingStroke: "#6f3232",
461
- // Darker and desaturated variant of solid
462
- headingFill: "#341818",
463
- // Deep, muted dark red
464
- stroke: "#6f3232",
465
- // Matches headingStroke
466
- fill: "#181212",
467
- // Darker, muted background shade
468
- text: "#f2f2f2"
469
- // Consistent bright text color
470
- },
471
- note: {
472
- fill: "#7a3333",
473
- // Medium-dark, muted variant of solid
474
- text: "#f2f2f2"
475
- },
347
+ frameHeadingStroke: "#6f3232",
348
+ // Darker and desaturated variant of solid
349
+ frameHeadingFill: "#341818",
350
+ // Deep, muted dark red
351
+ frameStroke: "#6f3232",
352
+ // Matches headingStroke
353
+ frameFill: "#181212",
354
+ // Darker, muted background shade
355
+ frameText: "#f2f2f2",
356
+ // Consistent bright text color
357
+ noteFill: "#7a3333",
358
+ // Medium-dark, muted variant of solid
359
+ noteText: "#f2f2f2",
476
360
  semi: "#3c2b2b",
477
361
  // Subdued, darker neutral-red tone
478
362
  pattern: "#a56767",
479
363
  // Existing pattern shade retained
480
- highlight: {
481
- srgb: "#db005b",
482
- p3: "color(display-p3 0.7849 0.0585 0.3589)"
483
- }
364
+ highlightSrgb: "#db005b",
365
+ highlightP3: "color(display-p3 0.7849 0.0585 0.3589)"
484
366
  },
485
367
  "light-violet": {
486
368
  solid: "#e599f7",
487
369
  fill: "#e599f7",
488
- frame: {
489
- headingStroke: "#6c367a",
490
- headingFill: "#2D2230",
491
- stroke: "#6c367a",
492
- fill: "#1C151E",
493
- text: "#f2f2f2"
494
- },
495
- note: {
496
- fill: "#762F8E",
497
- text: "#f2f2f2"
498
- },
370
+ frameHeadingStroke: "#6c367a",
371
+ frameHeadingFill: "#2D2230",
372
+ frameStroke: "#6c367a",
373
+ frameFill: "#1C151E",
374
+ frameText: "#f2f2f2",
375
+ noteFill: "#762F8E",
376
+ noteText: "#f2f2f2",
499
377
  semi: "#383442",
500
378
  pattern: "#9770a9",
501
- highlight: {
502
- srgb: "#c400c7",
503
- p3: "color(display-p3 0.7024 0.0403 0.753)"
504
- }
379
+ highlightSrgb: "#c400c7",
380
+ highlightP3: "color(display-p3 0.7024 0.0403 0.753)"
505
381
  },
506
382
  orange: {
507
383
  solid: "#f76707",
508
384
  fill: "#f76707",
509
- frame: {
510
- headingStroke: "#773a0e",
511
- // Darker, muted version of solid
512
- headingFill: "#2f1d13",
513
- // Deep, warm, muted background
514
- stroke: "#773a0e",
515
- // Matches headingStroke
516
- fill: "#1c1512",
517
- // Darker, richer muted background
518
- text: "#f2f2f2"
519
- // Bright text for contrast
520
- },
521
- note: {
522
- fill: "#7c3905",
523
- // Muted dark variant for note fill
524
- text: "#f2f2f2"
525
- },
385
+ frameHeadingStroke: "#773a0e",
386
+ // Darker, muted version of solid
387
+ frameHeadingFill: "#2f1d13",
388
+ // Deep, warm, muted background
389
+ frameStroke: "#773a0e",
390
+ // Matches headingStroke
391
+ frameFill: "#1c1512",
392
+ // Darker, richer muted background
393
+ frameText: "#f2f2f2",
394
+ // Bright text for contrast
395
+ noteFill: "#7c3905",
396
+ // Muted dark variant for note fill
397
+ noteText: "#f2f2f2",
526
398
  semi: "#3b2e27",
527
399
  // Muted neutral-orange tone
528
400
  pattern: "#9f552d",
529
401
  // Retained existing shade
530
- highlight: {
531
- srgb: "#d07a00",
532
- p3: "color(display-p3 0.7699 0.4937 0.0085)"
533
- }
402
+ highlightSrgb: "#d07a00",
403
+ highlightP3: "color(display-p3 0.7699 0.4937 0.0085)"
534
404
  },
535
405
  red: {
536
406
  solid: "#e03131",
537
407
  fill: "#e03131",
538
- frame: {
539
- headingStroke: "#701e1e",
540
- // Darker, muted variation of solid
541
- headingFill: "#301616",
542
- // Deep, muted reddish backdrop
543
- stroke: "#701e1e",
544
- // Matches headingStroke
545
- fill: "#1b1313",
546
- // Rich, dark muted background
547
- text: "#f2f2f2"
548
- // Bright text for readability
549
- },
550
- note: {
551
- fill: "#7e201f",
552
- // Muted dark variant for note fill
553
- text: "#f2f2f2"
554
- },
408
+ frameHeadingStroke: "#701e1e",
409
+ // Darker, muted variation of solid
410
+ frameHeadingFill: "#301616",
411
+ // Deep, muted reddish backdrop
412
+ frameStroke: "#701e1e",
413
+ // Matches headingStroke
414
+ frameFill: "#1b1313",
415
+ // Rich, dark muted background
416
+ frameText: "#f2f2f2",
417
+ // Bright text for readability
418
+ noteFill: "#7e201f",
419
+ // Muted dark variant for note fill
420
+ noteText: "#f2f2f2",
555
421
  semi: "#382726",
556
422
  // Dark neutral-red tone
557
423
  pattern: "#8f3734",
558
424
  // Existing pattern color retained
559
- highlight: {
560
- srgb: "#de002c",
561
- p3: "color(display-p3 0.7978 0.0509 0.2035)"
562
- }
425
+ highlightSrgb: "#de002c",
426
+ highlightP3: "color(display-p3 0.7978 0.0509 0.2035)"
563
427
  },
564
428
  violet: {
565
429
  solid: "#ae3ec9",
566
430
  fill: "#ae3ec9",
567
- frame: {
568
- headingStroke: "#6d1583",
569
- // Darker, muted variation of solid
570
- headingFill: "#27152e",
571
- // Deep, rich muted violet backdrop
572
- stroke: "#6d1583",
573
- // Matches headingStroke
574
- fill: "#1b0f21",
575
- // Darker muted violet background
576
- text: "#f2f2f2"
577
- // Consistent bright text color
578
- },
579
- note: {
580
- fill: "#5f1c70",
581
- // Muted dark variant for note fill
582
- text: "#f2f2f2"
583
- },
431
+ frameHeadingStroke: "#6d1583",
432
+ // Darker, muted variation of solid
433
+ frameHeadingFill: "#27152e",
434
+ // Deep, rich muted violet backdrop
435
+ frameStroke: "#6d1583",
436
+ // Matches headingStroke
437
+ frameFill: "#1b0f21",
438
+ // Darker muted violet background
439
+ frameText: "#f2f2f2",
440
+ // Consistent bright text color
441
+ noteFill: "#5f1c70",
442
+ // Muted dark variant for note fill
443
+ noteText: "#f2f2f2",
584
444
  semi: "#342938",
585
445
  // Dark neutral-violet tone
586
446
  pattern: "#763a8b",
587
447
  // Retained existing pattern color
588
- highlight: {
589
- srgb: "#9e00ee",
590
- p3: "color(display-p3 0.5651 0.0079 0.8986)"
591
- }
448
+ highlightSrgb: "#9e00ee",
449
+ highlightP3: "color(display-p3 0.5651 0.0079 0.8986)"
592
450
  },
593
451
  yellow: {
594
452
  solid: "#ffc034",
595
453
  fill: "#ffc034",
596
- frame: {
597
- headingStroke: "#684e12",
598
- // Darker, muted variant of solid
599
- headingFill: "#2a2113",
600
- // Rich, muted dark-yellow background
601
- stroke: "#684e12",
602
- // Matches headingStroke
603
- fill: "#1e1911",
604
- // Darker muted shade for background fill
605
- text: "#f2f2f2"
606
- // Bright text color for readability
607
- },
608
- note: {
609
- fill: "#8a5e1c",
610
- // Muted, dark complementary variant
611
- text: "#f2f2f2"
612
- },
454
+ frameHeadingStroke: "#684e12",
455
+ // Darker, muted variant of solid
456
+ frameHeadingFill: "#2a2113",
457
+ // Rich, muted dark-yellow background
458
+ frameStroke: "#684e12",
459
+ // Matches headingStroke
460
+ frameFill: "#1e1911",
461
+ // Darker muted shade for background fill
462
+ frameText: "#f2f2f2",
463
+ // Bright text color for readability
464
+ noteFill: "#8a5e1c",
465
+ // Muted, dark complementary variant
466
+ noteText: "#f2f2f2",
613
467
  semi: "#3b352b",
614
468
  // Dark muted neutral-yellow tone
615
469
  pattern: "#fecb92",
616
470
  // Existing shade retained
617
- highlight: {
618
- srgb: "#d2b700",
619
- p3: "color(display-p3 0.8078 0.7225 0.0312)"
620
- }
471
+ highlightSrgb: "#d2b700",
472
+ highlightP3: "color(display-p3 0.8078 0.7225 0.0312)"
621
473
  },
622
474
  white: {
623
475
  solid: "#f3f3f3",
624
476
  fill: "#f3f3f3",
625
477
  semi: "#f5f5f5",
626
478
  pattern: "#f9f9f9",
627
- frame: {
628
- headingStroke: "#ffffff",
629
- headingFill: "#ffffff",
630
- stroke: "#ffffff",
631
- fill: "#ffffff",
632
- text: "#000000"
633
- },
634
- note: {
635
- fill: "#eaeaea",
636
- text: "#1d1d1d"
637
- },
638
- highlight: {
639
- srgb: "#ffffff",
640
- p3: "color(display-p3 1 1 1)"
641
- }
479
+ frameHeadingStroke: "#ffffff",
480
+ frameHeadingFill: "#ffffff",
481
+ frameStroke: "#ffffff",
482
+ frameFill: "#ffffff",
483
+ frameText: "#000000",
484
+ noteFill: "#eaeaea",
485
+ noteText: "#1d1d1d",
486
+ highlightSrgb: "#ffffff",
487
+ highlightP3: "color(display-p3 1 1 1)"
642
488
  }
643
489
  }
644
490
  };
@@ -653,4 +499,14 @@ const DefaultLabelColorStyle = import_StyleProp.StyleProp.defineEnum("tldraw:lab
653
499
  defaultValue: "black",
654
500
  values: defaultColorNames
655
501
  });
502
+ const defaultColorNamesSet = new Set(defaultColorNames);
503
+ function isDefaultThemeColor(color) {
504
+ return defaultColorNamesSet.has(color);
505
+ }
506
+ function getColorValue(theme, color, variant) {
507
+ if (!isDefaultThemeColor(color)) {
508
+ return color;
509
+ }
510
+ return theme[color][variant];
511
+ }
656
512
  //# sourceMappingURL=TLColorStyle.js.map