Nocturne Raccoon
Publisher: r-seizeThemes in package: 1
A dark theme for VS Code — deep midnight blues, warm gold accents, comfortable for extended sessions.
A dark theme for VS Code — deep midnight blues, warm gold accents, comfortable for extended sessions.
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 |
|---|---|---|
| , source, text | #7A9AB8 | — |
| comment, punctuation.definition.comment | #2E4060 | italic |
| comment.block.documentation, comment.line.documentation | #3A5070 | italic |
| string, string.quoted, string.template | #6ED8A4 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end | #C8906A | — |
| constant.character.escape, string.regexp | #40D8E8 | — |
| punctuation.definition.template-expression, punctuation.section.embedded, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.definition.variable.php, punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby | #F0B060 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.import, storage.modifier | #6DAAEE | |
| storage.type, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.type | #6DAAEE | italic |
| entity.name.function, meta.function entity.name.function, support.function | #F0B060 | — |
| meta.function-call entity.name.function, meta.method-call entity.name.function, meta.function-call.python | #F0B060 | — |
| variable.parameter, meta.function.parameters variable.other | #A888E0 | italic |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.language.special.self.python, variable.language.special.cls.python | #E8836A | italic |
| variable, variable.other, variable.other.readwrite, variable.other.object | #7AAAD8 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #E8836A | italic |
| variable.other.property, support.variable.property, meta.property-name, meta.object-literal.key | #4E90C8 | — |
| constant, constant.other, variable.other.constant, variable.other.enummember | #C898F0 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #C898F0 | italic |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary | #F59060 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.interface, entity.name.trait, support.type, support.class | #45CFDE | — |
| meta.type.annotation, meta.type.parameters, entity.name.type.parameter, storage.type.generic | #45CFDE | — |
| entity.other.inherited-class, entity.name.type.class | #45CFDE | — |
| entity.name.module, entity.name.namespace | #45CFDE | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise | #5590D8 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace | #3A5070 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments | #445E80 | — |
| entity.name.function.decorator, meta.decorator, punctuation.decorator, storage.type.annotation, entity.other.attribute-name | #D09AEE | — |
| entity.name.tag, support.class.component, meta.tag entity.name.tag | #6DAAEE | — |
| entity.other.attribute-name.html, meta.tag.attributes entity.other.attribute-name | #45CFDE | italic |
| string.quoted.double.html, string.quoted.single.html | #6ED8A4 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css, entity.other.pseudo-class.css, entity.other.pseudo-element.css | #45CFDE | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #6DAAEE | — |
| support.constant.property-value.css, constant.numeric.css, keyword.other.unit.css | #F59060 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #F0B060 | bold |
| markup.bold | #BDD4E8 | bold |
| markup.italic | #BDD4E8 | italic |
| markup.raw.inline, markup.raw.block, markup.fenced_code.block | #45CFDE | — |
| markup.underline.link, string.other.link.title.markdown | #6DAAEE | underline |
| punctuation.definition.list.begin.markdown | #5590D8 | — |
| markup.quote | #3A5070 | italic |
| support.type.property-name.json | #6DAAEE | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #6DAAEE | — |
| support.function.builtin.shell | #6DAAEE | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #C898F0 | — |
| invalid, invalid.illegal, invalid.deprecated | #EE6060 | 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}!`;
}