Mr Pink
Publisher: juanmnlThemes in package: 1
I wanna find out who the bad guy is.
I wanna find out who the bad guy is.
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 | #525863 | italic |
| string.template meta.embedded.line | ##F6F8F7 | — |
| variable.parameter, variable.other, constant.language | #B4C1D0 | italic |
| storage.type, storage.modifier | #D58FDB | italic |
| string.regexp | #B4C1D0 | — |
| meta.jsx.children.js, meta.property-value.css, text.html.derivative, constant.length.units.css, support.function.misc.css, support.function.transform.css, meta.function.color.css, constant.other.color.rgb-value.hex.css, meta.identifier.css | #F6F8F7 | — |
| constant.language | #B4C1D0 | — |
| constant.character.escape | #FFFFFF | — |
| entity.name | #A8C3C8 | — |
| punctuation.definition.tag, punctuation.definition.block.js, punctuation.definition.string.begin, punctuation.definition.string.end, meta.property-list.css, storage.type.function.arrow.js | #D58FDB | — |
| entity.other.attribute-name | #D58FDB | italic |
| entity.name.function, variable.function, meta.export.default.js | #fff | — |
| keyword | #D167B5 | italic |
| keyword.control | #D58FDB | italic |
| keyword.operator | #D58FDB | normal |
| keyword.other.unit | #B4C1D0 | — |
| support | #B4C1D0 | — |
| support.function | #F6F8F7 | — |
| support.variable | #FFFFFF | — |
| meta.object-literal.key, support.type.property-name | #D58FDB | — |
| variable.other.property.js | #B4C1D0 | italic |
| variable.other.object.js | #F6F8F7 | — |
| meta.brace.square, meta.brace.round, punctuation.definition.block | #A8C3C8 | — |
| punctuation.separator.key-value | #ffffff | — |
| punctuation.section.embedded | #ffffff | — |
| punctuation.section.embedded | #FFFFFF | — |
| string.template | #D58FDB | — |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name | #D58FDB | — |
| support.constant.font-name | #B4C1D0 | — |
| entity.other.attribute-name.id | #D167B5 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #F6F8F7 | — |
| markup.heading, entity.name.section | #B4C1D0 | — |
| markup.quote | #D167B5 | — |
| beginning.punctuation.definition.list | #B4C1D0 | — |
| markup.underline.link | #F6F8F7 | — |
| string.other.link.description | #B4C1D0 | — |
| entity.name.tag.yaml, punctuation.definition.block.sequence.item.yaml | #D167B5 | — |
| meta.function-call.generic.python | #F6F8F7 | — |
| storage.type.cs | #D167B5 | — |
| entity.name.variable.local.cs | #B4C1D0 | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #B4C1D0 | — |
| source.cpp keyword.operator | #D167B5 | — |
| punctuation.definition.heading.markdown | #D167B5 | — |
| punctuation.definition.list | #D167B5 | — |
| punctuation.definition.bold.markdown | #D58FDB7a | — |
| punctuation.definition.italic.markdown | #ffffff7e | — |
| markup.bold.markdown, entity.name.section.markdown | — | bold |
| markup.italic.markdown | — | italic |
| entity.name.type, entity.name.type.alias, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.module, support.type, support.type.builtin, support.type.primitive | #A8C3C8 | — |
| storage.type.interface, storage.type.type, storage.type.enum, storage.type.class, storage.type.namespace | #D58FDB | italic |
| keyword.operator.type, keyword.operator.type.annotation, keyword.operator.optional, keyword.operator.definiteassignment | #D58FDB | — |
| punctuation.definition.typeparameters, meta.type.parameters, entity.name.type.parameter | #FAD481 | — |
| meta.type.annotation, meta.return.type | #A8C3C8 | — |
| storage.modifier.async, storage.modifier.ts, keyword.control.as, keyword.control.satisfies | #D58FDB | italic |
| storage.type.function.arrow.ts, storage.type.function.arrow.tsx, storage.type.function.arrow.js, storage.type.function.arrow.jsx | #D58FDB | — |
| variable.other.property.ts, variable.other.property.tsx, variable.other.object.ts, variable.other.object.tsx | #B4C1D0 | — |
| meta.decorator, punctuation.decorator | #FAD481 | — |
| entity.name.tag.js, entity.name.tag.jsx, entity.name.tag.tsx, support.class.component, support.class.component.jsx, support.class.component.tsx | #D167B5 | — |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.js.jsx, entity.other.attribute-name.ts.tsx | #D58FDB | italic |
| meta.jsx.children, meta.jsx.children.tsx | #F6F8F7 | — |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, meta.embedded.expression | #D58FDB | — |
| string.quoted.double.jsx, string.quoted.single.jsx, string.quoted.double.tsx, string.quoted.single.tsx | #B4C1D0 | — |
| entity.name.type.rust, entity.name.type.struct.rust, entity.name.type.enum.rust, entity.name.type.trait.rust, entity.name.type.union.rust, entity.name.type.option.rust, entity.name.type.result.rust | #A8C3C8 | — |
| storage.type.rust, storage.type.struct.rust, storage.type.enum.rust, storage.type.trait.rust, storage.type.impl.rust, storage.type.union.rust, keyword.other.fn.rust | #D58FDB | italic |
| entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust, storage.modifier.lifetime.rust | #FAD481 | italic |
| entity.name.function.macro.rust, entity.name.macro.rust, support.macro.rust, meta.macro.rust | #8FC8FF | — |
| punctuation.definition.macro.rust | #8FC8FF | — |
| meta.attribute.rust, punctuation.definition.attribute.rust, punctuation.brackets.attribute.rust | #6B6D8C | — |
| meta.attribute.rust entity.name | #B4C1D0 | — |
| storage.modifier.mut.rust, keyword.other.unsafe.rust, keyword.other.ref.rust, storage.modifier.ref.rust | #D167B5 | italic |
| variable.language.self.rust, variable.language.super.rust | #D58FDB | italic |
| keyword.operator.borrow.rust, keyword.operator.dereference.rust, keyword.operator.sigil.rust | #D58FDB | — |
| punctuation.separator.namespace.rust | #D58FDB | — |
| keyword.operator.question.rust | #D167B5 | — |
| entity.name.module.rust, entity.name.type.mod.rust | #B4C1D0 | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #FAD481 | — |
| string.quoted.single, string.quoted.double, string.quoted.backtick | #B4C1D0 | — |
| support.type.property-name.json, string.json support.type.property-name | #D58FDB | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default | #D58FDB | italic |
| string.quoted.module-ref, meta.import string.quoted | #B4C1D0 | — |
| variable.other.constant, constant.other | #A8C3C8 | — |
| variable.language.this, variable.language.super | #D58FDB | italic |
| keyword.operator.new | #D167B5 | italic |
| keyword.operator.spread | #D58FDB | — |
| entity.name.package.go | #B4C1D0 | — |
| entity.name.type.go, storage.type.go | #A8C3C8 | — |
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}!`;
}