SMotaal's Frictionless Theme
Publisher: SMotaalThemes in package: 2
SMotaal's Frictionless Theme for Visual Studio Code
SMotaal's Frictionless 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 |
|---|---|---|
| entity, markup, variable, storage, support, meta.expression | #222 | — |
| entity, markup, variable, storage, support, meta.expression | #222 | — |
| entity, markup, variable, storage, support, meta.expression | #222 | — |
| punctuation.keyword, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, storage.type.function.arrow, keyword.operator.assignment, support.function.git-rebase | #09fd | — |
| punctuation.definition.block.tag, comment storage.type, constant.regexp, entity.name.section, meta.structure.dictionary.key.python | #36a | — |
| keyword, punctuation.definition.keyword, storage.modifier, keyword.control, storage.type, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, constant.language, variable.language, entity.name.tag, support.constant.property-value | #c00e | — |
| entity.name.selector, keyword.operator.combinator, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php, punctuation.support.type.property-name | #e90 | — |
| string.quoted, string.template, punctuation.definition.string.begin, punctuation.definition.string.end, markup.inline.raw, meta.structure.dictionary.value, meta.structure.dictionary, meta.structure.array, string.regexp keyword | #099 | — |
| keyword.operator, storage.type.function.arrow, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | — | — |
| constant.numeric | #0cc | — |
| entity, markup, variable, storage, source, support, meta.expression | — | — |
| entity.name.variable, keyword.other.unit, constant.other, constant.other punctuation.definition | #789 | — |
| keyword.operator, punctuation | #3c3 | — |
| comment storage, comment punctuation.definition | #669c | — |
| constant.sha.git-rebase | #ec4 | — |
| meta.brace, punctuation.section, punctuation.definition, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.array.begin, punctuation.definition.array.end, punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end, punctuation.definition.function.body.begin, punctuation.definition.function.body.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #c93e | — |
| entity, markup, variable, storage, support, meta.expression | #222 | — |
| punctuation.keyword, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, storage.type.function.arrow, keyword.operator.assignment, support.function.git-rebase | #09fd | — |
| punctuation.definition.block.tag, comment storage.type, constant.regexp, entity.name.section, meta.structure.dictionary.key.python | #36a | — |
| keyword, punctuation.definition.keyword, storage.modifier, keyword.control, storage.type, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, constant.language, variable.language, entity.name.tag, support.constant.property-value | #c00e | — |
| entity.name.selector, keyword.operator.combinator, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php, punctuation.support.type.property-name | #e90 | — |
| string.quoted, string.template, punctuation.definition.string.begin, punctuation.definition.string.end, markup.inline.raw, meta.structure.dictionary.value, meta.structure.dictionary, meta.structure.array, string.regexp keyword | #099 | — |
| keyword.operator, storage.type.function.arrow, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | — | — |
| constant.numeric | #0cc | — |
| entity, markup, variable, storage, source, support, meta.expression | — | — |
| entity.name.variable, keyword.other.unit, constant.other, constant.other punctuation.definition | #789 | — |
| keyword.operator, punctuation | #3c3 | — |
| comment storage, comment punctuation.definition | #669c | — |
| constant.sha.git-rebase | #ec4 | — |
| meta.brace, punctuation.section, punctuation.definition, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.array.begin, punctuation.definition.array.end, punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end, punctuation.definition.function.body.begin, punctuation.definition.function.body.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #c93e | — |
| comment, punctuation.definition.comment | #999e | — |
| invalid | #d55 | — |
| markup.inserted | #7c1 | — |
| markup.deleted | #e22 | — |
| markup.changed | #36a | — |
| token.info-token | #36f | — |
| token.warn-token | #c93 | — |
| token.error-token | #c33 | — |
| token.debug-token | #c0c | — |
| entity, markup, variable, storage, support, meta.expression | #222 | — |
| punctuation.keyword, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, storage.type.function.arrow, keyword.operator.assignment, support.function.git-rebase | #09fd | — |
| punctuation.definition.block.tag, comment storage.type, constant.regexp, entity.name.section, meta.structure.dictionary.key.python | #36a | — |
| keyword, punctuation.definition.keyword, storage.modifier, keyword.control, storage.type, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, constant.language, variable.language, entity.name.tag, support.constant.property-value | #c00e | — |
| entity.name.selector, keyword.operator.combinator, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php, punctuation.support.type.property-name | #e90 | — |
| string.quoted, string.template, punctuation.definition.string.begin, punctuation.definition.string.end, markup.inline.raw, meta.structure.dictionary.value, meta.structure.dictionary, meta.structure.array, string.regexp keyword | #099 | — |
| keyword.operator, storage.type.function.arrow, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | — | — |
| constant.numeric | #0cc | — |
| entity, markup, variable, storage, source, support, meta.expression | — | — |
| entity.name.variable, keyword.other.unit, constant.other, constant.other punctuation.definition | #789 | — |
| keyword.operator, punctuation | #3c3 | — |
| comment storage, comment punctuation.definition | #669c | — |
| constant.sha.git-rebase | #ec4 | — |
| meta.brace, punctuation.section, punctuation.definition, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.array.begin, punctuation.definition.array.end, punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end, punctuation.definition.function.body.begin, punctuation.definition.function.body.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #c93e | — |
| comment, punctuation.definition.comment | #999e | — |
| invalid | #d55 | — |
| markup.inserted | #7c1 | — |
| markup.deleted | #e22 | — |
| markup.changed | #36a | — |
| token.info-token | #36f | — |
| token.warn-token | #c93 | — |
| token.error-token | #c33 | — |
| token.debug-token | #c0c | — |
| markup.bold, markup.heading, meta.diff.header | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.inserted, markup.deleted, markup.inline.raw, markup.changed | — | — |
| entity.name.tag | — | — |
| entity, markup, variable, storage, support, meta.expression | #222 | — |
| punctuation.keyword, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp, storage.type.function.arrow, keyword.operator.assignment, support.function.git-rebase | #09fd | — |
| punctuation.definition.block.tag, comment storage.type, constant.regexp, entity.name.section, meta.structure.dictionary.key.python | #36a | — |
| keyword, punctuation.definition.keyword, storage.modifier, keyword.control, storage.type, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, constant.language, variable.language, entity.name.tag, support.constant.property-value | #c00e | — |
| entity.name.selector, keyword.operator.combinator, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php, punctuation.support.type.property-name | #e90 | — |
| string.quoted, string.template, punctuation.definition.string.begin, punctuation.definition.string.end, markup.inline.raw, meta.structure.dictionary.value, meta.structure.dictionary, meta.structure.array, string.regexp keyword | #099 | — |
| keyword.operator, storage.type.function.arrow, string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | — | — |
| constant.numeric | #0cc | — |
| entity, markup, variable, storage, source, support, meta.expression | — | — |
| entity.name.variable, keyword.other.unit, constant.other, constant.other punctuation.definition | #789 | — |
| keyword.operator, punctuation | #3c3 | — |
| comment storage, comment punctuation.definition | #669c | — |
| constant.sha.git-rebase | #ec4 | — |
| meta.brace, punctuation.section, punctuation.definition, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.array.begin, punctuation.definition.array.end, punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end, punctuation.definition.function.body.begin, punctuation.definition.function.body.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #c93e | — |
| comment, punctuation.definition.comment | #999e | — |
| invalid | #d55 | — |
| markup.inserted | #7c1 | — |
| markup.deleted | #e22 | — |
| markup.changed | #36a | — |
| token.info-token | #36f | — |
| token.warn-token | #c93 | — |
| token.error-token | #c33 | — |
| token.debug-token | #c0c | — |
| markup.bold, markup.heading, meta.diff.header | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.inserted, markup.deleted, markup.inline.raw, markup.changed | — | — |
| entity.name.tag | — | — |
| meta.selector | #c00 | — |
| meta.preprocessor | #36a | — |
| meta.preprocessor.string | #a30616 | — |
| meta.preprocessor.numeric | #099 | — |
| meta.structure.dictionary.key.python | #36a | — |
| meta.diff.header | #509606 | — |
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}!`;
}