Coritiba Theme
Publisher: Diego Ramos ClaumannThemes in package: 2
Tema inspirado nas cores do Coritiba Football Club - Verde e Branco
Tema inspirado nas cores do Coritiba Football Club - Verde e Branco
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 | #6A9955 | italic |
| keyword, storage.type, storage.modifier | #569CD6 | — |
| keyword.control | #C586C0 | — |
| string, string.quoted | #CE9178 | — |
| variable, variable.other.readwrite | #9CDCFE | — |
| variable.other.constant, variable.other.enummember | #4FC1FF | — |
| entity.name.function, support.function | #DCDCAA | — |
| entity.name.type, entity.name.class, support.type, support.class | #4EC9B0 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #B5CEA8 | — |
| constant.character, constant.other | #4FC1FF | — |
| invalid | #F44747 | — |
| markup.heading | #569CD6 | bold |
| markup.bold | #569CD6 | bold |
| entity.name.tag, meta.tag | #569CD6 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #9CDCFE | — |
| meta.tag.structure.any.html, meta.tag.metadata.script.html, meta.tag.metadata.style.html | #808080 | — |
| punctuation.definition.tag | #808080 | — |
| string.quoted.double.html, string.quoted.single.html | #CE9178 | — |
| variable.other.object.js, variable.other.object.ts | #9CDCFE | — |
| variable.other.property.js, variable.other.property.ts | #9CDCFE | — |
| support.class.builtin.js, support.class.builtin.ts | #4EC9B0 | — |
| support.type.object.module.js, support.type.object.module.ts | #4EC9B0 | — |
| storage.type.function.js, storage.type.function.ts | #569CD6 | — |
| keyword.operator.new.js, keyword.operator.new.ts | #569CD6 | — |
| storage.type.class.js, storage.type.class.ts | #569CD6 | — |
| variable.language.this.js, variable.language.this.ts, variable.language.super.js, variable.language.super.ts | #569CD6 | — |
| meta.type.annotation.ts, meta.type.annotation.tsx, meta.return.type.ts, meta.return.type.tsx | #4EC9B0 | — |
| support.type.primitive.ts, support.type.primitive.tsx | #4EC9B0 | — |
| keyword.operator.type.ts, keyword.operator.type.tsx, keyword.operator.type.annotation.ts, keyword.operator.type.annotation.tsx | #569CD6 | — |
| entity.name.type.interface.ts, entity.name.type.interface.tsx, entity.name.type.alias.ts, entity.name.type.alias.tsx | #4EC9B0 | — |
| support.type.builtin.ts, support.type.builtin.tsx | #4EC9B0 | — |
| variable.parameter.ts, variable.parameter.tsx | #9CDCFE | — |
| meta.definition.property.ts, meta.definition.property.tsx, variable.object.property.ts, variable.object.property.tsx | #9CDCFE | — |
| storage.type.function.arrow.ts, storage.type.function.arrow.tsx | #569CD6 | — |
| keyword.operator.expression.typeof.ts, keyword.operator.expression.typeof.tsx | #569CD6 | — |
| support.variable.property.ts, support.variable.property.tsx | #9CDCFE | — |
| entity.name.type.ts, entity.name.type.tsx | #4EC9B0 | — |
| support.type.any.ts, support.type.any.tsx | #FF1744 | bold underline |
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}!`;
}