Gruvbox RickIsGone
Publisher: RickIsGoneThemes in package: 1
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 | #928374 | italic |
| keyword | #FB4934 | — |
| keyword.operator | #FE8019 | — |
| punctuation, storage.modifier.reference, storage.modifier.pointer, entity.name.function.operator | #FE8019 | — |
| keyword.control.directive, punctuation.definition.directive | #8EC07C | — |
| string, meta.preprocessor.include, punctuation.definition.string | #B8BB26 | — |
| meta.preprocessor.pragma | #CC241D | — |
| storage.type, entity.name.class, entity.name.type | #FABD2F | — |
| storage.type.class, storage.type.struct, storage.modifier, storage.type.modifier, punctuation.separator.colon.access.control, storage.type.enum.enum-key | #FB4934 | — |
| variable | #83A598 | — |
| keyword.other.unit, constant.character.escape, keyword.other.unit.suffix | #D3869B | — |
| constant, entity.name.function.preprocessor, meta.preprocessor.macro, invalid.illegal.constant | #D3869B | — |
| entity.name.namespace, entity.name.scope-resolution | #83A598 | — |
| entity.name.function | #B8BB26 | — |
| source.cmake | #FFFFFF | — |
| keyword.cmake | #FB4934 | — |
| storage.source.cmake | #D79921 | — |
| variable.source.cmake | #83A598 | — |
| entity.source.cmake | #D3869B | — |
| log.date | #FE8019 | — |
| log.info | #83A598 | — |
| log.warning | #FABD2F | — |
| log.error | #FB4934 | — |
| entity.name.tag.yaml | #83A598 | — |
| storage.modifier.import.java, storage.modifier.package.java | #B8BB26 | — |
| keyword.other.import.java, keyword.other.package.java | #8EC07C | — |
| storage.type.java | #fabd2f | — |
| storage.type.annotation | #83a598 | bold |
| keyword.other.documentation.javadoc | #8ec07c | — |
| comment.block.javadoc variable.parameter.java | #b8bb26 | bold |
| source.java, source.java variable.other.object, source.java variable.other.definition.java | #83A598 | — |
| keyword.control.new.java, keyword.control.ternary.java | #FE8019 | — |
| markup.underline | — | underline |
| string.other.link.title.markdown | #928374 | underline |
| markup.underline.link | #d3869b | — |
| markup.bold | #fe8019 | bold |
| markup.heading | #fe8019 | bold |
| markup.italic | — | italic |
| markup.inserted | #b8bb26 | — |
| markup.deleted | #d65d0e | — |
| markup.changed | #fe8019 | — |
| markup.punctuation.quote.beginning | #98971a | — |
| markup.punctuation.list.beginning | #83a598 | — |
| markup.inline.raw, markup.fenced_code.block | #8ec07c | — |
| string.quoted.double.json | #83a598 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #b8bb26 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #8ec07c | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d3869b | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #b8bb26 | — |
| entity.other.attribute-name.css | #fe8019 | — |
| source.css meta.selector | #ebdbb2 | — |
| support.type.property-name.css | #fe8019 | — |
| entity.other.attribute-name.class | #b8bb26 | — |
| source.css support.function.transform, source.css support.function.timing-function, source.css support.function.misc | #fb4934 | — |
| support.property-value, constant.rgb-value, support.property-value.scss, constant.rgb-value.scss | #d65d0e | — |
| entity.name.tag.css | — | normal |
| punctuation.definition.tag | #83a598 | — |
| entity.other.attribute-name.html | #83A598 | — |
| text.html entity.name.tag, text.html punctuation.tag | #8ec07c | normal |
| text.html entity.other.attribute-name | — | 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}!`;
}