Midnight Forest
Publisher: rezwan-hossainThemes in package: 1
Muted dark theme for vscode
Muted dark theme for vscode
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 | #035399be | italic |
| comment | #404d41af | italic |
| — | #898576 | — |
| meta.embedded, source.groovy.embedded | #806731 | — |
| string.quoted.docstring.multi.python | #374238af | italic bold |
| string | #326777 | — |
| string.regexp | #814b49 | — |
| constant.numeric | #6a4771 | — |
| variable.language, variable.other | #806731 | — |
| keyword | #416644 | — |
| storage | #806731 | bold |
| entity.name.class, entity.name.type | #814b49 | italic |
| entity.name.function | #326777 | |
| punctuation.definition.variable | #416644 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #814b49 | — |
| constant.language, meta.preprocessor | #806731 | — |
| support.function.construct, keyword.other.new | #814b49 | — |
| constant.character, constant.other | #814b49 | — |
| entity.other.inherited-class | #6a4771 | — |
| variable.parameter | — | — |
| entity.name.tag | #806731 | — |
| punctuation.definition.tag | #796137 | — |
| entity.other.attribute-name | #806731 | — |
| support.function | #806731 | — |
| punctuation.separator.continuation | #814b49 | — |
| support.constant | — | — |
| support.type, support.class | #416644 | — |
| support.type.exception | #814b49 | — |
| support.other.variable | — | — |
| invalid | — | — |
| meta.diff, meta.diff.header | #416644 | italic |
| markup.deleted | #814b49 | |
| markup.changed | #814b49 | |
| markup.inserted | #416644 | — |
| markup.quote | #416644 | — |
| markup.list | #806731 | — |
| markup.bold, markup.italic | #6a4771 | — |
| markup.inline.raw | #326777 | |
| markup.heading | #806731 | — |
| markup.heading.setext | #806731 | |
| token.info-token | #806731 | — |
| token.warn-token | #806731 | — |
| token.error-token | #814b49 | — |
| token.debug-token | #6a4771 | — |
| variable.object.property | #806731 | — |
| variable.parameter | #806731 | — |
| support.type | — | |
| storage.type.function | — | |
| entity.other.inherited-class | #806731 | — |
| storage.modifier | #416644ff | |
| storage.type | #416644ff | |
| keyword.control.import | #6a4771 | — |
| storage.modifier.async | #416644ff | italic |
| meta.import | #806731 | — |
| source.ts | #806731 | — |
| meta.function-call | #806731 | — |
| entity.name.type | #94783bb2 | — |
| entity.name.function | #326777 | — |
| variable.other | #806731 | — |
| storage.modifier.tsx | #416644 | — |
| entity.name.type.class.python | #806731 | — |
| support.type.python | #806731 | — |
| source.python | #898576 | — |
| keyword.control.import | #814b49 | — |
| keyword.control.from | #814b49 | — |
| constant.language.python | #326777 | — |
| entity.name.function.python | #326777 | — |
| punctuation.separator.dictionary.key-value.json, punctuation.separator.array.json, punctuation.separator.dictionary.pair.json | #806731 | — |
| storage.type.ts | #806731 | — |
| support.type.primitive | #d17864a1 | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #6a4771 | — |
| storage.type.class | #DD806BC5 | |
| support.variable.property | #326777 | |
| punctuation.accessor | #806731 | |
| keyword.control.flow | — | italic |
| keyword.operator.new | — | italic |
| modifier, this, comment, storage.modifier, entity.other.attribute-name.js, entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.tsx, entity.other.attribute-name.html | — | italic |
| keyword.control.export | — | italic |
| keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, meta.function-call punctuation, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, punctuation.definition.entity.begin, punctuation.definition.entity.end, punctuation.definition.tag.cs, punctuation.definition.type.begin, punctuation.definition.type.end, punctuation.section.scope.begin, punctuation.section.scope.end, punctuation.terminator.expression.php, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor | #F8F8F2 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}