.weeCurly Theme
Publisher: wrex1kThemes in package: 1
Dark emerald × teal color theme for VS Code. Calm background, teal accents, and punchy code colors.
Dark emerald × teal color theme for VS Code. Calm background, teal accents, and punchy code colors.
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 | #1bc79e | italic |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier | #ab9df2 | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.template, string.interpolated, string.regexp, string.quoted.docstring, string.quoted.docstring.multi.python, punctuation.definition.string.begin.python, punctuation.definition.string.end.python | #a9dc76 | — |
| constant.numeric, keyword.other.unit | #fc9867 | — |
| variable, variable.other.readwrite, variable.other.object, variable.other.property, meta.object-literal.key, support.type.property-name, entity.name.variable, meta.definition.variable.name, support.variable, entity.other.attribute-name | #ff6188 | — |
| entity.name.function, entity.name.method, support.function, support.function.any-method, variable.function, meta.function-call, meta.method-call | #389dd9 | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.other.inherited-class, variable.other.constant, variable.other.enummember, constant.language, constant.character, constant.other | #ffd866 | — |
| keyword.operator, keyword.operator.logical, keyword.operator.arithmetic, punctuation.accessor, support.function.builtin, support.constant.math | #78dce8 | — |
| entity.name.tag | #ab9df2 | — |
| entity.other.attribute-name, entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #ff6188 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, meta.template.expression | #ab9df2 | — |
| invalid, invalid.illegal | #ff6188 | — |
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}!`;
}