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 | #2e6b3c | italic |
| comment.block.documentation keyword, comment.block.documentation punctuation.definition.tag, storage.type.class.jsdoc | #1a5c2e | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.template | #86efac | — |
| constant.character.escape | #fbbf24 | — |
| punctuation.definition.template-expression, meta.embedded.expression.ts, meta.template.expression | #a7f3d0 | — |
| string.regexp | #fcd34d | — |
| punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, keyword.operator.quantifier.regexp | #fbbf24 | — |
| 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 | #2ecc71 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.type, keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof | #34d399 | — |
| keyword.other, keyword.other.using, keyword.other.await | #2ecc71 | — |
| storage.type, storage.type.function, storage.type.class, storage.type.interface, storage.type.type, storage.type.enum, storage.type.namespace, storage.type.let, storage.type.const, storage.type.var | #2ecc71 | — |
| storage.modifier, storage.modifier.async, storage.modifier.static, storage.modifier.abstract, storage.modifier.public, storage.modifier.private, storage.modifier.protected, storage.modifier.override, storage.modifier.readonly, storage.modifier.export, storage.modifier.default | #4ade80 | italic |
| entity.name.function, entity.name.function.member, meta.definition.method entity.name.function | #4ade80 | — |
| meta.function-call, meta.function-call entity.name.function, support.function | #4ade80 | — |
| support.function.builtin, support.function.console, support.function.magic | #fbbf24 | — |
| variable, variable.other, variable.other.readwrite, variable.other.local, variable.other.object | #c8e6c9 | — |
| variable.other.constant, variable.other.constant.property | #e8f5e9 | — |
| variable.parameter | #e8f5e9 | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #fbbf24 | italic |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.struct, entity.name.enum, entity.name.type.alias | #a7f3d0 | — |
| entity.other.inherited-class | #86efac | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #c8e6c9 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #fbbf24 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #fcd34d | — |
| variable.other.constant, entity.name.constant | #e8f5e9 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, meta.annotation | #fbbf24 | italic |
| entity.name.tag, meta.tag entity.name.tag | #2ecc71 | — |
| entity.other.attribute-name, meta.tag.attributes entity.other.attribute-name | #86efac | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #4ade80 | — |
| support.type.property-name | #86efac | — |
| support.constant.property-value, meta.property-value | #c8e6c9 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.definition.block | #81c784 | — |
| meta.import string, meta.export string | #a7f3d0 | — |
| entity.name.namespace, entity.name.module | #86efac | — |
| markup.heading, entity.name.section.markdown | #2ecc71 | bold |
| markup.bold | #e8f5e9 | bold |
| markup.italic | #a7f3d0 | italic |
| markup.inline.raw | #86efac | — |
| markup.underline.link | #4ade80 | — |
| invalid, invalid.illegal, invalid.deprecated | #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}!`;
}