Dark-Dracula Theme
Publisher: geraneThemes in package: 1
Dark-Dracula Theme ported from the Dark-Dracula TextMate Theme
Dark-Dracula Theme ported from the Dark-Dracula TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #f8f8f2 | — |
| comment | #6272a4 | |
| string | #f1fa8c | — |
| constant.numeric | #bd93f9 | — |
| constant.language | #bd93f9 | — |
| constant.character, constant.other | #bd93f9 | — |
| variable | — | |
| variable.other.readwrite.instance | #ffb86c | |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #ff79c6 | |
| keyword | #ff79c6 | — |
| storage | #ff79c6 | |
| storage.type | #8be9fd | italic |
| entity.name.class | #50fa7b | underline |
| entity.other.inherited-class | #50fa7b | italic underline |
| entity.name.function | #50fa7b | |
| variable.parameter | #ffb86c | italic |
| entity.name.tag | #ff79c6 | |
| entity.other.attribute-name | #50fa7b | |
| support.function | #8be9fd | |
| 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 | #ff79c6 | — |
| markup.inserted | #50fa7b | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #bd93f9 | — |
| 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 | #8be9fd | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #f1fa8c | — |
| meta meta meta meta meta meta meta.structure.dictionary.value string | #50fa7b | — |
| meta meta meta meta meta meta.structure.dictionary.value string | #ffb86c | — |
| meta meta meta meta meta.structure.dictionary.value string | #ff79c6 | — |
| meta meta meta meta.structure.dictionary.value string | #bd93f9 | — |
| meta meta meta.structure.dictionary.value string | #50fa7b | — |
| meta meta.structure.dictionary.value string | #ffb86c | — |
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}!`;
}