Thyme21g Theme
Publisher: Rohith_Rot_dgrrThemes in package: 1
A muted yet vibrant theme with blues, oranges, greens, reds, purple, and white
A muted yet vibrant theme with blues, oranges, greens, reds, purple, and white
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, string.comment | #6C7086 | italic |
| string, punctuation.definition.string, string punctuation.section.embedded source | #A6E3A1 | — |
| punctuation.definition.string | #A6E3A1 | — |
| constant.character.escape | #94E2D5 | — |
| constant.numeric, constant.language.numeric | #FAB387 | — |
| constant.language, support.constant | #F9E2AF | — |
| variable.other.constant | #FAB387 | — |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical | #CBA6F7 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.increment, keyword.operator.logical, keyword.operator.string, keyword.operator.ternary | #F5E0DC | — |
| punctuation.terminator, punctuation.separator, punctuation.delimiter, punctuation.section, punctuation.definition | #9399B2 | — |
| punctuation.section.bracket, punctuation.definition.array | #CDD6F4 | — |
| punctuation.section.brace, punctuation.definition.dictionary | #CDD6F4 | — |
| punctuation.section.parens, punctuation.definition.parameters | #CDD6F4 | — |
| entity.name.function, support.function, meta.function-call, variable.function, support.function.any-method | #89B4FA | — |
| variable.parameter | #CDD6F4 | — |
| meta.function-call.generic, meta.function-call.object, meta.function-call.static | #89B4FA | — |
| variable, meta.definition.variable, variable.other, variable.other.readwrite, variable.other.constant, variable.other.member, variable.other.property, variable.other.object, variable.other.object.property | #CDD6F4 | — |
| variable.language.this, variable.language.super, variable.language.self | #F5E0DC | bold |
| entity.name.type, entity.name.class, support.type, support.class, storage.type, meta.type, meta.return.type, meta.return-type, meta.cast, meta.type.name | #F9E2AF | — |
| entity.other.inherited-class | #94E2D5 | italic |
| variable.parameter | #CDD6F4 | — |
| entity.name.tag | #F38BA8 | — |
| entity.name.tag, meta.tag | #F38BA8 | — |
| entity.other.attribute-name, meta.attribute | #FAB387 | — |
| support.type.property-name.css, meta.property-name.css, meta.property-value.css, support.type.property-name.scss, meta.property-value.scss | #94E2D5 | — |
| keyword.other.unit.css, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #F9E2AF | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double.json | #89B4FA | — |
| markup.heading, markup.heading.setext, entity.name.section | #89B4FA | bold |
| markup.underline.link, string.other.link | #F5E0DC | — |
| markup.bold, punctuation.definition.bold | #F5E0DC | bold |
| markup.italic, punctuation.definition.italic | #CDD6F4 | italic |
| markup.inline.raw, markup.raw, markup.fenced_code.block | #A6E3A1 | — |
| markup.quote, punctuation.definition.block.quote | #6C7086 | italic |
| markup.list | #89B4FA | — |
| markup.inserted | #A6E3A1 | — |
| markup.deleted | #F38BA8 | — |
| markup.changed | #F9E2AF | — |
| meta.diff, meta.diff.header | #6C7086 | — |
| markup.changed.diff | #CBA6F7 | — |
| string.regexp, constant.other.character-class.regexp, constant.character.escape, punctuation.definition.character-class.regexp, punctuation.definition.group.regexp, punctuation.definition.string.begin, punctuation.definition.string.end | #94E2D5 | — |
| constant.other.character-class.set.regexp | #F9E2AF | — |
| punctuation.definition.group.capture.regexp | #89B4FA | — |
| keyword.operator.quantifier.regexp | #F5E0DC | — |
| punctuation.definition.anchor.regexp | #F38BA8 | — |
| entity.name.tag.yaml | #89B4FA | — |
| variable.other.alias.yaml | #CBA6F7 | — |
| entity.other.attribute-name.table | #89B4FA | — |
| constant.language.boolean.toml | #F9E2AF | — |
| constant.other.date.toml | #FAB387 | — |
| entity.name.section.table | #CBA6F7 | — |
| entity.name.section.group-title.ini | #89B4FA | — |
| keyword.other.definition.ini | #CDD6F4 | — |
| entity.name.function.target.makefile | #89B4FA | — |
| variable.other.makefile | #F9E2AF | — |
| keyword.other.special-method.dockerfile | #89B4FA | — |
| string.quoted.double.dockerfile | #A6E3A1 | — |
| meta.scope.changeset.git-commit | #CDD6F4 | — |
| entity.name.scope.changeset.git-commit | #89B4FA | — |
| meta.scope.rebase-msg.git-rebase | #CDD6F4 | — |
| meta.scope.merge-msg.git-merge | #CDD6F4 | — |
| entity.other.attribute-name.git-config | #89B4FA | — |
| entity.name.section.group-title.git-config | #CBA6F7 | — |
| entity.other.attribute-name.git-attributes | #89B4FA | — |
| entity.other.attribute-name.git-ignore | #89B4FA | — |
| entity.other.attribute-name.git-modules | #89B4FA | — |
| constant.other.reference.git-rebase | #F9E2AF | — |
| constant.other.reference.git-commit | #F5E0DC | — |
| source.yaml.embedded.git-actions | #CDD6F4 | — |
| source.gfm | #CDD6F4 | — |
| entity.other.reference.issue.git-commit | #89B4FA | — |
| entity.other.reference.pull-request.git-commit | #A6E3A1 | — |
| entity.other.reference.username.git-commit | #CBA6F7 | — |
| constant.other.emoji.git-commit | #F9E2AF | — |
| source.yaml.embedded.workflow | #CDD6F4 | — |
| keyword.other.workflow | #89B4FA | — |
| support.constant.workflow.event | #F38BA8 | — |
| support.function.workflow | #94E2D5 | — |
| support.variable.workflow | #F9E2AF | — |
| meta.embedded.expression.workflow | #CDD6F4 | — |
| string.quoted.double.workflow | #A6E3A1 | — |
| constant.numeric.workflow | #FAB387 | — |
| constant.language.boolean.workflow | #F9E2AF | — |
| constant.language.null.workflow | #F38BA8 | — |
| entity.name.tag.workflow | #89B4FA | — |
| comment.line.number-sign.workflow | #6C7086 | italic |
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}!`;
}