Formosa Theme
Publisher: Takeshi YuThemes in package: 4
A theme inspired by Porsche 911 Carrera T Formosa Taiwan Limited Edition. Colors extracted from Ipanema Blue, Night Green, Truffle Brown, and Cream White.
A theme inspired by Porsche 911 Carrera T Formosa Taiwan Limited Edition. Colors extracted from Ipanema Blue, Night Green, Truffle Brown, and Cream White.
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 | #5a6a80 | italic |
| comment.block.documentation, comment.block.javadoc | #6a7a90 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type, storage.modifier | #5BBCD6 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison | #a0a8a5 | — |
| entity.name.function, meta.function-call, support.function | #7BCCE6 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, entity.name.struct, support.type, support.class | #c09860 | — |
| entity.other.inherited-class | #c09860 | — |
| variable, variable.other, variable.parameter, variable.other.readwrite | #E8DCD0 | — |
| variable.language, variable.other.constant | #e07080 | — |
| entity.name.tag, meta.tag | #5BBCD6 | — |
| entity.other.attribute-name | #E8DCD0 | — |
| string, string.quoted, string.template | #6ABA7A | — |
| string.regexp | #7ACA8A | — |
| constant.character.escape | #8ADA9A | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #e07080 | — |
| constant.language, constant.language.boolean | #e07080 | — |
| constant.other | #e07080 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #a0a8a5 | — |
| meta.brace, punctuation.definition.block, punctuation.definition.parameters | #a0a8a5 | — |
| support.constant, support.variable | #e07080 | — |
| meta.decorator, entity.name.function.decorator | #c09860 | — |
| markup.heading | #5BBCD6 | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline.link | #7BCCE6 | — |
| markup.inline.raw, markup.fenced_code | #6ABA7A | — |
| markup.inserted | #6ABA7A | — |
| markup.deleted | #e07080 | — |
| markup.changed | #e0b050 | — |
| invalid, invalid.illegal | #e07080 | — |
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}!`;
}