opencode-theme-ubuntu 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,57 @@
1
+ # OpenCode Ubuntu Theme
2
+
3
+ An unofficial Ubuntu-inspired theme for the [OpenCode](https://opencode.ai/) TUI. It includes dark and light variants built around Ubuntu's official orange, aubergine, and neutral palette.
4
+
5
+ | Role | Color |
6
+ | --- | --- |
7
+ | Ubuntu orange | `#E95420` |
8
+ | Light aubergine | `#77216F` |
9
+ | Mid aubergine | `#5E2750` |
10
+ | Dark aubergine | `#2C001E` |
11
+ | Warm grey | `#AEA79F` |
12
+ | Cool grey | `#333333` |
13
+
14
+ ## Install
15
+
16
+ Install globally from npm:
17
+
18
+ ```bash
19
+ opencode plugin -g opencode-theme-ubuntu
20
+ ```
21
+
22
+ Restart OpenCode, run `/themes`, and select `ubuntu`.
23
+
24
+ To install only for the current project, omit `-g`:
25
+
26
+ ```bash
27
+ opencode plugin opencode-theme-ubuntu
28
+ ```
29
+
30
+ ## Manual Install
31
+
32
+ ```bash
33
+ mkdir -p ~/.config/opencode/themes
34
+ curl -fsSL https://raw.githubusercontent.com/handsomezhuzhu/opencode-theme-ubuntu/main/themes/ubuntu.json \
35
+ -o ~/.config/opencode/themes/ubuntu.json
36
+ ```
37
+
38
+ Restart OpenCode after installing the file.
39
+
40
+ ## Development
41
+
42
+ ```bash
43
+ npm test
44
+ npm pack --dry-run
45
+ ```
46
+
47
+ The validation script checks every included OpenCode color slot, both appearance modes, and all color references without adding runtime dependencies.
48
+
49
+ ## Credits
50
+
51
+ The core orange, aubergine, and neutral colors follow the [Ubuntu colour palette](https://design.ubuntu.com/brand/colour-palette). The supporting semantic and syntax colors are original additions chosen for contrast and terminal readability.
52
+
53
+ This is an unofficial community project. It is not affiliated with or endorsed by Canonical Ltd. Ubuntu and related marks are trademarks of Canonical Ltd.
54
+
55
+ ## License
56
+
57
+ [MIT](LICENSE)
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "opencode-theme-ubuntu",
3
+ "version": "0.1.0",
4
+ "description": "An Ubuntu-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/ubuntu.json"
14
+ ],
15
+ "engines": {
16
+ "opencode": ">=1.17.19"
17
+ },
18
+ "keywords": [
19
+ "opencode",
20
+ "opencode-theme",
21
+ "tui-theme",
22
+ "ubuntu",
23
+ "linux"
24
+ ],
25
+ "author": "handsomezhuzhu",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/handsomezhuzhu/opencode-theme-ubuntu.git"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/handsomezhuzhu/opencode-theme-ubuntu/issues"
33
+ },
34
+ "homepage": "https://github.com/handsomezhuzhu/opencode-theme-ubuntu#readme"
35
+ }
@@ -0,0 +1,239 @@
1
+ {
2
+ "$schema": "https://opencode.ai/theme.json",
3
+ "defs": {
4
+ "ubuntuOrange": "#E95420",
5
+ "ubuntuLightAubergine": "#77216F",
6
+ "ubuntuMidAubergine": "#5E2750",
7
+ "ubuntuDarkAubergine": "#2C001E",
8
+ "ubuntuWarmGrey": "#AEA79F",
9
+ "ubuntuCoolGrey": "#333333",
10
+ "darkBgPanel": "#411934",
11
+ "darkBgElement": "#56334B",
12
+ "darkText": "#F6F6F5",
13
+ "darkMuted": "#CABFC6",
14
+ "darkBorder": "#806678",
15
+ "darkBorderSubtle": "#6B4C61",
16
+ "darkOrangeSoft": "#F4AA90",
17
+ "darkPurpleSoft": "#CFB1CC",
18
+ "darkRed": "#FA8790",
19
+ "darkYellow": "#F5C96A",
20
+ "darkGreen": "#77C59A",
21
+ "darkBlue": "#75BCE8",
22
+ "darkCyan": "#72D1C8",
23
+ "lightBgPanel": "#F6F6F5",
24
+ "lightBgElement": "#EEEDEB",
25
+ "lightMuted": "#6F646B",
26
+ "lightBorder": "#81767D",
27
+ "lightBorderSubtle": "#E6DEE4",
28
+ "lightOrange": "#B33608",
29
+ "lightAubergine": "#5E2750",
30
+ "lightRed": "#B52F3E",
31
+ "lightYellow": "#765E00",
32
+ "lightGreen": "#26734D",
33
+ "lightBlue": "#176C9E",
34
+ "lightCyan": "#1B7470",
35
+ "lightPurple": "#77216F"
36
+ },
37
+ "theme": {
38
+ "primary": {
39
+ "dark": "darkOrangeSoft",
40
+ "light": "lightOrange"
41
+ },
42
+ "secondary": {
43
+ "dark": "darkPurpleSoft",
44
+ "light": "ubuntuMidAubergine"
45
+ },
46
+ "accent": {
47
+ "dark": "darkCyan",
48
+ "light": "ubuntuLightAubergine"
49
+ },
50
+ "error": {
51
+ "dark": "darkRed",
52
+ "light": "lightRed"
53
+ },
54
+ "warning": {
55
+ "dark": "darkYellow",
56
+ "light": "lightYellow"
57
+ },
58
+ "success": {
59
+ "dark": "darkGreen",
60
+ "light": "lightGreen"
61
+ },
62
+ "info": {
63
+ "dark": "darkBlue",
64
+ "light": "lightBlue"
65
+ },
66
+ "text": {
67
+ "dark": "darkText",
68
+ "light": "ubuntuCoolGrey"
69
+ },
70
+ "textMuted": {
71
+ "dark": "darkMuted",
72
+ "light": "lightMuted"
73
+ },
74
+ "background": {
75
+ "dark": "ubuntuDarkAubergine",
76
+ "light": "#FFFFFF"
77
+ },
78
+ "backgroundPanel": {
79
+ "dark": "darkBgPanel",
80
+ "light": "lightBgPanel"
81
+ },
82
+ "backgroundElement": {
83
+ "dark": "darkBgElement",
84
+ "light": "lightBgElement"
85
+ },
86
+ "border": {
87
+ "dark": "darkBorder",
88
+ "light": "lightBorder"
89
+ },
90
+ "borderActive": {
91
+ "dark": "ubuntuOrange",
92
+ "light": "lightOrange"
93
+ },
94
+ "borderSubtle": {
95
+ "dark": "darkBorderSubtle",
96
+ "light": "lightBorderSubtle"
97
+ },
98
+ "diffAdded": {
99
+ "dark": "darkGreen",
100
+ "light": "lightGreen"
101
+ },
102
+ "diffRemoved": {
103
+ "dark": "darkRed",
104
+ "light": "lightRed"
105
+ },
106
+ "diffContext": {
107
+ "dark": "darkMuted",
108
+ "light": "lightMuted"
109
+ },
110
+ "diffHunkHeader": {
111
+ "dark": "darkOrangeSoft",
112
+ "light": "ubuntuMidAubergine"
113
+ },
114
+ "diffHighlightAdded": {
115
+ "dark": "darkGreen",
116
+ "light": "lightGreen"
117
+ },
118
+ "diffHighlightRemoved": {
119
+ "dark": "darkRed",
120
+ "light": "lightRed"
121
+ },
122
+ "diffAddedBg": {
123
+ "dark": "#233D35",
124
+ "light": "#E0F2E8"
125
+ },
126
+ "diffRemovedBg": {
127
+ "dark": "#5A2433",
128
+ "light": "#F9E2E5"
129
+ },
130
+ "diffContextBg": {
131
+ "dark": "darkBgPanel",
132
+ "light": "lightBgPanel"
133
+ },
134
+ "diffLineNumber": {
135
+ "dark": "darkMuted",
136
+ "light": "ubuntuMidAubergine"
137
+ },
138
+ "diffAddedLineNumberBg": {
139
+ "dark": "#1C322B",
140
+ "light": "#D1E8DC"
141
+ },
142
+ "diffRemovedLineNumberBg": {
143
+ "dark": "#481D2A",
144
+ "light": "#EFD3D7"
145
+ },
146
+ "markdownText": {
147
+ "dark": "darkText",
148
+ "light": "ubuntuCoolGrey"
149
+ },
150
+ "markdownHeading": {
151
+ "dark": "ubuntuOrange",
152
+ "light": "lightOrange"
153
+ },
154
+ "markdownLink": {
155
+ "dark": "darkOrangeSoft",
156
+ "light": "lightAubergine"
157
+ },
158
+ "markdownLinkText": {
159
+ "dark": "darkCyan",
160
+ "light": "lightCyan"
161
+ },
162
+ "markdownCode": {
163
+ "dark": "darkGreen",
164
+ "light": "lightGreen"
165
+ },
166
+ "markdownBlockQuote": {
167
+ "dark": "darkMuted",
168
+ "light": "lightMuted"
169
+ },
170
+ "markdownEmph": {
171
+ "dark": "darkYellow",
172
+ "light": "lightYellow"
173
+ },
174
+ "markdownStrong": {
175
+ "dark": "darkOrangeSoft",
176
+ "light": "lightOrange"
177
+ },
178
+ "markdownHorizontalRule": {
179
+ "dark": "darkBorder",
180
+ "light": "lightBorder"
181
+ },
182
+ "markdownListItem": {
183
+ "dark": "ubuntuOrange",
184
+ "light": "lightOrange"
185
+ },
186
+ "markdownListEnumeration": {
187
+ "dark": "darkPurpleSoft",
188
+ "light": "lightPurple"
189
+ },
190
+ "markdownImage": {
191
+ "dark": "darkOrangeSoft",
192
+ "light": "lightAubergine"
193
+ },
194
+ "markdownImageText": {
195
+ "dark": "darkCyan",
196
+ "light": "lightCyan"
197
+ },
198
+ "markdownCodeBlock": {
199
+ "dark": "darkText",
200
+ "light": "ubuntuCoolGrey"
201
+ },
202
+ "syntaxComment": {
203
+ "dark": "darkMuted",
204
+ "light": "lightMuted"
205
+ },
206
+ "syntaxKeyword": {
207
+ "dark": "darkPurpleSoft",
208
+ "light": "lightPurple"
209
+ },
210
+ "syntaxFunction": {
211
+ "dark": "darkOrangeSoft",
212
+ "light": "lightOrange"
213
+ },
214
+ "syntaxVariable": {
215
+ "dark": "darkOrangeSoft",
216
+ "light": "ubuntuMidAubergine"
217
+ },
218
+ "syntaxString": {
219
+ "dark": "darkGreen",
220
+ "light": "lightGreen"
221
+ },
222
+ "syntaxNumber": {
223
+ "dark": "darkYellow",
224
+ "light": "lightYellow"
225
+ },
226
+ "syntaxType": {
227
+ "dark": "darkBlue",
228
+ "light": "lightBlue"
229
+ },
230
+ "syntaxOperator": {
231
+ "dark": "darkCyan",
232
+ "light": "lightCyan"
233
+ },
234
+ "syntaxPunctuation": {
235
+ "dark": "darkText",
236
+ "light": "ubuntuCoolGrey"
237
+ }
238
+ }
239
+ }