hoccacas
Publisher: Thiago AndreazzaThemes in package: 5
A VS Code theme for regular people.
A VS Code theme for regular people.
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 |
|---|---|---|
| string, punctuation.definition.string | #c2bbd3 | — |
| entity.other.attribute-name.class, source.css meta.selector.css, source.css, entity.name.tag.open.jsx, support.class.component.open.jsx, entity.name.tag.close.jsx, support.class.component.close.jsx, constant.character.escape, meta.brace.round, support.module, meta.tag.other.unrecognized.html.derivative, variable.object.property, variable.other, variable.other.property, variable.parameter, meta.definition.variable | #ffffff | — |
| meta.objectliteral, support.type.primitive, variable.language.this, meta.member.access meta.function-call, meta.class support.type.primitive, support.variable.property | #67b3e6 | — |
| text.html.derivative, meta.embedded, source.groovy.embedded, meta.jsx.children, meta.template.expression | #ebe5f0 | — |
| entity.other.inherited-class, meta.class meta.type.annotation, meta.interface support.type.primitive, meta.interface entity.name.type.interface, meta.type.annotation, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, support.node, template.expression.begin, template.expression.end, variable.css, constant, keyword.operator, entity.other.attribute-name, entity.other.attribute-name.id, entity.other.attribute-name, keyword, storage.type.property | #ff76ad | — |
| entity.name, entity.name.function, modifier, storage, entity.name.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, meta.function-call, meta.class entity.name.type.module, meta.type.annotation entity.name.type, meta.object-literal.key, support.type.property-name.css, support.type, support.class.component, keyword.control.from, keyword.control.import, keyword.control.conditional, keyword.control.loop | #ae88fa | — |
| constant.numeric, constant.language, constant.character.escape, storage.type | #7fd3d6 | — |
| meta.class entity.name.type.class | #ffffff | underline |
| comment | #6f6f6f | — |
| punctuation.definition.entity.html, punctuation.definition.block, punctuation.definition.parameters, punctuation.accessor | #cebcf5 | — |
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}!`;
}