Accessible (AA) Theme
Publisher: phun-kyThemes in package: 2
WCAG AA-friendly syntax highlighting in dark and light variants.
WCAG AA-friendly syntax highlighting in dark and light variants.
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 | #99acb2 | italic |
| variable, string constant.other.placeholder | #469EDD | — |
| constant.other.color | #2CAAA0 | — |
| invalid, invalid.illegal | #FF6666 | bold |
| keyword, storage.type, storage.modifier, keyword.control, keyword.other, keyword.other.unit | #FFFFFF | — |
| storage.type.tsx, storage.type.ts, support.variable.property.ts, keyword.control.flow.ts | #95c1e2 | — |
| keyword.operator | #C79500 | — |
| punctuation, punctuation.separator, punctuation.terminator | #8C9B9B | — |
| punctuation.section.parens.begin, punctuation.section.parens.end | #C79500 | — |
| variable.other.constant.ts | #C79500 | — |
| support.class.component.tsx | #C79500 | — |
| entity.other.attribute-name.tsx | #E4e4e7 | — |
| punctuation.section.block.begin, punctuation.section.block.end | #469EDD | — |
| punctuation.section.brackets.begin, punctuation.section.brackets.end | #2CAAA0 | — |
| meta.tag, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.section.embedded | #8C9B9B | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #E4E4E7 | — |
| meta.jsx.children.tsx | #E4E4E7 | — |
| meta.object-literal.key.tsx | #95c1e2 | — |
| keyword.other.template, keyword.other.substitution | #469EDD | — |
| entity.name.tag, meta.tag.sgml | #8C9B9B | — |
| markup.deleted, markup.deleted.git_gutter | #FF6666 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #E4E4E7 | — |
| meta.block variable.other | #469EDD | — |
| support.other.variable, string.other.link | #2CAAA0 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, constant.language.boolean, constant.language.null | #C79500 | — |
| variable.parameter | #469EDD | — |
| string, constant.other.symbol, constant.other.key | #2CAAA0 | — |
| entity.other.inherited-class | #E4E4E7 | italic |
| markup.heading | #469EDD | — |
| entity.name, support.type, support.class, support.type.sys-types | #E4E4E7 | — |
| support.type, entity.name.type.ts | #C79500 | — |
| entity.name.type, entity.other.inherited-class.ts, entity.name.type.module.ts | #FF6666 | — |
| meta.property.object, variable.other.property, variable.other.object.property | #95c1e2 | — |
| 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 | #E4E4E7 | italic |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #E4E4E7 | — |
| variable.language | #469EDD | italic |
| meta.definition.function entity.name.function, meta.function entity.name.function, meta.function-call entity.name.function | #E4E4E7 | — |
| meta.method-call entity.name.function, meta.function-call.method entity.name.function, meta.property.member entity.name.function, meta.property.object entity.name.function, meta.property.function entity.name.function, entity.name.method | #469EDD | — |
| meta.property.member variable.other.property, meta.property.object variable.other.property, variable.other.object.property | #E4E4E7 | — |
| entity.other.attribute-name | #2CAAA0 | — |
| entity.other.attribute-name.html, entity.other.attribute-name | #469EDD | italic |
| string.quoted.double.html | #95c1e2 | — |
| entity.name.tag.html, entity.name.tag.tsx | #469EDD | — |
| entity.other.attribute-name.class | #2CAAA0 | — |
| entity.other.attribute-name.pseudo-element.css | #72c6c0 | — |
| source.sass keyword.control | #469EDD | — |
| markup.inserted | #2CAAA0 | — |
| markup.changed | #469EDD | — |
| string.regexp | #2CAAA0 | — |
| constant.character.escape | #2CAAA0 | — |
| *url*, *link*, *uri* | #2CAAA0 | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #E4E4E7 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #469EDD | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, 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, 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 | #469EDD | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #E4E4E7 | — |
| text.html.markdown markup.inline.raw.markdown | #469EDD | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #8C9B9B | — |
| markdown.heading, markup.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #469EDD | — |
| markup.italic | #E4E4E7 | italic |
| markup.bold, markup.bold string | #E4E4E7 | bold |
| markup.underline | #469EDD | underline |
| markup.quote punctuation.definition.blockquote.markdown | #8C9B9B | — |
| markup.quote | #E4E4E7 | italic |
| string.other.link.title.markdown | #2CAAA0 | — |
| string.other.link.description.title.markdown | #2CAAA0 | — |
| constant.other.reference.link.markdown | #469EDD | — |
| markup.raw.block, markup.raw.block.fenced.markdown, punctuation.definition.fenced.markdown | #8C9B9B | — |
| variable.language.fenced.markdown, punctuation.section.class.end | #E4E4E7 | — |
| meta.separator | #8C9B9B | bold |
| markup.table | #E4E4E7 | — |
| keyword.control | #469EDD | — |
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}!`;
}