oc-lucent-tokyonight 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 +21 -0
- package/README.md +53 -0
- package/lucent-tokyonight.json +241 -0
- package/package.json +41 -0
- package/tui.ts +31 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License Copyright (c) 2026 Razo Beckett
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of
|
|
4
|
+
charge, to any person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use, copy, modify, merge,
|
|
7
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice
|
|
12
|
+
(including the next paragraph) shall be included in all copies or substantial
|
|
13
|
+
portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
16
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
18
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
19
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
20
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Lucent Tokyo Night Theme for OpenCode
|
|
2
|
+
|
|
3
|
+
A translucent theme for [OpenCode](https://opencode.ai) based on the popular [Tokyo Night](https://tokyonight.org/) color scheme with transparent backgrounds for a modern, sleek appearance.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Install as an OpenCode TUI plugin:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
opencode plugin oc-lucent-tokyonight
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This installs the npm package and adds it to your `tui.json` plugin list.
|
|
16
|
+
|
|
17
|
+
### Example `tui.json`
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"$schema": "https://opencode.ai/tui.json",
|
|
22
|
+
"plugin": [
|
|
23
|
+
[
|
|
24
|
+
"oc-lucent-tokyonight",
|
|
25
|
+
{
|
|
26
|
+
"enabled": true,
|
|
27
|
+
"autoApply": true,
|
|
28
|
+
"theme": "lucent-tokyonight"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- `enabled` (default: `true`) — turn the plugin on/off.
|
|
36
|
+
- `autoApply` (default: `true`) — automatically switch to the theme after loading.
|
|
37
|
+
- `theme` (default: `"lucent-tokyonight"`) — the theme name to apply.
|
|
38
|
+
|
|
39
|
+
## Features
|
|
40
|
+
|
|
41
|
+
- **Translucent Design**: Transparent backgrounds allow your desktop wallpaper to shine through
|
|
42
|
+
- **Tokyo Night Colors**: Uses the Tokyo Night color palette with transparent backgrounds
|
|
43
|
+
- **Both Modes**: Includes both dark and light mode variants
|
|
44
|
+
|
|
45
|
+
## Credits
|
|
46
|
+
|
|
47
|
+
- Color palette: [Tokyo Night](https://github.com/tokyo-night/tokyo-night-vscode-theme) created by [Enkia](https://github.com/enkia)
|
|
48
|
+
- Translucent design inspired by lucent-orng theme
|
|
49
|
+
- OpenCode theme structure inspired by [ajaxdude/opencode-ai-poimandres-theme](https://github.com/ajaxdude/opencode-ai-poimandres-theme)
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
MIT License - see [LICENSE](LICENSE) file.
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/theme.json",
|
|
3
|
+
"defs": {
|
|
4
|
+
"darkStep6": "#545c7e",
|
|
5
|
+
"darkStep11": "#828bb8",
|
|
6
|
+
"darkStep12": "#c8d3f5",
|
|
7
|
+
"darkSecondary": "#c099ff",
|
|
8
|
+
"darkAccent": "#86e1fc",
|
|
9
|
+
"darkRed": "#ff757f",
|
|
10
|
+
"darkOrange": "#ff966c",
|
|
11
|
+
"darkBlue": "#82aaff",
|
|
12
|
+
"darkCyan": "#86e1fc",
|
|
13
|
+
"darkYellow": "#ffc777",
|
|
14
|
+
"darkGreen": "#c3e88d",
|
|
15
|
+
"darkPurple": "#c099ff",
|
|
16
|
+
"darkPanelBg": "#1a1b2699",
|
|
17
|
+
"lightStep6": "#9699a8",
|
|
18
|
+
"lightStep11": "#8990a3",
|
|
19
|
+
"lightStep12": "#3760bf",
|
|
20
|
+
"lightSecondary": "#9854f1",
|
|
21
|
+
"lightAccent": "#007197",
|
|
22
|
+
"lightRed": "#f52a65",
|
|
23
|
+
"lightOrange": "#b15c00",
|
|
24
|
+
"lightBlue": "#2e7de9",
|
|
25
|
+
"lightCyan": "#007197",
|
|
26
|
+
"lightYellow": "#8c6c3e",
|
|
27
|
+
"lightGreen": "#587539",
|
|
28
|
+
"lightPurple": "#9854f1",
|
|
29
|
+
"lightPanelBg": "#e1e2e799"
|
|
30
|
+
},
|
|
31
|
+
"theme": {
|
|
32
|
+
"primary": {
|
|
33
|
+
"dark": "darkBlue",
|
|
34
|
+
"light": "lightBlue"
|
|
35
|
+
},
|
|
36
|
+
"secondary": {
|
|
37
|
+
"dark": "darkSecondary",
|
|
38
|
+
"light": "lightSecondary"
|
|
39
|
+
},
|
|
40
|
+
"accent": {
|
|
41
|
+
"dark": "darkAccent",
|
|
42
|
+
"light": "lightAccent"
|
|
43
|
+
},
|
|
44
|
+
"error": {
|
|
45
|
+
"dark": "darkRed",
|
|
46
|
+
"light": "lightRed"
|
|
47
|
+
},
|
|
48
|
+
"warning": {
|
|
49
|
+
"dark": "darkOrange",
|
|
50
|
+
"light": "lightOrange"
|
|
51
|
+
},
|
|
52
|
+
"success": {
|
|
53
|
+
"dark": "darkGreen",
|
|
54
|
+
"light": "lightGreen"
|
|
55
|
+
},
|
|
56
|
+
"info": {
|
|
57
|
+
"dark": "darkCyan",
|
|
58
|
+
"light": "lightCyan"
|
|
59
|
+
},
|
|
60
|
+
"text": {
|
|
61
|
+
"dark": "darkStep12",
|
|
62
|
+
"light": "lightStep12"
|
|
63
|
+
},
|
|
64
|
+
"textMuted": {
|
|
65
|
+
"dark": "darkStep11",
|
|
66
|
+
"light": "lightStep11"
|
|
67
|
+
},
|
|
68
|
+
"selectedListItemText": {
|
|
69
|
+
"dark": "#0a0a0a",
|
|
70
|
+
"light": "#ffffff"
|
|
71
|
+
},
|
|
72
|
+
"background": {
|
|
73
|
+
"dark": "transparent",
|
|
74
|
+
"light": "transparent"
|
|
75
|
+
},
|
|
76
|
+
"backgroundPanel": {
|
|
77
|
+
"dark": "transparent",
|
|
78
|
+
"light": "transparent"
|
|
79
|
+
},
|
|
80
|
+
"backgroundElement": {
|
|
81
|
+
"dark": "transparent",
|
|
82
|
+
"light": "transparent"
|
|
83
|
+
},
|
|
84
|
+
"backgroundMenu": {
|
|
85
|
+
"dark": "darkPanelBg",
|
|
86
|
+
"light": "lightPanelBg"
|
|
87
|
+
},
|
|
88
|
+
"border": {
|
|
89
|
+
"dark": "darkBlue",
|
|
90
|
+
"light": "lightBlue"
|
|
91
|
+
},
|
|
92
|
+
"borderActive": {
|
|
93
|
+
"dark": "darkSecondary",
|
|
94
|
+
"light": "lightAccent"
|
|
95
|
+
},
|
|
96
|
+
"borderSubtle": {
|
|
97
|
+
"dark": "darkStep6",
|
|
98
|
+
"light": "lightStep6"
|
|
99
|
+
},
|
|
100
|
+
"diffAdded": {
|
|
101
|
+
"dark": "#4fd6be",
|
|
102
|
+
"light": "#1e725c"
|
|
103
|
+
},
|
|
104
|
+
"diffRemoved": {
|
|
105
|
+
"dark": "#c53b53",
|
|
106
|
+
"light": "#c53b53"
|
|
107
|
+
},
|
|
108
|
+
"diffContext": {
|
|
109
|
+
"dark": "#828bb8",
|
|
110
|
+
"light": "#7086b5"
|
|
111
|
+
},
|
|
112
|
+
"diffHunkHeader": {
|
|
113
|
+
"dark": "#828bb8",
|
|
114
|
+
"light": "#7086b5"
|
|
115
|
+
},
|
|
116
|
+
"diffHighlightAdded": {
|
|
117
|
+
"dark": "#b8db87",
|
|
118
|
+
"light": "#4db380"
|
|
119
|
+
},
|
|
120
|
+
"diffHighlightRemoved": {
|
|
121
|
+
"dark": "#e26a75",
|
|
122
|
+
"light": "#f52a65"
|
|
123
|
+
},
|
|
124
|
+
"diffAddedBg": {
|
|
125
|
+
"dark": "transparent",
|
|
126
|
+
"light": "transparent"
|
|
127
|
+
},
|
|
128
|
+
"diffRemovedBg": {
|
|
129
|
+
"dark": "transparent",
|
|
130
|
+
"light": "transparent"
|
|
131
|
+
},
|
|
132
|
+
"diffContextBg": {
|
|
133
|
+
"dark": "transparent",
|
|
134
|
+
"light": "transparent"
|
|
135
|
+
},
|
|
136
|
+
"diffLineNumber": {
|
|
137
|
+
"dark": "#666666",
|
|
138
|
+
"light": "#999999"
|
|
139
|
+
},
|
|
140
|
+
"diffAddedLineNumberBg": {
|
|
141
|
+
"dark": "transparent",
|
|
142
|
+
"light": "transparent"
|
|
143
|
+
},
|
|
144
|
+
"diffRemovedLineNumberBg": {
|
|
145
|
+
"dark": "transparent",
|
|
146
|
+
"light": "transparent"
|
|
147
|
+
},
|
|
148
|
+
"markdownText": {
|
|
149
|
+
"dark": "darkStep12",
|
|
150
|
+
"light": "lightStep12"
|
|
151
|
+
},
|
|
152
|
+
"markdownHeading": {
|
|
153
|
+
"dark": "darkPurple",
|
|
154
|
+
"light": "lightPurple"
|
|
155
|
+
},
|
|
156
|
+
"markdownLink": {
|
|
157
|
+
"dark": "darkBlue",
|
|
158
|
+
"light": "lightBlue"
|
|
159
|
+
},
|
|
160
|
+
"markdownLinkText": {
|
|
161
|
+
"dark": "darkCyan",
|
|
162
|
+
"light": "lightCyan"
|
|
163
|
+
},
|
|
164
|
+
"markdownCode": {
|
|
165
|
+
"dark": "darkGreen",
|
|
166
|
+
"light": "lightGreen"
|
|
167
|
+
},
|
|
168
|
+
"markdownBlockQuote": {
|
|
169
|
+
"dark": "darkYellow",
|
|
170
|
+
"light": "lightYellow"
|
|
171
|
+
},
|
|
172
|
+
"markdownEmph": {
|
|
173
|
+
"dark": "darkYellow",
|
|
174
|
+
"light": "lightYellow"
|
|
175
|
+
},
|
|
176
|
+
"markdownStrong": {
|
|
177
|
+
"dark": "darkOrange",
|
|
178
|
+
"light": "lightOrange"
|
|
179
|
+
},
|
|
180
|
+
"markdownHorizontalRule": {
|
|
181
|
+
"dark": "darkStep11",
|
|
182
|
+
"light": "lightStep11"
|
|
183
|
+
},
|
|
184
|
+
"markdownListItem": {
|
|
185
|
+
"dark": "darkBlue",
|
|
186
|
+
"light": "lightBlue"
|
|
187
|
+
},
|
|
188
|
+
"markdownListEnumeration": {
|
|
189
|
+
"dark": "darkCyan",
|
|
190
|
+
"light": "lightCyan"
|
|
191
|
+
},
|
|
192
|
+
"markdownImage": {
|
|
193
|
+
"dark": "darkBlue",
|
|
194
|
+
"light": "lightBlue"
|
|
195
|
+
},
|
|
196
|
+
"markdownImageText": {
|
|
197
|
+
"dark": "darkCyan",
|
|
198
|
+
"light": "lightCyan"
|
|
199
|
+
},
|
|
200
|
+
"markdownCodeBlock": {
|
|
201
|
+
"dark": "darkStep12",
|
|
202
|
+
"light": "lightStep12"
|
|
203
|
+
},
|
|
204
|
+
"syntaxComment": {
|
|
205
|
+
"dark": "darkStep11",
|
|
206
|
+
"light": "lightStep11"
|
|
207
|
+
},
|
|
208
|
+
"syntaxKeyword": {
|
|
209
|
+
"dark": "darkPurple",
|
|
210
|
+
"light": "lightPurple"
|
|
211
|
+
},
|
|
212
|
+
"syntaxFunction": {
|
|
213
|
+
"dark": "darkBlue",
|
|
214
|
+
"light": "lightBlue"
|
|
215
|
+
},
|
|
216
|
+
"syntaxVariable": {
|
|
217
|
+
"dark": "darkRed",
|
|
218
|
+
"light": "lightRed"
|
|
219
|
+
},
|
|
220
|
+
"syntaxString": {
|
|
221
|
+
"dark": "darkGreen",
|
|
222
|
+
"light": "lightGreen"
|
|
223
|
+
},
|
|
224
|
+
"syntaxNumber": {
|
|
225
|
+
"dark": "darkOrange",
|
|
226
|
+
"light": "lightOrange"
|
|
227
|
+
},
|
|
228
|
+
"syntaxType": {
|
|
229
|
+
"dark": "darkYellow",
|
|
230
|
+
"light": "lightYellow"
|
|
231
|
+
},
|
|
232
|
+
"syntaxOperator": {
|
|
233
|
+
"dark": "darkCyan",
|
|
234
|
+
"light": "lightCyan"
|
|
235
|
+
},
|
|
236
|
+
"syntaxPunctuation": {
|
|
237
|
+
"dark": "darkStep12",
|
|
238
|
+
"light": "lightStep12"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
+
"name": "oc-lucent-tokyonight",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Lucent Tokyo Night theme plugin for OpenCode TUI",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/RazoBeckett/opencode-lucent-tokyonight-theme.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"opencode",
|
|
13
|
+
"opencode-plugin",
|
|
14
|
+
"tui",
|
|
15
|
+
"theme",
|
|
16
|
+
"tokyonight"
|
|
17
|
+
],
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"files": [
|
|
20
|
+
"tui.ts",
|
|
21
|
+
"lucent-tokyonight.json",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
"./tui": {
|
|
27
|
+
"import": "./tui.ts",
|
|
28
|
+
"config": {
|
|
29
|
+
"enabled": true,
|
|
30
|
+
"autoApply": true,
|
|
31
|
+
"theme": "lucent-tokyonight"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@opencode-ai/plugin": "*"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"opencode": ">=1.3.14"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/tui.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { TuiPlugin, TuiPluginModule } from "@opencode-ai/plugin/tui"
|
|
2
|
+
import { fileURLToPath } from "node:url"
|
|
3
|
+
|
|
4
|
+
const pluginID = "oc-lucent-tokyonight"
|
|
5
|
+
const defaultThemeName = "lucent-tokyonight"
|
|
6
|
+
const bundledThemePath = fileURLToPath(new URL("./lucent-tokyonight.json", import.meta.url))
|
|
7
|
+
|
|
8
|
+
type Options = {
|
|
9
|
+
enabled?: boolean
|
|
10
|
+
autoApply?: boolean
|
|
11
|
+
theme?: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const tui: TuiPlugin = async (api, options) => {
|
|
15
|
+
const config = (options ?? {}) as Options
|
|
16
|
+
if (config.enabled === false) return
|
|
17
|
+
|
|
18
|
+
await api.theme.install(bundledThemePath)
|
|
19
|
+
|
|
20
|
+
const themeName = config.theme?.trim() || defaultThemeName
|
|
21
|
+
const shouldAutoApply = config.autoApply ?? true
|
|
22
|
+
|
|
23
|
+
if (shouldAutoApply && api.theme.selected !== themeName) {
|
|
24
|
+
api.theme.set(themeName)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
id: pluginID,
|
|
30
|
+
tui,
|
|
31
|
+
} satisfies TuiPluginModule & { id: string }
|