Taiga Theme
Publisher: Josh DalesThemes in package: 4
A theme for VSCode theme - with light and dark modes
A theme for VSCode theme - with light and dark modes
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 | #5A6377 | italic |
| punctuation, meta.class meta.block, keyword.operator.type.annotation, keyword.operator.optional., keyword.operator.assignment, keyword.operator.comparison, keyword.operator.arithmetic, meta.type.annotation meta.brace, meta.field.declaration, string.template meta.brace | #A4AEC4 | — |
| variable, punctuation.definition.variable, support.variable.property | #2C965D | — |
| keyword, storage.type.function, storage.type, storage.modifier, punctuation.definition.keyword, support.function | #B17EFF | italic |
| string, punctuation.definition.string | #72D699 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json, punctuation.support.type.property-name, meta.objectliteral meta.object-literal.key | #2C965D | — |
| source.yaml entity.name.tag, source.yaml punctuation.separator.key-value | #2C965D | — |
| meta.class, meta.class entity.name, meta.class entity.other.inherited-class, meta.interface entity.name, meta.interface entity.other.inherited-class, support.class, meta.module, entity.name, support.constant | #F0B135 | — |
| support.type, meta.type.annotation | #F0B135 | italic |
| meta.definition entity.name.function, entity.name.function, meta.function-call support.function.console | #43B2AC | — |
| entity.name.tag, entity.name.tag support.class.component | #51B67A | — |
| punctuation.definition.tag | #A4AEC4 | — |
| entity.other.attribute-name | #43B2AC | — |
| variable.language.this, support.class.console, variable.language.self.ruby, support.variable.object | #F0B135 | italic |
| punctuation.section.embedded, punctuation.definition.template-expression | #C9ACFF | — |
| constant | #59A0F9 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.css punctuation.definition.entity.css, entity.other.attribute-name.placeholder.css punctuation.definition.entity.css, entity.other.attribute-name.placeholder.css | #67D2CC | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.css punctuation.definition.entity.css | #43B2AC | — |
| source.css support.function, entity.name.function.scss | #B17EFF | — |
| keyword.other.unit | #59A0F9 | — |
| support.constant.media | #51B67A | — |
| support.type.property-name.css, meta.property-list.css entity.name.tag.css, meta.property-list.scss entity.name.tag.css | #51B67A | — |
| punctuation.definition.constant.css | #59A0F9 | — |
| markup.heading, markup.heading punctuation.definition.heading, markup.heading entity.name.section | #51B67A | — |
| markup.italic, markup.italic punctuation.definition.italic | #67D2CC | italic |
| markup.bold, markup.bold punctuation.definition.bold | #C9ACFF | bold |
| markup.list punctuation.definition.list.begin | #F0B135 | bold |
| markup.inline.raw, markup.inline.raw punctuation.definition.raw | #F0B135 | — |
| markup.fenced_code.block, markup.fenced_code.block punctuation.definition | #F0B135 | — |
| markup.quote, markup.quote punctuation.definition | #67D2CC | — |
| meta.separator.markdown | #2C965D | bold |
| meta.link.inline, meta.link.inet, meta.link.inet punctuation.definition.link, meta.link.reference markup.underline.link, meta.image.inline | #51B67A | — |
| markup.quote.markdown, markup.quote.markdown punctuation.definition.quote.begin.markdown | #59A0F9 | italic |
| source.ruby constant.other.symbol, source.ruby constant.other.symbol punctuation | #51B67A | — |
| meta.class.ruby keyword.operator, meta.module.ruby entity.other.inherited-class punctuation | #F0B135 | — |
| source.ruby punctuation.separator.key-value | #B17EFF | — |
| source.ruby constant.language.symbol.ruby, source.ruby punctuation.section.symbol.begin.ruby, source.ruby punctuation.section.symbol.end.ruby, source.ruby punctuation.definition.constant.ruby, source.ruby constant.language.symbol.hashkey.ruby, constant.language.symbol.hashkey.ruby punctuation.definition.constant.hashkey.ruby | #43B2AC | — |
| entity.name.function.ruby | #43B2AC | — |
| meta.function.method.with-arguments.ruby constant.other.symbol.hashkey.parameter.function.ruby punctuation.definition.constant.ruby | #51B67A | — |
| string.template meta.brace | #A4AEC4 | — |
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}!`;
}