Delphi IDE Theme
Publisher: Wallace FerreiraThemes in package: 2
A Delphi-inspired color theme for VS Code and Kiro IDE, based on the Delphi 11 IDE
A Delphi-inspired color theme for VS Code and Kiro IDE, based on the Delphi 11 IDE
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 |
|---|---|---|
| keyword, keyword.control, keyword.other, storage.type, storage.modifier, storage.support, constant.language, entity.name.tag, entity.name.tag.pascal | #FFE0BC | bold |
| comment, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment, string.regexp | #BCE784 | italic |
| string.quoted.single, string.quoted.double | #7FAAFF | — |
| constant.numeric, constant.character | #FF7FAA | — |
| variable, variable.other, variable.parameter, entity.name, entity.name.function, entity.name.type, support.class, support.constant | #FFF9F0 | — |
| keyword.operator, punctuation, punctuation.terminator, punctuation.separator | #FFF9F0 | — |
| keyword.control.directive, meta.preprocessor | #BCE784 | — |
| source.asm, meta.embedded.asm | #F0E3D0 | — |
| support.attribute, punctuation.definition.annotation, meta.attribute | #FFFFFF | — |
| support.type.property-name.json, support.type.property-name | #FFE0BC | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json | #C0C0C0 | — |
| markup.heading, punctuation.definition.heading, entity.name.section | #FFE0BC | bold |
| markup.bold | #FFE0BC | bold |
| markup.italic | #BCE784 | italic |
| markup.quote, punctuation.definition.quote | #C0C0C0 | — |
| punctuation.definition.list.begin | #66CDFF | — |
| markup.inline.raw | #FF7FAA | — |
| punctuation.definition.markdown, fenced_code.block.language, meta.separator | #C0C0C0 | — |
| markup.strikethrough | #808080 | strikethrough |
| markup.underline.link | #2A7FFF | underline |
| invalid.illegal, meta.script, source.script | #FF0000 | — |
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}!`;
}