Vivid Life Theme
Publisher: Vivid Life ThemeThemes in package: 24
A multi-flavor color scheme system for VS Code (Visual Studio Code). 4 flavors × 6 variants = 24 themes. WCAG AA verified.
A multi-flavor color scheme system for VS Code (Visual Studio Code). 4 flavors × 6 variants = 24 themes. WCAG AA verified.
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, comment.line, comment.block | #525252 | — |
| keyword.control, keyword.other, storage.type, storage.modifier | #7e22ce | — |
| string, string.quoted, string.template | #365314 | — |
| constant.numeric, constant.language | #c2410c | — |
| entity.name.function, support.function | #1d4ed8 | — |
| variable.parameter | #7c2d12 | italic |
| entity.name.type, entity.name.class, support.class, support.type | #713f12 | — |
| constant.other | #c2410c | — |
| entity.name.tag | #1d4ed8 | — |
| entity.other.attribute-name | #4d7c0f | — |
| string.regexp | #b91c1c | — |
| punctuation | #404040 | — |
| variable.other.readwrite, variable.other | #171717 | — |
| variable.other.property, variable.other.member, support.type.property-name | #171717 | — |
| entity.name.function.decorator, meta.decorator entity.name.function, punctuation.decorator | #1d4ed8 | italic |
| keyword.operator | #7e22ce | — |
| support.function.builtin, support.class.builtin, support.variable.builtin | #1d4ed8 | italic |
| entity.name.namespace, entity.name.module | #713f12 | — |
| entity.name.function.macro, support.function.macro | #1d4ed8 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust | #c2410c | — |
| markup.heading, entity.name.section, punctuation.definition.heading | #7e22ce | bold |
| markup.underline.link, string.other.link | #1d4ed8 | — |
| entity.other.pseudo-class, entity.other.pseudo-element, meta.selector entity.other.attribute-name | #1d4ed8 | — |
| keyword.other.unit | #c2410c | — |
| constant.other.color, constant.other.color.rgb-value.css | #365314 | — |
| comment.line.shebang | #525252 | — |
| markup.italic | #713f12 | italic |
| markup.bold | #c2410c | bold |
| invalid.illegal | #7f1d1d | italic underline |
| invalid.deprecated | #171717 | italic underline |
| variable.other.event, support.type.event | #1d4ed8 | — |
| entity.name.label, variable.label | #171717 | italic |
| variable.language.this, variable.language.self, variable.language.super | #c2410c | italic |
| comment.block.documentation keyword | #7e22ce | — |
| comment.block.documentation entity.name.type | #713f12 | italic |
| comment.block.documentation variable | #7c2d12 | italic |
| variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx | #171717 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #7e22ce | — |
| constant.character.escape | #7e22ce | — |
| source.shell variable.other, variable.other.normal.shell | #7e22ce | — |
| variable.other.alias.yaml | #365314 | italic underline |
| string.quoted.docstring.multi | #525252 | italic |
| keyword.control.at-rule, punctuation.definition.keyword | #7e22ce | — |
| markup.bold.markdown markup.italic.markdown, markup.italic.markdown markup.bold.markdown | #713f12 | bold italic |
| string.other.link.description.markdown, string.other.link.title.markdown | #1d4ed8 | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #365314 | — |
| markup.quote, punctuation.definition.quote.begin | #713f12 | italic |
| beginning.punctuation.definition.list.markdown, punctuation.definition.list_item | #1d4ed8 | — |
| meta.separator.markdown | #525252 | — |
| markup.inserted, meta.diff.header.to-file | #365314 | — |
| markup.deleted, meta.diff.header.from-file | #b91c1c | — |
| markup.changed | #c2410c | — |
| meta.diff.range, meta.diff.header | #1d4ed8 | — |
| support.type.property-name.json, string.quoted.double.json support.type.property-name.json | #1d4ed8 | — |
| entity.name.tag.yaml, string.unquoted.plain.out.yaml entity.name.tag.yaml | #1d4ed8 | — |
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}!`;
}