What42's Rust Theme (Light)
Publisher: What42PizzaThemes in package: 2
A theme for Rust that focuses aggressively on readability
A theme for Rust that focuses aggressively on readability
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment | #20880F | italic |
| comment.line.documentation | #0060F0 | — |
| entity.name.namespace, variable.language.super.rust | #003090 | — |
| keyword, storage.type.rust | #202D94 | — |
| storage.modifier.glsl | #0050D0 | — |
| storage.modifier.mut.rust | #980430 | — |
| storage.modifier | #C00828 | — |
| keyword.operator | #202090 | — |
| keyword.operator.question | #D0803C | bold |
| entity.name.function, support.function, meta.function-call | #0018D0 | — |
| entity.name.type, storage.type, keyword.type, keyword.other.type, support.type | #00585C | — |
| entity.name.type.lifetime | #D89408 | — |
| variable.language.self, variable.language.this, storage.modifier.private.cs | #BC5648 | — |
| constant.numeric, constant.character, constant.language.bool, constant.other.color | #008070 | — |
| string, markup.inline.raw.string | #700480 | — |
| constant.character.escape | #C01080 | — |
| string.regexp | #C01080 | — |
| constant | #704230 | — |
| meta.attribute, meta.attribute keyword.operator.access.dot | #C47840 | — |
| punctuation.comma | #000000 | — |
| invalid, entity.name.exception | #D00000 | — |
| keyword.directive.preprocessor, keyword.preprocessor, meta.preprocessor, meta.tag.preprocessor | #B85048 | — |
| support.type.property-name.toml | #000000 | — |
| support.type.property-name.table.toml | #0830D0 | bold |
| support.type.property-name.json, support.type.property-name.hjson | #000000 | — |
| heading | #0030E0 | bold |
| meta.link, meta.image | #0070D0 | — |
| string.other.link | #6000F0 | — |
| markup.bold.markdown | #D89000 | — |
| meta.tag.inline.br | #707070 | — |
| markup.fenced_code | #4C0088 | bold |
| meta.embedded.block | — | |
| entity.name.tag.html | #0018C0 | — |
| entity.other.attribute-name.html | #1030A0 | — |
| punctuation.separator.key-value.html, punctuation.definition.tag | #101070 | — |
| storage.modifier.public.cs, storage.modifier.static.cs, storage.modifier.const.cs, storage.modifier.ref.cs, storage.modifier.out.cs, storage.modifier.in.cs, storage.modifier.readonly.cs, storage.modifier.extern.cs, storage.type.namespace.cs, storage.type.delegate.cs | #202D94 | — |
| constant.language.null.cs | #A84000 | — |
| entity.name.tag.localname.xml | #3048B0 | bold |
| entity.other.attribute-name.localname.xml | #0040E0 | — |
| punctuation.definition.tag.xml | #002080 | — |
| meta.tag.preprocessor.xml | #A83030 | — |
| storage.type.struct.c | #202C80 | — |
| storage.type.class.swift, storage.type.function.swift | #202C80 | — |
| entity.name.function.swift, support.function.any-method.swift | #000000 | — |
| support.function.any-method.swift | #0018D0 | — |
| entity.global.clojure | #005658 | — |
| constant.keyword.clojure | #000000 | — |
| storage.control.clojure | #202C80 | — |
| storage.modifier.java | #202870 | — |
| storage.type.class.python, storage.type.function.python | #202C80 | — |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python | #BC5848 | — |
| meta.attribute.python | #000000 | — |
| storage.modifier.php | #202870 | — |
| punctuation.definition.variable.php | #202C80 | — |
| meta.selector.css, keyword.control.at-rule | #0018D0 | — |
| meta.property-name | #202080 | — |
| variable.css, variable.argument.css | #202090 | — |
| support.constant.property-value.css | #704430 | — |
| source.js, storage.type.class.js, entity.name.type.class.js, storage.type.js, storage.type.property.js, entity.name.function.js, keyword.control.flow.js, keyword.operator.new.js, string.quoted.single.js, constant.numeric.decimal.js, comment.block.js | #FF0000 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}