opencode-theme-fedora 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 handsomezhuzhu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # OpenCode Fedora Theme
2
+
3
+ An unofficial Fedora-inspired theme for the [OpenCode](https://opencode.ai/) TUI. It includes carefully matched dark and light variants built around Fedora's current blue palette.
4
+
5
+ | Role | Color |
6
+ | --- | --- |
7
+ | Fedora new blue | `#51A2DA` |
8
+ | Fedora blue | `#3C6EB4` |
9
+ | Fedora dark blue | `#294172` |
10
+
11
+ ## Install
12
+
13
+ Install globally from npm:
14
+
15
+ ```bash
16
+ opencode plugin -g opencode-theme-fedora
17
+ ```
18
+
19
+ Restart OpenCode, run `/themes`, and select `fedora`.
20
+
21
+ To install only for the current project, omit `-g`:
22
+
23
+ ```bash
24
+ opencode plugin opencode-theme-fedora
25
+ ```
26
+
27
+ ## Manual Install
28
+
29
+ ```bash
30
+ mkdir -p ~/.config/opencode/themes
31
+ curl -fsSL https://raw.githubusercontent.com/handsomezhuzhu/opencode-theme-fedora/main/themes/fedora.json \
32
+ -o ~/.config/opencode/themes/fedora.json
33
+ ```
34
+
35
+ Restart OpenCode after installing the file.
36
+
37
+ ## Development
38
+
39
+ ```bash
40
+ npm test
41
+ npm pack --dry-run
42
+ ```
43
+
44
+ The validation script checks every included OpenCode color slot, both appearance modes, and all color references without adding runtime dependencies.
45
+
46
+ ## Credits
47
+
48
+ The core blue colors are taken from Fedora's current website and logo assets. The supporting semantic and syntax colors are original additions chosen for contrast and terminal readability.
49
+
50
+ This is an unofficial community project. It is not affiliated with or endorsed by the Fedora Project or Red Hat. Fedora and related marks are trademarks of Red Hat, Inc.
51
+
52
+ ## License
53
+
54
+ [MIT](LICENSE)
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "opencode-theme-fedora",
3
+ "version": "0.1.0",
4
+ "description": "A Fedora-inspired dark and light theme for OpenCode.",
5
+ "type": "module",
6
+ "files": [
7
+ "themes"
8
+ ],
9
+ "scripts": {
10
+ "test": "node scripts/validate.mjs"
11
+ },
12
+ "oc-themes": [
13
+ "themes/fedora.json"
14
+ ],
15
+ "engines": {
16
+ "opencode": ">=1.17.19"
17
+ },
18
+ "keywords": [
19
+ "opencode",
20
+ "opencode-theme",
21
+ "tui-theme",
22
+ "fedora",
23
+ "linux"
24
+ ],
25
+ "author": "handsomezhuzhu",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/handsomezhuzhu/opencode-theme-fedora.git"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/handsomezhuzhu/opencode-theme-fedora/issues"
33
+ },
34
+ "homepage": "https://github.com/handsomezhuzhu/opencode-theme-fedora#readme"
35
+ }
@@ -0,0 +1,241 @@
1
+ {
2
+ "$schema": "https://opencode.ai/theme.json",
3
+ "defs": {
4
+ "fedoraBlue": "#3C6EB4",
5
+ "fedoraNewBlue": "#51A2DA",
6
+ "fedoraDarkBlue": "#294172",
7
+ "darkBg": "#07111C",
8
+ "darkBgPanel": "#0D1B2A",
9
+ "darkBgElement": "#14263A",
10
+ "darkText": "#EAF4FB",
11
+ "darkMuted": "#88A4BB",
12
+ "darkBorderSubtle": "#1D344C",
13
+ "darkSky": "#8DD7F7",
14
+ "darkRed": "#F07178",
15
+ "darkOrange": "#F4A261",
16
+ "darkYellow": "#E9C46A",
17
+ "darkGreen": "#78C6A3",
18
+ "darkCyan": "#67D5D1",
19
+ "darkPurple": "#B8A1E3",
20
+ "darkPink": "#F28FAD",
21
+ "lightBg": "#FFFFFF",
22
+ "lightBgPanel": "#F4F8FB",
23
+ "lightBgElement": "#E8F1F7",
24
+ "lightText": "#182A3A",
25
+ "lightMuted": "#4F687B",
26
+ "lightBorder": "#7895AA",
27
+ "lightBorderSubtle": "#D4E3EE",
28
+ "lightLineNumber": "#40596B",
29
+ "lightPrimary": "#35639F",
30
+ "lightAccent": "#0071B9",
31
+ "lightRed": "#B83444",
32
+ "lightOrange": "#975100",
33
+ "lightYellow": "#806600",
34
+ "lightGreen": "#217044",
35
+ "lightCyan": "#176A8C",
36
+ "lightPurple": "#7048A8",
37
+ "lightPink": "#A93B66"
38
+ },
39
+ "theme": {
40
+ "primary": {
41
+ "dark": "fedoraNewBlue",
42
+ "light": "lightPrimary"
43
+ },
44
+ "secondary": {
45
+ "dark": "darkPurple",
46
+ "light": "fedoraDarkBlue"
47
+ },
48
+ "accent": {
49
+ "dark": "darkSky",
50
+ "light": "lightAccent"
51
+ },
52
+ "error": {
53
+ "dark": "darkRed",
54
+ "light": "lightRed"
55
+ },
56
+ "warning": {
57
+ "dark": "darkYellow",
58
+ "light": "lightOrange"
59
+ },
60
+ "success": {
61
+ "dark": "darkGreen",
62
+ "light": "lightGreen"
63
+ },
64
+ "info": {
65
+ "dark": "darkCyan",
66
+ "light": "lightCyan"
67
+ },
68
+ "text": {
69
+ "dark": "darkText",
70
+ "light": "lightText"
71
+ },
72
+ "textMuted": {
73
+ "dark": "darkMuted",
74
+ "light": "lightMuted"
75
+ },
76
+ "background": {
77
+ "dark": "darkBg",
78
+ "light": "lightBg"
79
+ },
80
+ "backgroundPanel": {
81
+ "dark": "darkBgPanel",
82
+ "light": "lightBgPanel"
83
+ },
84
+ "backgroundElement": {
85
+ "dark": "darkBgElement",
86
+ "light": "lightBgElement"
87
+ },
88
+ "border": {
89
+ "dark": "fedoraBlue",
90
+ "light": "lightBorder"
91
+ },
92
+ "borderActive": {
93
+ "dark": "fedoraNewBlue",
94
+ "light": "lightPrimary"
95
+ },
96
+ "borderSubtle": {
97
+ "dark": "darkBorderSubtle",
98
+ "light": "lightBorderSubtle"
99
+ },
100
+ "diffAdded": {
101
+ "dark": "darkGreen",
102
+ "light": "lightGreen"
103
+ },
104
+ "diffRemoved": {
105
+ "dark": "darkRed",
106
+ "light": "lightRed"
107
+ },
108
+ "diffContext": {
109
+ "dark": "darkMuted",
110
+ "light": "lightMuted"
111
+ },
112
+ "diffHunkHeader": {
113
+ "dark": "fedoraNewBlue",
114
+ "light": "lightPrimary"
115
+ },
116
+ "diffHighlightAdded": {
117
+ "dark": "darkGreen",
118
+ "light": "lightGreen"
119
+ },
120
+ "diffHighlightRemoved": {
121
+ "dark": "darkRed",
122
+ "light": "lightRed"
123
+ },
124
+ "diffAddedBg": {
125
+ "dark": "#102B2C",
126
+ "light": "#E2F5EC"
127
+ },
128
+ "diffRemovedBg": {
129
+ "dark": "#321C26",
130
+ "light": "#FBE7EA"
131
+ },
132
+ "diffContextBg": {
133
+ "dark": "darkBgPanel",
134
+ "light": "lightBgPanel"
135
+ },
136
+ "diffLineNumber": {
137
+ "dark": "darkMuted",
138
+ "light": "lightLineNumber"
139
+ },
140
+ "diffAddedLineNumberBg": {
141
+ "dark": "#0C2224",
142
+ "light": "#D2EBDD"
143
+ },
144
+ "diffRemovedLineNumberBg": {
145
+ "dark": "#281821",
146
+ "light": "#F2D7DB"
147
+ },
148
+ "markdownText": {
149
+ "dark": "darkText",
150
+ "light": "lightText"
151
+ },
152
+ "markdownHeading": {
153
+ "dark": "fedoraNewBlue",
154
+ "light": "lightPrimary"
155
+ },
156
+ "markdownLink": {
157
+ "dark": "darkSky",
158
+ "light": "lightAccent"
159
+ },
160
+ "markdownLinkText": {
161
+ "dark": "darkCyan",
162
+ "light": "lightCyan"
163
+ },
164
+ "markdownCode": {
165
+ "dark": "darkGreen",
166
+ "light": "lightGreen"
167
+ },
168
+ "markdownBlockQuote": {
169
+ "dark": "darkMuted",
170
+ "light": "lightMuted"
171
+ },
172
+ "markdownEmph": {
173
+ "dark": "darkYellow",
174
+ "light": "lightYellow"
175
+ },
176
+ "markdownStrong": {
177
+ "dark": "fedoraNewBlue",
178
+ "light": "fedoraDarkBlue"
179
+ },
180
+ "markdownHorizontalRule": {
181
+ "dark": "fedoraBlue",
182
+ "light": "lightBorder"
183
+ },
184
+ "markdownListItem": {
185
+ "dark": "fedoraNewBlue",
186
+ "light": "lightPrimary"
187
+ },
188
+ "markdownListEnumeration": {
189
+ "dark": "darkCyan",
190
+ "light": "lightCyan"
191
+ },
192
+ "markdownImage": {
193
+ "dark": "darkSky",
194
+ "light": "lightAccent"
195
+ },
196
+ "markdownImageText": {
197
+ "dark": "darkCyan",
198
+ "light": "lightCyan"
199
+ },
200
+ "markdownCodeBlock": {
201
+ "dark": "darkText",
202
+ "light": "lightText"
203
+ },
204
+ "syntaxComment": {
205
+ "dark": "darkMuted",
206
+ "light": "lightMuted"
207
+ },
208
+ "syntaxKeyword": {
209
+ "dark": "darkPurple",
210
+ "light": "lightPurple"
211
+ },
212
+ "syntaxFunction": {
213
+ "dark": "fedoraNewBlue",
214
+ "light": "lightPrimary"
215
+ },
216
+ "syntaxVariable": {
217
+ "dark": "darkOrange",
218
+ "light": "lightOrange"
219
+ },
220
+ "syntaxString": {
221
+ "dark": "darkGreen",
222
+ "light": "lightGreen"
223
+ },
224
+ "syntaxNumber": {
225
+ "dark": "darkYellow",
226
+ "light": "lightYellow"
227
+ },
228
+ "syntaxType": {
229
+ "dark": "darkCyan",
230
+ "light": "lightCyan"
231
+ },
232
+ "syntaxOperator": {
233
+ "dark": "darkPink",
234
+ "light": "lightPink"
235
+ },
236
+ "syntaxPunctuation": {
237
+ "dark": "darkText",
238
+ "light": "lightText"
239
+ }
240
+ }
241
+ }