Mycelium Theme
Publisher: Avant MediaThemes in package: 1
A dark theme with deep navy backgrounds and indigo bioluminescence — born from the Avant Media MushRoom palette, designed for long coding sessions.
A dark theme with deep navy backgrounds and indigo bioluminescence — born from the Avant Media MushRoom palette, designed for long coding sessions.
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 | #4B5563 | italic |
| comment.block.documentation, comment.block.documentation storage.type, comment.block.documentation punctuation.definition | #6B7280 | italic |
| string, string.quoted, string.template, string.quoted.single, string.quoted.double, string.quoted.triple | #34D399 | — |
| constant.character.escape, string.quoted.template | #6EE7B7 | — |
| string.template punctuation.definition.template-expression, string.template meta.template.expression | #C084FC | — |
| string.regexp, string.regexp keyword.other, string.regexp punctuation | #22D3EE | — |
| constant.numeric | #FBBF24 | — |
| constant.language | #FBBF24 | italic |
| constant.other | #FBBF24 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof, keyword.operator.void, keyword.operator.in, keyword.operator.of | #C084FC | — |
| keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.trycatch, keyword.control.switch | #C084FC | italic |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #C084FC | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational | #818CF8 | — |
| storage, storage.type, storage.modifier | #C084FC | — |
| storage.type.interface, storage.type.type, storage.type.enum, storage.type.class, storage.type.namespace | #C084FC | italic |
| entity.name.function, meta.function-call entity.name.function, support.function | #6366F1 | — |
| meta.method-call entity.name.function, entity.name.function.member | #818CF8 | — |
| support.function.builtin | #818CF8 | — |
| entity.name.type.class, entity.name.type, support.class, support.type | #22D3EE | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type.enum | #22D3EE | italic |
| entity.other.inherited-class | #22D3EE | italic underline |
| variable, variable.other, variable.other.readwrite | #D1D5DB | — |
| variable.parameter, meta.parameter | #FCA5A5 | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #93C5FD | — |
| meta.object-binding-pattern-variable variable.object.property, variable.other.constant | #D1D5DB | — |
| variable.language | #F87171 | italic |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, meta.brace | #9CA3AF | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.section | #9CA3AF | — |
| entity.name.tag, support.class.component | #F87171 | — |
| entity.other.attribute-name | #FBBF24 | italic |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #9CA3AF | — |
| support.class.component.js, support.class.component.tsx, support.class.component.jsx | #22D3EE | — |
| support.type.property-name.css | #93C5FD | — |
| support.constant.property-value.css, meta.property-value.css | #D1D5DB | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FBBF24 | — |
| keyword.other.unit.css | #FBBF24 | — |
| support.type.property-name.json, string.json support.type.property-name | #6366F1 | — |
| string.quoted.double.json | #34D399 | — |
| heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, markup.heading | #6366F1 | bold |
| markup.bold | #FBBF24 | bold |
| markup.italic | #C084FC | italic |
| markup.underline.link, string.other.link | #22D3EE | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #34D399 | — |
| markup.quote | #9CA3AF | italic |
| markup.list punctuation.definition.list | #6366F1 | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator | #FBBF24 | italic |
| meta.preprocessor, keyword.preprocessor | #9CA3AF | — |
| keyword.query | #C084FC | — |
| meta.attribute | #FBBF24 | italic |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #C084FC | — |
| support.constant, support.variable | #93C5FD | — |
| invalid, invalid.illegal | #F87171 | underline |
| invalid.deprecated | #9CA3AF | 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}!`;
}