concept
Publisher: peterekepeterThemes in package: 1
WIP Theme, may have substantial changes until stable
WIP Theme, may have substantial changes until stable
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 | #676 | — |
| variable, string constant.other.placeholder, meta.function-call.arguments, variable.parameter.function-call | #AEF | — |
| constant.other.color, keyword.operator, meta.tag, 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 | #0F9 | — |
| invalid, invalid.illegal, entity.name.module.js, variable.import.parameter.js, variable.other.class.js, variable.language, markup.deleted, source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | — |
| keyword, storage.type, storage.modifier, keyword.control, punctuation.separator.key-value.ini | #A7A | — |
| string.quoted punctuation.definition.string | #7B5 | — |
| keyword.other.definition.ini, meta.attribute, source.json meta.structure.dictionary.json support.type.property-name.json | #FEA | — |
| source.ini, string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #4A6 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter, meta.block variable.other, support.other.variable, string.other.link | #F07178 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #8AF | — |
| constant | #F96 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other | #F44 | — |
| variable.parameter | #CDF | — |
| entity.name, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #F84 | — |
| support.type, 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 | #B2CCD6 | — |
| entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor, source.sass keyword.control, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, string.other.link.title.markdown | #82AAFF | — |
| entity.other.attribute-name, markup.changed, text.html.markdown markup.inline.raw.markdown, string.other.link.description.title.markdown, markup.raw.block | #C792EA | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, entity.other.attribute-name.class, constant.other.reference.link.markdown | #FFCB6B | — |
| markup.inserted, markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| string.regexp, constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | #CCC | underline |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #888 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFF | — |
| text.html.markdown, punctuation.definition.list_item.markdown, markup.raw.block.fenced.markdown, punctuation.section.class.end, markup.table | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown, markup.quote punctuation.definition.blockquote.markdown, variable.language.fenced.markdown, meta.separator | #65737E | — |
| markup.italic | #F07178 | italic |
| markup.bold, markup.bold string, 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 | #F07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote | #CCC | italic |
| punctuation.definition.fenced.markdown | #00000050 | — |
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}!`;
}