Fullmetal Theme
Publisher: Daniel ZhangThemes in package: 1
A dark theme with vibrant colors crafted with alchemy.
A dark theme with vibrant colors crafted with alchemy.
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 |
|---|---|---|
| source keyword.control, source keyword.other, source keyword.other.unit, keyword.access.angelscript, keyword.code.angelscript.this.reference, keyword.const, keyword.declaration, keyword.function, keyword.interface, keyword.local.lua, keyword.operator.address, keyword.operator.arrow, keyword.operator.expression, keyword.operator.lua, keyword.operator.new, keyword.package, keyword.preprocessor, keyword.operator.word.hcl, keyword.statement, keyword.struct, keyword.type, keyword.var, meta.preprocessor.angelsript, storage.type, support.type.object.module, variable.language.self, variable.language.super, variable.language.this, punctuation.definition.block.sequence.item, punctuation.definition.keyword.svelte, punctuation.definition.list.begin | #d44dae | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, keyword.specifier.angelscript, meta.at-rule.media.header.css, punctuation.definition.quote.begin, storage.modifier | #ff7e00 | — |
| punctuation.definition.char, punctuation.definition.string, string, support.constant.property-value | #8acd5b | — |
| constant.character.escape, keyword.operator.comparison, keyword.operator.conditional, keyword.operator.definiteassignment, keyword.operator.hcl, keyword.operator.logical, keyword.operator.optional.ts, keyword.operator.question, keyword.operator.relational, keyword.operator.ternary, keyword.operator.type, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.variable.shell | #ff4762 | — |
| comment.line, comment.block, markup.fenced_code.block, markup.inline.raw, punctuation.definition.comment | #455573 | italic |
| punctuation.definition.heading | — | bold |
| meta.paragraph.markdown | #dcbb | — |
| source.toml meta.table support.type.property-name.toml, entity.name.variable.local, meta.property-value.css, meta.unrealmacro.property.angelsript, variable.css, variable.language.special, variable.other, variable.parameter, variable.key.table | #92d6cf | — |
| meta.table support.type.property-name.table, source.python variable.parameter.function-call.python, source.go variable.other.property.go, constant.other.option, entity.name.variable.field, entity.other.attribute-name, entity.other.attribute.lua, meta.braces.hcl, meta.object-literal.key, meta.scope.case-pattern.shell, support.resource.attribute, support.variable.property, variable.key, variable.object.property, variable.other.enummember, variable.other.constant.property, variable.other.object.property, variable.other.property, variable.parameter.key.prisma | #c77ddd | — |
| source meta.attribute, entity.name.function, keyword.generator.asterisk, keyword.operator.angelscript, keyword.operator.arithmetic, keyword.operator.assignment.compound, keyword.operator.bitwise, keyword.operator.borrow, keyword.operator.decrement, keyword.operator.dereference, keyword.operator.expansion, keyword.operator.heredoc, keyword.operator.increment, keyword.operator.math, keyword.operator.range, keyword.operator.redirect, keyword.operator.rest, keyword.operator.spread, markup.underline.link, meta.function-call.generic.python, punctuation.definition.heading, support.function | #41a7fc | — |
| string.quoted.double.shell meta.parameter-expansion, constant.language.boolean, constant.language, constant.numeric, constant.other.caps, constant.other.color.rgb-value.hex, keyword.code.angelscript, support.constant, support.type.builtin, variable.other.constant.rust | #dd9046 | — |
| entity.name, entity.other, meta.use.rust, punctuation.support.type.property-name, support.class, support.type, support.type.primitive, support.type.property-name, support.type.vendored.property-name, variable.language.relations.prisma | #efbd5d | — |
| keyword.operator.access.dot, keyword.operator.arrow.skinny, keyword.operator.assignment, keyword.operator.namespace, punctuation.accessor, punctuation.definition.entity.css, punctuation.eq | #add692 | — |
| keyword.operator.key-value, keyword.operator.type.annotation, meta.brace.round, meta.brace.square, punctuation.terminator, punctuation.semi, punctuation.parenthesis.open, punctuation.parenthesis.close, punctuation.separator, punctuation.brackets.angle, punctuation.comma, punctuation.definition.case-pattern, punctuation.definition.link.title.begin, punctuation.definition.link.title.end, punctuation.definition.metadata, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag.xml, punctuation.definition.typeparameters, punctuation.definition.table.inline, punctuation.section.array.shell | #3dacb4 | — |
| punctuation.definition.comment.shebang.shell | #add692 | bold |
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}!`;
}