Miasma
Publisher: Sage FennelThemes in package: 1
A noxious theme featuring deep green complemented by lime, peach, and dragon fruit accents
A noxious theme featuring deep green complemented by lime, peach, and dragon fruit accents
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #d6f5eb | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #a5e052 | — |
| comment, punctuation.definition.comment | #8aa89e | — |
| constant.language | #f76ec9 | — |
| constant.regexp | #f7a1da | — |
| support.class.component, entity.name.tag | #d3f5a3 | — |
| entity.name.tag.css | #d6f5eb | — |
| entity.other.attribute-name | #f9ac86 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #f9ac86 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #f57a3d | — |
| invalid | #f28c9d | — |
| markup.underline | — | underline |
| markup.bold | #f9ac86 | bold |
| markup.heading | #a5e052 | bold |
| markup.italic | #f9ac86 | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #86acf9 | — |
| markup.deleted | #f28c9d | — |
| markup.changed | #f09e75 | — |
| punctuation.definition.quote.begin.markdown | #49ab8b | — |
| punctuation.definition.list.begin.markdown | #49ab8b | — |
| markup.inline.raw | #f9ac86 | — |
| punctuation.definition.tag | #49ab8b | — |
| meta.preprocessor, entity.name.function.preprocessor | #f9ac86 | — |
| meta.preprocessor.string | #f7a1da | — |
| constant.numeric, meta.preprocessor.numeric | #fce | — |
| meta.structure.dictionary.key.python | #a5e052 | — |
| source.diff | #49ab8b | — |
| meta.diff.header | #ede3de | — |
| storage | #d6f5eb | — |
| source.java storage.type, source.go storage.type | #f9ac86 | — |
| storage.type | #a5e052 | — |
| storage.modifier, keyword.operator.noexcept | #a5e052 | — |
| string, meta.embedded.assembly, constant.other.symbol | #f7a1da | — |
| string.tag | #f7a1da | — |
| string.value | #f7a1da | — |
| string.regexp | #f7a1da | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #49ab8b | — |
| meta.template.expression, meta.interpolation | #d6f5eb | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #d3f5a3 | — |
| keyword | #a5e052 | — |
| keyword.control | #a5e052 | — |
| keyword.operator.type.annotation | #49ab8b | — |
| keyword.operator | #a5e052 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #a5e052 | — |
| keyword.other.unit | #f76ec9 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #49ab8b | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d6f5eb | — |
| variable.language | #f57a3d | — |
| entity.name.function, meta.function-call.generic, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #fdc | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class | #f9ac86 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #f9ac86 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #a5e052 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #d6f5eb | — |
| meta.object-literal.key | #d3f5a3 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #fdc | — |
| constant.other.placeholder | #a5e052 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #fce | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #fce | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #49ab8b | — |
| keyword.operator.quantifier.regexp | #fce | — |
| constant.character, constant.other.option | #fce | — |
| constant.character.escape | #fce | — |
| entity.name.label | #d6f5eb | — |
| punctuation, meta.brace | #49ab8b | — |
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}!`;
}