Ascetic-Night
Publisher: athulThemes in package: 1
Minimal Color ported for VsCode from the Ascetic-Night theme of Sublime
Minimal Color ported for VsCode from the Ascetic-Night theme of Sublime
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 |
|---|---|---|
| — | #a0a0a0 | — |
| comment | #473b96 | — |
| string | #cfcfcf | — |
| constant.numeric | #cfcfcf | — |
| constant.language | #cfcfcf | — |
| constant.character, constant.other | #bfbfbf | — |
| variable | — | — |
| keyword | — | italic |
| keyword.operator | — | |
| storage | — | — |
| storage.type, support.type | — | italic |
| storage.type | — | — |
| entity.name.class | — | — |
| entity.other.inherited-class | — | — |
| entity.name.function | — | — |
| variable.parameter | — | — |
| entity.name.tag, punctuation.definition.tag, entity.other.attribute-name, string.quoted.single.html, string.quoted.double.html, string.quoted.single.xml, string.quoted.double.xml, meta.tag | #5b5c5e | — |
| string.quoted.double.json, string.quoted.single.json | #a0a0a1 | — |
| support.function | — | — |
| support.constant | — | — |
| support.type, support.class | — | — |
| support.other.variable | — | — |
| meta.diff, meta.diff.header | — | — |
| markup.deleted | #47add8 | — |
| markup.inserted | #6e5ae0 | — |
| markup.changed | #d88147 | — |
| constant.numeric.line-number.find-in-files - match | #5b5c5e | — |
| entity.name.filename.find-in-files | #cfcfcf | — |
| sublimelinter.mark.warning | #2248ff | — |
| sublimelinter.gutter-mark | #000000 | — |
| sublimelinter.mark.error | #2fdfff | — |
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}!`;
}