Solitude Color Theme
Publisher: 403 ForbiddenThemes in package: 2
the world is a lonely place...
the world is a lonely place...
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 |
|---|---|---|
| constant.character.escape, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #B465CA | — |
| meta.tag, entity.name.tag | #4CD9CD | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.separator.inheritance.php | #4CD9CD | — |
| punctuation, punctuation.separator.continuation, punctuation.terminator, punctuation.separator, punctuation.section.embedded | #4CD9CD | — |
| entity.other.attribute-name | #7A81EB | — |
| keyword, storage, variable.language, keyword.control.flow, storage.modifier, keyword.operator, entity.other.keyframe-offset, markup.heading, markup.underline.link, variable.other.env, punctuation.definition.list.begin.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.raw.markdown, constant.length.units.css, constant.percentage.units.css | #7A81EB | — |
| support | #B465CA | — |
| string, punctuation.definition.string.begin, punctuation.definition.string.end, markup.inserted, markup.raw, constant, source.env, support.type.builtin.graphql, variable.other.quoted.double, markup.inline.raw.string.markdown, meta.jsx.children, JSXNested | #75E695 | — |
| constant.numeric, keyword.other.unit, keyword.other | #B465CA | — |
| markup.changed, entity, entity.name.function, entity.name.function.elixir, entity.name.function-call.elixir, support.class.component.tsx, support.class.component.open.jsx, support.class.component.close.jsx, meta.function-call.generic.python, entity.name.section.markdown, storage.type.annotation.dart | #B465CA | — |
| invalid, markup.deleted | #D17584 | — |
| string.unquoted, meta.object-literal.key, meta.type.annotation, support.type.property-name.css, support.type.vendored, constant.language.symbol.elixir, variable.graphql, meta.attribute.python, source.dart | #CBECE9 | — |
| variable, variable.object.property, variable.other.property, variable.other.object.property, variable.other.constant.property, markup.list, support.constant.property-value.css, variable.parameter.keyframe-list.css, source.css, support.constant.font-name, support.constant.vendored.property-value, variable.parameter, meta.class, meta.method.declaration, parameter.variable.function.elixir, meta.embedded.expression, punctuation.terminator.dart, punctuation.dot.dart | #CBECE9 | — |
| comment, punctuation.definition.comment, string.quoted.docstring.multi.python | #FFFFFF4B | — |
| entity.name.function, support.function | #CCCF80 | — |
| entity.name.type, entity.name.class, support.class.builtin, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.quasi.element.begin, punctuation.quasi.element.end, entity.other.inherited-class, variable.other.constant.elixir, support.class.dart | #4CD9CD | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class | #75E695 | — |
| source.sass, entity.other.attribute-name.id.css, entity.other.attribute-name.id | #D17584 | — |
| *url*, *link*, *uri* | — | underline |
| meta.parameters, meta.type.parameters, meta.return.type, entity.name.type.interface, meta.type.annotation, meta.function.parameters, markup.italic.markdown | — | italic |
| markup.underline | — | underline |
| markup.bold.markdown, storage.type.annotation.dart | — | bold |
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}!`;
}