Adwaita
Publisher: piousdeerThemes in package: 8
Theme for the GNOME desktop
Theme for the GNOME desktop
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 |
|---|---|---|
| , meta.embedded, variable, meta.tag.attributes punctuation.section.embedded, keyword.operator, storage.type.function.arrow, keyword.control.flow.block-scalar.literal, keyword.control.flow.block-scalar.folded, storage.modifier.chomping-indicator, storage.type.string, string.quoted.byte.raw, meta.macro.rules entity.name.function.macro.rust | #504E55 | |
| constant.numeric.binary, constant.numeric.octal, constant.numeric.hex, keyword.other.unit.binary, keyword.other.unit.octal, keyword.other.unit.hexadecimal, keyword.other.unit.imaginary, keyword.other.unit.exponent | #4E57BA | |
| constant.language.boolean, constant.language.bool | #4E57BA | |
| comment, entity.other.document.begin.yaml, entity.other.document.end.yaml | #77767B | |
| constant.language, string.quoted.single.char, support.type.property-name, support.constant.property-value.css, source.css keyword.other.unit | #4E57BA | |
| constant.numeric, constant.numeric entity.name.type.numeric | #4E57BA | |
| comment.block.documentation | #504E55 | |
| constant.numeric.float | #4E57BA | |
| #1C71D8 | ||
| markup.heading.markdown | #218787 | bold |
| keyword, keyword.operator.new, keyword.operator.logical.python, source.js keyword.operator.expression, source.ts keyword.operator.expression, storage.modifier, storage.type.class, storage.type.function, entity.name.tag.yaml, source.js storage.type, source.ts storage.type, source.tsx storage.type, source.rust storage.type | #C64600 | bold |
| constant.numeric | #4E57BA | |
| #4E57BA | ||
| meta.preprocessor, meta.preprocessor keyword.control, punctuation.decorator, meta.decorator entity.name.function, entity.name.function.decorator, keyword.control.at-rule.media, constant.character.entity, punctuation.section.embedded, punctuation.definition.template-expression | #C64600 | |
| comment.line.number-sign.shebang | #77767B | bold |
| constant.character.escape | #ED333B | |
| string | #218787 | |
| markup.bold.markdown | — | bold |
| storage.type, entity.name.type, entity.name.namespace, keyword.type.cs, support.type, support.class.builtin, support.class.promise | #218787 | bold |
| meta.preprocessor.cs | #5E5C64 | |
| constant.other.placeholder | #4E57BA | |
| source.c storage.modifier | #218787 | bold |
| source.c storage.type | #218787 | bold |
| entity.other.attribute-name.id.css | #218787 | bold |
| support.type.property-name.css | #C64600 | |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css, meta.selector.css punctuation.section.function | #4E57BA | bold |
| meta.selector.css keyword.operator, entity.other.attribute-name.css | #C64600 | bold |
| support.type.vendored.property-name.css | #D38B09 | |
| markup.inserted.diff | #26A1A2 | |
| markup.changed | #E66100 | |
| meta.diff.header | #4E57BA | |
| meta.diff.range | #D38B09 | |
| markup.deleted.diff | #F66151 | |
| constant.other.placeholder.go | #4E57BA | |
| support.function.builtin.python | #1C71D8 | |
| entity.name.type.class.python | #218787 | bold |
| keyword.control.import.python | #E01B24 | |
| meta.attribute.rust, meta.attribute.rust keyword.operator | #4E57BA | |
| entity.name.type.lifetime.rust | #C64600 | |
| entity.name.function.macro | #4E57BA | |
| meta.tag entity.other.attribute-name, meta.tag keyword.operator.assignment, punctuation.separator.key-value.html, punctuation.separator.key-value.svelte, text.xml meta.tag | #C64600 | |
| meta.tag string | #4E57BA | |
| entity.name.tag, support.class.component.svelte, punctuation.definition.tag | #218787 | |
| text.xml meta.tag.preprocessor entity.name.tag, text.xml meta.tag.preprocessor punctuation.definition.tag | #D38B09 | bold |
| markup.italic.markdown | — | italic |
| markup.strikethrough.markdown | — | strikethrough |
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}!`;
}