Gentle Theme
Publisher: carlossalgueroThemes in package: 6
Colorblind-safe, accessible theme family with 6 variants. Designed for extended coding, sensitive eyes, and neurodivergent users. WCAG AA compliant.
Colorblind-safe, accessible theme family with 6 variants. Designed for extended coding, sensitive eyes, and neurodivergent users. WCAG AA compliant.
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 | #6B7A87 | italic |
| string, string.quoted, string.template | #5FB49C | — |
| constant.character.escape, string.regexp | #70D8DC | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #E8A854 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #E8A854 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type, storage.modifier | #B794D4 | — |
| keyword.control.conditional, keyword.control.loop, keyword.control.flow, keyword.control.return, keyword.control.trycatch | #B794D4 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison | #A1A8B3 | — |
| entity.name.function, meta.function-call, support.function | #6AAFE6 | — |
| variable.parameter, meta.parameter | #A1A8B3 | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.name.type.class | #56C4C8 | — |
| entity.name.type.interface, entity.name.type.alias | #56C4C8 | — |
| entity.name.type.parameter | #70D8DC | — |
| variable, variable.other, variable.other.readwrite | #D8DCE2 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #B8BCC4 | — |
| variable.other.constant | #E8A854 | — |
| entity.name.tag, punctuation.definition.tag | #E8835A | — |
| entity.other.attribute-name | #E8A854 | — |
| support.class.component | #56C4C8 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #E8A854 | — |
| support.type.property-name.css | #6AAFE6 | — |
| support.constant.property-value.css, meta.property-value.css | #5FB49C | — |
| keyword.other.unit.css | #E8A854 | — |
| support.type.property-name.json | #6AAFE6 | — |
| string.quoted.double.json | #5FB49C | — |
| heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown, markup.heading | #6AAFE6 | bold |
| markup.bold | #D8DCE2 | bold |
| markup.italic | #D8DCE2 | italic |
| markup.underline.link | #56C4C8 | — |
| markup.inline.raw, markup.fenced_code.block | #E8A854 | — |
| markup.quote | #6B7A87 | italic |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #71717A | — |
| support.variable, support.constant | #56C4C8 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #B794D4 | — |
| entity.name.import, entity.name.package | #5FB49C | — |
| meta.decorator, punctuation.decorator | #E8A854 | — |
| invalid, invalid.illegal | #E8835A | underline |
| invalid.deprecated | #E8A854 | strikethrough |
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}!`;
}