@fresh-editor/fresh-editor 0.1.87 → 0.1.90

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,815 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "ThemeFile",
4
+ "description": "Serializable theme definition (matches JSON structure)",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "description": "Theme name",
9
+ "type": "string"
10
+ },
11
+ "editor": {
12
+ "description": "Editor area colors",
13
+ "$ref": "#/$defs/EditorColors"
14
+ },
15
+ "ui": {
16
+ "description": "UI element colors (tabs, menus, status bar, etc.)",
17
+ "$ref": "#/$defs/UiColors"
18
+ },
19
+ "search": {
20
+ "description": "Search result highlighting colors",
21
+ "$ref": "#/$defs/SearchColors"
22
+ },
23
+ "diagnostic": {
24
+ "description": "LSP diagnostic colors (errors, warnings, etc.)",
25
+ "$ref": "#/$defs/DiagnosticColors"
26
+ },
27
+ "syntax": {
28
+ "description": "Syntax highlighting colors",
29
+ "$ref": "#/$defs/SyntaxColors"
30
+ }
31
+ },
32
+ "required": [
33
+ "name",
34
+ "editor",
35
+ "ui",
36
+ "search",
37
+ "diagnostic",
38
+ "syntax"
39
+ ],
40
+ "$defs": {
41
+ "EditorColors": {
42
+ "description": "Editor area colors",
43
+ "type": "object",
44
+ "properties": {
45
+ "bg": {
46
+ "description": "Editor background color",
47
+ "$ref": "#/$defs/ColorDef",
48
+ "default": [
49
+ 30,
50
+ 30,
51
+ 30
52
+ ]
53
+ },
54
+ "fg": {
55
+ "description": "Default text color",
56
+ "$ref": "#/$defs/ColorDef",
57
+ "default": [
58
+ 212,
59
+ 212,
60
+ 212
61
+ ]
62
+ },
63
+ "cursor": {
64
+ "description": "Cursor color",
65
+ "$ref": "#/$defs/ColorDef",
66
+ "default": [
67
+ 255,
68
+ 255,
69
+ 255
70
+ ]
71
+ },
72
+ "inactive_cursor": {
73
+ "description": "Cursor color in unfocused splits",
74
+ "$ref": "#/$defs/ColorDef",
75
+ "default": "DarkGray"
76
+ },
77
+ "selection_bg": {
78
+ "description": "Selected text background",
79
+ "$ref": "#/$defs/ColorDef",
80
+ "default": [
81
+ 38,
82
+ 79,
83
+ 120
84
+ ]
85
+ },
86
+ "current_line_bg": {
87
+ "description": "Background of the line containing cursor",
88
+ "$ref": "#/$defs/ColorDef",
89
+ "default": [
90
+ 40,
91
+ 40,
92
+ 40
93
+ ]
94
+ },
95
+ "line_number_fg": {
96
+ "description": "Line number text color",
97
+ "$ref": "#/$defs/ColorDef",
98
+ "default": [
99
+ 100,
100
+ 100,
101
+ 100
102
+ ]
103
+ },
104
+ "line_number_bg": {
105
+ "description": "Line number gutter background",
106
+ "$ref": "#/$defs/ColorDef",
107
+ "default": [
108
+ 30,
109
+ 30,
110
+ 30
111
+ ]
112
+ },
113
+ "diff_add_bg": {
114
+ "description": "Diff added line background",
115
+ "$ref": "#/$defs/ColorDef",
116
+ "default": [
117
+ 35,
118
+ 60,
119
+ 35
120
+ ]
121
+ },
122
+ "diff_remove_bg": {
123
+ "description": "Diff removed line background",
124
+ "$ref": "#/$defs/ColorDef",
125
+ "default": [
126
+ 70,
127
+ 35,
128
+ 35
129
+ ]
130
+ },
131
+ "diff_modify_bg": {
132
+ "description": "Diff modified line background",
133
+ "$ref": "#/$defs/ColorDef",
134
+ "default": [
135
+ 40,
136
+ 38,
137
+ 30
138
+ ]
139
+ }
140
+ }
141
+ },
142
+ "ColorDef": {
143
+ "description": "Serializable color representation",
144
+ "anyOf": [
145
+ {
146
+ "description": "RGB color as [r, g, b]",
147
+ "type": "array",
148
+ "prefixItems": [
149
+ {
150
+ "type": "integer",
151
+ "format": "uint8",
152
+ "minimum": 0,
153
+ "maximum": 255
154
+ },
155
+ {
156
+ "type": "integer",
157
+ "format": "uint8",
158
+ "minimum": 0,
159
+ "maximum": 255
160
+ },
161
+ {
162
+ "type": "integer",
163
+ "format": "uint8",
164
+ "minimum": 0,
165
+ "maximum": 255
166
+ }
167
+ ],
168
+ "minItems": 3,
169
+ "maxItems": 3
170
+ },
171
+ {
172
+ "description": "Named color",
173
+ "type": "string"
174
+ }
175
+ ]
176
+ },
177
+ "UiColors": {
178
+ "description": "UI element colors (tabs, menus, status bar, etc.)",
179
+ "type": "object",
180
+ "properties": {
181
+ "tab_active_fg": {
182
+ "description": "Active tab text color",
183
+ "$ref": "#/$defs/ColorDef",
184
+ "default": "Yellow"
185
+ },
186
+ "tab_active_bg": {
187
+ "description": "Active tab background color",
188
+ "$ref": "#/$defs/ColorDef",
189
+ "default": "Blue"
190
+ },
191
+ "tab_inactive_fg": {
192
+ "description": "Inactive tab text color",
193
+ "$ref": "#/$defs/ColorDef",
194
+ "default": "White"
195
+ },
196
+ "tab_inactive_bg": {
197
+ "description": "Inactive tab background color",
198
+ "$ref": "#/$defs/ColorDef",
199
+ "default": "DarkGray"
200
+ },
201
+ "tab_separator_bg": {
202
+ "description": "Tab bar separator color",
203
+ "$ref": "#/$defs/ColorDef",
204
+ "default": "Black"
205
+ },
206
+ "tab_close_hover_fg": {
207
+ "description": "Tab close button hover color",
208
+ "$ref": "#/$defs/ColorDef",
209
+ "default": [
210
+ 255,
211
+ 100,
212
+ 100
213
+ ]
214
+ },
215
+ "tab_hover_bg": {
216
+ "description": "Tab hover background color",
217
+ "$ref": "#/$defs/ColorDef",
218
+ "default": [
219
+ 70,
220
+ 70,
221
+ 75
222
+ ]
223
+ },
224
+ "menu_bg": {
225
+ "description": "Menu bar background",
226
+ "$ref": "#/$defs/ColorDef",
227
+ "default": [
228
+ 60,
229
+ 60,
230
+ 65
231
+ ]
232
+ },
233
+ "menu_fg": {
234
+ "description": "Menu bar text color",
235
+ "$ref": "#/$defs/ColorDef",
236
+ "default": [
237
+ 220,
238
+ 220,
239
+ 220
240
+ ]
241
+ },
242
+ "menu_active_bg": {
243
+ "description": "Active menu item background",
244
+ "$ref": "#/$defs/ColorDef",
245
+ "default": [
246
+ 60,
247
+ 60,
248
+ 60
249
+ ]
250
+ },
251
+ "menu_active_fg": {
252
+ "description": "Active menu item text color",
253
+ "$ref": "#/$defs/ColorDef",
254
+ "default": [
255
+ 255,
256
+ 255,
257
+ 255
258
+ ]
259
+ },
260
+ "menu_dropdown_bg": {
261
+ "description": "Dropdown menu background",
262
+ "$ref": "#/$defs/ColorDef",
263
+ "default": [
264
+ 50,
265
+ 50,
266
+ 50
267
+ ]
268
+ },
269
+ "menu_dropdown_fg": {
270
+ "description": "Dropdown menu text color",
271
+ "$ref": "#/$defs/ColorDef",
272
+ "default": [
273
+ 220,
274
+ 220,
275
+ 220
276
+ ]
277
+ },
278
+ "menu_highlight_bg": {
279
+ "description": "Highlighted menu item background",
280
+ "$ref": "#/$defs/ColorDef",
281
+ "default": [
282
+ 70,
283
+ 130,
284
+ 180
285
+ ]
286
+ },
287
+ "menu_highlight_fg": {
288
+ "description": "Highlighted menu item text color",
289
+ "$ref": "#/$defs/ColorDef",
290
+ "default": [
291
+ 255,
292
+ 255,
293
+ 255
294
+ ]
295
+ },
296
+ "menu_border_fg": {
297
+ "description": "Menu border color",
298
+ "$ref": "#/$defs/ColorDef",
299
+ "default": [
300
+ 100,
301
+ 100,
302
+ 100
303
+ ]
304
+ },
305
+ "menu_separator_fg": {
306
+ "description": "Menu separator line color",
307
+ "$ref": "#/$defs/ColorDef",
308
+ "default": [
309
+ 80,
310
+ 80,
311
+ 80
312
+ ]
313
+ },
314
+ "menu_hover_bg": {
315
+ "description": "Menu item hover background",
316
+ "$ref": "#/$defs/ColorDef",
317
+ "default": [
318
+ 55,
319
+ 55,
320
+ 55
321
+ ]
322
+ },
323
+ "menu_hover_fg": {
324
+ "description": "Menu item hover text color",
325
+ "$ref": "#/$defs/ColorDef",
326
+ "default": [
327
+ 255,
328
+ 255,
329
+ 255
330
+ ]
331
+ },
332
+ "menu_disabled_fg": {
333
+ "description": "Disabled menu item text color",
334
+ "$ref": "#/$defs/ColorDef",
335
+ "default": [
336
+ 100,
337
+ 100,
338
+ 100
339
+ ]
340
+ },
341
+ "menu_disabled_bg": {
342
+ "description": "Disabled menu item background",
343
+ "$ref": "#/$defs/ColorDef",
344
+ "default": [
345
+ 50,
346
+ 50,
347
+ 50
348
+ ]
349
+ },
350
+ "status_bar_fg": {
351
+ "description": "Status bar text color",
352
+ "$ref": "#/$defs/ColorDef",
353
+ "default": "White"
354
+ },
355
+ "status_bar_bg": {
356
+ "description": "Status bar background color",
357
+ "$ref": "#/$defs/ColorDef",
358
+ "default": "DarkGray"
359
+ },
360
+ "prompt_fg": {
361
+ "description": "Command prompt text color",
362
+ "$ref": "#/$defs/ColorDef",
363
+ "default": "White"
364
+ },
365
+ "prompt_bg": {
366
+ "description": "Command prompt background",
367
+ "$ref": "#/$defs/ColorDef",
368
+ "default": "Black"
369
+ },
370
+ "prompt_selection_fg": {
371
+ "description": "Prompt selected text color",
372
+ "$ref": "#/$defs/ColorDef",
373
+ "default": "White"
374
+ },
375
+ "prompt_selection_bg": {
376
+ "description": "Prompt selection background",
377
+ "$ref": "#/$defs/ColorDef",
378
+ "default": [
379
+ 58,
380
+ 79,
381
+ 120
382
+ ]
383
+ },
384
+ "popup_border_fg": {
385
+ "description": "Popup window border color",
386
+ "$ref": "#/$defs/ColorDef",
387
+ "default": "Gray"
388
+ },
389
+ "popup_bg": {
390
+ "description": "Popup window background",
391
+ "$ref": "#/$defs/ColorDef",
392
+ "default": [
393
+ 30,
394
+ 30,
395
+ 30
396
+ ]
397
+ },
398
+ "popup_selection_bg": {
399
+ "description": "Popup selected item background",
400
+ "$ref": "#/$defs/ColorDef",
401
+ "default": [
402
+ 58,
403
+ 79,
404
+ 120
405
+ ]
406
+ },
407
+ "popup_selection_fg": {
408
+ "description": "Popup selected item text color",
409
+ "$ref": "#/$defs/ColorDef",
410
+ "default": [
411
+ 255,
412
+ 255,
413
+ 255
414
+ ]
415
+ },
416
+ "popup_text_fg": {
417
+ "description": "Popup window text color",
418
+ "$ref": "#/$defs/ColorDef",
419
+ "default": "White"
420
+ },
421
+ "suggestion_bg": {
422
+ "description": "Autocomplete suggestion background",
423
+ "$ref": "#/$defs/ColorDef",
424
+ "default": [
425
+ 30,
426
+ 30,
427
+ 30
428
+ ]
429
+ },
430
+ "suggestion_selected_bg": {
431
+ "description": "Selected suggestion background",
432
+ "$ref": "#/$defs/ColorDef",
433
+ "default": [
434
+ 58,
435
+ 79,
436
+ 120
437
+ ]
438
+ },
439
+ "help_bg": {
440
+ "description": "Help panel background",
441
+ "$ref": "#/$defs/ColorDef",
442
+ "default": "Black"
443
+ },
444
+ "help_fg": {
445
+ "description": "Help panel text color",
446
+ "$ref": "#/$defs/ColorDef",
447
+ "default": "White"
448
+ },
449
+ "help_key_fg": {
450
+ "description": "Help keybinding text color",
451
+ "$ref": "#/$defs/ColorDef",
452
+ "default": "Cyan"
453
+ },
454
+ "help_separator_fg": {
455
+ "description": "Help panel separator color",
456
+ "$ref": "#/$defs/ColorDef",
457
+ "default": "DarkGray"
458
+ },
459
+ "help_indicator_fg": {
460
+ "description": "Help indicator text color",
461
+ "$ref": "#/$defs/ColorDef",
462
+ "default": "Red"
463
+ },
464
+ "help_indicator_bg": {
465
+ "description": "Help indicator background",
466
+ "$ref": "#/$defs/ColorDef",
467
+ "default": "Black"
468
+ },
469
+ "inline_code_bg": {
470
+ "description": "Inline code block background",
471
+ "$ref": "#/$defs/ColorDef",
472
+ "default": "DarkGray"
473
+ },
474
+ "split_separator_fg": {
475
+ "description": "Split pane separator color",
476
+ "$ref": "#/$defs/ColorDef",
477
+ "default": [
478
+ 100,
479
+ 100,
480
+ 100
481
+ ]
482
+ },
483
+ "split_separator_hover_fg": {
484
+ "description": "Split separator hover color",
485
+ "$ref": "#/$defs/ColorDef",
486
+ "default": [
487
+ 100,
488
+ 149,
489
+ 237
490
+ ]
491
+ },
492
+ "scrollbar_track_fg": {
493
+ "description": "Scrollbar track color",
494
+ "$ref": "#/$defs/ColorDef",
495
+ "default": "DarkGray"
496
+ },
497
+ "scrollbar_thumb_fg": {
498
+ "description": "Scrollbar thumb color",
499
+ "$ref": "#/$defs/ColorDef",
500
+ "default": "Gray"
501
+ },
502
+ "scrollbar_track_hover_fg": {
503
+ "description": "Scrollbar track hover color",
504
+ "$ref": "#/$defs/ColorDef",
505
+ "default": "Gray"
506
+ },
507
+ "scrollbar_thumb_hover_fg": {
508
+ "description": "Scrollbar thumb hover color",
509
+ "$ref": "#/$defs/ColorDef",
510
+ "default": "White"
511
+ },
512
+ "compose_margin_bg": {
513
+ "description": "Compose mode margin background",
514
+ "$ref": "#/$defs/ColorDef",
515
+ "default": [
516
+ 18,
517
+ 18,
518
+ 18
519
+ ]
520
+ },
521
+ "semantic_highlight_bg": {
522
+ "description": "Word under cursor highlight",
523
+ "$ref": "#/$defs/ColorDef",
524
+ "default": [
525
+ 60,
526
+ 60,
527
+ 80
528
+ ]
529
+ },
530
+ "terminal_bg": {
531
+ "description": "Embedded terminal background (use Default for transparency)",
532
+ "$ref": "#/$defs/ColorDef",
533
+ "default": "Default"
534
+ },
535
+ "terminal_fg": {
536
+ "description": "Embedded terminal default text color",
537
+ "$ref": "#/$defs/ColorDef",
538
+ "default": "Default"
539
+ },
540
+ "status_warning_indicator_bg": {
541
+ "description": "Warning indicator background in status bar",
542
+ "$ref": "#/$defs/ColorDef",
543
+ "default": [
544
+ 181,
545
+ 137,
546
+ 0
547
+ ]
548
+ },
549
+ "status_warning_indicator_fg": {
550
+ "description": "Warning indicator text color in status bar",
551
+ "$ref": "#/$defs/ColorDef",
552
+ "default": [
553
+ 0,
554
+ 0,
555
+ 0
556
+ ]
557
+ },
558
+ "status_error_indicator_bg": {
559
+ "description": "Error indicator background in status bar",
560
+ "$ref": "#/$defs/ColorDef",
561
+ "default": [
562
+ 220,
563
+ 50,
564
+ 47
565
+ ]
566
+ },
567
+ "status_error_indicator_fg": {
568
+ "description": "Error indicator text color in status bar",
569
+ "$ref": "#/$defs/ColorDef",
570
+ "default": [
571
+ 255,
572
+ 255,
573
+ 255
574
+ ]
575
+ },
576
+ "status_warning_indicator_hover_bg": {
577
+ "description": "Warning indicator hover background",
578
+ "$ref": "#/$defs/ColorDef",
579
+ "default": [
580
+ 211,
581
+ 167,
582
+ 30
583
+ ]
584
+ },
585
+ "status_warning_indicator_hover_fg": {
586
+ "description": "Warning indicator hover text color",
587
+ "$ref": "#/$defs/ColorDef",
588
+ "default": [
589
+ 0,
590
+ 0,
591
+ 0
592
+ ]
593
+ },
594
+ "status_error_indicator_hover_bg": {
595
+ "description": "Error indicator hover background",
596
+ "$ref": "#/$defs/ColorDef",
597
+ "default": [
598
+ 250,
599
+ 80,
600
+ 77
601
+ ]
602
+ },
603
+ "status_error_indicator_hover_fg": {
604
+ "description": "Error indicator hover text color",
605
+ "$ref": "#/$defs/ColorDef",
606
+ "default": [
607
+ 255,
608
+ 255,
609
+ 255
610
+ ]
611
+ },
612
+ "tab_drop_zone_bg": {
613
+ "description": "Tab drop zone background during drag",
614
+ "$ref": "#/$defs/ColorDef",
615
+ "default": [
616
+ 70,
617
+ 130,
618
+ 180
619
+ ]
620
+ },
621
+ "tab_drop_zone_border": {
622
+ "description": "Tab drop zone border during drag",
623
+ "$ref": "#/$defs/ColorDef",
624
+ "default": [
625
+ 100,
626
+ 149,
627
+ 237
628
+ ]
629
+ },
630
+ "settings_selected_bg": {
631
+ "description": "Settings UI selected item background",
632
+ "$ref": "#/$defs/ColorDef",
633
+ "default": [
634
+ 60,
635
+ 60,
636
+ 70
637
+ ]
638
+ },
639
+ "settings_selected_fg": {
640
+ "description": "Settings UI selected item foreground (text on selected background)",
641
+ "$ref": "#/$defs/ColorDef",
642
+ "default": [
643
+ 255,
644
+ 255,
645
+ 255
646
+ ]
647
+ }
648
+ }
649
+ },
650
+ "SearchColors": {
651
+ "description": "Search result highlighting colors",
652
+ "type": "object",
653
+ "properties": {
654
+ "match_bg": {
655
+ "description": "Search match background color",
656
+ "$ref": "#/$defs/ColorDef",
657
+ "default": [
658
+ 100,
659
+ 100,
660
+ 20
661
+ ]
662
+ },
663
+ "match_fg": {
664
+ "description": "Search match text color",
665
+ "$ref": "#/$defs/ColorDef",
666
+ "default": [
667
+ 255,
668
+ 255,
669
+ 255
670
+ ]
671
+ }
672
+ }
673
+ },
674
+ "DiagnosticColors": {
675
+ "description": "LSP diagnostic colors (errors, warnings, etc.)",
676
+ "type": "object",
677
+ "properties": {
678
+ "error_fg": {
679
+ "description": "Error message text color",
680
+ "$ref": "#/$defs/ColorDef",
681
+ "default": "Red"
682
+ },
683
+ "error_bg": {
684
+ "description": "Error highlight background",
685
+ "$ref": "#/$defs/ColorDef",
686
+ "default": [
687
+ 60,
688
+ 20,
689
+ 20
690
+ ]
691
+ },
692
+ "warning_fg": {
693
+ "description": "Warning message text color",
694
+ "$ref": "#/$defs/ColorDef",
695
+ "default": "Yellow"
696
+ },
697
+ "warning_bg": {
698
+ "description": "Warning highlight background",
699
+ "$ref": "#/$defs/ColorDef",
700
+ "default": [
701
+ 60,
702
+ 50,
703
+ 0
704
+ ]
705
+ },
706
+ "info_fg": {
707
+ "description": "Info message text color",
708
+ "$ref": "#/$defs/ColorDef",
709
+ "default": "Blue"
710
+ },
711
+ "info_bg": {
712
+ "description": "Info highlight background",
713
+ "$ref": "#/$defs/ColorDef",
714
+ "default": [
715
+ 0,
716
+ 30,
717
+ 60
718
+ ]
719
+ },
720
+ "hint_fg": {
721
+ "description": "Hint message text color",
722
+ "$ref": "#/$defs/ColorDef",
723
+ "default": "Gray"
724
+ },
725
+ "hint_bg": {
726
+ "description": "Hint highlight background",
727
+ "$ref": "#/$defs/ColorDef",
728
+ "default": [
729
+ 30,
730
+ 30,
731
+ 30
732
+ ]
733
+ }
734
+ }
735
+ },
736
+ "SyntaxColors": {
737
+ "description": "Syntax highlighting colors",
738
+ "type": "object",
739
+ "properties": {
740
+ "keyword": {
741
+ "description": "Language keywords (if, for, fn, etc.)",
742
+ "$ref": "#/$defs/ColorDef",
743
+ "default": [
744
+ 86,
745
+ 156,
746
+ 214
747
+ ]
748
+ },
749
+ "string": {
750
+ "description": "String literals",
751
+ "$ref": "#/$defs/ColorDef",
752
+ "default": [
753
+ 206,
754
+ 145,
755
+ 120
756
+ ]
757
+ },
758
+ "comment": {
759
+ "description": "Code comments",
760
+ "$ref": "#/$defs/ColorDef",
761
+ "default": [
762
+ 106,
763
+ 153,
764
+ 85
765
+ ]
766
+ },
767
+ "function": {
768
+ "description": "Function names",
769
+ "$ref": "#/$defs/ColorDef",
770
+ "default": [
771
+ 220,
772
+ 220,
773
+ 170
774
+ ]
775
+ },
776
+ "type": {
777
+ "description": "Type names",
778
+ "$ref": "#/$defs/ColorDef",
779
+ "default": [
780
+ 78,
781
+ 201,
782
+ 176
783
+ ]
784
+ },
785
+ "variable": {
786
+ "description": "Variable names",
787
+ "$ref": "#/$defs/ColorDef",
788
+ "default": [
789
+ 156,
790
+ 220,
791
+ 254
792
+ ]
793
+ },
794
+ "constant": {
795
+ "description": "Constants and literals",
796
+ "$ref": "#/$defs/ColorDef",
797
+ "default": [
798
+ 79,
799
+ 193,
800
+ 255
801
+ ]
802
+ },
803
+ "operator": {
804
+ "description": "Operators (+, -, =, etc.)",
805
+ "$ref": "#/$defs/ColorDef",
806
+ "default": [
807
+ 212,
808
+ 212,
809
+ 212
810
+ ]
811
+ }
812
+ }
813
+ }
814
+ }
815
+ }