Skip to content

Commit 0d809ee

Browse files
authored
Adds Dracula theme for OpenCode
Adds Dracula theme for OpenCode
2 parents 4272a41 + 5bef472 commit 0d809ee

28 files changed

+254
-713
lines changed

CONTRIBUTORS.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

INSTALL.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
1-
### [Foobar](https://foobar.com)
1+
### [OpenCode](https://opencode.ai)
22

33
#### Install using Git
44

55
If you are a git user, you can install the theme and keep up to date by cloning the repo:
66

77
```bash
8-
git clone https://github.com/dracula/foobar.git
8+
git clone https://github.com/dracula/opencode.git
99
```
1010

1111
#### Install manually
1212

13-
Download using the [GitHub `.zip` download](https://github.com/dracula/foobar/archive/main.zip) option and unzip them.
13+
Download using the [GitHub `.zip` download](https://github.com/dracula/opencode/archive/main.zip) option and unzip them.
1414

1515
#### Activating theme
1616

17-
1. Do this;
18-
2. Then that;
19-
3. Boom! It's working ✨
17+
1. Create the OpenCode themes directory if it doesn't exist:
18+
19+
```bash
20+
mkdir -p ~/.config/opencode/themes
21+
```
22+
23+
2. Symlink the theme file to the OpenCode themes directory:
24+
25+
```bash
26+
ln -s /path/to/opencode-dracula-theme/dracula.json ~/.config/opencode/themes/dracula.json
27+
```
28+
29+
Replace `/path/to/opencode-dracula-theme` with the actual path where you cloned/downloaded the theme.
30+
31+
3. Edit your OpenCode configuration file (`~/.config/opencode/config.json`) and set the theme:
32+
33+
```json
34+
{
35+
"theme": "dracula"
36+
}
37+
```
38+
39+
4. Restart OpenCode

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Dracula for [Foobar](https://foobar.com)
1+
# Dracula for [OpenCode](https://opencode.ai)
22

3-
> A dark theme for [Foobar](https://foobar.com).
3+
> A dark theme for [OpenCode](https://opencode.ai).
44
55
![Screenshot](./screenshot.png)
66

77
## Install
88

9-
All instructions can be found at [draculatheme.com/foobar](https://draculatheme.com/foobar).
9+
All instructions can be found at [draculatheme.com/opencode](https://draculatheme.com/opencode).
1010

1111
## Team
1212

13-
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/foobar/graphs/contributors).
13+
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/opencode/graphs/contributors).
1414

15-
| [![Zeno Rocha](https://github.com/zenorocha.png?size=100)](https://github.com/zenorocha) | [![Lucas de França](https://github.com/luxonauta.png?size=100)](https://github.com/luxonauta) |
16-
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
17-
| [Zeno Rocha](https://github.com/zenorocha) | [Lucas de França](https://github.com/luxonauta) |
15+
| [![Daniel Schroeder](https://github.com/udondan.png?size=100)](https://github.com/udondan) |
16+
| ------------------------------------------------------------------------------------------ |
17+
| [Daniel Schroeder](https://github.com/udondan) |
1818

1919
## Community
2020

dracula.json

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
{
2+
"$schema": "https://opencode.ai/theme.json",
3+
"defs": {
4+
"bgPrimary": "#282A36",
5+
"bgSecondary": "#44475A",
6+
"bgSelection": "#44475A",
7+
"foreground": "#F8F8F2",
8+
"comment": "#6272A4",
9+
"red": "#FF5555",
10+
"orange": "#FFB86C",
11+
"yellow": "#F1FA8C",
12+
"green": "#50FA7B",
13+
"cyan": "#8BE9FD",
14+
"purple": "#BD93F9",
15+
"pink": "#FF79C6",
16+
"bgDiffAdded": "#2B3A2F",
17+
"bgDiffRemoved": "#3D2A2E"
18+
},
19+
"theme": {
20+
"primary": {
21+
"dark": "purple",
22+
"light": "purple"
23+
},
24+
"secondary": {
25+
"dark": "cyan",
26+
"light": "cyan"
27+
},
28+
"accent": {
29+
"dark": "pink",
30+
"light": "pink"
31+
},
32+
"error": {
33+
"dark": "red",
34+
"light": "red"
35+
},
36+
"warning": {
37+
"dark": "orange",
38+
"light": "orange"
39+
},
40+
"success": {
41+
"dark": "green",
42+
"light": "green"
43+
},
44+
"info": {
45+
"dark": "cyan",
46+
"light": "cyan"
47+
},
48+
"text": {
49+
"dark": "foreground",
50+
"light": "foreground"
51+
},
52+
"textMuted": {
53+
"dark": "comment",
54+
"light": "comment"
55+
},
56+
"background": {
57+
"dark": "bgPrimary",
58+
"light": "bgPrimary"
59+
},
60+
"backgroundPanel": {
61+
"dark": "bgSecondary",
62+
"light": "bgSecondary"
63+
},
64+
"backgroundElement": {
65+
"dark": "bgSecondary",
66+
"light": "bgSecondary"
67+
},
68+
"border": {
69+
"dark": "bgSelection",
70+
"light": "bgSelection"
71+
},
72+
"borderActive": {
73+
"dark": "purple",
74+
"light": "purple"
75+
},
76+
"borderSubtle": {
77+
"dark": "bgSelection",
78+
"light": "bgSelection"
79+
},
80+
"diffAdded": {
81+
"dark": "green",
82+
"light": "green"
83+
},
84+
"diffRemoved": {
85+
"dark": "red",
86+
"light": "red"
87+
},
88+
"diffContext": {
89+
"dark": "foreground",
90+
"light": "foreground"
91+
},
92+
"diffHunkHeader": {
93+
"dark": "comment",
94+
"light": "comment"
95+
},
96+
"diffHighlightAdded": {
97+
"dark": "green",
98+
"light": "green"
99+
},
100+
"diffHighlightRemoved": {
101+
"dark": "red",
102+
"light": "red"
103+
},
104+
"diffAddedBg": {
105+
"dark": "bgDiffAdded",
106+
"light": "bgDiffAdded"
107+
},
108+
"diffRemovedBg": {
109+
"dark": "bgDiffRemoved",
110+
"light": "bgDiffRemoved"
111+
},
112+
"diffContextBg": {
113+
"dark": "bgSecondary",
114+
"light": "bgSecondary"
115+
},
116+
"diffLineNumber": {
117+
"dark": "comment",
118+
"light": "comment"
119+
},
120+
"diffAddedLineNumberBg": {
121+
"dark": "bgDiffAdded",
122+
"light": "bgDiffAdded"
123+
},
124+
"diffRemovedLineNumberBg": {
125+
"dark": "bgDiffRemoved",
126+
"light": "bgDiffRemoved"
127+
},
128+
"markdownText": {
129+
"dark": "foreground",
130+
"light": "foreground"
131+
},
132+
"markdownHeading": {
133+
"dark": "purple",
134+
"light": "purple"
135+
},
136+
"markdownLink": {
137+
"dark": "cyan",
138+
"light": "cyan"
139+
},
140+
"markdownLinkText": {
141+
"dark": "pink",
142+
"light": "pink"
143+
},
144+
"markdownCode": {
145+
"dark": "green",
146+
"light": "green"
147+
},
148+
"markdownBlockQuote": {
149+
"dark": "comment",
150+
"light": "comment"
151+
},
152+
"markdownEmph": {
153+
"dark": "yellow",
154+
"light": "yellow"
155+
},
156+
"markdownStrong": {
157+
"dark": "orange",
158+
"light": "orange"
159+
},
160+
"markdownHorizontalRule": {
161+
"dark": "comment",
162+
"light": "comment"
163+
},
164+
"markdownListItem": {
165+
"dark": "cyan",
166+
"light": "cyan"
167+
},
168+
"markdownListEnumeration": {
169+
"dark": "purple",
170+
"light": "purple"
171+
},
172+
"markdownImage": {
173+
"dark": "pink",
174+
"light": "pink"
175+
},
176+
"markdownImageText": {
177+
"dark": "yellow",
178+
"light": "yellow"
179+
},
180+
"markdownCodeBlock": {
181+
"dark": "green",
182+
"light": "green"
183+
},
184+
"syntaxComment": {
185+
"dark": "comment",
186+
"light": "comment"
187+
},
188+
"syntaxKeyword": {
189+
"dark": "pink",
190+
"light": "pink"
191+
},
192+
"syntaxFunction": {
193+
"dark": "green",
194+
"light": "green"
195+
},
196+
"syntaxVariable": {
197+
"dark": "foreground",
198+
"light": "foreground"
199+
},
200+
"syntaxString": {
201+
"dark": "yellow",
202+
"light": "yellow"
203+
},
204+
"syntaxNumber": {
205+
"dark": "purple",
206+
"light": "purple"
207+
},
208+
"syntaxType": {
209+
"dark": "cyan",
210+
"light": "cyan"
211+
},
212+
"syntaxOperator": {
213+
"dark": "pink",
214+
"light": "pink"
215+
},
216+
"syntaxPunctuation": {
217+
"dark": "foreground",
218+
"light": "foreground"
219+
}
220+
}
221+
}

sample/Dracula.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

sample/SAMPLE.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)