Mitchell's Midnight
Publisher: commitchellThemes in package: 1
Dark Visual Studio Code theme, with syntax colour inspiration from Dracula Soft Syntax Theme by yomed.
Dark Visual Studio Code theme, with syntax colour inspiration from Dracula Soft Syntax Theme by yomed.
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 |
|---|---|---|
| — | #d6d6d6 | — |
| comment | #6272a4 | |
| string | #eeb375 | — |
| constant.numeric | #be9af0 | — |
| constant.language | #be9af0 | — |
| constant.character, constant.other | #be9af0 | — |
| variable | — | |
| variable.other.readwrite.instance | #e2eb86 | |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #e289bc | |
| keyword | #e289bc | — |
| storage | #e289bc | |
| storage.type | #78bae0 | italic |
| entity.name.class | #80d394 | underline |
| entity.other.inherited-class | #80d394 | italic underline |
| entity.name.function | #80d394 | |
| variable.parameter | #e2eb86 | italic |
| entity.name.tag | #e289bc | |
| entity.other.attribute-name | #80d394 | |
| support.function | #78bae0 | |
| support.constant | #6be5fd | |
| support.type, support.class | #66d9ef | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #6272a4 | — |
| markup.deleted | #e289bc | — |
| markup.inserted | #80d394 | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #be9af0 | — |
| entity.name.filename | #E6DB74 | — |
| message.error | #F83333 | — |
| punctuation.definition.string.begin.json - meta.structure.dictionary.value.json, punctuation.definition.string.end.json - meta.structure.dictionary.value.json | #EEEEEE | — |
| meta.structure.dictionary.json string.quoted.double.json | #78bae0 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #eeb375 | — |
| meta meta meta meta meta meta meta.structure.dictionary.value string | #80d394 | — |
| meta meta meta meta meta meta.structure.dictionary.value string | #e2eb86 | — |
| meta meta meta meta meta.structure.dictionary.value string | #e289bc | — |
| meta meta meta meta.structure.dictionary.value string | #be9af0 | — |
| meta meta meta.structure.dictionary.value string | #80d394 | — |
| meta meta.structure.dictionary.value string | #e2eb86 | — |
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}!`;
}