Four Nations
Publisher: Nthiago_DevThemes in package: 8
Oito temas para VS Code: Fogo, Terra, Água e Ar, em claro e escuro.
Oito temas para VS Code: Fogo, Terra, Água e Ar, em claro e escuro.
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, string.comment | #7d5647 | italic |
| string, string.quoted, string.template, constant.other.symbol, punctuation.definition.string | #7a5510 | — |
| punctuation.definition.template-expression, meta.embedded.line | #a8331f | — |
| constant.numeric, constant.language, constant.character.escape, constant.other.placeholder | #b32718 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, storage, storage.type, storage.modifier | #a8331f | — |
| keyword.operator, punctuation, meta.brace, punctuation.separator | #6b4436 | — |
| entity.name.function, support.function, meta.function-call, variable.function | #b04f18 | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type, support.class, entity.other.inherited-class | #7a4a10 | — |
| variable, variable.other, meta.definition.variable | #3a201a | — |
| variable.parameter, meta.parameter | #3a201a | italic |
| variable.other.property, meta.object-literal.key, support.type.property-name, support.variable.property | #8a5a0d | — |
| variable.language, variable.other.constant | #b32718 | italic |
| entity.name.tag | #a8331f | — |
| entity.other.attribute-name | #8a5a0d | italic |
| entity.other.attribute-name.class, entity.other.attribute-name.id | #7a4a10 | — |
| markup.heading, entity.name.section | #a8331f | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.underline.link, string.other.link | #b04f18 | underline |
| markup.list, beginning.punctuation.definition.list | #a8331f | — |
| markup.quote | #7d5647 | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #7a5510 | — |
| markup.inserted, meta.diff.header.to-file | #43701c | — |
| markup.deleted, meta.diff.header.from-file | #b32718 | — |
| markup.changed, meta.diff.header | #1c5c85 | — |
| invalid, invalid.illegal | #b32718 | underline |
| invalid.deprecated | #7d5405 | strikethrough |
| string.regexp, constant.other.character-class.regexp | #96306a | — |
| support.type.property-name.json | #8a5a0d | — |
| variable.other.env, source.env | #8a5a0d | — |
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}!`;
}