Skip to content

(theme) add "Tears of the Wild" theme #4283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Themes:

- added "vs Dark " theme [Twineee1][]
- added "Tears of the Wild" theme [corn-snake][]

New Grammars:

Expand Down
125 changes: 125 additions & 0 deletions src/styles/tears-of-the-wild.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
pre code.hljs {
display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding:3px 5px
}
Comment on lines +1 to +8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines can be removed, our build system adds these to the CSS when it builds the projects.

/*!
* Tears of the Wild theme
* Based on the Hylian Sunset theme by Hunter Crandall & ztok_theme by KrlosDev for VSCode
* Original author: Cornsnake <cornsnake on codeberg, corn-snake on git
* Last edited: June 12th, 2025
*/

.hljs-comment,
.hljs-meta {
color:#8AD5BE;
font-weight: lighter;
font-style: italic;
}

.hljs-comment {
opacity: 0.75;
}

.hljs-attr,
.hljs-property,
.hljs-params,
.hljs-attribute {
color: #86cc85;
font-style: italic;
}

.hljs-doctag,
.hljs-regexp,
.hljs-deletion,
.hljs-selector-pseudo,
.hljs-variable.language_ {
color:#b40100;
}

.hljs-type,
.hljs-selector-attr,
.hljs-tag,
.hljs-selector-tag,
.hljs-template-tag {
color: #76cfb3;
font-weight: bold;
}

.hljs-selector-id,
.hljs-literal,
.hljs-link,
.hljs-number,
.hljs-name {
color: #e57337;
}

.hjls-type,
.hljs-template-variable,
.hljs-variable {
color: #76cfb3;
font-style: italic;
}

.hljs-keyword,
.hljs-built_in,
.hljs-operator {
color: #f5cb6d;
font-weight: bold;
}

.hljs-subst,
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_,
.hljs-selector-class {
color:#9ccfd8
}

.hljs-addition,
.hljs-bullet,
.hljs-quote,
.hljs-string,
.hljs-symbol {
color:#66D49A;
}

.hljs-code,
.hljs-formula,
.hljs-section {
color:#ea9a97
}

.hljs-char.escape_ {
color:#c4a7e7
}

.hljs-punctuation {
color:#e0def4
}

.hljs {
background:#191917;
color:#f0f0f0
}

.hljs-emphasis {
font-style:italic;
font-weight: bolder;
}

.hljs-strong {
font-weight:700
}

.hljs-meta .hljs-keyword {
color: #e1a37f;
}

.hljs-meta .hljs-string {
color: #7cc0be;
}
1 change: 1 addition & 0 deletions tools/developer.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ <h3>Code</h3>
<option>stackoverflow-dark.css</option>
<option>stackoverflow-light.css</option>
<option>sunburst.css</option>
<option>tears-wild.css</option>
<option>tokyo-night-dark.css</option>
<option>tokyo-night-light.css</option>
<option>tomorrow-night-blue.css</option>
Expand Down