Metropolis
Publisher: Fabian DeckmannThemes in package: 2
Color theme based on the GMK Metropolis keycaps designed by Nephlock.
Color theme based on the GMK Metropolis keycaps designed by Nephlock.
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, string.comment | #777f8c | — |
| string, string.template | #CAD2D6 | italic |
| constant.numeric, constant.language.boolean, constant.language.undefined, constant.language.null | #CAD2D6 | — |
| string.unquoted, constant.other.object.key | #ff7e28 | — |
| keyword.control.flow | #3CDBC0 | bold italic |
| string.embedded.begin, string.embedded.end, punctuation.definition.template-expression, punctuation.section.embedded | #da83f4 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.erb, punctuation.section.embedded.end.erb, source.elixir.embedded, punctuation.separator, punctuation.accessor, meta.brace | #abb2bf | — |
| constant.language | #3CDBC0 | — |
| constant.character, constant.other | #3CDBC0 | — |
| variable.language | #fc4235 | — |
| keyword.operator, keyword | #3CDBC0 | — |
| keyword.operator.new | #3CDBC0 | bold |
| storage | #fc4235 | — |
| storage.type | #3CDBC0 | — |
| entity.name.class, entity.name.module, storage.identifier, support.class | #fc4235 | — |
| variable.other.class | #F1BE48 | — |
| punctuation.definition.string, punctuation.definition.quasi | #fc4235 | — |
| string.quoted.single, string.quoted.double, string.quoted.template | #CAD2D6 | italic |
| support.type.object.console | #F1BE48 | — |
| entity.name.type.interface, entity.name.type.alias, entity.name.type, entity.name.label | #717efa | — |
| entity.name.type.class, entity.other.inherited-class | #5ddd2b | — |
| support.type.primitive, support.type.builtin | #717efa | — |
| variable.object.property, variable.object.property.ts, variable.other.object.property.ts | #ff7e28 | — |
| variable.other.object, variable.other.constant, variable.other.global, variable.readwrite, variable.readwrite.other.block, variable.other.readwrite, variable.other.readwrite.class, variable.other.readwrite.instance, variable.other.readwrite.batchfile | #F1BE48 | |
| variable.other.property, variable.other.block, meta.object-literal.key | #ff7e28 | |
| variable.other.readwrite | #F1BE48 | |
| meta.class.body, meta.function.body, meta.function.parameters | #61AFEF | — |
| storage.modifier | #3CDBC0 | — |
| entity.name.function, storage.type.function.arrow, entity.name.function.member, meta.function-call.generic.python | #fc4235 | — |
| string.quoted.module, string.quoted.template | #CAD2D6 | — |
| support.function | #fc4235 | — |
| variable.parameter, entity.name.variable.parameter, parameter.variable | #F1BE48 | — |
| entity.name.function-call | #abb2bf | — |
| function.support.builtin, function.support.core | #25D65A | — |
| entity.name.tag.jsx, punctuation.definition.tag | #cad2d6ab | — |
| JSXNested | #CAD2D6 | — |
| entity.name.tag, entity.name.tag.class.js | #3CDBC0 | — |
| entity.name.tag.class, entity.name.tag.id | #3CDBC0 | — |
| entity.name.tag.html | #3CDBC0 | — |
| entity.other.attribute-name | #25D65A | — |
| punctuation.attribute-shorthand.event.html, punctuation.separator.key-value.html | #CAD2D6 | — |
| string.quoted.double.html, string.quoted.single.html | #CAD2D6 | italic |
| entity.other.attribute-name | #25d65a | — |
| support.constant | #3CDBC0 | — |
| support.type, support.variable | #fc4235 | — |
| support.dictionary.json | #3CDBC0 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #3CDBC0 | — |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less, entity.name.tag.sass | #F1BE48 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.less, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-element.scss, entity.other.attribute-name.pseudo-element.less, entity.other.attribute-name.pseudo-element.sass, keyword.control.at-rule.font-face.css | #fc4235 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.class.less, entity.other.attribute-name.class.sass, entity.other.attribute-name.element.css, entity.other.attribute-name.element.scss, entity.other.attribute-name.element.less, entity.other.attribute-name.element.sass, entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss, entity.other.attribute-name.id.less | #F1BE48 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass, support.constant.property-value.css | #CAD2D6 | — |
| variable.css, variable.scss, variable.less, variable.sass, variable.argument.css | #F1BE48 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #F1BE48 | — |
| keyword.other.unit | #fc4235 | — |
| unit.css, unit.scss, unit.less, unit.sass | #fc4235 | — |
| function.css, function.scss, function.less, function.sass | #fc4235 | — |
| punctuation.terminator.rule.css | #CAD2D6 | — |
| string.quoted.double, string.quoted.single | #CAD2D6 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| support.type.property-name.json | #3CDBC0 | — |
| string.detected-link | #F1BE48 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #fc4235 | — |
| text.html.markdown | #3CDBC0 | — |
| markup.inserted | #2bcf33 | — |
| markup.changed | #F1BE48 | — |
| constant.numeric.line-number.find-in-files - match | #3CDBC0 | — |
| entity.name.filename.find-in-files | #F1BE48 | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.heading.markdown | #676f7d | — |
| punctuation.definition.italic.markdown | — | italic |
| markup.underline.link.markdown | #3CDBC0 | underline |
| markup.bold.markdown | — | bold |
| markup.heading.markdown | #fc4235 | bold |
| markup.quote.markdown | #F1BE48 | — |
| meta.separator.markdown | #fc4235 | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #3CDBC0 | — |
| punctuation.definition.list_item.markdown | #3CDBC0 | bold |
| meta.attribute.directive.vue, meta.attribute.directive.control.vue, punctuation.attribute-shorthand.bind.html.vue, punctuation.attribute-shorthand.event.html.vue | #fc4235 | — |
| keyword.control.loop.vue | #fc4235 | — |
| variable.other, source.go | #F1BE48 | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #5DDD2B | — |
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}!`;
}