Nightshade Theme
Publisher: rbolsiusThemes in package: 2
A dark theme with medium contrast and color intensity
A dark theme with medium contrast and color intensity
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #009ba5 | — |
| comment | #099009 | — |
| constant | #86a000 | — |
| constant.character.escape.line-continuation | #999999 | — |
| meta.tag.sgml.doctype.html | #952577 | — |
| entity.name.tag | #009ba5 | — |
| entity.other.attribute-name | #b58a00 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.class.mixin, entity.other.attribute-name.attribute, meta.property-name.css | #bb5700 | — |
| entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #bb0000 | — |
| keyword.other.unit | #952577 | — |
| keyword.other.unit.hexadecimal | #708600 | — |
| keyword.other.important | #952577 | — |
| invalid | #cd2424 | bold |
| markup.underline | — | underline |
| markup.bold | #bb5700 | bold |
| markup.heading | #009ba5 | bold |
| markup.italic | #bb5700 | italic |
| markup.inserted | #1685ff | — |
| markup.deleted | #d7372d | — |
| markup.changed | #e2951d | — |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, fenced_code.block.language.markdown, meta.link.reference.markdown, punctuation.definition.markdown, punctuation.definition.bold.markdown, punctuation.definition.constant.markdown, punctuation.definition.heading.markdown, punctuation.definition.italic.markdown, punctuation.definition.link.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.separator.key-value.markdown | #555555 | — |
| markup.raw.block.markdown | #555555 | — |
| markup.quote.markdown | #099009 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #b58a00 | — |
| constant.other.reference.link.markdown | #009ba5 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #bb0000 | normal |
| markup.inline.raw | #86a000 | — |
| meta.selector | #b58a00 | — |
| punctuation.definition.tag | #555555 | — |
| meta.preprocessor | #b58a00 | — |
| meta.preprocessor.macro, entity.name.function.preprocessor | #bb5700 | — |
| meta.preprocessor.string | #bb0000 | — |
| meta.preprocessor.numeric | #86a000 | — |
| meta.structure.dictionary.key.python | #009ba5 | — |
| meta.diff.header | #555555 | — |
| storage | #b58a00 | — |
| storage.type | #009ba5 | — |
| string | #bb0000 | — |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #009ba5 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #b58a00 | — |
| keyword | #b58a00 | — |
| punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #009ba5 | — |
| storage.modifier.import.java, storage.modifier.package.java | #952577 | — |
| variable.language | #b58a00 | — |
| entity.name.function, support.function, support.constant.handlebars, meta.function-call.generic | #009ba5 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #009ba5 | — |
| meta.return.type, meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #009ba5 | — |
| keyword.control | #b58a00 | — |
| variable, meta.definition.variable.name, support.variable | #bb5700 | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #bb5700 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #bb5700 | — |
| punctuation.definition.comment.line.shebang.shell | #099009 | — |
| string.interpolated.backtick.shell, comment.line.shebang.shell | #86a000 | — |
| support.function.builtin.shell | #952577 | — |
| punctuation.definition.variable.shell | #b58a00 | — |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc | #005e00 | — |
| variable.other.jsdoc | #86a000 | — |
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #8cd0d3 | — |
| comment | #7f9f7f | — |
| constant | #c5d47f | — |
| constant.character.escape.line-continuation | #878780 | — |
| meta.tag.sgml.doctype.html | #bf86a5 | — |
| entity.name.tag | #8cd0d3 | — |
| entity.other.attribute-name | #f0dca5 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.class.mixin, entity.other.attribute-name.attribute, meta.property-name.css | #dfaf8f | — |
| entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #cc8a8a | — |
| keyword.other.unit | #bf86a5 | — |
| keyword.other.unit.hexadecimal | #c5d47f | — |
| keyword.other.important | #bf86a5 | — |
| invalid | #b76f6a | bold |
| markup.underline | — | underline |
| markup.bold | #dfaf8f | bold |
| markup.heading | #8cd0d3 | bold |
| markup.italic | #dfaf8f | italic |
| markup.inserted | #5fa7ef | — |
| markup.deleted | #dc7363 | — |
| markup.changed | #e7ad58 | — |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, fenced_code.block.language.markdown, meta.link.reference.markdown, punctuation.definition.markdown, punctuation.definition.bold.markdown, punctuation.definition.constant.markdown, punctuation.definition.heading.markdown, punctuation.definition.italic.markdown, punctuation.definition.link.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.separator.key-value.markdown | #878780 | — |
| markup.raw.block.markdown | #878780 | — |
| markup.quote.markdown | #7f9f7f | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #f0dca5 | — |
| constant.other.reference.link.markdown | #8cd0d3 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #cc8a8a | normal |
| markup.inline.raw | #c5d47f | — |
| meta.selector | #f0dca5 | — |
| punctuation.definition.tag | #878780 | — |
| meta.preprocessor | #f0dca5 | — |
| meta.preprocessor.macro, entity.name.function.preprocessor | #dfaf8f | — |
| meta.preprocessor.string | #cc8a8a | — |
| meta.preprocessor.numeric | #c5d47f | — |
| meta.structure.dictionary.key.python | #8cd0d3 | — |
| meta.diff.header | #878780 | — |
| storage | #f0dca5 | — |
| storage.type | #8cd0d3 | — |
| string | #cc8a8a | — |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts | #8cd0d3 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #f0dca5 | — |
| keyword | #f0dca5 | — |
| punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #8cd0d3 | — |
| storage.modifier.import.java, storage.modifier.package.java | #bf86a5 | — |
| variable.language | #f0dca5 | — |
| entity.name.function, support.function, support.constant.handlebars, meta.function-call.generic | #8cd0d3 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #8cd0d3 | — |
| meta.return.type, meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #8cd0d3 | — |
| keyword.control | #f0dca5 | — |
| variable, meta.definition.variable.name, support.variable | #dfaf8f | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #dfaf8f | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #dfaf8f | — |
| punctuation.definition.comment.line.shebang.shell | #7f9f7f | — |
| string.interpolated.backtick.shell, comment.line.shebang.shell | #c5d47f | — |
| support.function.builtin.shell | #bf86a5 | — |
| punctuation.definition.variable.shell | #f0dca5 | — |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc | #afd8af | — |
| variable.other.jsdoc | #c5d47f | — |
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}!`;
}
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}!`;
}