Nucle Noct
Publisher: SleepyCatThemes in package: 1
A deep blue-green dark theme for VS Code with cyan and amber accents.
A deep blue-green dark theme for VS Code with cyan and amber accents.
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 | #6D8A91 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, storage.modifier, storage.type.class, storage.type.function | #FE9F2F | — |
| keyword.operator, punctuation.separator.key-value, punctuation.accessor | #66B5C3 | — |
| storage.type, support.type, support.class, entity.name.type, entity.name.class, entity.name.namespace | #D7EDF2 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #00B8D6 | — |
| entity.name.method, meta.method-call, support.function.method | #00B8D6 | — |
| support.class.java, entity.name.type.class.java, entity.name.type.record.java | #D7EDF2 | — |
| meta.method-call.java entity.name.function, entity.name.function.member.java, meta.method-call.java entity.name.method | #00B8D6 | — |
| variable.other.object.property.java, meta.member.access.java variable.other, meta.property-access.java variable.other | #A2D5DF | — |
| entity.name.type.go, support.type.go, support.class.go | #F3FBFD | — |
| entity.name.package.go, support.other.package.go | #8FBCC6 | — |
| meta.function-call.go entity.name.function, meta.function-call.go entity.name.method, meta.selector.go entity.name.function | #00B8D6 | — |
| variable.other.member.go, meta.selector.go variable.other, meta.struct-literal.go variable.other | #A2D5DF | — |
| keyword.other.DML.sql, keyword.other.sql, keyword.control.sql, storage.modifier.sql, keyword.operator.sql, keyword.operator.logical.sql, keyword.operator.comparison.sql, constant.language.boolean.sql, constant.language.null.sql, source.sql keyword, source.sql constant.language | #FE9F2F | — |
| entity.name.function.sql, entity.name.table.sql, entity.name.type.sql, support.function.sql, meta.identifier.sql, meta.identifier.unquoted.sql, source.sql variable.other.readwrite, source.sql variable.other | #D7EDF2 | — |
| variable.alias.sql, entity.name.alias.sql, meta.alias.sql, meta.select.sql variable.other.alias, meta.select-list.sql variable.other, meta.select-list.sql entity.name | #00B8D6 | — |
| string.quoted.single.sql, string.quoted.double.sql, source.sql string.quoted.single, source.sql string.quoted.double | #F3FBFD | — |
| support.class.python, entity.name.type.class.python, meta.function-call.python support.class, meta.function-call.python entity.name.type | #F3FBFD | — |
| entity.name.tag | #FE9F2F | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.separator.key-value.html, punctuation.separator.key-value | #5F7D85 | — |
| meta.tag.sgml.doctype, entity.name.tag.doctype, entity.name.tag.doctype.html | #7BC7D4 | — |
| entity.other.attribute-name | #A2D5DF | — |
| string.quoted.double.html, string.quoted.single.html | #EAF8FB | — |
| support.type.property-name.toml, meta.key.toml, meta.mapping.key.toml, entity.other.attribute-name.toml, support.type.property-name.json, support.type.property-name.jsonc, meta.object-literal.key.json string.quoted.double.json, meta.object-literal.key.jsonc string.quoted.double.jsonc, meta.object.member variable.other.readwrite.json, meta.object.member variable.other.readwrite.jsonc, meta.object.member variable.other.property.json, meta.object.member variable.other.property.jsonc, meta.mapping.key.json string.quoted, meta.mapping.key.jsonc string.quoted, entity.name.tag.yaml, meta.mapping.key.yaml, meta.mapping.key.python, meta.mapping.key.python string.quoted.single.python, meta.mapping.key.python string.quoted.double.python, meta.mapping.python meta.mapping.key.python, meta.mapping.python string.quoted.single.python, meta.mapping.python string.quoted.double.python | #00A6C8 | — |
| entity.name.section.toml, entity.name.tag.table.toml, meta.table.toml, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json, punctuation.definition.dictionary.begin.jsonc, punctuation.definition.dictionary.end.jsonc, punctuation.definition.array.begin.jsonc, punctuation.definition.array.end.jsonc | #66B5C3 | — |
| punctuation.definition.table.begin.toml, punctuation.definition.table.end.toml, punctuation.separator.key-value.toml, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.value.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json, punctuation.separator.dictionary.key-value.jsonc, punctuation.separator.dictionary.value.jsonc, punctuation.separator.dictionary.pair.jsonc, punctuation.separator.array.jsonc, punctuation.separator.dictionary.key-value.python, punctuation.separator.arguments.python, punctuation.separator.parameters.python, punctuation.separator.key-value.mapping.yaml, punctuation.definition.block.sequence.item.yaml | #5F7D85 | — |
| meta.mapping.key.python, meta.mapping.key.python string.quoted.single.python, meta.mapping.key.python string.quoted.double.python, meta.mapping.python meta.mapping.key.python, meta.mapping.python string.quoted.single.python, meta.mapping.python string.quoted.double.python | #00B8D6 | bold |
| meta.function-call.arguments.python variable.parameter, meta.function-call.arguments.keyword.python, keyword.argument.python | #F3C97A | — |
| entity.name.tag.yaml, meta.mapping.key.yaml | #00B8D6 | bold |
| punctuation.definition.block.sequence.item.yaml | #FEB656 | — |
| string, string.quoted | #E4F4F7 | — |
| string.quoted.docstring.multi.python, string.quoted.docstring.single.python, string.quoted.multi.python punctuation.definition.string.begin.python, string.quoted.multi.python punctuation.definition.string.end.python | #B8E4EB | italic |
| string.template meta.embedded, punctuation.definition.template-expression | #FEB656 | — |
| source.python keyword.control.flow.python, source.python keyword.control.import.python, source.python keyword.operator.logical.python, source.python keyword.operator.wordlike, source.python storage.modifier.declaration.python, source.python storage.type.class.python, source.python storage.type.function.async.python, source.python storage.type.function.python, source.python storage.type.function.lambda.python | #FE9F2F | — |
| string.regexp | #66B5C3 | — |
| constant.character.escape, constant.other.character-class.regexp | #FE9F2F | — |
| constant.numeric, constant.language, support.constant, constant.character | #FEB656 | — |
| variable, meta.definition.variable | #C8E0E4 | — |
| variable.parameter | #8FBCC6 | — |
| variable.other.property, support.variable.property | #A2D5DF | — |
| variable.other.constant, entity.name.constant, constant.other | #F3C97A | — |
| entity.name.enum, variable.other.enummember | #F0B35C | — |
| markup.heading, markup.heading entity.name | #D7EDF2 | bold |
| punctuation.definition.heading.markdown | #FE9F2F | bold |
| markup.bold | #E4F4F7 | bold |
| markup.italic | #A2D5DF | italic |
| markup.list | #C8E0E4 | — |
| punctuation.definition.list.begin.markdown | #FE9F2F | — |
| markup.quote | #C8E0E4 | — |
| punctuation.definition.blockquote.markdown | #66B5C3 | — |
| markup.inline.raw | #A2D5DF | — |
| markup.fenced_code, markup.raw.block | #66B5C3 | — |
| punctuation.definition.raw.markdown, punctuation.definition.fenced.markdown | #5F7D85 | — |
| markup.underline.link, string.other.link, markup.link | #A2D5DF | underline |
| invalid, invalid.illegal | #FEB656 | underline |
| invalid.deprecated, invalid.deprecated.trailing-whitespace | #FEB656 | strikethrough |
| token.info-token | #00A6C8 | — |
| token.warn-token | #FEB656 | — |
| token.error-token | #FE9F2F | — |
| token.debug-token | #9CCDD8 | — |
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}!`;
}