Dark Mode
Publisher: Phil SinatraThemes in package: 3
A VSCode theme based on dark mode
A VSCode theme based on dark mode
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 |
|---|---|---|
| — | #f4f4f4 | — |
| comment, punctuation.definition.comment | #9f9fad | italic |
| string | #85a094 | — |
| constant.numeric | #fbfbfe | — |
| constant.numeric.css | #fbfbfe | — |
| constant.language | #a3c6f9 | — |
| constant.character, constant.other | #a3c6f9 | — |
| variable | #f4f4f4 | — |
| keyword | #aa7ad7 | — |
| storage | #7ae3f7 | |
| storage.type | #aa7ad7 | — |
| storage.type.js | #a3c6f9 | — |
| entity.name, entity.static, entity.name.class.static.function, entity.name.function, entity.name.class, entity.name.type, entity.other.inherited-class | #f16b8c | — |
| variable.parameter | #e1efff | — |
| variable.language | — | italic |
| entity.name.tag | #6bb86a | |
| entity.other.attribute-name | #f16b8c | italic |
| support.function | #7ae3f7 | |
| support.constant | #7ae3f7 | |
| support.type, support.class | #7ae3f7 | — |
| support.other.variable | #010101 | |
| invalid | #adcf38 | |
| invalid.deprecated | #adcf38 | — |
| support.type.property-name.css | #f16b8c | italic |
| text.html.basic | #fbfbfe | — |
| text.html.basic entity.name | #9effff | — |
| meta.toc-list.id.html | #A5FF90 | — |
| text.html.basic entity.other | #ffc600 | italic |
| meta.tag.metadata.script.html entity.name.tag.html | #ffc600 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #92fc79 | — |
| support.variable.dom.js | #e1efff | — |
| keyword.operator.assignment.js | #fbfbfe | — |
| punctuation.definition.block.js | #fbfbfe | — |
| variable.parameter.js | #e1efff | — |
| entity.name.type.js | #e1efff | — |
| punctuation.accessor.js | #fbfbfe | — |
| support.variable.property.dom.js | #fbfbfe | — |
| punctuation.terminator.statement.js | #fbfbfe | — |
| variable.language, entity.name.type.class.js | #e1efff | — |
| entity.name.type.module.js | #fbfbfe | — |
| meta.object-literal.key.js | #e1efff | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js | #9effff | — |
| source.css entity, source.stylus entity | #3ad900 | — |
| entity.other.attribute-name.id.css | #FFB454 | — |
| entity.name.tag | #ae7ddc | — |
| entity.name.tag.html | #6bb86a | — |
| source.css support, source.stylus support | #a5ff90 | — |
| source.css constant, source.css support.constant, source.stylus constant, source.stylus support.constant | #a79df7 | — |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #a79df7 | — |
| source.css variable, source.stylus variable | #9ac7fe | — |
| support.type.property-name.json | #aa7ad7 | — |
| punctuation.definition.dictionary.begin.json | #f4f4f4 | — |
| variable.other.normal.shell | #94c6ca | — |
| markup.underline | — | underline |
| markup.bold | #fe8019 | bold |
| markup.heading | #fe8019 | bold |
| markup.italic | — | italic |
| markup.inserted | #b8bb26 | — |
| markup.deleted | #d65d0e | — |
| markup.changed | #fe8019 | — |
| markup.punctuation.quote.beginning | #98971a | — |
| markup.punctuation.list.beginning | #f16b8c | — |
| markup.inline.raw | #a3c6f9 | — |
| meta.selector | #7ec16e | — |
| meta.type.name, meta.return.type, meta.return-type, meta.cast, meta.type.annotation, support.type, storage.type.cs, storage.type.java, variable.class | #fabd2f | — |
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}!`;
}