@abelfubu/dv 1.0.0 → 1.0.1
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/dist/components/diff-view.d.ts +1 -1
- package/dist/components/diff-view.d.ts.map +1 -1
- package/dist/components/diff-view.js +69 -8
- package/dist/components/diff-view.test.d.ts.map +1 -1
- package/dist/components/diff-view.test.js +54 -0
- package/dist/themes/aura.json +69 -0
- package/dist/themes/ayu.json +80 -0
- package/dist/themes/catppuccin-frappe.json +233 -0
- package/dist/themes/catppuccin-macchiato.json +233 -0
- package/dist/themes/catppuccin.json +112 -0
- package/dist/themes/cobalt2.json +228 -0
- package/dist/themes/cursor.json +249 -0
- package/dist/themes/dracula.json +219 -0
- package/dist/themes/everforest.json +241 -0
- package/dist/themes/flexoki.json +237 -0
- package/dist/themes/github-light.json +56 -0
- package/dist/themes/github.json +244 -244
- package/dist/themes/gruvbox.json +95 -0
- package/dist/themes/kanagawa.json +77 -0
- package/dist/themes/lucent-orng.json +227 -0
- package/dist/themes/material.json +235 -0
- package/dist/themes/matrix.json +77 -0
- package/dist/themes/mercury.json +252 -0
- package/dist/themes/monokai.json +221 -0
- package/dist/themes/muted-slate.json +56 -0
- package/dist/themes/nightowl.json +221 -0
- package/dist/themes/nord.json +223 -0
- package/dist/themes/one-dark.json +84 -0
- package/dist/themes/opencode-light.json +62 -0
- package/dist/themes/opencode.json +245 -0
- package/dist/themes/orng.json +245 -0
- package/dist/themes/palenight.json +222 -0
- package/dist/themes/rosepine.json +234 -0
- package/dist/themes/solarized.json +223 -0
- package/dist/themes/synthwave84.json +226 -0
- package/dist/themes/tokyonight.json +243 -0
- package/dist/themes/vercel.json +255 -0
- package/dist/themes/vesper.json +218 -0
- package/dist/themes/zenburn.json +223 -0
- package/dist/themes.d.ts.map +1 -1
- package/dist/themes.js +4 -4
- package/package.json +3 -2
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/theme.json",
|
|
3
|
+
"defs": {
|
|
4
|
+
"vesperBg": "#101010",
|
|
5
|
+
"vesperFg": "#FFF",
|
|
6
|
+
"vesperComment": "#8b8b8b",
|
|
7
|
+
"vesperKeyword": "#A0A0A0",
|
|
8
|
+
"vesperFunction": "#FFC799",
|
|
9
|
+
"vesperString": "#99FFE4",
|
|
10
|
+
"vesperNumber": "#FFC799",
|
|
11
|
+
"vesperError": "#FF8080",
|
|
12
|
+
"vesperWarning": "#FFC799",
|
|
13
|
+
"vesperSuccess": "#99FFE4",
|
|
14
|
+
"vesperMuted": "#A0A0A0"
|
|
15
|
+
},
|
|
16
|
+
"theme": {
|
|
17
|
+
"primary": {
|
|
18
|
+
"dark": "#FFC799",
|
|
19
|
+
"light": "#FFC799"
|
|
20
|
+
},
|
|
21
|
+
"secondary": {
|
|
22
|
+
"dark": "#99FFE4",
|
|
23
|
+
"light": "#99FFE4"
|
|
24
|
+
},
|
|
25
|
+
"accent": {
|
|
26
|
+
"dark": "#FFC799",
|
|
27
|
+
"light": "#FFC799"
|
|
28
|
+
},
|
|
29
|
+
"error": {
|
|
30
|
+
"dark": "vesperError",
|
|
31
|
+
"light": "vesperError"
|
|
32
|
+
},
|
|
33
|
+
"warning": {
|
|
34
|
+
"dark": "vesperWarning",
|
|
35
|
+
"light": "vesperWarning"
|
|
36
|
+
},
|
|
37
|
+
"success": {
|
|
38
|
+
"dark": "vesperSuccess",
|
|
39
|
+
"light": "vesperSuccess"
|
|
40
|
+
},
|
|
41
|
+
"info": {
|
|
42
|
+
"dark": "#FFC799",
|
|
43
|
+
"light": "#FFC799"
|
|
44
|
+
},
|
|
45
|
+
"text": {
|
|
46
|
+
"dark": "vesperFg",
|
|
47
|
+
"light": "vesperBg"
|
|
48
|
+
},
|
|
49
|
+
"textMuted": {
|
|
50
|
+
"dark": "vesperMuted",
|
|
51
|
+
"light": "vesperMuted"
|
|
52
|
+
},
|
|
53
|
+
"background": {
|
|
54
|
+
"dark": "vesperBg",
|
|
55
|
+
"light": "#FFF"
|
|
56
|
+
},
|
|
57
|
+
"backgroundPanel": {
|
|
58
|
+
"dark": "vesperBg",
|
|
59
|
+
"light": "#F0F0F0"
|
|
60
|
+
},
|
|
61
|
+
"backgroundElement": {
|
|
62
|
+
"dark": "vesperBg",
|
|
63
|
+
"light": "#E0E0E0"
|
|
64
|
+
},
|
|
65
|
+
"border": {
|
|
66
|
+
"dark": "#282828",
|
|
67
|
+
"light": "#D0D0D0"
|
|
68
|
+
},
|
|
69
|
+
"borderActive": {
|
|
70
|
+
"dark": "#FFC799",
|
|
71
|
+
"light": "#FFC799"
|
|
72
|
+
},
|
|
73
|
+
"borderSubtle": {
|
|
74
|
+
"dark": "#1C1C1C",
|
|
75
|
+
"light": "#E8E8E8"
|
|
76
|
+
},
|
|
77
|
+
"diffAdded": {
|
|
78
|
+
"dark": "vesperSuccess",
|
|
79
|
+
"light": "vesperSuccess"
|
|
80
|
+
},
|
|
81
|
+
"diffRemoved": {
|
|
82
|
+
"dark": "vesperError",
|
|
83
|
+
"light": "vesperError"
|
|
84
|
+
},
|
|
85
|
+
"diffContext": {
|
|
86
|
+
"dark": "vesperMuted",
|
|
87
|
+
"light": "vesperMuted"
|
|
88
|
+
},
|
|
89
|
+
"diffHunkHeader": {
|
|
90
|
+
"dark": "vesperMuted",
|
|
91
|
+
"light": "vesperMuted"
|
|
92
|
+
},
|
|
93
|
+
"diffHighlightAdded": {
|
|
94
|
+
"dark": "vesperSuccess",
|
|
95
|
+
"light": "vesperSuccess"
|
|
96
|
+
},
|
|
97
|
+
"diffHighlightRemoved": {
|
|
98
|
+
"dark": "vesperError",
|
|
99
|
+
"light": "vesperError"
|
|
100
|
+
},
|
|
101
|
+
"diffAddedBg": {
|
|
102
|
+
"dark": "#0d2818",
|
|
103
|
+
"light": "#e8f5e8"
|
|
104
|
+
},
|
|
105
|
+
"diffRemovedBg": {
|
|
106
|
+
"dark": "#281a1a",
|
|
107
|
+
"light": "#f5e8e8"
|
|
108
|
+
},
|
|
109
|
+
"diffContextBg": {
|
|
110
|
+
"dark": "vesperBg",
|
|
111
|
+
"light": "#F8F8F8"
|
|
112
|
+
},
|
|
113
|
+
"diffLineNumber": {
|
|
114
|
+
"dark": "#505050",
|
|
115
|
+
"light": "#808080"
|
|
116
|
+
},
|
|
117
|
+
"diffAddedLineNumberBg": {
|
|
118
|
+
"dark": "#0d2818",
|
|
119
|
+
"light": "#e8f5e8"
|
|
120
|
+
},
|
|
121
|
+
"diffRemovedLineNumberBg": {
|
|
122
|
+
"dark": "#281a1a",
|
|
123
|
+
"light": "#f5e8e8"
|
|
124
|
+
},
|
|
125
|
+
"markdownText": {
|
|
126
|
+
"dark": "vesperFg",
|
|
127
|
+
"light": "vesperBg"
|
|
128
|
+
},
|
|
129
|
+
"markdownHeading": {
|
|
130
|
+
"dark": "#FFC799",
|
|
131
|
+
"light": "#FFC799"
|
|
132
|
+
},
|
|
133
|
+
"markdownLink": {
|
|
134
|
+
"dark": "#FFC799",
|
|
135
|
+
"light": "#FFC799"
|
|
136
|
+
},
|
|
137
|
+
"markdownLinkText": {
|
|
138
|
+
"dark": "vesperMuted",
|
|
139
|
+
"light": "vesperMuted"
|
|
140
|
+
},
|
|
141
|
+
"markdownCode": {
|
|
142
|
+
"dark": "vesperMuted",
|
|
143
|
+
"light": "vesperMuted"
|
|
144
|
+
},
|
|
145
|
+
"markdownBlockQuote": {
|
|
146
|
+
"dark": "vesperFg",
|
|
147
|
+
"light": "vesperBg"
|
|
148
|
+
},
|
|
149
|
+
"markdownEmph": {
|
|
150
|
+
"dark": "vesperFg",
|
|
151
|
+
"light": "vesperBg"
|
|
152
|
+
},
|
|
153
|
+
"markdownStrong": {
|
|
154
|
+
"dark": "vesperFg",
|
|
155
|
+
"light": "vesperBg"
|
|
156
|
+
},
|
|
157
|
+
"markdownHorizontalRule": {
|
|
158
|
+
"dark": "#65737E",
|
|
159
|
+
"light": "#65737E"
|
|
160
|
+
},
|
|
161
|
+
"markdownListItem": {
|
|
162
|
+
"dark": "vesperFg",
|
|
163
|
+
"light": "vesperBg"
|
|
164
|
+
},
|
|
165
|
+
"markdownListEnumeration": {
|
|
166
|
+
"dark": "vesperFg",
|
|
167
|
+
"light": "vesperBg"
|
|
168
|
+
},
|
|
169
|
+
"markdownImage": {
|
|
170
|
+
"dark": "#FFC799",
|
|
171
|
+
"light": "#FFC799"
|
|
172
|
+
},
|
|
173
|
+
"markdownImageText": {
|
|
174
|
+
"dark": "vesperMuted",
|
|
175
|
+
"light": "vesperMuted"
|
|
176
|
+
},
|
|
177
|
+
"markdownCodeBlock": {
|
|
178
|
+
"dark": "vesperFg",
|
|
179
|
+
"light": "vesperBg"
|
|
180
|
+
},
|
|
181
|
+
"syntaxComment": {
|
|
182
|
+
"dark": "vesperComment",
|
|
183
|
+
"light": "vesperComment"
|
|
184
|
+
},
|
|
185
|
+
"syntaxKeyword": {
|
|
186
|
+
"dark": "vesperKeyword",
|
|
187
|
+
"light": "vesperKeyword"
|
|
188
|
+
},
|
|
189
|
+
"syntaxFunction": {
|
|
190
|
+
"dark": "vesperFunction",
|
|
191
|
+
"light": "vesperFunction"
|
|
192
|
+
},
|
|
193
|
+
"syntaxVariable": {
|
|
194
|
+
"dark": "vesperFg",
|
|
195
|
+
"light": "vesperBg"
|
|
196
|
+
},
|
|
197
|
+
"syntaxString": {
|
|
198
|
+
"dark": "vesperString",
|
|
199
|
+
"light": "vesperString"
|
|
200
|
+
},
|
|
201
|
+
"syntaxNumber": {
|
|
202
|
+
"dark": "vesperNumber",
|
|
203
|
+
"light": "vesperNumber"
|
|
204
|
+
},
|
|
205
|
+
"syntaxType": {
|
|
206
|
+
"dark": "vesperFunction",
|
|
207
|
+
"light": "vesperFunction"
|
|
208
|
+
},
|
|
209
|
+
"syntaxOperator": {
|
|
210
|
+
"dark": "vesperKeyword",
|
|
211
|
+
"light": "vesperKeyword"
|
|
212
|
+
},
|
|
213
|
+
"syntaxPunctuation": {
|
|
214
|
+
"dark": "vesperFg",
|
|
215
|
+
"light": "vesperBg"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/theme.json",
|
|
3
|
+
"defs": {
|
|
4
|
+
"bg": "#3f3f3f",
|
|
5
|
+
"bgAlt": "#4f4f4f",
|
|
6
|
+
"bgPanel": "#5f5f5f",
|
|
7
|
+
"fg": "#dcdccc",
|
|
8
|
+
"fgMuted": "#9f9f9f",
|
|
9
|
+
"red": "#cc9393",
|
|
10
|
+
"redBright": "#dca3a3",
|
|
11
|
+
"green": "#7f9f7f",
|
|
12
|
+
"greenBright": "#8fb28f",
|
|
13
|
+
"yellow": "#f0dfaf",
|
|
14
|
+
"yellowDim": "#e0cf9f",
|
|
15
|
+
"blue": "#8cd0d3",
|
|
16
|
+
"blueDim": "#7cb8bb",
|
|
17
|
+
"magenta": "#dc8cc3",
|
|
18
|
+
"cyan": "#93e0e3",
|
|
19
|
+
"orange": "#dfaf8f"
|
|
20
|
+
},
|
|
21
|
+
"theme": {
|
|
22
|
+
"primary": {
|
|
23
|
+
"dark": "blue",
|
|
24
|
+
"light": "#5f7f8f"
|
|
25
|
+
},
|
|
26
|
+
"secondary": {
|
|
27
|
+
"dark": "magenta",
|
|
28
|
+
"light": "#8f5f8f"
|
|
29
|
+
},
|
|
30
|
+
"accent": {
|
|
31
|
+
"dark": "cyan",
|
|
32
|
+
"light": "#5f8f8f"
|
|
33
|
+
},
|
|
34
|
+
"error": {
|
|
35
|
+
"dark": "red",
|
|
36
|
+
"light": "#8f5f5f"
|
|
37
|
+
},
|
|
38
|
+
"warning": {
|
|
39
|
+
"dark": "yellow",
|
|
40
|
+
"light": "#8f8f5f"
|
|
41
|
+
},
|
|
42
|
+
"success": {
|
|
43
|
+
"dark": "green",
|
|
44
|
+
"light": "#5f8f5f"
|
|
45
|
+
},
|
|
46
|
+
"info": {
|
|
47
|
+
"dark": "orange",
|
|
48
|
+
"light": "#8f7f5f"
|
|
49
|
+
},
|
|
50
|
+
"text": {
|
|
51
|
+
"dark": "fg",
|
|
52
|
+
"light": "#3f3f3f"
|
|
53
|
+
},
|
|
54
|
+
"textMuted": {
|
|
55
|
+
"dark": "fgMuted",
|
|
56
|
+
"light": "#6f6f6f"
|
|
57
|
+
},
|
|
58
|
+
"background": {
|
|
59
|
+
"dark": "bg",
|
|
60
|
+
"light": "#ffffef"
|
|
61
|
+
},
|
|
62
|
+
"backgroundPanel": {
|
|
63
|
+
"dark": "bgAlt",
|
|
64
|
+
"light": "#f5f5e5"
|
|
65
|
+
},
|
|
66
|
+
"backgroundElement": {
|
|
67
|
+
"dark": "bgPanel",
|
|
68
|
+
"light": "#ebebdb"
|
|
69
|
+
},
|
|
70
|
+
"border": {
|
|
71
|
+
"dark": "#5f5f5f",
|
|
72
|
+
"light": "#d0d0c0"
|
|
73
|
+
},
|
|
74
|
+
"borderActive": {
|
|
75
|
+
"dark": "blue",
|
|
76
|
+
"light": "#5f7f8f"
|
|
77
|
+
},
|
|
78
|
+
"borderSubtle": {
|
|
79
|
+
"dark": "#4f4f4f",
|
|
80
|
+
"light": "#e0e0d0"
|
|
81
|
+
},
|
|
82
|
+
"diffAdded": {
|
|
83
|
+
"dark": "green",
|
|
84
|
+
"light": "#5f8f5f"
|
|
85
|
+
},
|
|
86
|
+
"diffRemoved": {
|
|
87
|
+
"dark": "red",
|
|
88
|
+
"light": "#8f5f5f"
|
|
89
|
+
},
|
|
90
|
+
"diffContext": {
|
|
91
|
+
"dark": "fgMuted",
|
|
92
|
+
"light": "#6f6f6f"
|
|
93
|
+
},
|
|
94
|
+
"diffHunkHeader": {
|
|
95
|
+
"dark": "cyan",
|
|
96
|
+
"light": "#5f8f8f"
|
|
97
|
+
},
|
|
98
|
+
"diffHighlightAdded": {
|
|
99
|
+
"dark": "greenBright",
|
|
100
|
+
"light": "#5f8f5f"
|
|
101
|
+
},
|
|
102
|
+
"diffHighlightRemoved": {
|
|
103
|
+
"dark": "redBright",
|
|
104
|
+
"light": "#8f5f5f"
|
|
105
|
+
},
|
|
106
|
+
"diffAddedBg": {
|
|
107
|
+
"dark": "#4f5f4f",
|
|
108
|
+
"light": "#efffef"
|
|
109
|
+
},
|
|
110
|
+
"diffRemovedBg": {
|
|
111
|
+
"dark": "#5f4f4f",
|
|
112
|
+
"light": "#ffefef"
|
|
113
|
+
},
|
|
114
|
+
"diffContextBg": {
|
|
115
|
+
"dark": "bgAlt",
|
|
116
|
+
"light": "#f5f5e5"
|
|
117
|
+
},
|
|
118
|
+
"diffLineNumber": {
|
|
119
|
+
"dark": "#6f6f6f",
|
|
120
|
+
"light": "#b0b0a0"
|
|
121
|
+
},
|
|
122
|
+
"diffAddedLineNumberBg": {
|
|
123
|
+
"dark": "#4f5f4f",
|
|
124
|
+
"light": "#efffef"
|
|
125
|
+
},
|
|
126
|
+
"diffRemovedLineNumberBg": {
|
|
127
|
+
"dark": "#5f4f4f",
|
|
128
|
+
"light": "#ffefef"
|
|
129
|
+
},
|
|
130
|
+
"markdownText": {
|
|
131
|
+
"dark": "fg",
|
|
132
|
+
"light": "#3f3f3f"
|
|
133
|
+
},
|
|
134
|
+
"markdownHeading": {
|
|
135
|
+
"dark": "yellow",
|
|
136
|
+
"light": "#8f8f5f"
|
|
137
|
+
},
|
|
138
|
+
"markdownLink": {
|
|
139
|
+
"dark": "blue",
|
|
140
|
+
"light": "#5f7f8f"
|
|
141
|
+
},
|
|
142
|
+
"markdownLinkText": {
|
|
143
|
+
"dark": "cyan",
|
|
144
|
+
"light": "#5f8f8f"
|
|
145
|
+
},
|
|
146
|
+
"markdownCode": {
|
|
147
|
+
"dark": "green",
|
|
148
|
+
"light": "#5f8f5f"
|
|
149
|
+
},
|
|
150
|
+
"markdownBlockQuote": {
|
|
151
|
+
"dark": "fgMuted",
|
|
152
|
+
"light": "#6f6f6f"
|
|
153
|
+
},
|
|
154
|
+
"markdownEmph": {
|
|
155
|
+
"dark": "yellowDim",
|
|
156
|
+
"light": "#8f8f5f"
|
|
157
|
+
},
|
|
158
|
+
"markdownStrong": {
|
|
159
|
+
"dark": "orange",
|
|
160
|
+
"light": "#8f7f5f"
|
|
161
|
+
},
|
|
162
|
+
"markdownHorizontalRule": {
|
|
163
|
+
"dark": "fgMuted",
|
|
164
|
+
"light": "#6f6f6f"
|
|
165
|
+
},
|
|
166
|
+
"markdownListItem": {
|
|
167
|
+
"dark": "blue",
|
|
168
|
+
"light": "#5f7f8f"
|
|
169
|
+
},
|
|
170
|
+
"markdownListEnumeration": {
|
|
171
|
+
"dark": "cyan",
|
|
172
|
+
"light": "#5f8f8f"
|
|
173
|
+
},
|
|
174
|
+
"markdownImage": {
|
|
175
|
+
"dark": "blue",
|
|
176
|
+
"light": "#5f7f8f"
|
|
177
|
+
},
|
|
178
|
+
"markdownImageText": {
|
|
179
|
+
"dark": "cyan",
|
|
180
|
+
"light": "#5f8f8f"
|
|
181
|
+
},
|
|
182
|
+
"markdownCodeBlock": {
|
|
183
|
+
"dark": "fg",
|
|
184
|
+
"light": "#3f3f3f"
|
|
185
|
+
},
|
|
186
|
+
"syntaxComment": {
|
|
187
|
+
"dark": "#7f9f7f",
|
|
188
|
+
"light": "#5f7f5f"
|
|
189
|
+
},
|
|
190
|
+
"syntaxKeyword": {
|
|
191
|
+
"dark": "yellow",
|
|
192
|
+
"light": "#8f8f5f"
|
|
193
|
+
},
|
|
194
|
+
"syntaxFunction": {
|
|
195
|
+
"dark": "blue",
|
|
196
|
+
"light": "#5f7f8f"
|
|
197
|
+
},
|
|
198
|
+
"syntaxVariable": {
|
|
199
|
+
"dark": "fg",
|
|
200
|
+
"light": "#3f3f3f"
|
|
201
|
+
},
|
|
202
|
+
"syntaxString": {
|
|
203
|
+
"dark": "red",
|
|
204
|
+
"light": "#8f5f5f"
|
|
205
|
+
},
|
|
206
|
+
"syntaxNumber": {
|
|
207
|
+
"dark": "greenBright",
|
|
208
|
+
"light": "#5f8f5f"
|
|
209
|
+
},
|
|
210
|
+
"syntaxType": {
|
|
211
|
+
"dark": "cyan",
|
|
212
|
+
"light": "#5f8f8f"
|
|
213
|
+
},
|
|
214
|
+
"syntaxOperator": {
|
|
215
|
+
"dark": "yellow",
|
|
216
|
+
"light": "#8f8f5f"
|
|
217
|
+
},
|
|
218
|
+
"syntaxPunctuation": {
|
|
219
|
+
"dark": "fg",
|
|
220
|
+
"light": "#3f3f3f"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
package/dist/themes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../src/themes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../src/themes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAc,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAsBlD,MAAM,WAAW,aAAa;IAE5B,OAAO,EAAE,IAAI,CAAC;IAEd,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IAEX,aAAa,EAAE,IAAI,CAAC;IACpB,aAAa,EAAE,IAAI,CAAC;IACpB,cAAc,EAAE,IAAI,CAAC;IACrB,cAAc,EAAE,IAAI,CAAC;IACrB,YAAY,EAAE,IAAI,CAAC;IACnB,YAAY,EAAE,IAAI,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,cAAc,EAAE,IAAI,CAAC;IACrB,iBAAiB,EAAE,IAAI,CAAC;IAExB,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IAEd,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,IAAI,CAAC;IAElB,WAAW,EAAE,IAAI,CAAC;IAClB,aAAa,EAAE,IAAI,CAAC;IACpB,aAAa,EAAE,IAAI,CAAC;IACpB,qBAAqB,EAAE,IAAI,CAAC;IAC5B,uBAAuB,EAAE,IAAI,CAAC;IAC9B,cAAc,EAAE,IAAI,CAAC;IAErB,UAAU,EAAE,IAAI,CAAC;IACjB,eAAe,EAAE,IAAI,CAAC;IAEtB,YAAY,EAAE,IAAI,CAAC;IACnB,eAAe,EAAE,IAAI,CAAC;IACtB,YAAY,EAAE,IAAI,CAAC;IACnB,gBAAgB,EAAE,IAAI,CAAC;IACvB,YAAY,EAAE,IAAI,CAAC;IACnB,kBAAkB,EAAE,IAAI,CAAC;IACzB,YAAY,EAAE,IAAI,CAAC;IACnB,cAAc,EAAE,IAAI,CAAC;IACrB,sBAAsB,EAAE,IAAI,CAAC;IAC7B,gBAAgB,EAAE,IAAI,CAAC;IACvB,uBAAuB,EAAE,IAAI,CAAC;IAC9B,aAAa,EAAE,IAAI,CAAC;IACpB,iBAAiB,EAAE,IAAI,CAAC;IACxB,iBAAiB,EAAE,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACjC;AA+JD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,MAAM,GAAG,OAAgB,GAC9B,aAAa,CAGf;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,MAAM,GAAG,OAAgB,EAC/B,cAAc,GAAE,OAAc,GAC7B,WAAW,CA6Eb;AAED,eAAO,MAAM,UAAU,UAAkC,CAAC;AAE1D,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAGzC,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAW5C"}
|
package/dist/themes.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Syntax highlighting theme system with 30+ themes from OpenCode.
|
|
2
2
|
// Loads JSON theme files lazily on demand, resolves color references,
|
|
3
3
|
// and provides both UI colors and Tree-sitter compatible syntax styles.
|
|
4
|
+
import fs from "fs";
|
|
4
5
|
import { parseColor, RGBA } from "@opentuah/core";
|
|
5
6
|
import path from "path";
|
|
6
7
|
import { fileURLToPath } from "url";
|
|
@@ -58,10 +59,9 @@ function loadTheme(name) {
|
|
|
58
59
|
return github; // Fallback to default
|
|
59
60
|
}
|
|
60
61
|
try {
|
|
61
|
-
// Resolve to src/themes/
|
|
62
|
-
const
|
|
63
|
-
const themePath = path.resolve(
|
|
64
|
-
const fs = require("fs");
|
|
62
|
+
// Resolve themes relative to this module (src/themes/ in dev, dist/themes/ when built)
|
|
63
|
+
const themeDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "themes");
|
|
64
|
+
const themePath = path.resolve(themeDir, fileName);
|
|
65
65
|
const content = fs.readFileSync(themePath, "utf-8");
|
|
66
66
|
const themeJson = JSON.parse(content);
|
|
67
67
|
themeCache[name] = themeJson;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abelfubu/dv",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
7
7
|
"dv": "./dist/cli.js"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"cli": "bun src/cli.tsx",
|
|
18
18
|
"cli:watch": "bun --watch src/cli.tsx",
|
|
19
|
-
"build": "rm -rf dist && tsc",
|
|
19
|
+
"build": "rm -rf dist && tsc && mkdir -p dist/themes && cp src/themes/*.json dist/themes/",
|
|
20
20
|
"prepublishOnly": "bun run build"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/bun": "1.3.5",
|
|
28
|
+
"@types/react": "^19.0.0",
|
|
28
29
|
"semantic-release": "^24.2.3",
|
|
29
30
|
"tuistory": "^0.0.13",
|
|
30
31
|
"typescript": "^5.9.3"
|