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 | #3d6e9e | italic |
| comment.block.documentation keyword, comment.block.documentation punctuation.definition.tag, storage.type.class.jsdoc | #1e7fa8 | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.other, string.template | #74c7e8 | — |
| constant.character.escape | #f72585 | — |
| punctuation.definition.template-expression, meta.embedded.expression.ts, meta.template.expression | #4cc9f0 | — |
| string.regexp | #ff9f43 | — |
| punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, keyword.operator.quantifier.regexp | #f72585 | — |
| 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 | #00b4d8 | — |
| 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 | #7ec8e3 | — |
| keyword.other, keyword.other.using, keyword.other.await | #00b4d8 | — |
| 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 | #00b4d8 | — |
| 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 | #4cc9f0 | italic |
| entity.name.function, entity.name.function.member, meta.definition.method entity.name.function | #48cae4 | — |
| meta.function-call, meta.function-call entity.name.function, support.function | #48cae4 | — |
| support.function.builtin, support.function.console, support.function.magic | #f72585 | — |
| variable, variable.other, variable.other.readwrite, variable.other.local, variable.other.object | #ade8f4 | — |
| variable.other.constant, variable.other.constant.property | #cdd9e5 | — |
| variable.parameter | #cdd9e5 | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #f72585 | italic |
| variable.other.property, variable.other.object.property, support.variable.property | #cdd9e5 | — |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.module, entity.name.type.namespace, entity.name.type.alias, support.class, support.type | #4cc9f0 | — |
| entity.name.class, entity.name.class.component | #4cc9f0 | — |
| entity.name.type.interface | #00e5c0 | italic |
| support.type.primitive, support.type.builtin, keyword.type, storage.type.primitive | #4cc9f0 | — |
| entity.other.inherited-class | #48cae4 | italic |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #f06fff | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.none | #f06fff | italic |
| constant, constant.other, constant.other.symbol, constant.other.enum, constant.other.key | #ff9f43 | — |
| entity.name.function.decorator, meta.decorator, meta.decorator entity.name.function, punctuation.decorator, storage.type.annotation, meta.annotation, support.type.decorator | #f72585 | italic |
| entity.name.module, entity.name.namespace, support.module, variable.other.module | #48cae4 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, meta.brace.square, meta.brace.curly, punctuation.bracket | #7ec8e3 | — |
| punctuation.definition.keyword, punctuation.definition.parameters, punctuation.definition.typeparameters, punctuation.definition.block, punctuation.definition.binding-pattern | #7ec8e3 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml | #00b4d8 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml | #4cc9f0 | — |
| string.unquoted.html, string.quoted.double.html, string.quoted.single.html, meta.attribute-with-value.html string | #74c7e8 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, meta.tag punctuation | #3d6e9e | — |
| support.class.component, entity.name.tag.jsx, entity.name.tag.tsx | #f72585 | — |
| entity.name.tag.css, entity.name.tag.scss | #00b4d8 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss | #4cc9f0 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss | #f72585 | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name.css | #48cae4 | — |
| support.constant.property-value.css, meta.property-value.css, meta.property-value.css support.constant | #ade8f4 | — |
| constant.other.color.rgb-value.css | #f06fff | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss, keyword.at-rule | #f72585 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #ff9f43 | — |
| keyword.other.unit.css, keyword.other.unit.scss | #f06fff | — |
| variable.css | #ade8f4 | — |
| support.type.property-name.json, source.json meta.structure.dictionary.json string.quoted.double | #4cc9f0 | — |
| source.json meta.structure.dictionary.value string, source.json meta.structure.array string | #74c7e8 | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown, punctuation.definition.heading.markdown | #4cc9f0 | bold |
| markup.bold, markup.bold.markdown | #ade8f4 | bold |
| markup.italic, markup.italic.markdown | #cdd9e5 | italic |
| markup.inline.raw | #48cae4 | — |
| markup.fenced_code.block, markup.raw.block | #74c7e8 | — |
| markup.underline.link, markup.underline.link.markdown | #00b4d8 | underline |
| punctuation.definition.list.begin.markdown | #f72585 | — |
| markup.quote.markdown | #3d6e9e | italic |
| variable.language.special.self.python, variable.language.special.cls.python | #f72585 | italic |
| support.function.magic.python | #f72585 | — |
| entity.name.function.decorator.python | #f72585 | italic |
| support.function.builtin.python | #f72585 | — |
| support.type.python | #4cc9f0 | — |
| meta.fstring.python meta.interpolation.python | #4cc9f0 | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #f72585 | italic |
| entity.name.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #ff9f43 | italic |
| entity.name.function.macro.rust | #ff9f43 | — |
| invalid, invalid.deprecated | #ff6b6b | strikethrough |
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}!`;
}