NovaTheme - Swazlll Edition
Publisher: Nova ThemeThemes in package: 14
A collection of dark themes for VS Code: Ocean, Midnight, Neon, Aurora, Coral, Storm, Forest, Dracula, Synthwave, Matrix, Ember, Sakura, Monochrome, and Abyss.
A collection of dark themes for VS Code: Ocean, Midnight, Neon, Aurora, Coral, Storm, Forest, Dracula, Synthwave, Matrix, Ember, Sakura, Monochrome, and Abyss.
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, comment.line, comment.block, comment.block.documentation | #6272a4 | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.template | #f1fa8c | — |
| constant.character.escape | #ff79c6 | — |
| string.regexp | #ffb86c | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.return, keyword.control.conditional, keyword.control.loop, keyword.control.trycatch, keyword.control.import, keyword.control.from, keyword.control.export, keyword.control.default | #ff79c6 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.type, keyword.operator.new | #ff79c6 | — |
| storage.type, storage.type.function, storage.type.class, storage.type.let, storage.type.const, storage.type.var | #ff79c6 | — |
| storage.modifier, storage.modifier.async, storage.modifier.static, storage.modifier.abstract | #bd93f9 | italic |
| entity.name.function, entity.name.function.member, meta.definition.method entity.name.function | #50fa7b | — |
| meta.function-call, meta.function-call entity.name.function, support.function | #50fa7b | — |
| support.function.builtin, support.function.console, support.function.magic | #8be9fd | — |
| variable, variable.other, variable.other.readwrite, variable.other.local | #f8f8f2 | — |
| variable.other.constant, variable.other.constant.property | #f8f8f2 | — |
| variable.parameter | #ffb86c | italic |
| variable.language, variable.language.this, variable.language.self | #bd93f9 | italic |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.struct, entity.name.enum | #cfc3ff | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float | #bd93f9 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #bd93f9 | — |
| meta.decorator, entity.name.function.decorator | #ff79c6 | italic |
| entity.name.tag | #ff79c6 | — |
| entity.other.attribute-name | #50fa7b | — |
| support.type.property-name | #8be9fd | — |
| punctuation, punctuation.separator, punctuation.terminator | #f8f8f2 | — |
| entity.name.namespace, entity.name.module | #8be9fd | — |
| markup.heading, entity.name.section.markdown | #bd93f9 | bold |
| markup.bold | #f8f8f2 | bold |
| markup.italic | #8be9fd | italic |
| markup.inline.raw | #f1fa8c | — |
| invalid, invalid.illegal | #ff5555 | — |
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}!`;
}