Gruber Darker VSCode
Publisher: Xiayong LiThemes in package: 1
A faithful port of the Gruber Darker color theme from Emacs to VS Code. A darker variant of John Gruber's Gruber Dark theme for BBEdit.
A faithful port of the Gruber Darker color theme from Emacs to VS Code. A darker variant of John Gruber's Gruber Dark theme for BBEdit.
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, punctuation.definition.comment | #cc8c3c | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.quoted.other, string.unquoted, string.interpolated, string.template, string.regexp, constant.other.symbol | #73c936 | — |
| comment.block.documentation, comment.line.documentation, string.quoted.docstring, string.quoted.docstring.single, string.quoted.docstring.double, string.quoted.docstring.triple | #73c936 | — |
| keyword, keyword.control, keyword.control.import, keyword.control.export, keyword.control.flow, keyword.operator.expression, keyword.other, storage, storage.type, storage.modifier | #ffdd33 | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.decrement, keyword.operator.relational | #e4e4ef | — |
| keyword.other.unit | #9e95c7 | — |
| support.type.builtin, support.function.builtin, keyword.other.special-method, variable.language, support.constant.core | #ffdd33 | — |
| entity.name.function, support.function, meta.function-call, meta.method-call, variable.function | #96a6c8 | — |
| variable, variable.other | #f4f4ff | — |
| constant, constant.language, constant.other, constant.character.named, entity.name.constant, support.constant, support.variable, variable.other.constant | #95a99f | — |
| constant.numeric, constant.character.numeric | #9e95c7 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.interface, entity.name.trait, support.type, support.class | #95a99f | — |
| support.type.property-name | #95a99f | — |
| meta.preprocessor, entity.name.function.preprocessor, meta.preprocessor.string, meta.preprocessor.numeric | #95a99f | — |
| invalid, invalid.illegal, invalid.deprecated, keyword.other.invalid | #f43841 | — |
| entity.name.tag, meta.tag.sgml | #96a6c8 | — |
| entity.other.attribute-name | #95a99f | — |
| entity.name.decorator, meta.decorator, punctuation.definition.decorator | #96a6c8 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.tag, punctuation.definition.tag | #e4e4ef | — |
| markup.inserted | #73c936 | — |
| markup.deleted | #ff4f58 | — |
| markup.changed | #ffdd33 | — |
| markup.underline.link, constant.other.reference.link, *url*, *uri* | #96a6c8 | underline |
| markup.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #96a6c8 | bold |
| markup.bold | #e4e4ef | bold |
| markup.italic | #e4e4ef | italic |
| markup.quote | #95a99f | italic |
| markup.raw, markup.raw.inline, markup.raw.block | #95a99f | — |
| markup.list, punctuation.definition.list_item.markdown | #ffdd33 | — |
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}!`;
}