Vibrant Alps
Publisher: Marcel BührigThemes in package: 1
A vibrant color theme direct from the alps
A vibrant color theme direct from the alps
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, string.quoted.docstring.multi.python | #9e9e9e | italic |
| string | #4aa4ff | — |
| constant.numeric | #ffd400 | — |
| constant.language | #ff2e97 | — |
| constant.character, constant.other | #d971ff | — |
| variable | #dbf7ff | — |
| keyword | #09fa00 | — |
| storage | #46e9ff | |
| storage.type | #4aff6b | |
| entity.name.class, entity.name.type.class | #ff2e97 | |
| entity.other.inherited-class, meta.other.inherited-class.php | #ffd400 | italic |
| meta.definition.method | #fc9ffb | — |
| entity.name.function - meta.function-call, meta.function-call | #0ABDC6 | |
| variable.parameter | #69fff7 | |
| entity.name.tag | #ff2e97 | |
| entity.other.attribute-name | #c0ff2e | |
| support.function | #ffd400 | |
| support.constant | #0ABDC6 | |
| support.type, support.class, entity.name.type | #d54dff | underline |
| support.other.variable | #20adff | |
| variable.language.this | #ffee00 | underline |
| invalid | #dd207b | |
| invalid.deprecated | #007980 | — |
| meta.diff, meta.diff.header | #006ead | — |
| markup.deleted | #ca146f | — |
| markup.inserted | #dbcd00 | — |
| markup.changed | #008d8d | — |
| constant.numeric.line-number.find-in-files - match | #e71c71 | — |
| entity.name.filename.find-in-files | #ffdf52 | — |
| keyword.other | #5c3ffd | — |
| meta.property-value, support.constant.property-value, constant.other.color | #ff15ef | — |
| support.constant.property-value.css | #fff | — |
| meta.structure.dictionary.json string.quoted.double.json | #FF0081 | — |
| support.type.property-name.json | #ff2e97 | |
| meta.structure.dictionary.value.json string.quoted.double.json | #0ABDC6 | — |
| meta.property-name support.type.property-name, support.type.property-name.css, invalid.deprecated.color.system.css | #0ABDC6 | |
| entity.name.tag.reference.scss | #fec7ff | |
| meta.property-value punctuation.separator.key-value | #00a3ee | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #EA00D9 | — |
| support.other.namespace.php | #913cff | — |
| meta.use | #00b3bd | |
| variable.other | #fff | |
| entity.name.section.markdown | #ff2e97 | — |
| punctuation.definition.heading.markdown | #ff2e97 | — |
| markup.raw.inline.markdown | #cccccc | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #ff2e97 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #ff15ef | — |
| punctuation.definition.metadata.markdown | #ff15ef | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #ff15ef | |
| markup.bold.markdown, markup.italic.markdown | #ff2e97 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #0ABDC6 | — |
| markup.deleted.git_gutter | #99008f | — |
| markup.inserted.git_gutter | #dfd700 | — |
| markup.changed.git_gutter | #004d96 | — |
| meta.template.expression | #0076ad | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| variable.other.property, variable.other.object.property | #ff5100 | — |
| support.type.map.key | #dbf7ff | |
| support.function.misc.scss, support.function.misc.css, entity.name.function.scss | #fff | — |
| variable.scss | #ff7d12 | — |
| entity.name.tag.css | #74bb7f | — |
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}!`;
}