Ansi16 Theme Collection
Publisher: chtenbThemes in package: 3
A collection of light & dark themes that comply with the Ansi16 standard
A collection of light & dark themes that comply with the Ansi16 standard
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 |
|---|---|---|
| — | #ddeeee | — |
| invalid, invalid.illegal | #ff5370 | — |
| invalid.deprecated | #f78c6c | — |
| *url*, *link*, *uri* | — | underline |
| storage.modifier.pointer, storage.modifier.reference | #b2e4e6 | — |
| punctuation.separator.pointer-access | #b2e4e6 | — |
| 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 | #89ddff | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #f78c6c | — |
| source.css variable | #f2f3ec | — |
| source.css support.type.property-name | #dceaea | — |
| comment, punctuation.definition.comment, string.quoted.docstring | #676e95 | italic |
| keyword.type, entity.name.tag, meta.tag.sgml, entity.name.type.struct, support.type, support.class, support.type.sys-types, support.type.built-in | #f07178 | — |
| string, constant.other.symbol | #c3e88d | — |
| entity.name, entity.other.attribute-name | #ffcb6b | — |
| entity.name.function, variable.function | #82aaff | — |
| keyword, storage | #c792ea | bold |
| support, keyword.other.special-method, variable.language, string.regexp, constant.character.escape, support.other.variable | #89ddff | — |
| source, text, variable, entity.name.variable, entity.name.namespace, constant.other.placeholder | #dceaea | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit | #ff5370 | — |
| string.other.link | #87de97 | — |
| entity.name.type.parameter, entity.name.type.type-parameter, variable.other.generic-type | #f78c6c | — |
| keyword.operator, support.function | #b2e4e6 | — |
| keyword.other | #c792ea | — |
| punctuation.definition.tag, punctuation.definition, punctuation, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, meta.separator | #b2e4e6 | — |
| entity.name.variable.field, entity.name.variable.property, variable.other.property, variable.other.field | #f2f3ec | — |
| markup.inserted | #c3e88d | — |
| markup.deleted | #f07178 | — |
| markup.changed | #ffcb6b | — |
| markup.deleted.git_gutter | #f07178 | — |
| markup.inserted.git_gutter | #c3e88d | — |
| markup.changed.git_gutter | #ffcb6b | — |
| markup.untracked.git_gutter | #ff5370 | — |
| markup.ignored.git_gutter | #676e95 | — |
| constant.other.haskell | #f07178 | — |
| storage.type.haskell | #ffcb6b | |
| source.js storage, source.js keyword.declaration | #ffcb6b | — |
| constant.other.key meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #c3e88d | |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #89ddff | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #89ddff | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ffcb6b | — |
| 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 | #f78c6c | — |
| 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 | #c3e88d | — |
| 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 | #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 support.type.property-name.json | #89ddff | — |
| 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 | #c792ea | — |
| 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 | #dceaea | — |
| 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 | #f2f3ec | — |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.italic | #c792ea | italic |
| markup.underline | #c3e88d | underline |
| markup.strike | #676e95 | strike |
| 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 | #ff5370 | bold |
| markdown.heading, markup.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, markup.heading.setext | #f07178 | bold |
| constant.other.reference.link.markdown, string.other.link.title.markdown | #ffcb6b | — |
| markup.raw, markup.fenced_code, markup.inline.raw | #82aaff | — |
| string.other.link.description.title.markdown | #c792ea | — |
| markup.table | #89ddff | — |
| markup.quote | #89ddff | italic |
| text.html.markdown, punctuation.definition.list_item.markdown | #dceaea | — |
| variable.language.fenced.markdown | #f2f3ec | — |
| source.purescript entity.name.type | #ffcb6b | — |
| source.purescript entity.name.class | #f78c6c | — |
| storage.type.string.python | #b2e4e6 | — |
| source.rust entity.name.type.lifetime, source.rust punctuation.definition.lifetime | #f78c6c | — |
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}!`;
}