From a59b8e2c4db0d2c42be3de612a0ab8fad49cafd7 Mon Sep 17 00:00:00 2001 From: cornsnake Date: Thu, 12 Jun 2025 04:07:03 +0100 Subject: [PATCH 1/7] Add files via upload --- src/styles/tears_wild.css | 110 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 src/styles/tears_wild.css diff --git a/src/styles/tears_wild.css b/src/styles/tears_wild.css new file mode 100644 index 0000000000..5478f2ba76 --- /dev/null +++ b/src/styles/tears_wild.css @@ -0,0 +1,110 @@ +pre code.hljs { + display: block; + overflow-x: auto; + padding: 1em +} +code.hljs { + padding:3px 5px +} +/*! + * Tears of the Wild theme + * Based on the Hylian Sunset theme by Hunter Crandall & ztok_theme by KrlosDev for VSCode + * Original author: Cornsnake Date: Thu, 12 Jun 2025 04:17:12 +0100 Subject: [PATCH 2/7] Update tears_wild.css minor fixes to make xml/html fit the palette better --- src/styles/tears_wild.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/styles/tears_wild.css b/src/styles/tears_wild.css index 5478f2ba76..4b39be9c7a 100644 --- a/src/styles/tears_wild.css +++ b/src/styles/tears_wild.css @@ -18,6 +18,8 @@ code.hljs { color:#8AD5BE } +.hljs-doctag, +.hljs-regexp, .hljs-deletion, .hljs-selector-pseudo, .hljs-variable.language { @@ -33,12 +35,11 @@ code.hljs { font-weight: bold; } -.hljs-doctag, -.hljs-regexp, .hljs-selector-id, .hljs-literal, .hljs-link, -.hljs-number { +.hljs-number, +.hljs-name { color: #e57337; } @@ -86,8 +87,7 @@ code.hljs { color:#ea9a97 } -.hljs-char.escape_, -.hljs-name { +.hljs-char.escape_ { color:#c4a7e7 } From 346daf445aad0705983b9f6bfa5a6b1033f26deb Mon Sep 17 00:00:00 2001 From: cornsnake Date: Thu, 12 Jun 2025 04:28:37 +0100 Subject: [PATCH 3/7] final true for real this time type fixes --- src/styles/tears_wild.css | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/styles/tears_wild.css b/src/styles/tears_wild.css index 4b39be9c7a..2e39fecf31 100644 --- a/src/styles/tears_wild.css +++ b/src/styles/tears_wild.css @@ -1,8 +1,3 @@ -pre code.hljs { - display: block; - overflow-x: auto; - padding: 1em -} code.hljs { padding:3px 5px } @@ -15,7 +10,21 @@ code.hljs { .hljs-comment, .hljs-meta { - color:#8AD5BE + 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, @@ -26,10 +35,10 @@ code.hljs { color:#eb6f92 } +.hljs-type, .hljs-selector-attr, .hljs-tag, .hljs-selector-tag, -.hjls-type, .hljs-template-tag { color: #76cfb3; font-weight: bold; @@ -43,20 +52,13 @@ code.hljs { color: #e57337; } +.hjls-type, .hljs-template-variable, .hljs-variable { color: #76cfb3; font-style: italic; } -.hljs-attr, -.hljs-property, -.hljs-params, -.hljs-attribute { - color: #86cc85; - font-style: italic; -} - .hljs-keyword, .hljs-built_in, .hljs-operator { From 0e11cc5dcbb65b1dce689ff01bafeaea8094913a Mon Sep 17 00:00:00 2001 From: cornsnake Date: Thu, 12 Jun 2025 04:29:19 +0100 Subject: [PATCH 4/7] forgor rest of base --- src/styles/tears_wild.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/styles/tears_wild.css b/src/styles/tears_wild.css index 2e39fecf31..dfcd2880c0 100644 --- a/src/styles/tears_wild.css +++ b/src/styles/tears_wild.css @@ -1,3 +1,8 @@ +pre code.hljs { + display: block; + overflow-x: auto; + padding: 1em +} code.hljs { padding:3px 5px } From eb65975936a5227679062a28e16f3c390a0f58af Mon Sep 17 00:00:00 2001 From: corn-snake Date: Thu, 12 Jun 2025 05:48:44 +0100 Subject: [PATCH 5/7] accessibility tuning + PR meta & notation stuff --- CHANGES.md | 1 + src/styles/{tears_wild.css => tears-of-the-wild.css} | 12 ++++++++++-- tools/developer.html | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) rename src/styles/{tears_wild.css => tears-of-the-wild.css} (91%) diff --git a/CHANGES.md b/CHANGES.md index 285c78a8c4..3feb0dabe3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ Themes: - added "vs Dark " theme [Twineee1][] +- added "Tears of the Wild" theme [corn-snake][] New Grammars: diff --git a/src/styles/tears_wild.css b/src/styles/tears-of-the-wild.css similarity index 91% rename from src/styles/tears_wild.css rename to src/styles/tears-of-the-wild.css index dfcd2880c0..442ecb780c 100644 --- a/src/styles/tears_wild.css +++ b/src/styles/tears-of-the-wild.css @@ -36,8 +36,8 @@ code.hljs { .hljs-regexp, .hljs-deletion, .hljs-selector-pseudo, -.hljs-variable.language { - color:#eb6f92 +.hljs-variable.language_ { + color:#b40100; } .hljs-type, @@ -115,3 +115,11 @@ code.hljs { .hljs-strong { font-weight:700 } + +.hljs-meta .hljs-keyword { + color: #e1a37f; +} + +.hljs-meta .hljs-string { + color: #7cc0be; +} diff --git a/tools/developer.html b/tools/developer.html index 1086f01847..d588ddaae6 100644 --- a/tools/developer.html +++ b/tools/developer.html @@ -315,6 +315,7 @@

Code

+ From 0004b25c4b15ce9e74e398a66917636be090127d Mon Sep 17 00:00:00 2001 From: cornsnake Date: Wed, 25 Jun 2025 01:51:06 +0100 Subject: [PATCH 6/7] removed redundant lines re: conversation on PR --- src/styles/tears-of-the-wild.css | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/styles/tears-of-the-wild.css b/src/styles/tears-of-the-wild.css index 442ecb780c..ee8c18bc51 100644 --- a/src/styles/tears-of-the-wild.css +++ b/src/styles/tears-of-the-wild.css @@ -1,16 +1,8 @@ -pre code.hljs { - display: block; - overflow-x: auto; - padding: 1em -} -code.hljs { - padding:3px 5px -} /*! * Tears of the Wild theme * Based on the Hylian Sunset theme by Hunter Crandall & ztok_theme by KrlosDev for VSCode * Original author: Cornsnake Date: Sun, 13 Jul 2025 07:37:33 +0100 Subject: [PATCH 7/7] Update tears-of-the-wild.css bump up regex/del/etc contrast for accessibility --- src/styles/tears-of-the-wild.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/tears-of-the-wild.css b/src/styles/tears-of-the-wild.css index ee8c18bc51..44b74916ef 100644 --- a/src/styles/tears-of-the-wild.css +++ b/src/styles/tears-of-the-wild.css @@ -29,7 +29,7 @@ .hljs-deletion, .hljs-selector-pseudo, .hljs-variable.language_ { - color:#b40100; + color: #f94e4d; } .hljs-type,