Anti-Eye Strain
Publisher: Pedro JrThemes in package: 1
Tema Suave com Menos Brilho (Anti-Fadiga Visual).
Tema Suave com Menos Brilho (Anti-Fadiga Visual).
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 |
|---|---|---|
| keyword, storage.type | #d6ac6a | — |
| string, string.quoted, string.template | #7ba98b | — |
| constant.numeric | #a58adb | — |
| meta.arrow, storage.type.function.arrow | #d6ac6a | — |
| entity.other.attribute-name | #6a778e | — |
| variable, meta.definition.variable | #c8cacc | — |
| support.variable.property.static | #c67878 | — |
| variable.parameter, meta.function.parameter, meta.function.arrow.parameters, meta.definition.function.parameters, meta.definition.method.parameters, variable.other.readwrite | #d67a85 | — |
| keyword.operator, punctuation | #d6ac6a | — |
| comment, punctuation.definition.comment | #7f848e | italic |
| variable.other.object, support.type.object.console | #6a8ed6 | — |
| support.function.console | #6a8ed6 | — |
| variable.other.member, meta.property, meta.object-literal.key | #d67a85 | — |
| support.type, storage.type.primitive, meta.type | #d67a85 | — |
| punctuation.section.block.begin, punctuation.section.block.end, punctuation.section.group.begin, punctuation.section.group.end, punctuation.section.brackets.begin, punctuation.section.brackets.end, meta.brace.curly, meta.brace.round, meta.brace.square | #b983d6 | — |
| meta.property.object, variable.other.property, variable.other.member | #d67a85 | — |
| entity.name.function, support.function | #b983d6 | — |
| support.class.component, entity.name.type, entity.name.import, variable.other.readwrite.alias, support.type.object.module, support.class, meta.import variable.other.readwrite | #5e7fa7 | — |
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}!`;
}