@tldraw/tlschema 3.16.0-internal.51e99e128bd4 → 3.16.0-internal.a478398270c6

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