Soothing Theme
Publisher: alirezaThemes in package: 1
a best combination of a few popular vscode themes with Soothing modifications
a best combination of a few popular vscode themes with Soothing modifications
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 | #424C55 | — |
| string | #C78FEB | — |
| constant.numeric | #C78FEB | — |
| constant.language | #EF746F | — |
| constant.character, constant.other | #EF746F | — |
| variable | — | |
| keyword | #3FB4C5 | — |
| storage | #EF746F | |
| storage.type | #B3CC57 | |
| entity.name.class | #EF746F | underline |
| entity.other.inherited-class | #EF746F | |
| entity.name.function | #FFBE40 | |
| variable.parameter | #F4F7FA | |
| entity.name.tag | #B3CC57 | |
| entity.other.attribute-name | #EF746F | |
| support.function | #F86F50 | |
| support.constant | #EF746F | |
| support.type, support.class | #EF746F | |
| support.other.variable | — | |
| invalid | #CF433E | |
| invalid.deprecated | #CF433E | — |
| meta.structure.dictionary.json string.quoted.double.json | #C78FEB | — |
| meta.diff, meta.diff.header | #424C55 | — |
| markup.deleted | #E61F44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #F7B83D | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #637280 | — |
| meta.property-value, support.constant.property-value, constant.other.color | #C78FEB | — |
| meta.structure.dictionary.json string.quoted.double.json | #EF746F | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #C78FEB | — |
| meta.property-value punctuation.separator.key-value | #C7D0D9 | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #B3CC57 | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #B3CC57 | — |
| variable.other | #F4F7FA | — |
| variable.parameter.function.coffee | #C78FEB | |
| entity.name.section.markdown | #EF746F | — |
| punctuation.definition.heading.markdown | #3FB4C5 | — |
| markup.raw.inline.markdown | #C78FEB | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #3FB4C5 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #3FB4C5 | — |
| punctuation.definition.metadata.markdown | #3FB4C5 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #B3CC57 | |
| markup.bold.markdown, markup.italic.markdown | #B3CC57 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #664E4D | — |
| markup.deleted.git_gutter | #E61F44 | — |
| markup.inserted.git_gutter | #A7DA1E | — |
| markup.changed.git_gutter | #F7B83D | — |
| meta.template.expression | #C7D0D9 | — |
| comment | #99999999 | — |
| punctuation.definition.comment | #99999999 | — |
| keyword.operator.new | #3CA4C4 | |
| keyword.other.new | #3CA4C4 | |
| keyword.other | #3CA4C4 | |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}