Stay On — Theme
Publisher: Pablo ViníciusThemes in package: 2
An elegant and minimalist dark theme for VS Code that provides a pleasant and productive experience.
An elegant and minimalist dark theme for VS Code that provides a pleasant and productive experience.
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 |
|---|---|---|
| keyword, storage, variable.language, entity.name.tag, punctuation.accessor.optional, markup.heading | #d400ff | — |
| variable.other.object, variable.other.enummember, support.class, entity.name.class, entity.name.type | #ffffff | — |
| string | #ffff4d | — |
| variable.parameter, punctuation.definition.group.regexp | #ed5ec9 | — |
| punctuation.section.embedded, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #d400ff | — |
| storage.type, support.type, support.constant, support.function, support.constant.property-value | #bf8fef | — |
| constant | #e06ccc | — |
| entity.name.function, entity.other.attribute-name | #00ff00 | — |
| string.comment, comment | #5b3f74 | — |
| meta, invalid, punctuation.separator, variable.other.property, variable.other.object.property | #ffffff | — |
| comment, string.comment, storage, markup.italic | — | italic |
| invalid, invalid.deprecated | — | underline italic |
| markup.bold, markup.heading, meta.separator, keyword.control.new, keyword.operator.new | — | bold |
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}!`;
}