P90
Publisher: Kelci MensahThemes in package: 1
a minimalistic dark retro color theme for visual studio code
a minimalistic dark retro color theme for visual studio code
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 |
|---|---|---|
| token.warn-token, token.error-token, variable, string constant.other.placeholder, invalid.deprecated, keyword, storage.type, storage.modifier, constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, entity.name, support.type, support.class, markup.changed.git_gutter, support.type.sys-types, entity.other.attribute-name, support.function, markup.inserted, markup.changed, text.html.markdown markup.inline.raw.markdown, meta.function-call.generic.python, variable.parameter.js, constant.other.object.key.js, string.unquoted.label.js, variable.parameter.keyframe-list.css, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss, source.scss keyword.control, constant.other.php, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, punctuation.separator.key-value.html, string.other.link.description.title.markdown, constant.other.reference.link.markdown, markup.raw.block, punctuation.definition.italic.markdown, markup.italic.markdown, punctuation.definition.bold.markdown, markup.bold.markdown, punctuation.definition.entity.tsx | #DA4E3F | — |
| constant.other.color, invalid, invalid.illegal, variable.parameter.function.language.special, variable.parameter, markup.deleted, entity.name.module.js, variable.import.parameter.js, variable.other.class.js, constant.numeric.dec.python, punctuation.definition.decorator.python, entity.name.function.decorator.python, meta.function.decorator.python, text.html.derivative | #FFFFFF | — |
| Keyword, Storage, source.js constant.other.object.key.js string.unquoted.label.js, markup.quote, markup.italic.markdown | — | italic |
| keyword.control | — | bold |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, meta.separator, punctuation.definition.tag.html, punctuation.separator.inheritance.php, entity.name.tag.reference.scss, constant.other.color.rgb-value.hex.css, punctuation.definition.constant.css, punctuation.support.type.property-name.begin.json, support.type.property-name.json, string.json | #A7A8AF | — |
| comment.line.number-sign.ignore, comment.block.css, punctuation.definition.comment.begin.css, punctuation.definition.comment.end.css, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js, entity.name.tag.tsx, comment.line.double-slash.tsx, punctuation.definition.comment.tsx, punctuation.definition.comment.json, comment.line.double-slash.js, comment.block.json.comments | #565656 | — |
| keyword.control.at-rule, keyword.control.operator, entity.name.function, editorBracketHighlight, string.regexp, constant.character.escape, token.debug-token, punctuation.terminator.rule.css, entity.name.tag.css, punctuation.definition.keyword.css, support.constant.media.css, meta.at-rule.media.header.css, keyword.control.at-rule.media.css, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.binding-pattern.object.js, meta.class-method.js entity.name.function.js, variable.other.object.js, entity.other.attribute-name.html, variable.other.readwrite.tsx, meta.embedded.expression.tsx, constant.numeric.decimal.tsx, punctuation.definition.raw.markdown, punctuation.definition.markdown, markup.underline.link.markdown | #FEC32B | — |
| punctuation.definition, entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, support.other.variable, string.other.link, markup.table, entity.other.attribute-name.id, meta.object-literal.key, text.html.markdown, punctuation.definition.list_item.markdown, keyword.control.conditional.js, support.constant, string.quoted.single.js, string.quoted.double.js, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, source.js constant.other.object.key.js string.unquoted.label.js, string.quoted.single.scss, keyword.operator.assignment.tsx, keyword.operator.relational.tsx | #E2E2E2 | — |
| comment.line.scss, punctuation.definition.comment.scss, comment.line.double-slash.js, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html, comment.line.double-slash.ts, punctuation.definition.comment.ts | #6D6F7C | — |
| 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, entity.name.tag.html, meta.import.tsx, variable.other.readwrite.alias.tsx, variable.other.constant.tsx, meta.definition.variable.tsx, meta.array-binding-pattern-variable.tsx, meta.var.expr.tsx, storage.type.js, source.python, entity.other.attribute-name.tsx | #5375A5 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.class, variable.parameter.tsx, variable.other.object.tsx, punctuation.definition.entity.css, entity.other.attribute-name.id.css, storage.type.function.js | #00B0E7 | — |
| punctuation.definition.string.begin.python, punctuation.definition.string.end.python, string.quoted.single.python, string.quoted.docstring.single.python, punctuation.definition.string.begin.tsx, punctuation.definition.string.end.tsx, string.quoted.double.tsx, string.quoted.single.tsx, string.quoted.double.ts, string.quoted.single.ts, punctuation.definition.string.begin.ts, punctuation.definition.string.end.ts, string.other.link.title.markdown, punctuation.definition.string.begin.python, variable.other.readwrite.js, entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, meta.object-literal.key.js, string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, string.quoted.single.css, string.quoted.double.css, punctuation.definition.string.begin.css, punctuation.definition.string.end.css | #6C9C87 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | — | italic |
| string, variable.function, entity.name.function, entity.name.tag.other.html, entity.name.tag.block.any.html, variable.other.constant.js, variable.other.object.property.js, punctuation.definition.string.begin.json, punctuation.definition.string.end.json, string.quoted.double.json, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, keyword.other.special-method, markup.bold, variable.function.constructor, source.sass keyword.control, punctuation.definition.string.begin.py, punctuation.definition.string.end.py | #3A7359 | — |
| support.type, variable.argument.css | #B2CCD6 | — |
| constant.other.caps.python | #0057E7 | — |
| keyword.control.import.python | #C5C5C5 | — |
| comment.line.number-sign.python, punctuation.definition.comment.python, string.template.js | #777777 | — |
| meta.function-call.arguments.python, meta.function-call.python, meta.member.access.python | #E9CF9C | — |
| *url*, *link*, *uri*, markup.underline | — | underline |
| text.html.markdown markup.inline.raw.markdown, markup.quote punctuation.definition.blockquote.markdown | #30604A50 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #345D98 | bold |
| variable.language.fenced.markdown, token.info-token | #30604A | — |
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}!`;
}