SurpassOne Theme
Publisher: SurpassOneThemes in package: 2
A flat, monochrome color theme built on coral tonal hierarchy and grayscale.
A flat, monochrome color theme built on coral tonal hierarchy and grayscale.
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 | #A7A19E | italic |
| keyword, keyword.control, storage.type, storage.modifier, keyword.other.using, keyword.other.directive | #8A6358 | — |
| keyword.operator, keyword.operator.expression | #706A68 | — |
| string, string.quoted, string.template | #4C4C4C | — |
| constant.character.escape | #C05248 | bold |
| constant.numeric | #4C4C4C | — |
| constant.language | #4C4C4C | — |
| variable.language | #C05248 | bold |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias | #9A5548 | — |
| entity.name.function | #C05248 | bold |
| support.function, meta.function-call | #333333 | — |
| variable, variable.other, variable.parameter, support.variable | #333333 | — |
| variable.other.property, support.other.property, variable.other.object.property | #333333 | — |
| punctuation, meta.brace, meta.bracket | #706A68 | — |
| entity.name.tag | #C05248 | bold |
| entity.other.attribute-name | #4C4C4C | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #8A6358 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #8A6358 | — |
| support.constant.property-value.css, support.constant.color.css | #4C4C4C | — |
| keyword.other.unit.css, keyword.other.unit.scss | #4C4C4C | — |
| string.regexp | #4C4C4C | — |
| markup.heading, entity.name.section.markdown | #C05248 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link, string.other.link | #4C4C4C | — |
| markup.inline.raw, markup.fenced_code | #4C4C4C | — |
| support.type.property-name.json | #8A6358 | — |
| entity.name.tag.yaml | #8A6358 | — |
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}!`;
}