Corallike
Publisher: Joaquin MartinezThemes in package: 1
A Coral-like color theme for VS Code
A Coral-like color theme for VS Code
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| entity.name.function | #ffa | — |
| entity.name.method | #ffa | — |
| entity.name.tag | #f55 | — |
| entity.name.type | #5fa | — |
| entity.name.class | #5af | — |
| variable | #5ff | — |
| constant.language | #5af | — |
| constant.numeric | #faa | — |
| constant.numeric.css | #ffa | — |
| constant.character | #ffa | — |
| support.constant | #5fa | — |
| keyword.control | #5fa | — |
| keyword.operator | #eee | — |
| storage.type | #5af | — |
| storage.modifier | #a5f | — |
| invalid | #f55 | — |
| string | #ffd5aa | — |
| string.regexp | #faa | — |
| comment.todo | #f55 | — |
| comment.region | #55f | — |
| punctuation, meta.brace.round, meta.brace.square | #eee | — |
| comment | #555 | italic |
| punctuation.definition.template-expression | #5af | — |
| punctuation.definition.comment | #555 | — |
| entity.other.attribute-name.html | #fa5 | — |
| string.quoted.double.html | #ffa | — |
| text.html | #eee | — |
| entity.name.tag.jsx | #5af | — |
| meta.jsx | #eee | — |
| entity.other.attribute-name | #ffa | — |
| support.type | #5af | — |
| meta.property-value | #eee | — |
| sass.use | #5fa | — |
| support.function | #ffa | — |
| storage.type.class, storage.type.type, storage.type.interface, storage.type.namespace | #a5f | — |
| meta.object.member | #5ff | — |
| meta.interface, meta.class | #5af | — |
| variable.language.this, keyword.operator.new, keyword.operator.expression.void | #a5f | — |
| support.class | #5af | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.heading | #5af | bold |
| punctuation.definition.list.begin.markdown | #5af | — |
| markup.inline.raw | #5ff | italic |
| variable.language | #5af | — |
| variable.other.property, variable.other.object.property | #5af | — |
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}!`;
}