Glass Dracula
Publisher: Benny WuThemes in package: 5
Custom Dracula themes by BennyWu: Dark Vivid Black, Light Vivid White, and three Glass variants.
Custom Dracula themes by BennyWu: Dark Vivid Black, Light Vivid White, and three Glass variants.
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 | #8b86ba | — |
| comment.block.documentation | #f5478c | — |
| keyword, storage, storage.type | #f5478c | — |
| keyword.operator | #f5478c | — |
| entity.other.attribute-name | #f5478c | — |
| entity.name.function, support.function | #71fc62 | — |
| entity.name.type.class | #f5478c | — |
| entity.name.type, support.type | #19baff | — |
| entity.name.type.interface | #19baff | italic |
| entity.other.inherited-class | #19baff | italic |
| constant | #927ee1 | — |
| entity.name.type.enum | #927ee1 | — |
| constant.numeric | #927ee1 | — |
| constant.language.boolean | #f5478c | — |
| string | #ebc62c | — |
| constant.character.escape | #f5478c | — |
| string.regexp | #e76759 | — |
| string.other | #f5478c | — |
| constant.other.symbol | #927ee1 | — |
| markup.raw, markup.inline.raw | #71fc62 | — |
| markup.underline.link | #19baff | — |
| string.other.link.title | #f5478c | — |
| entity.name.tag | #f5478c | — |
| variable.other.property | #19baff | — |
| variable | #d8d8d8 | — |
| variable.other.member | #d8d8d8 | — |
| variable.parameter | #f58c47 | italic |
| variable.language | #927ee1 | italic |
| entity.name.label | #d8d8d8 | — |
| entity.name.section | #927ee1 | bold |
| punctuation | #f5478c | — |
| punctuation.bracket | #d8d8d8 | — |
| punctuation.separator | #f5478c | — |
| punctuation.definition.tag | #f5478c | — |
| meta.preprocessor | #8b86ba | — |
| markup.italic | #ebc62c | italic |
| markup.bold | #f58c47 | bold |
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}!`;
}