evolved theme
Publisher: Rafał HirschThemes in package: 2
evol's color theme
evol's color theme
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 | #5a5d58 | italic |
| string, markup.inline.raw.string, markup.raw.inline.markdown | #9fbf83 | — |
| punctuation.definition.template-expression, constant.character.escape, string.interpolated.expression | #84a16b | — |
| punctuation.definition.string, punctuation.definition.raw | #84a16b | — |
| constant.numeric | #58befa | — |
| constant.language, keyword.control, keyword.declaration, keyword.other, storage.type, storage.modifier, keyword.operator.type.js, support.function.svelte | #c3827d | — |
| variable.language.this, variable.language.special.self, variable.parameter.function.language.special.self | #ffa3ca | italic |
| keyword.operator, storage.modifier.optional.js | #9fbf83 | — |
| support.class, support.type.builtin, support.type.primitive, support.type.unknown, entity.name.class, entity.name.interface, entity.name.label, entity.name.type, entity.other.inherited-class, storage.modifier.array.js, storage.type.protobuf, storage.type.primitive.protobuf, variable.type | #ffb843 | — |
| variable.other.constant, variable.other.readwrite, entity.name.variable | #aab6b2 | — |
| entity.name.function, meta.function-call.python, support.function, variable.function | #36a0da | — |
| variable.parameter | #c58823 | — |
| variable.object.property, variable.other.property, meta.attribute.python, meta.mapping.key, meta.property.object, entity.name.tag.yaml, entity.name.function.jsonnet, punctuation.definition.variable.js, meta.class variable.other.readwrite, meta.interface variable.other.readwrite, support.type.property-name.json, meta.mapping.key string.unquoted, meta.mapping.key string.quoted | #267fae | — |
| punctuation.separator.key-value, punctuation.separator.dictionary.key-value, keyword.operator.type.annotation.ts, meta.mapping punctuation.separator.key-value.mapping, meta.mapping.key string.quoted punctuation.definition.string | #58befa | — |
| entity.name.enum, entity.name.type.enum | #ffb843 | — |
| variable.other.enummember, meta.enum variable.other.readwrite | #c58823 | — |
| entity.name.tag | #58befa | — |
| punctuation.definition.tag | #36a0da | — |
| entity.other.attribute-name | #9fbf83 | — |
| punctuation.separator.key-value | #84a16b | — |
| variable.css, variable.argument.css, variable.other.custom-property.css | #267fae | italic |
| meta.property-value.css | #909894 | — |
| entity.other.attribute-name.namespace | #84a16b | — |
| punctuation.separator.namespace | #668050 | — |
| markup.heading, entity.name.section.markdown | #36a0da | — |
| punctuation.definition.heading | #58befa | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| string.other.link.title, string.other.link.description, meta.image.inline.description, meta.link.inline.description | #e9a332 | — |
| punctuation.definition.link.begin, punctuation.definition.link.end, punctuation.definition.link.title, punctuation.definition.link.description | #ffb843 | — |
| markup.underline.link | #ffb843 | — |
| punctuation.definition.metadata.markdown, punctuation.definition.metadata.begin, punctuation.definition.metadata.end | #ffca69 | — |
| punctuation.definition.markdown, punctuation.definition.raw.code-fence | #9fbf83 | — |
| fenced_code.block.language, meta.code-fence.definition constant.other.language-name | #b3d597 | — |
| punctuation.definition.list.begin, punctuation.definition.list_item | #ab5c56 | — |
| punctuation.definition.keyword, punctuation.definition.block.begin.svelte, punctuation.definition.block.end.svelte | #d7a4a0 | — |
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}!`;
}