Erin's Theme
Publisher: eritbhThemes in package: 1
Erin's personal VS Code color theme
Erin's personal VS Code color theme
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 |
|---|---|---|
| meta.embedded | #efe8e4bb | |
| variable | #efe8e4 | — |
| invalid | #FF5370 | — |
| variable.language | #c48bf4 | italic |
| entity.name.function.macro | #c48bf4 | — |
| keyword, storage.type, storage.modifier | #aa8bf4 | |
| keyword.operator | #c48bf4 | italic |
| keyword.operator.arithmetic, keyword.operator.math, keyword.operator.bitwise, keyword.operator.assignment, keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.ternary, keyword.operator.namespace, keyword.operator.access, keyword.operator.key-value, keyword.operator.arrow, keyword.operator.optional, keyword.operator.type, meta.selector keyword.operator, punctuation.accessor, punctuation.semi | #efe8e4bb | |
| comment | #cbb7dcbb | italic |
| comment.line punctuation.definition.comment | — | |
| punctuation.separator | #efe8e4bb | — |
| punctuation.definition.parameters | #efe8e4 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method | #bac7f8 | — |
| support.other.variable, string.other.link | #f07178 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, constant.other, keyword.other.unit | #f4aa8b | — |
| string, constant.other.symbol, constant.other.key | #def48b | — |
| entity.name.type, entity.name.namespace, entity.other.inherited-class, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types | #f6a2dd | |
| support.type | #b5f8f0 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| constant.character.escape, punctuation.definition.template-expression, punctuation.section.embedded | #f6a2dd | — |
| *url*, *link*, *uri* | — | underline |
| comment.block.documentation | — | |
| comment.block.documentation storage.type | #aa8bf4bb | italic |
| comment.block.documentation entity.name.type | #f6a2ddbb | — |
| comment.block.documentation variable | #bac7f8bb | — |
| comment.block.documentation entity.name.type punctuation | #f6a2dd44 | — |
| comment.block.documentation variable punctuation, comment.block.documentation variable keyword.operator.assignment | #bac7f844 | — |
| markup.deleted | #bf6f33 | — |
| markup.inserted | #7bdc95 | — |
| markup.changed | #988fe1 | — |
| string.regexp | #83ebda | — |
| constant.other.character-class.regexp, constant.other.character-class.set.regexp | #f4aa8b | — |
| constant.character.escape.backslash.regexp | #f48bde | — |
| punctuation.definition.group | #def48b | — |
| punctuation.definition.group.no-capture.regexp | — | — |
| punctuation.definition.group.regexp variable.other | — | |
| string.regexp keyword.operator | #aa8bf4 | |
| entity.name.tag, meta.tag.sgml | #f6a2dd | — |
| entity.other.attribute-name | #bac7f8 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #efe8e488 | — |
| 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 | #efe8e4 | — |
| entity.other.attribute-name.class | #bac7f8 | — |
| entity.other.attribute-name.id | #def48b | — |
| meta.attribute-selector, meta.attribute-selector keyword.operator | #bac7f888 | — |
| source.js meta.import keyword.control.as, source.ts meta.import keyword.control.as, source.tsx meta.import keyword.control.as, source.js meta.import keyword.control.from, source.ts meta.import keyword.control.from, source.tsx meta.import keyword.control.from, source.js meta.import keyword.control.with, source.ts meta.import keyword.control.with, source.tsx meta.import keyword.control.with, source.js meta.import keyword.control.assert, source.ts meta.import keyword.control.assert, source.tsx meta.import keyword.control.assert | — | italic |
| source.js tag.decorator entity.name.tag, source.ts tag.decorator entity.name.tag, source.tsx tag.decorator entity.name.tag, source.js tag.decorator punctuation.definition.tag, source.ts tag.decorator punctuation.definition.tag, source.tsx tag.decorator punctuation.definition.tag | #82AAFF | italic |
| source.ts meta.field.declaration, source.tsx meta.field.declaration | — | italic |
| source.ts keyword.control.as, source.tsx keyword.control.as, source.ts keyword.operator.type.asserts, source.tsx keyword.operator.type.asserts | #c48bf4 | italic |
| support.type.property-name.json, entity.name.tag.yaml | #bac7f8 | — |
| source.lua keyword.operator.logical | #c48bf4 | italic |
| markup.heading | #f6a2dd | — |
| punctuation.definition.heading | #f6a2dd88 | bold |
| markup.italic | — | italic |
| markup.bold, markup.bold string | — | bold |
| markup.bold markup.italic, markup.italic markup.bold | — | italic bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.quote punctuation.definition | #efe8e488 | |
| markup.quote | #efe8e4 | italic |
| string.other.link.title.markdown | #f6a2dd | — |
| meta.link punctuation.definition | #f6a2dd88 | — |
| string.other.link.description.title.markdown, meta.link punctuation.definition.string | #efe8e4 | — |
| meta.link markup.underline.link.markdown | #def48b | — |
| constant.other.reference.link.markdown | #b5f8f0 | — |
| markup.inline.raw, markup.raw.block, markup.fenced_code | #efe8e4 | — |
| markup.fenced_code punctuation.definition.markdown, markup.fenced_code fenced_code.block.language.markdown | #efe8e488 | — |
| meta.separator | #efe8e4 | bold |
| markup.table | #efe8e4 | — |
| meta.attribute.rust | #f4aa8b | — |
| punctuation.definition.attribute.rust, keyword.operator.attribute.inner.rust, punctuation.brackets.attribute.rust, meta.attribute.rust keyword.operator.assignment, meta.attribute.rust punctuation.comma, meta.attribute.rust punctuation.brackets.round | #f4aa8baa | |
| entity.name.namespace.rust | #f4aa8b | italic |
| meta.use.rust | #f4aa8b | italic |
| meta.use.rust keyword.operator.math, meta.use.rust variable.language.self | #efe8e4 | italic |
| meta.use.rust punctuation | #efe8e4bb | |
| meta.use.rust entity.name.namespace.rust | #efe8e4bb | italic |
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}!`;
}