Sanity Stroll
Publisher: OtherForestThemes in package: 1
Take a stroll
Take a stroll
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 |
|---|---|---|
| string, string.quoted.single, string.quoted.double, string.template | #61AFFE | — |
| source.python | #bdc5ce | — |
| string.quoted.double.json, string.quoted.single.json, meta.structure.dictionary.value.json, meta.structure.array.value.json | #6F8EBC | — |
| comment, punctuation.definition.comment | #546E7A | italic |
| variable.other.python, meta.function-call.arguments.python, meta.mapping.key.python | #6F8EBC | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #6f8ebc | — |
| keyword, storage.type, storage.modifier | #C792EA | — |
| keyword.control, constant.other.color, punctuation, 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 | #89DDFF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #6f8ebc | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #82AAFF | — |
| meta.block variable.other | #6f8ebc | — |
| support.other.variable, string.other.link | #6f8ebc | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #6f8ebc | — |
| 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 | #61AFFE | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #61AFFE | — |
| support.type | #B2CCD6 | — |
| 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.module.js, variable.import.parameter.js, variable.other.class.js | #6f8ebc | — |
| variable.language | #6f8ebc | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #61AFFE | italic |
| entity.other.attribute-name.class | #61AFFE | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #61AFFE | — |
| markup.deleted | #6f8ebc | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #6f8ebc | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #6f8ebc | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #61AFFE | — |
| 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 | #6f8ebc | — |
| 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 | #6f8ebc | — |
| 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 | #6f8ebc | — |
| 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 | #82AAFF | — |
| 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 | #61AFFE | — |
| 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 | #61AFFE | — |
| 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 | #61AFFE | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #61AFFE | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #61AFFE | — |
| markup.italic | #61AFFE | italic |
| markup.bold, markup.bold string | #61AFFE | 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 | #61AFFE | bold |
| markup.underline | #61AFFE | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #61AFFE | — |
| constant.other.reference.link.markdown | #61AFFE | — |
| markup.raw.block | #61AFFE | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
| comment.line, punctuation.definition.comment | #7A8A9A | — |
| string.quoted.docstring.multi.python, string.quoted.docstring.python | #3f549ecb | — |
| string.quoted.single | #6f8ebc | — |
| string.quoted.double | #a0c3aa | — |
| string.interpolated | #6f8ebc | — |
| source.sql, meta.embedded.sql, meta.embedded.block.sql, string.quoted.double.sql, string.quoted.single.sql | #a0c3aa | — |
| string.quoted.double.block, string.quoted.single.block, string.quoted.docstring.multi.python | #364F96 | — |
| keyword.control.import.python | #9ed5ff | — |
| punctuation, punctuation.definition.block, punctuation.definition.arguments, punctuation.section.block.begin, punctuation.section.block.end, punctuation.section.parameters.begin, punctuation.section.parameters.end, punctuation.separator.dictionary.key-value, punctuation.definition.array.begin.json, punctuation.definition.array.end.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.dict.begin.python, punctuation.definition.dict.end.python, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, meta.function-call.python, meta.member.access.python, punctuation.section.brackets.begin, punctuation.section.brackets.end, punctuation.section.block.begin, punctuation.section.block.end, punctuation.section.parens.begin, punctuation.section.parens.end, meta.brace.curly, meta.brace.round, meta.brace.square, punctuation.support.type.property-name.end.json.comments, string.json.comments, constant.numeric.dec.python, constant.numeric, variable.parameter, variable.other.python | #61AFFE | — |
| gutter | #4C738C | — |
| editor.findMatch, editor.findMatchHighlight | #D8DEE9 | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, meta.structure.dictionary.json, meta.structure.array.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #61AFFE | — |
| string.quoted.multi.python | #d0d9e3 | — |
| meta.function.python, keyword.operator.assignment.python, keyword.operator.arithmetic.python | #61AFFE | — |
| meta.function.parameters.python, meta.function.python, keyword.operator.comparison.python | #BDC5CE | — |
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}!`;
}