Gasrulle Theme
Publisher: GasrulleThemes in package: 13
A curated theme pack for VS Code — ported IDE themes (JetBrains Rider, Visual Studio, and more) plus original creations by Gasrulle.
A curated theme pack for VS Code — ported IDE themes (JetBrains Rider, Visual Studio, and more) plus original creations by Gasrulle.
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 |
|---|---|---|
| source, text | #abb2bf | — |
| comment, punctuation.definition.comment | #5B6270 | italic |
| comment.block.documentation, comment.block.javadoc | #515662 | italic |
| comment.block.documentation keyword, comment.block.documentation storage.type, entity.name.type.instance.jsdoc, keyword.other.documentation, storage.type.class.jsdoc | #8E7E6E | — |
| keyword, keyword.control, keyword.operator.delete, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.new, keyword.operator.typeof, keyword.operator.void, storage, storage.modifier, storage.type | #c678dd | — |
| keyword.control.conditional, keyword.control.flow, keyword.control.loop, keyword.control.trycatch | #d183e8 | italic |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment, keyword.operator.relational, keyword.operator.ternary, punctuation.accessor, punctuation.separator, punctuation.terminator | #828997 | — |
| keyword.operator.logical, keyword.operator.logical.python | #56b6c2 | — |
| string, string.interpolated, string.quoted, string.template | #98c379 | — |
| constant.character.escape, string.template punctuation.definition.template-expression | #d19a66 | — |
| constant.numeric, constant.numeric.binary, constant.numeric.float, constant.numeric.hex, constant.numeric.integer, constant.numeric.octal | #d19a66 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant, variable.language.self, variable.language.super, variable.language.this | #d19a66 | italic |
| entity.name.function, meta.function-call entity.name.function, meta.method-call entity.name.function, support.function | #61afef | — |
| entity.name.function.member, meta.function-call support.function | #61afef | — |
| entity.name.type, entity.name.type.class, entity.name.type.enum, entity.name.type.interface, entity.name.type.struct, entity.other.inherited-class, support.class, support.type | #56b6c2 | — |
| entity.name.type.parameter, entity.name.type.type-parameter | #7ee0cf | — |
| meta.parameter, variable, variable.other, variable.parameter | #abb2bf | — |
| entity.name.tag.yaml, meta.object-literal.key, support.type.property-name, variable.other.object.property, variable.other.property | #e06c75 | — |
| variable.other.constant, variable.other.enummember | #d19a66 | italic |
| meta.attribute, meta.decorator, meta.decorator entity.name.function, meta.decorator punctuation.decorator, punctuation.definition.annotation, storage.type.annotation | #e5c07b | — |
| entity.name.module, entity.name.namespace, entity.name.type.module, entity.name.type.namespace | #7a818e | — |
| meta.brace, punctuation.bracket, punctuation.definition.arguments, punctuation.definition.block, punctuation.definition.parameters, punctuation.section | #828997 | — |
| entity.name.tag, punctuation.definition.tag | #e06c75 | — |
| entity.name.tag.custom, entity.name.tag.other.custom, support.class.component | #56b6c2 | — |
| entity.other.attribute-name | #e5c07b | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css | #e5c07b | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #e06c75 | — |
| constant.other.color.rgb-value.hex.css, support.constant.color.w3c-standard-color-name.css, support.constant.font-name.css, support.constant.property-value.css | #d19a66 | — |
| entity.name.tag.css | #e06c75 | — |
| keyword.other.unit.css | #d19a66 | — |
| variable.argument.css, variable.css | #e06c75 | — |
| support.type.property-name.json | #e06c75 | — |
| string.quoted.double.json, string.value.json | #98c379 | — |
| markup.heading, markup.heading entity.name | #61afef | bold |
| markup.bold | #d19a66 | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.fenced_code, markup.inline.raw, markup.raw | #98c379 | — |
| markup.quote | #5B6270 | italic |
| punctuation.definition.quote.begin.markdown | #98c379 | — |
| punctuation.definition.list.begin.markdown | #61afef | — |
| markup.underline.link | #61afef | — |
| markup.inserted | #98c379 | — |
| markup.deleted | #e06c75 | — |
| markup.changed | #61afef | — |
| constant.other.character-class.regexp, string.regexp, string.regexp.character-class | #e06c75 | — |
| keyword.control.anchor.regexp, keyword.operator.or.regexp, keyword.operator.quantifier.regexp, punctuation.definition.group.regexp | #d19a66 | — |
| keyword.other.class.cs, keyword.other.namespace.cs, keyword.other.using.cs, keyword.other.var.cs | #c678dd | — |
| entity.name.variable.property.cs | #e06c75 | — |
| meta.preprocessor | #5B6270 | — |
| meta.preprocessor.numeric | #d19a66 | — |
| meta.preprocessor.string | #98c379 | — |
| meta.function-call.generic.python | #61afef | — |
| support.function.builtin.python, support.function.magic.python | #56b6c2 | — |
| meta.function.decorator.identifier.python, meta.function.decorator.python | #e5c07b | — |
| variable.parameter.function.language.special.self.python | #d19a66 | italic |
| entity.name.type.alias.ts, entity.name.type.interface.ts | #c8a2d6 | — |
| variable.object.property.js, variable.object.property.jsx, variable.object.property.ts, variable.object.property.tsx | #e06c75 | — |
| entity.name.tag.yaml | #e06c75 | — |
| keyword.key.toml, support.type.property-name.table.toml | #e06c75 | — |
| variable.other.bracket.shell, variable.other.normal.shell, variable.other.positional.shell, variable.other.special.shell | #e06c75 | — |
| support.other.variable, support.variable | #abb2bf | — |
| entity.name.label | #828997 | — |
| invalid, invalid.illegal | #e06c75 | — |
| invalid.deprecated | #e06c75 | strikethrough |
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}!`;
}