Grusper
Publisher: EdwardThemes in package: 1
A high-contrast dark theme focused on semantic color, not decoration.
A high-contrast dark theme focused on semantic color, not decoration.
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 | #7A7D8C | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.instanceof, keyword.operator.of, keyword.operator.in, variable.language.this, variable.language.self, variable.language.super | #FFFA99 | |
| entity.name.function, meta.function-call entity.name.function, support.function, entity.name.method, meta.method-call entity.name.function | #99FFFA | — |
| string, string.quoted, string.template, string.quoted.single, string.quoted.double, string.quoted.triple | #D1FF99 | — |
| constant, constant.language, constant.character, variable.other.constant, variable.other.enummember, support.constant, constant.other.caps | #FA99FF | — |
| constant.numeric | #FFFFFF | — |
| variable, entity.name.type, entity.name.class, support.type, support.class, entity.name.tag, entity.other.attribute-name | #FFFFFF | — |
| variable.parameter, meta.parameter | #FFFFFF | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest, keyword.operator.type.annotation, punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.section, meta.brace | #5E6370 | — |
| constant.character.escape | #FA99FF | — |
| meta.decorator, punctuation.decorator, meta.decorator entity.name.function, meta.annotation | #FA99FF | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #FFFA99 | — |
| string.regexp | #D1FF99 | — |
| support.type.property-name, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less | #9BA0AA | — |
| support.constant.property-value, support.constant.property-value.css | #FFFFFF | — |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #FFFA99 | bold |
| keyword.other.unit, constant.other.color | #FA99FF | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #99FFFA | — |
| markup.heading, entity.name.section, punctuation.definition.heading.markdown | #FFFA99 | bold |
| markup.bold | #FFFFFF | bold |
| markup.italic | #FFFFFF | italic |
| markup.underline.link, markup.underline.link.image | #99FFFA | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #D1FF99 | — |
| punctuation.definition.list.begin.markdown | #FFFA99 | — |
| support.type.property-name.json | #9BA0AA | — |
| entity.name.tag.yaml | #99FFFA | — |
| entity.name.tag.html, entity.name.tag.xml, entity.name.tag.jsx, entity.name.tag.tsx | #FFFFFF | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #FFFFFF | — |
| meta.template.expression, meta.embedded.expression | #FFFFFF | — |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #FFFFFF | — |
| invalid, invalid.illegal | #E05C5C | — |
| invalid.deprecated | #FA99FF | — |
| storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.struct, storage.type.namespace | #FFFA99 | bold |
| variable.language.special.self.python, variable.language.special.cls.python, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #FFFA99 | bold |
| meta.attribute.rust, punctuation.definition.attribute.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust, storage.modifier.lifetime.rust | #FA99FF | — |
| keyword.control.directive, keyword.control.import, meta.preprocessor, punctuation.definition.directive | #FA99FF | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.js.jsx, entity.name.tag.ts.tsx | #FFFFFF | — |
| keyword.control.at-rule, keyword.control.at-rule.media, keyword.control.at-rule.keyframes, keyword.control.at-rule.import, keyword.control.at-rule.font-face, keyword.control.at-rule.supports | #FFFA99 | bold |
| entity.other.attribute-name.id, entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss | #FFFA99 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss | #99FFFA | — |
| support.type.property-name.toml, keyword.key.toml | #99FFFA | — |
| entity.name.section.toml, entity.name.section.group-title.ini, support.type.property-name.table.toml | #FFFA99 | bold |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #5E6370 | — |
| entity.other.inherited-class, entity.name.type.module | #FFFFFF | — |
| support.module, support.type.object.module, entity.name.import, entity.name.package | #FFFFFF | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #D1FF99 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #E05C5C | — |
| markup.changed, meta.diff.range, meta.diff.header, punctuation.definition.range.diff | #FFFA99 | — |
| markup.quote, markup.quote.markdown | #9BA0AA | italic |
| meta.separator.markdown | #5E6370 | — |
| markup.strikethrough | #5E6370 | strikethrough |
| storage.type.class.jsdoc, keyword.other.documentation, punctuation.definition.block.tag.jsdoc, comment.block.documentation variable.other, keyword.other.documentation.javadoc | #7A7D8C | bold italic |
| entity.name.package.go | #FFFFFF | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, keyword.other.alias.sql | #FFFA99 | bold |
| punctuation.definition.string.begin, punctuation.definition.string.end | #D1FF99 | — |
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}!`;
}