Code Glasses
Publisher: AadityaaThemes in package: 3
A sophisticated duo of VS Code themes, meticulously crafted for calm focus and architectural clarity.
A sophisticated duo of VS Code themes, meticulously crafted for calm focus and architectural clarity.
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 |
|---|---|---|
| source, text | #EADBCF | — |
| comment, punctuation.definition.comment | #6B6B7F | italic |
| string, punctuation.definition.string | #C75D4E | — |
| string.template, punctuation.definition.template-string | #C75D4E | — |
| constant.numeric, constant.language | #E88E5A | — |
| constant.character, constant.other | #E88E5A | — |
| keyword.control, keyword.operator.new | #FBC154 | italic |
| storage.type, storage.modifier | #8A8AA1 | italic |
| keyword.operator | #6B6B7F | — |
| punctuation, meta.brace | #6B6B7F | — |
| variable, meta.definition.variable | #EADBCF | — |
| variable.other.readwrite | #EADBCF | — |
| variable.parameter | #EADBCF | italic |
| variable.other.property, variable.other.object.property | #EADBCF | — |
| entity.name.function, support.function | #A7C484 | — |
| meta.function-call, entity.name.function.call | #A7C484 | — |
| entity.name.class, entity.name.type.class, support.class | #8A8AA1 | bold |
| entity.other.inherited-class | #8A8AA1 | italic bold |
| entity.name.type, support.type, entity.name.interface | #8A8AA1 | — |
| entity.name.namespace, entity.name.package | #8A8AA1 | — |
| support.class.component | #8A8AA1 | bold |
| entity.name.tag | #C75D4E | — |
| entity.other.attribute-name | #E88E5A | italic |
| meta.decorator, storage.type.annotation | #FBC154 | italic |
| keyword.control.directive | #6B6B7F | italic |
| support.type.property-name | #8A8AA1 | — |
| support.type.vendor-prefix | #6B6B7F | italic |
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}!`;
}