Nocturne Panda
Publisher: r-seizeThemes in package: 1
A VS Code light theme — pure white background, crisp black UI, vivid syntax colors. The panda's contrast: monochrome shell, colorful world inside.
A VS Code light theme — pure white background, crisp black UI, vivid syntax colors. The panda's contrast: monochrome shell, colorful world inside.
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 | #94a3b8 | italic |
| string, string.quoted, string.template | #d97706 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #b45309 | — |
| string.regexp | #0ea5e9 | — |
| constant.numeric | #2563eb | — |
| storage.type | #7c3aed | — |
| storage.modifier | #7c3aed | — |
| keyword, keyword.control | #db2777 | — |
| keyword.operator | #0284c7 | — |
| entity.name.function, support.function, support.function.builtin.shell, entity.name.function.shell | #0ea5e9 | — |
| meta.function-call.generic | #0ea5e9 | — |
| entity.name.type, entity.name.class, support.type, support.class | #059669 | — |
| entity.name.type.interface | #059669 | italic |
| constant.language | #dc2626 | — |
| constant.other, variable.other.constant | #dc2626 | — |
| variable.other.enummember | #dc2626 | — |
| variable, variable.other, variable.other.readwrite, variable.other.readwrite.shell | #1e293b | — |
| variable.other.normal.shell, variable.other.special.shell, punctuation.definition.variable.shell | #059669 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name | #6d28d9 | — |
| variable.parameter | #6d28d9 | italic |
| variable.language.this, variable.language.self, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #0284c7 | italic |
| punctuation | #94a3b8 | — |
| punctuation.definition.block, punctuation.section.block, meta.brace | #64748b | — |
| punctuation.definition.tag | #94a3b8 | — |
| entity.name.tag | #db2777 | — |
| entity.other.attribute-name | #7c3aed | — |
| entity.other.attribute-name.id | #0ea5e9 | — |
| entity.other.attribute-name.class | #059669 | — |
| entity.name.tag.css | #db2777 | — |
| entity.other.attribute-name.class.css | #059669 | — |
| entity.other.attribute-name.id.css | #0ea5e9 | — |
| support.type.property-name.css | #7c3aed | — |
| support.constant.property-value.css, support.constant.color.w3c-standard-color-name.css, keyword.other.unit.css | #d97706 | — |
| constant.numeric.css | #2563eb | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #0284c7 | — |
| support.type.property-name.json | #7c3aed | — |
| entity.name.tag.yaml | #7c3aed | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #0284c7 | — |
| entity.name.namespace, entity.name.module | #64748b | — |
| meta.decorator punctuation.decorator, entity.name.function.decorator, punctuation.definition.decorator | #dc2626 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #0284c7 | — |
| markup.heading.1, punctuation.definition.heading.markdown | #000000 | bold |
| markup.heading.2, markup.heading.3, markup.heading.4, markup.heading.5, markup.heading.6 | #555555 | bold |
| markup.bold | #000000 | bold |
| markup.italic | #555555 | italic |
| markup.inline.raw, markup.raw.block | #d97706 | — |
| markup.underline.link | #2563eb | underline |
| string.other.link.title.markdown | #0ea5e9 | — |
| markup.quote | #94a3b8 | italic |
| invalid | #dc2626 | underline |
| invalid.deprecated | #d97706 | underline |
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}!`;
}