Midas Touch
Publisher: vshakitskiyThemes in package: 1
wiskiy's views on flavored themes
wiskiy's views on flavored themes
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 | #7A7A7A94 | — |
| variable, string constant.other.placeholder, constant.other.color, meta.block variable.other, support.other.variable, string.other.link, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name, support.type.vendored.property-name.css, source.css.scss entity.name.tag, variable.parameter.keyframe-list.css, meta.property-name.css, variable.parameter.url.scss, meta.property-value.scss, meta.property-value.css, entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #FFCEE4 | — |
| keyword, storage.type, storage.modifier, keyword.control, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, variable.language, entity.other.attribute-name, meta.property-list.scss, entity.other.keyframe-offset.css, meta.selector.css, entity.name.tag.reference.scss, entity.name.tag.nesting.css, punctuation.separator.key-value.css, markup.changed, string.regexp, constant.character.escape | #888888 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, entity.name.function, variable.function, support.function, keyword.other.special-method, constant.numeric, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other, constant.language.boolean, entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.id, meta.attribute-selector.scss, variable.parameter.misc.css | #FB90B7 | — |
| string, constant.other.symbol, constant.other.key, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, source.sass keyword.control, markup.inserted | #FF3F85 | — |
| invalid, invalid.illegal, entity.name.module.js, variable.import.parameter.js, variable.other.class.js, markup.deleted | #FF6B6B | — |
| markup.italic | #FFCEE4 | italic |
| markup.bold, markup.bold string | #FFCEE4 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #FFCEE4 | bold italic |
| markup.underline | #FB90B7 | underline |
| *url*, *link*, *uri* | — | underline |
| comment.line.double-slash.gleam, punctuation.definition.comment.gleam | #7A7A7A94 | — |
| keyword.control.gleam, keyword.other.gleam, storage.type.gleam, storage.modifier.gleam | #888888 | — |
| string.quoted.double.gleam, punctuation.definition.string.begin.gleam, punctuation.definition.string.end.gleam | #FF3F85 | — |
| constant.numeric.integer.gleam, constant.numeric.float.gleam | #FF3F85 | — |
| constant.language.gleam, variable.language.wildcard.gleam, constant.language.placeholder.gleam | #FB90B7 | — |
| keyword.operator.comparison.gleam, keyword.operator.logical.gleam, keyword.operator.arithmetic.gleam, keyword.operator.assignment.gleam, keyword.operator.arrow.gleam, keyword.operator.pipe.gleam, keyword.operator.capture.gleam, keyword.operator.access.gleam | #888888 | — |
| entity.name.type.gleam, support.type.primitive.gleam, support.type.gleam | #FB90B7 | — |
| entity.name.module.gleam, support.other.namespace.gleam, variable.other.module.gleam, entity.name.function.imported.gleam | #FFCEE4 | — |
| entity.name.function.gleam, support.function.gleam | #FB90B7 | — |
| variable.parameter.gleam, variable.other.gleam | #FFCEE4 | — |
| variable.other.property.gleam, entity.name.label.gleam, variable.other.pattern.gleam | #FFCEE4 | — |
| meta.attribute.gleam, storage.type.attribute.gleam, entity.name.tag.attribute.gleam | #888888 | italic |
| punctuation.definition.list.begin.gleam, punctuation.definition.list.end.gleam, punctuation.definition.tuple.begin.gleam, punctuation.definition.tuple.end.gleam, punctuation.definition.block.gleam, punctuation.definition.parameters.begin.gleam, punctuation.definition.parameters.end.gleam, punctuation.separator.comma.gleam, punctuation.separator.colon.gleam, punctuation.terminator.statement.gleam | #88888890 | — |
| source.json support.type.property-name.json | #FB90B7 | — |
| text.html.markdown, meta.paragraph.markdown, markup.table | #FFCEE4 | — |
| markup.heading, markup.heading entity.name.section | #FB90B7 | bold |
| punctuation.definition.heading.markdown, markup.heading.setext | #888888 | — |
| markup.bold.markdown | #FFCEE4 | bold |
| markup.italic.markdown | #FFCEE4 | italic |
| markup.bold.markdown markup.italic.markdown, markup.italic.markdown markup.bold.markdown | #FFCEE4 | bold italic |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #88888890 | — |
| markup.quote.markdown | #FFCEE4B3 | italic |
| punctuation.definition.blockquote.markdown | #888888 | italic |
| markup.inline.raw.string.markdown | #FF3F85 | — |
| punctuation.definition.raw.markdown | #FF3F8590 | — |
| markup.fenced_code.block.markdown, meta.embedded.block.markdown | #FFCEE4 | — |
| punctuation.definition.fenced.markdown | #888888 | — |
| fenced_code.block.language.markdown, markup.fenced_code.block.markdown meta.tag | #888888 | italic |
| markup.underline.link.markdown, string.other.link.title.markdown | #FB90B7 | — |
| markup.link.markdown, string.other.link.description.title.markdown, constant.other.reference.link.markdown | #888888 | — |
| punctuation.definition.link.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.link.description.begin.markdown, punctuation.definition.link.description.end.markdown, punctuation.definition.metadata.markdown | #88888890 | — |
| punctuation.definition.list.begin.markdown, markup.list.unnumbered.marker, markup.list.numbered.marker | #FB90B7 | — |
| meta.separator.markdown, punctuation.definition.hr.markdown | #5E6E78 | bold |
| meta.tag.inline.any.html, meta.tag.block.any.html, entity.name.tag.html | #FB90B7 | — |
| punctuation.definition.tag.html | #FB90B790 | — |
| entity.other.attribute-name.html | #888888 | — |
| string.quoted.double.html, string.quoted.single.html | #FF3F85 | — |
| comment.line.double-slash.proto, comment.block.proto, punctuation.definition.comment.proto | #7A7A7A94 | — |
| keyword.proto, keyword.other.proto | #888888 | — |
| storage.type.proto, constant.language.proto | #FB90B7 | — |
| entity.name.type.message.proto, entity.name.type.enum.proto, support.class.proto, entity.name.package.proto | #FFCEE4 | — |
| variable.other.field.proto, variable.other.enummember.proto | #FFCEE4 | — |
| entity.name.function.service.proto, entity.name.function.rpc.proto | #FB90B7 | — |
| constant.numeric.proto, variable.other.option.proto, string.quoted.double.proto, string.quoted.single.proto, string.quoted.double.include.proto, string.quoted.single.include.proto | #FF3F85 | — |
| punctuation.definition.message.begin.proto, punctuation.definition.message.end.proto, punctuation.definition.enum.begin.proto, punctuation.definition.enum.end.proto, punctuation.definition.service.begin.proto, punctuation.definition.service.end.proto, punctuation.definition.rpc.begin.proto, punctuation.definition.rpc.end.proto, punctuation.terminator.proto, punctuation.separator.key-value.proto, keyword.operator.assignment.proto | #888888 | — |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF6B6B | 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}!`;
}