More accessible color scheme for raw blocks (#6754)

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
Martin Haug 2025-08-15 12:22:43 +02:00 committed by GitHub
parent a7dac28c7c
commit 1d9a125a52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 9 additions and 9 deletions

View File

@ -890,14 +890,14 @@ pub static RAW_THEME: LazyLock<synt::Theme> = LazyLock::new(|| synt::Theme {
author: Some("The Typst Project Developers".into()), author: Some("The Typst Project Developers".into()),
settings: synt::ThemeSettings::default(), settings: synt::ThemeSettings::default(),
scopes: vec![ scopes: vec![
item("comment", Some("#8a8a8a"), None), item("comment", Some("#74747c"), None),
item("constant.character.escape", Some("#1d6c76"), None), item("constant.character.escape", Some("#1d6c76"), None),
item("markup.bold", None, Some(synt::FontStyle::BOLD)), item("markup.bold", None, Some(synt::FontStyle::BOLD)),
item("markup.italic", None, Some(synt::FontStyle::ITALIC)), item("markup.italic", None, Some(synt::FontStyle::ITALIC)),
item("markup.underline", None, Some(synt::FontStyle::UNDERLINE)), item("markup.underline", None, Some(synt::FontStyle::UNDERLINE)),
item("markup.raw", Some("#818181"), None), item("markup.raw", Some("#6b6b6f"), None),
item("string.other.math.typst", None, None), item("string.other.math.typst", None, None),
item("punctuation.definition.math", Some("#298e0d"), None), item("punctuation.definition.math", Some("#198810"), None),
item("keyword.operator.math", Some("#1d6c76"), None), item("keyword.operator.math", Some("#1d6c76"), None),
item("markup.heading, entity.name.section", None, Some(synt::FontStyle::BOLD)), item("markup.heading, entity.name.section", None, Some(synt::FontStyle::BOLD)),
item( item(
@ -908,16 +908,16 @@ pub static RAW_THEME: LazyLock<synt::Theme> = LazyLock::new(|| synt::Theme {
item("punctuation.definition.list", Some("#8b41b1"), None), item("punctuation.definition.list", Some("#8b41b1"), None),
item("markup.list.term", None, Some(synt::FontStyle::BOLD)), item("markup.list.term", None, Some(synt::FontStyle::BOLD)),
item("entity.name.label, markup.other.reference", Some("#1d6c76"), None), item("entity.name.label, markup.other.reference", Some("#1d6c76"), None),
item("keyword, constant.language, variable.language", Some("#d73a49"), None), item("keyword, constant.language, variable.language", Some("#d73948"), None),
item("storage.type, storage.modifier", Some("#d73a49"), None), item("storage.type, storage.modifier", Some("#d73948"), None),
item("constant", Some("#b60157"), None), item("constant", Some("#b60157"), None),
item("string", Some("#298e0d"), None), item("string", Some("#198810"), None),
item("entity.name, variable.function, support", Some("#4b69c6"), None), item("entity.name, variable.function, support", Some("#4b69c6"), None),
item("support.macro", Some("#16718d"), None), item("support.macro", Some("#16718d"), None),
item("meta.annotation", Some("#301414"), None), item("meta.annotation", Some("#301414"), None),
item("entity.other, meta.interpolation", Some("#8b41b1"), None), item("entity.other, meta.interpolation", Some("#8b41b1"), None),
item("meta.diff.range", Some("#8b41b1"), None), item("meta.diff.range", Some("#8b41b1"), None),
item("markup.inserted, meta.diff.header.to-file", Some("#298e0d"), None), item("markup.inserted, meta.diff.header.to-file", Some("#198810"), None),
item("markup.deleted, meta.diff.header.from-file", Some("#d73a49"), None), item("markup.deleted, meta.diff.header.from-file", Some("#d73948"), None),
], ],
}); });

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -6,6 +6,6 @@
</head> </head>
<body> <body>
<p>This is <code><strong>*</strong><strong>inline</strong><strong>*</strong></code>.</p> <p>This is <code><strong>*</strong><strong>inline</strong><strong>*</strong></code>.</p>
<pre><code>#[<br> <span style="color: #d73a49">#</span><span style="color: #d73a49">set</span> <span style="color: #4b69c6">text</span>(blue)<br> <strong>*</strong><strong>Hello</strong><strong>*</strong> <em>_</em><em>world</em><em>_</em>!<br>]</code></pre> <pre><code>#[<br> <span style="color: #d73948">#</span><span style="color: #d73948">set</span> <span style="color: #4b69c6">text</span>(blue)<br> <strong>*</strong><strong>Hello</strong><strong>*</strong> <em>_</em><em>world</em><em>_</em>!<br>]</code></pre>
</body> </body>
</html> </html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 351 B

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB