Glowing Dracula
Publisher: Vivek KumarThemes in package: 1
Glowing Darcula is a high contrast theme based on the iconic Glowing Darcula theme from JetBrains.
Glowing Darcula is a high contrast theme based on the iconic Glowing Darcula theme from JetBrains.
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 |
|---|---|---|
| constant.language.dart | #F18622 | bold |
| string.unquoted.ini | #91c71e | — |
| source.dart variable.other.object | #D0D2D6 | — |
| comment | #8c8c8c | — |
| keyword, storage | #f18622 | — |
| string | #91c71e | — |
| string.unquoted.ini | #91c71e | — |
| constant.character.escape | #f18622 | — |
| constant.numeric | #4397e0 | — |
| entity.name.type, support.type | #D0D2D6 | — |
| entity.name.class | #D0D2D6 | — |
| entity.name.function | #f0a91d | — |
| variable | #d0d2d6 | — |
| constant | #b45dd9 | bold |
| variable.other.property.static | #b45dd9 | italic |
| meta.decorator | #dad433 | bold |
| entity.name.tag | #f0a91d | — |
| entity.other.attribute-name | #d0d2d6 | — |
| support.type.property-name | #d0d2d6 | — |
| support.property-value | #91c71e | — |
| invalid | #91c71e | underline wavy |
| markup.underline.link | #4397e0 | — |
| text.html.markdown | #d0d2d6 | — |
| markup.heading | #f18622 | bold |
| storage.modifier | #f18622 | — |
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}!`;
}