Omakase
Publisher: byluisferThemes in package: 1
A curated VS Code theme collection. Trust the chef.
A curated VS Code theme collection. Trust the chef.
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 | #4E6070 | italic |
| variable, variable.other, variable.other.readwrite, variable.other.readwrite.ts, variable.other.readwrite.tsx, meta.block variable.other, support.other.variable, string constant.other.placeholder | #85AADF | — |
| variable.other.object, variable.other.object.ts, variable.other.object.tsx | #85AADF | — |
| variable.other.property, variable.other.property.ts, variable.other.property.tsx, variable.other.object.property, variable.other.object.property.ts, variable.other.object.property.tsx, support.variable.property, meta.property-access variable, meta.property-access entity.name, entity.name.property | #50B0C4 | — |
| variable.language | #85AADF | italic |
| variable.parameter, variable.parameter.function, meta.function.parameters variable.other, meta.parameters variable.parameter | #85AADF | — |
| storage.type, storage.modifier, storage.type.ts, keyword.type, keyword.type.ts, keyword.type.tsx | #A28CF4 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #A28CF4 | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.trycatch, keyword.control.switch | #50B0C4 | — |
| keyword | #A28CF4 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.spread, keyword.operator.rest | #607A90 | — |
| keyword.operator.type, keyword.operator.type.annotation, keyword.operator.optional, keyword.operator.nullable | #5A7A90 | — |
| punctuation.section.embedded | #607A90 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #7FE7D0 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method | #6DAAFF | — |
| entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.function.member | #6DAAFF | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, meta.decorator, meta.decorator punctuation.decorator, entity.name.function.decorator, punctuation.decorator | #4EC9E4 | italic |
| entity.name.class, entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, entity.name.type.ts, entity.name.type.tsx, entity.other.inherited-class | #4EC9E4 | — |
| support.class, support.type, support.type.primitive.ts, support.type.builtin.ts, support.type.builtin, support.type.object.module, support.type.sys-types | #4EC9E4 | — |
| meta.type.annotation, meta.type.parameters, meta.type.declaration, support.other.namespace.use.php, meta.use.php, support.other.namespace.php | #4EC9E4 | — |
| entity.name, markup.changed.git_gutter | #4EC9E4 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #4EC9E4 | — |
| string, constant.other.symbol, constant.other.key, string.other.link, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #7FE7D0 | — |
| string.regexp | #7FE7D0 | — |
| constant.character.escape | #7FE7D0 | — |
| constant.numeric | #9D8FD8 | — |
| constant.language.boolean, constant.language, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity | #9D8FD8 | — |
| support.constant | #9D8FD8 | — |
| constant.character, constant.escape | #9D8FD8 | — |
| keyword.other.unit | #7FE7D0 | — |
| source.css constant.numeric, source.scss constant.numeric, source.sass constant.numeric, source.less constant.numeric, meta.property-value.css constant.numeric, meta.property-value.scss constant.numeric | #7FE7D0 | — |
| constant.other.color | #85AADF | — |
| keyword.other | #A28CF4 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #6DAEFF | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, meta.jsx.prop.name, meta.tsx.prop.name | #6AAAE0 | — |
| support.class.component, support.class.component.js, support.class.component.tsx | #4EC9E4 | — |
| 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, meta.property-name.css | #C0CFDC | — |
| meta.property-value.css, meta.property-value.scss | #85AADF | — |
| variable.parameter.keyframe-list.css, variable.parameter.url.scss | #7FE7D0 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.id, variable.parameter.misc.css | #6DAEFF | — |
| source.css.scss entity.name.tag, entity.name.tag.reference.scss, entity.name.tag.nesting.css | #4EC9E4 | — |
| keyword.control.at-rule, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, source.sass keyword.control | #A28CF4 | — |
| entity.other.attribute-name, meta.property-list.scss, meta.attribute-selector.scss, entity.other.keyframe-offset.css, meta.selector.css, punctuation.separator.key-value.css | #7A9AAE | — |
| variable.scss, variable.sass | #85AADF | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #6DAAFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #4EC9E4 | — |
| 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 | #50B0C4 | — |
| 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 | #7FE7D0 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #849DB0 | — |
| markup.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, markup.inserted.git_gutter | #6DAAFF | — |
| markup.italic | #849DB0 | italic |
| markup.bold, markup.bold string | #A8BFCF | 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 | #A8BFCF | bold italic |
| markup.underline | #6DAEFF | underline |
| markup.quote punctuation.definition.blockquote.markdown | #4E6070 | — |
| markup.quote | — | — |
| text.html.markdown markup.inline.raw.markdown | #4EC9E4 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #4E6070 | — |
| string.other.link.title.markdown | #6DAAFF | — |
| string.other.link.description.title.markdown | #50B0C4 | — |
| constant.other.reference.link.markdown | #7FE7D0 | — |
| markup.raw.block | #50B0C4 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.definition.fenced.markdown, punctuation.section.class.end | #4E6070 | — |
| variable.language.fenced.markdown | #50B0C4 | — |
| meta.separator | #4E6070 | bold |
| markup.table | #849DB0 | — |
| markup.inserted | #7FE7D0 | — |
| markup.deleted | #A05870 | — |
| markup.changed | #9D8FD8 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #50B0C4 | italic |
| invalid, invalid.illegal | #E06C75 | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #7B8FA0 | — |
| punctuation.curlybrace.open, punctuation.curlybrace.close, punctuation.parenthesis.open, punctuation.parenthesis.close, punctuation.squarebracket.open, punctuation.squarebracket.close, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.definition.block.begin, punctuation.definition.block.end, punctuation.section.block.begin, punctuation.section.block.end, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.array.begin, punctuation.definition.array.end, punctuation.section.array.begin, punctuation.section.array.end, punctuation.section.function.begin.bracket.round, punctuation.section.function.end.bracket.round, punctuation.section.property-list.begin.bracket.curly.css, punctuation.section.property-list.end.bracket.curly.css, punctuation.section.property-list.begin.bracket.curly.scss, punctuation.section.property-list.end.bracket.curly.scss | #7B8FA0 | — |
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}!`;
}