CS Monk Theme
Publisher: Salomon KulondwaThemes in package: 1
The Dark Theme of your (my?) dreams!
The Dark Theme of your (my?) dreams!
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, punctuation.definition.comment | #928374 | |
| string, string.quoted, string.template | #d5c4a1 | — |
| string.quoted.docstring.multi.python, string.quoted.multi.python | #d5c4a1 | |
| keyword, keyword.control, keyword.operator, storage.type, storage.modifier | #95e6cb | — |
| entity.name.function, support.function | #ffffff | — |
| meta.function-call | #ffffff | — |
| entity.name.type, entity.name.class, support.class, support.type | #fabd2f | — |
| variable, variable.parameter, variable.other | #95e6cb | — |
| constant.numeric, constant.language, support.constant | #d3869b | — |
| punctuation, meta.brace, punctuation.separator, punctuation.section | #a89984 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, meta.tag.structure.any.html, meta.tag.other.html, meta.tag.block.any.html, meta.tag.inline.any.html | #95e6cb | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.xml, punctuation.definition.tag.begin, punctuation.definition.tag.end | #a89984 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.class, entity.other.attribute-name.id | #fabd2f | — |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.xml, string.quoted.single.xml | #d5c4a1 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json, string.json support.type.property-name.json | #95e6cb | — |
| meta.structure.dictionary.value.json string.quoted.double.json, string.quoted.double.json | #d5c4a1 | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json | #a89984 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #95e6cb | — |
| support.type.property-name.css, meta.property-name.css | #fabd2f | — |
| support.constant.property-value.css, meta.property-value.css | #d5c4a1 | — |
| markup.heading, markdown.heading | #ebdbb2 | — |
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}!`;
}