Dracobit
Publisher: DracobitThemes in package: 3
All in one theme system built for developer team dracobit. Open to the public
All in one theme system built for developer team dracobit. Open to the public
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, comment.block, comment.line | #8B5A2B | — |
| keyword, keyword.control, keyword.other | #FFD700 | bold |
| keyword.local.lua, storage.modifier, keyword.other.local | #FF4500 | italic bold |
| entity.name.function | #FF8C00 | bold italic underline |
| support.function, meta.function | #FFA500 | bold italic |
| keyword.operator.lua, keyword.operator, punctuation.operator | #FF6347 | italic |
| string.quoted.double.lua, string.quoted.single.lua, string.quoted.double, string.quoted.single, string.template | #FF5722 | italic bold |
| constant.numeric, constant.numeric.integer, constant.numeric.float | #FFFF99 | bold |
| keyword.control.lua, keyword.control.flow, keyword.control.conditional | #FFB300 | bold italic |
| string, string.unquoted, string.raw | #FF7043 | — |
| variable.parameter, parameter.function | #FF8C38 | italic |
| storage.type.class, entity.name.type, entity.name.class, support.type | #FFD700 | bold italic |
| variable, variable.other, variable.language | #FF8C38 | — |
| constant.language, constant.other | #FFFF99 | bold |
| meta.function-call, support.function.call | #FFA500 | italic |
| punctuation.definition, punctuation.section, punctuation.terminator | #FF4500 | — |
| entity.name.tag, meta.tag | #FFD700 | bold |
| entity.other.attribute-name, meta.property-name | #FF8C38 | italic |
| entity.name.namespace, support.namespace | #FFB300 | italic |
| meta.preprocessor, keyword.control.import | #FFD700 | bold |
| meta.annotation, storage.type.annotation | #FF4500 | italic bold |
| string.regexp | #FF5722 | bold |
| invalid, invalid.illegal | #B22222 | bold |
| keyword.other.sql | #FFD700 | bold |
| keyword.other.constraint.sql | #FFB300 | bold italic |
| storage.type.sql | #FFD700 | bold italic |
| entity.name.table.sql | #FF8C00 | bold italic underline |
| entity.name.column.sql | #FF8C38 | bold |
| string.quoted.sql | #FF5722 | italic bold |
| constant.numeric.sql | #FFFF99 | bold |
| string.json.sql | #FF7043 | italic |
| keyword.other.option.sql | #FFD700 | bold |
| constant.language.sql | #FFFF99 | bold |
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}!`;
}