Meteora
Publisher: Patrick MiravalleThemes in package: 1
Meteora is a refined Visual Studio Code theme for those who love elegant code editing that is easy on the eyes.
Meteora is a refined Visual Studio Code theme for those who love elegant code editing that is easy on the eyes.
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 | #444B6A | italic |
| storage.type.class, storage.type.class punctuation | #7AA2F7 | — |
| constant.other.description | #787C99 | — |
| variable.other.description | #85D0B7 | — |
| constant, entity.name.constant, support.type.builtin, variable.other.constant, variable.other.enummember | #ffac7c | — |
| entity, entity.name.type, entity.name.type.enum, support.class, support.type | #73DACA | — |
| keyword.control, keyword.other | #BB9AF7 | italic |
| keyword.control.default | — | italic bold |
| entity.name.command, entity.name.function, support.function | #f981d1 | — |
| entity.name.namespace, support.other.namespace | #7AA2F7 | — |
| keyword.operator.namespace | #787C99 | — |
| meta.import string | #85D0B7 | — |
| keyword.operator.access, keyword.operator.arithmetic, keyword.operator.arrow, keyword.operator.assignment, keyword.operator.bitwise, keyword.operator.comparison, keyword.operator.logical, keyword.operator.range, keyword.operator.ternary, keyword.operator.type | #C0CAF5 | |
| meta.jsx.children, text.html | #a6afd3 | — |
| meta.attribute, variable.other.property | #7AA2F7 | — |
| punctuation | #A9B1D6 | — |
| punctuation.definition.template-expression | #906fce | — |
| keyword.operator.spread, keyword.operator.borrow.and, keyword.operator.dereference, keyword.operator.expression.instanceof, keyword.operator.expression.typeof, meta.statement.command constant.other.option, punctuation.definition.anchor, punctuation.definition.alias, source.shell keyword.operator.logical, variable.language.this, variable.language.this punctuation.definition.variable, variable.language.special.self, variable.parameter.function.language.special.self | #ffac7c | italic |
| storage.modifier, storage.type, storage.type.class | #906fce | italic |
| string | #929BBA | — |
| meta.interpolation | #97BEF9 | — |
| punctuation.definition.interpolation | #7dcfff | — |
| entity.name.label, entity.name.type.anchor, punctuation.definition.variable, string.unquoted.argument, variable, variable.parameter, variable.other.constant, variable.other.object, variable.language | #97BEF9 | — |
| support.type.property-name, source.yaml entity.name.tag | #7AA2F7 | — |
| source.json string, source.toml string, source.yaml string | #85D0B7 | — |
| log.date | #787C99 | — |
| log.info | #7AA2F7 | — |
| fenced_code.block.language.markdown | #7dcfff | italic |
| markup.inline.raw.string.markdown | #7dcfff | italic |
| heading.1.markdown entity.name | #BB9AF7 | — |
| heading.2.markdown entity.name | #7AA2F7 | — |
| heading.3.markdown entity.name | #7dcfff | — |
| heading.4.markdown entity.name | #C0CAF5 | — |
| string.other.link.description.markdown | #f981d1 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #73DACA | — |
| string.other.link.title | #BB9AF7 | — |
| meta.separator.markdown, text.html.markdown punctuation | #787C99 | — |
| markup.quote | #97BEF9 | italic |
| markup.bold.markdown, markup.italic.markdown, markup.strikethrough.markdown, punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.strikethrough.markdown | #ffac7c | — |
| markup.bold.markdown | — | bold |
| markup.bold.markdown markup.italic.markdown | — | italic bold |
| markup.italic.markdown | — | italic |
| entity.name.tag, meta.tag, support.class.component | #f7768e | — |
| entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #BB9AF7 | italic |
| meta.tag string | #85D0B7 | — |
| punctuation.definition.tag | #ba3c97 | — |
| support.type.property-name.table, support.type.property-name.array | #BB9AF7 | — |
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}!`;
}