Sundown Color & Icon Theme
Publisher: Will MedinaThemes in package: 2
The last minimalist theme you'll need
The last minimalist theme you'll need
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 | #575757 | italic |
| keyword.operator.class, keyword.operator, constant.other, source.php.embedded.line, support.type.property-name.json | #f2f2f2 | — |
| variable, support.other.variable, string.other.link, string.regexp, entity.other.attribute-name, meta.tag, variable.parameter, declaration.tag, markup.deleted.git_gutter, entity.name.function | #e4e4e4 | — |
| constant.numeric, constant.language, support.constant, constant.character, punctuation.section.embedded, keyword.other.unit | #ebdf97 | — |
| entity.name.class, entity.name.type, support.type, support.class | #cfb7f3 | |
| string, string.quoted, constant.other.symbol, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter | #e86c6c | — |
| meta.import string.quoted, meta.import-export string.quoted, meta.import string.quoted.single.js, meta.import string.quoted.double.js, meta.import string.quoted.single.ts, meta.import string.quoted.double.ts | #f2f2f2 | — |
| keyword.operator, constant.other.color | #ffffff | bold |
| keyword, storage, storage.type, entity.name.tag.css, entity.name.tag | #ffffff | bold |
| invalid | #aeb3c2 | |
| meta.separator | #858892 | — |
| invalid.deprecated | #D2DDE2 | |
| comment | #575757 | italic |
| keyword.operator.class, keyword.operator, constant.other, source.php.embedded.line, support.type.property-name.json | #f2f2f2 | — |
| variable, support.other.variable, string.other.link, string.regexp, entity.other.attribute-name, meta.tag, variable.parameter, declaration.tag, markup.deleted.git_gutter, entity.name.function | #e4e4e4 | — |
| constant.numeric, constant.language, support.constant, constant.character, punctuation.section.embedded, keyword.other.unit | #ebdf97 | — |
| entity.name.class, entity.name.type, support.type, support.class | #cfb7f3 | |
| string, string.quoted, constant.other.symbol, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter | #e86c6c | — |
| meta.import string.quoted, meta.import-export string.quoted, meta.import string.quoted.single.js, meta.import string.quoted.double.js, meta.import string.quoted.single.ts, meta.import string.quoted.double.ts | #f2f2f2 | — |
| keyword.operator, constant.other.color | #ffffff | bold |
| keyword, storage, storage.type, entity.name.tag.css, entity.name.tag | #ffffff | bold |
| invalid | #aeb3c2 | |
| meta.separator | #858892 | — |
| invalid.deprecated | #D2DDE2 |
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}!`;
}