vegetation
Publisher: samlazrakThemes in package: 1
inspired by plants
inspired by plants
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 |
|---|---|---|
| #eeffffff | — | |
| #1f1f1f | — | |
| meta.block variable.other, support.other.variable, string.other.link, entity.name.module.js, variable.import.parameter.js | #bb90d8 | — |
| constant.numeric, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, entity.name.tag.reference.scss, support.constant.property-value.css, constant.numeric.css, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, string.other.link.title.markdown, string.other.link.description.markdown | #ebc17a | — |
| keyword, storage.type, storage.modifier, keyword.control.flow.python, keyword.control.flow.js, keyword.control.loop.js, source.json meta.structure.dictionary.json support.type.property-name.json, support.type.property-name.json, 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, entity.name.tag.block.any.html, entity.name.tag.structure.any.html, entity.name.tag.open.jsx, entity.name.tag.close.jsx, meta.property-name.css, entity.name.tag.inline.any.html, entity.name.tag.html, entity.name.section.markdown | #83a06c | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.tag.css, entity.other.attribute-name.pseudo-class.css, variable.language.this.js, variable.language.self.js, meta.function.parameters.js, variable.parameter, markup.fenced_code.block.markdown, variable.other.readwrite.global.special.perl | #769baa | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name, variable.other.class.js, entity.name.class, support.class.component, entity.name.type.class.python, meta.class.python, entity.name.type.js, string.other.link.description.title.markdown, variable.other.readwrite.global.perl | #b06698 | — |
| support.type, source.sass keyword.control, string.regexp, constant.character.escape, support.class.builtin.js, support.class.builtin, markup.italic.markdown, markup.bold.markdown, fenced_code.block.language | #9ac2be | — |
| variable, string constant.other.placeholder, meta.function-call.arguments.python, variable.other.readwrite, variable.other.object, expression.embedded.vue, string.unquoted, JSXNested | #e1f3e7 | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, constant.language.boolean, constant.language.undefined, constant.language.null | #c78547 | — |
| #bb90d8 | — | |
| entity.other.attribute-name.class, punctuation.definition.tag.jsx, storage.type.function, entity.name.tag.script.html, entity.name.tag.template.html, entity.name.tag.style.html, markup.underline.link.markdown, markup.underline.link.image.markdown | #667c55 | — |
| entity.name.function.js, constant.other.color, constant.other.color.rgb-value.hex.css, keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, support.type.property-name.css, punctuation.definition.variable.perl | #adc586 | — |
| string.quoted.double, string.quoted.single, string.quoted.double.json, string.quoted.module.js | #afcaaf | — |
| comment, punctuation.definition.comment, punctuation.definition.heading.markdown, punctuation.definition.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, meta.separator.markdown | #4e5350 | italic |
| #1f1f1f | bold | |
| #f07178 | bold | |
| #ebc17a | bold | |
| variable.language.special.self.python | #83a06c | bold |
| entity.name.method.js | #769baa | bold |
| #b06698 | bold | |
| #9ac2be | bold | |
| #e1f3e7 | bold | |
| #c78547 | bold | |
| #c792ea | bold | |
| #5b6e4b | bold | |
| #8eac74 | bold | |
| #9ab49a | bold | |
| #1f1f1f | italic | |
| variable.language, source.js constant.other.object.key.js string.unquoted.label.js | #f07178 | italic |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx, variable.other.property.js | #ebc17a | italic |
| #83a06c | italic | |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, keyword.other.unit.em.css, keyword.other.unit.px.css, keyword.other.unit.s.css, keyword.other.unit.rem.css, keyword.other.unit.percentage.css, variable.language.prototype.js | #769baa | italic |
| variable.other.object.property | #b06698 | italic |
| support.function.builtin | #9ac2be | italic |
| #e1f3e7 | italic | |
| #c78547 | italic | |
| #c792ea | italic | |
| #5b6e4b | italic | |
| entity.name.function.python, entity.name.function.method.js | #8eac74 | italic |
| variable.scss | #9ab49a | italic |
| invalid, invalid.illegal | #f7442d | italic |
| *url*, *link*, *uri* | — | underline |
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}!`;
}