Nythera Nightcode
Publisher: SumitThemes in package: 1
A dimmed dark theme for VS Code focused on clear syntax and balanced contrast.
A dimmed dark theme for VS Code focused on clear syntax and balanced contrast.
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 |
|---|---|---|
| — | #c7bfa8 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #458588 | — |
| comment, punctuation.definition.comment | #928374 | italic |
| constant, support.constant, variable.arguments | #d3869b | — |
| constant.rgb-value | #c7bfa8 | — |
| entity.name.selector | #86b375 | — |
| entity.other.attribute-name | #cfa248 | — |
| entity.name.tag, punctuation.tag | #86b375 | — |
| invalid, invalid.illegal | #cc241d | — |
| invalid.deprecated | #b16286 | — |
| meta.selector | #86b375 | — |
| meta.preprocessor | #e67e36 | — |
| meta.preprocessor.string | #a7ad3c | — |
| meta.preprocessor.numeric | #a7ad3c | — |
| meta.header.diff | #e67e36 | — |
| storage | #d65a52 | — |
| storage.type, storage.modifier | #e67e36 | — |
| string | #a7ad3c | — |
| string.tag | #a7ad3c | — |
| string.value | #a7ad3c | — |
| string.regexp | #e67e36 | — |
| string.escape | #d65a52 | — |
| string.quasi | #86b375 | — |
| string.entity | #a7ad3c | — |
| object | #c7bfa8 | — |
| module.node | #83a598 | — |
| support.type.property-name | #689d6a | — |
| keyword | #d65a52 | — |
| keyword.control | #d65a52 | — |
| keyword.control.module | #86b375 | — |
| keyword.control.less | #d79921 | — |
| keyword.operator | #86b375 | — |
| keyword.operator.new | #e67e36 | — |
| keyword.other.unit | #a7ad3c | — |
| metatag.php | #e67e36 | — |
| support.function.git-rebase | #689d6a | — |
| constant.sha.git-rebase | #a7ad3c | — |
| meta.type.name, meta.return.type, meta.return-type, meta.cast, meta.type.annotation, support.type, storage.type.cs, variable.class | #cfa248 | — |
| variable.this, support.variable | #d3869b | — |
| entity.name, entity.static, entity.name.class.static.function, entity.name.function, entity.name.class, entity.name.type | #cfa248 | — |
| entity.function, entity.name.function.static | #86b375 | — |
| entity.name.function.function-call | #86b375 | — |
| support.function.builtin | #e67e36 | — |
| entity.name.method, entity.name.method.function-call, entity.name.static.function-call | #689d6a | — |
| brace | #d5c4a1 | — |
| meta.parameter.type.variable, variable.parameter, variable.name, variable.other, variable, string.constant.other.placeholder | #83a598 | — |
| prototype | #d3869b | — |
| punctuation | #a89984 | — |
| punctuation.quoted | #c7bfa8 | — |
| punctuation.quasi | #d65a52 | — |
| *url*, *link*, *uri* | — | underline |
| meta.function.python, entity.name.function.python | #86b375 | — |
| storage.type.function.python, storage.modifier.declaration, storage.type.class.python, storage.type.string.python | #d65a52 | — |
| storage.type.function.async.python | #d65a52 | — |
| meta.function-call.generic | #83a598 | — |
| meta.function-call.arguments | #d5c4a1 | — |
| entity.name.function.decorator | #cfa248 | bold |
| constant.other.caps | — | bold |
| keyword.operator.logical | #d65a52 | — |
| punctuation.definition.logical-expression | #e67e36 | — |
| string.interpolated.dollar.shell, string.interpolated.backtick.shell | #86b375 | — |
| keyword.control.directive | #86b375 | — |
| support.function.C99 | #cfa248 | — |
| meta.function.cs, entity.name.function.cs, entity.name.type.namespace.cs | #a7ad3c | — |
| keyword.other.using.cs, entity.name.variable.field.cs, entity.name.variable.local.cs, variable.other.readwrite.cs | #86b375 | — |
| keyword.other.this.cs, keyword.other.base.cs | #d3869b | — |
| meta.scope.prerequisites | #cfa248 | — |
| entity.name.function.target | #a7ad3c | bold |
| storage.modifier.import.java, storage.modifier.package.java | #bdae93 | — |
| keyword.other.import.java, keyword.other.package.java | #86b375 | — |
| storage.type.java | #cfa248 | — |
| storage.type.annotation | #83a598 | bold |
| keyword.other.documentation.javadoc | #86b375 | — |
| comment.block.javadoc variable.parameter.java | #a7ad3c | bold |
| source.java variable.other.object, source.java variable.other.definition.java | #c7bfa8 | — |
| meta.function-parameters.lisp | #cfa248 | — |
| markup.underline | — | underline |
| string.other.link.title.markdown | #928374 | underline |
| markup.underline.link | #d3869b | — |
| markup.bold | #e67e36 | bold |
| markup.heading | #e67e36 | bold |
| heading.1.markdown entity.name.section.markdown | #d65a52 | bold |
| heading.2.markdown entity.name.section.markdown | #e67e36 | bold |
| heading.3.markdown entity.name.section.markdown | #cfa248 | bold |
| heading.4.markdown entity.name.section.markdown | #a7ad3c | bold |
| heading.5.markdown entity.name.section.markdown | #83a598 | bold |
| heading.6.markdown entity.name.section.markdown | #d3869b | bold |
| markup.italic | — | italic |
| markup.inserted | #a7ad3c | — |
| markup.deleted | #d65d0e | — |
| markup.changed | #e67e36 | — |
| markup.punctuation.quote.beginning | #98971a | — |
| markup.punctuation.list.beginning | #83a598 | — |
| markup.inline.raw, markup.fenced_code.block | #86b375 | — |
| string.quoted.double.json | #83a598 | — |
| entity.other.attribute-name.css | #e67e36 | — |
| source.css meta.selector | #c7bfa8 | — |
| support.type.property-name.css | #e67e36 | — |
| entity.other.attribute-name.class | #a7ad3c | — |
| source.css support.function.transform, source.css support.function.timing-function, source.css support.function.misc | #d65a52 | — |
| support.property-value, constant.rgb-value, support.property-value.scss, constant.rgb-value.scss | #d65d0e | — |
| entity.name.tag.css | — | |
| punctuation.definition.tag | #83a598 | — |
| text.html entity.name.tag, text.html punctuation.tag | #86b375 | bold |
| source.js variable.language | #e67e36 | — |
| source.ts variable.language | #e67e36 | — |
| source.go storage.type | #cfa248 | — |
| source.go entity.name.import | #a7ad3c | — |
| source.go keyword.package, source.go keyword.import | #86b375 | — |
| source.go keyword.interface, source.go keyword.struct | #83a598 | — |
| source.go entity.name.type | #c7bfa8 | — |
| source.go entity.name.function | #d3869b | — |
| keyword.control.cucumber.table | #83a598 | — |
| source.reason string.double, source.reason string.regexp | #a7ad3c | — |
| source.reason keyword.control.less | #86b375 | — |
| source.reason entity.name.function | #83a598 | — |
| source.reason support.property-value, source.reason entity.name.filename | #e67e36 | — |
| source.powershell variable.other.member.powershell | #e67e36 | — |
| source.powershell support.function.powershell | #cfa248 | — |
| source.powershell support.function.attribute.powershell | #bdae93 | — |
| source.powershell meta.hashtable.assignment.powershell variable.other.readwrite.powershell | #e67e36 | — |
| support.function.be.latex, support.function.general.tex, support.function.section.latex, support.function.textbf.latex, support.function.textit.latex, support.function.texttt.latex, support.function.emph.latex, support.function.url.latex | #d65a52 | — |
| support.class.math.block.tex, support.class.math.block.environment.latex | #e67e36 | — |
| keyword.control.preamble.latex, keyword.control.include.latex | #d3869b | — |
| support.class.latex | #86b375 | — |
| support.macro.rust, entity.name.function.macro.rust | #7AA2D6 | italic |
| entity.other.attribute-name.table.toml, entity.other.attribute-name.table.array.toml | #cfa248 | bold |
| support.type.property-name.toml | #83a598 | — |
| string.quoted.single.toml, string.quoted.double.toml, string.quoted.single.block.toml, string.quoted.double.block.toml | #a7ad3c | — |
| constant.numeric.toml, constant.language.boolean.toml, constant.other.date.toml, constant.other.time.toml | #d3869b | — |
| punctuation.definition.keyValuePair.toml, punctuation.definition.table.toml, punctuation.definition.table.array.toml | #a89984 | — |
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}!`;
}