Taco Theme
Publisher: cassidooThemes in package: 1
A taco-inspired VS Code color theme. Viva more.
A taco-inspired VS Code color theme. Viva more.
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 | #9e8ab5 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.delete, keyword.other, storage, storage.type, storage.modifier | #501098 | — |
| keyword.operator, punctuation.separator.key-value | #501098 | — |
| string, string.quoted, string.template, string.interpolated | #17b98a | — |
| constant.character.escape | #f8a65a | — |
| string.regexp, string.regexp keyword.operator, string.regexp constant.character.escape, string.regexp source.ruby.embedded | #94ae38 | — |
| constant.numeric, constant.other | #ed974a | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #b986b8 | — |
| entity.name.function | #501098 | bold |
| meta.function-call entity.name.function, variable.function | #f8a65a | — |
| support.function, support.function.builtin | #b26b37 | — |
| entity.name.class, entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, support.class, support.type | #b83146 | — |
| entity.other.inherited-class | #b83146 | italic |
| variable, variable.other, variable.other.readwrite | #1a0a33 | — |
| variable.parameter, meta.function.parameter variable.other | #17b98a | — |
| meta.object-literal.key, support.type.property-name.json, support.type.property-name.yaml, entity.name.tag.yaml | #a19e49 | — |
| variable.other.property, support.variable.property | #dda168 | — |
| entity.name.function.decorator, meta.decorator, meta.decorator punctuation.decorator, storage.type.annotation, punctuation.decorator | #ed974a | — |
| string.quoted.single.include, string.quoted.double.include, meta.import string, meta.import-equals.external string | #17b98a | — |
| entity.name.namespace, entity.name.module | #501098 | — |
| entity.name.tag, meta.tag punctuation.definition.tag | #b83146 | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #ed974a | — |
| meta.attribute-with-value string | #17b98a | — |
| constant.character.entity | #ed974a | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, meta.selector | #b83146 | — |
| support.type.property-name.css, support.type.property-name | #501098 | — |
| constant.numeric.css, keyword.other.unit | #ed974a | — |
| constant.other.color.rgb-value, constant.other.color | #ed974a | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #17b98a | — |
| keyword.other.important | #b83146 | bold |
| markup.heading, markup.heading entity.name | #501098 | bold |
| markup.bold | #501098 | bold |
| markup.italic | #b83146 | italic |
| markup.underline.link, markup.underline.link.image | #17b98a | — |
| markup.inline.raw, markup.fenced_code.block | #b83146 | — |
| markup.quote | #9e8ab5 | italic |
| punctuation.definition.list_item | #ed974a | — |
| punctuation, meta.brace, punctuation.definition.tag, punctuation.terminator, punctuation.section, punctuation.separator, punctuation.accessor | #4e4248 | — |
| variable.css, variable.argument.css, support.variable.property.css, variable.other.custom-property | #dda168 | — |
| invalid | #d95e4e | underline |
| invalid.deprecated | #6f5b27 | underline 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}!`;
}