Moe Codious
Publisher: SpeykiousThemes in package: 1
Speykious's Moe Codious color theme
Speykious's Moe Codious color theme
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 |
|---|---|---|
| variable | #fcffe4 | — |
| comment, punctuation.semi, punctuation.terminator, punctuation.eq.toml, punctuation.squarebracket, markup.quote.markdown | #fcffe480 | — |
| punctuation.comma, punctuation.separator.comma, punctuation.definition.table.inline.toml, punctuation.definition.tag, punctuation.accessor, punctuation.separator.dot.toml, punctuation.separator.colon.python, punctuation.separator.arguments.python, punctuation.separator.key-value | #fcffe4c0 | — |
| meta.table.inline.toml | #fcffe4d0 | — |
| keyword, keyword.operator.new, keyword.operator.expression.new, markup.underline.link.markdown | #ff79b5 | — |
| keyword.control | #b084eb | — |
| keyword.operator, punctuation.separator.pointer-access, keyword.operator.comparison.perl | #ffffaaaa | |
| keyword.operator.math, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.increment, keyword.operator.conditional, keyword.operator.ternary | #ffaa20 | bold |
| constant, variable.other.constant, variable.other.object.property, variable.other.env, support.variable.property, meta.attribute.python | #ff98b8 | — |
| constant.numeric, constant.language.bool, constant.language.boolean, constant.language.java, constant.language.json, entity.other.attribute-name.id | #ffa358 | — |
| storage | #ffc466 | — |
| entity.name.type, support.type.python, support.type.primitive.ts | #41ffd5 | — |
| entity.name.section.markdown, punctuation.definition.heading.markdown | #41ffd5 | bold |
| storage.type.java, entity.other.inherited-class | #ffa34d | — |
| entity.name.type.numeric, storage.type.primitive, support.type.primitive, markup.italic.markdown | — | italic |
| string, punctuation.definition.string, entity.other.attribute-name.class | #ffffaa | — |
| variable.other.object | #ffffca | — |
| punctuation.definition.annotation, storage.type.annotation | #ffffaa | bold |
| entity.name.function, meta.function-call.generic, support.function | #6acbff | — |
| variable.language.self, markup.bold.markdown | — | bold |
| storage.modifier.mut.rust, support.type.property-name.table.toml, keyword.operator.expression.typeof, keyword.operator.expression.nameof | #ff6355 | — |
| meta.interpolation | #feaa9a | — |
| entity.name.tag.yaml, variable.css, variable.other.readwrite.global.perl, variable.other.assignment.shell, variable.other.normal.shell, support.type.property-name, support.type.primitive, entity.other.attribute-name, punctuation.definition.interpolation, punctuation.definition.lifetime, punctuation.definition.variable.perl, punctuation.definition.variable.shell, entity.name.type.lifetime | #ff877c | — |
| entity.name.tag, support.class.component, meta.selector.css | #ff3978 | — |
| keyword.operator.borrow.and, keyword.operator.dereference, variable.other.predefined.perl | #ff877c | bold |
| meta.preprocessor.macro.c, entity.name.function.preprocessor.c, entity.name.function.macro, keyword.operator.question.rust | #ff6355 | bold |
| constant.character.escape | #ffa29a | — |
| meta.attribute.rust, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #ffa29aa0 | 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}!`;
}