Eye Like Light
Publisher: domin1c86Themes in package: 1
A warm, eye-friendly light theme with high-contrast syntax highlighting
A warm, eye-friendly light theme with high-contrast syntax highlighting
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 | #998F80 | italic |
| comment.block.documentation, comment.line.documentation | #877D6E | italic |
| string, string.quoted | #2D7D53 | — |
| string.quoted.single, string.quoted.double | #2D7D53 | — |
| string.template, template-string, punctuation.definition.template-expression | #2D7D53 | — |
| constant.character, constant.other.character-class.escape | #2B7D7D | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #AD5E17 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.type, storage.type, storage.modifier | #B8345E | bold |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.relational, keyword.operator.ternary | #B8345E | |
| entity.name.function, meta.function-call, support.function | #2860A6 | — |
| variable.function | #2860A6 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.interface, entity.name.enum, entity.name.type.parameter, entity.name.type.alias | #7B50B0 | — |
| variable, variable.other, variable.parameter, variable.language, variable.other.readwrite | #4A4A4A | — |
| variable.other.property, variable.other.object.property, support.variable.property | #556B5F | — |
| variable.language.this, variable.language.self, variable.language.super | #B8345E | italic |
| variable.other.constant, entity.name.constant, support.constant, constant.other | #7E4E1E | — |
| support.type.property-name, entity.name.tag.yaml, entity.name.type.property-name, meta.object-literal.key | #556B5F | — |
| entity.name.tag | #B8345E | — |
| entity.other.attribute-name | #AD5E17 | italic |
| punctuation.definition.tag | #998F80 | — |
| support.type.property-name.css | #2860A6 | — |
| support.constant.property-value.css | #2D7D53 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #7B50B0 | — |
| keyword.control.at-rule, entity.name.function.preprocessor | #B8345E | — |
| string.regexp | #75701E | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #75701E | italic |
| markup.heading, entity.name.section.markdown | #2860A6 | bold |
| markup.bold | #4A4A4A | bold |
| markup.italic | #6A5D50 | italic |
| markup.inline.raw, markup.fenced_code | #2D7D53 | — |
| markup.underline.link | #2860A6 | — |
| support.type.property-name.json | #2860A6 | — |
| keyword.operator.logical.python, keyword.control.flow.python | #B8345E | bold |
| support.function.builtin.python | #2860A6 | — |
| string.quoted.docstring | #877D6E | italic |
| punctuation.separator, punctuation.terminator, punctuation.definition.block | #7A6B5A | — |
| markup.inserted | #2D7D53 | — |
| markup.deleted | #B8345E | — |
| markup.changed | #2860A6 | — |
| invalid, invalid.illegal | #B8345E | — |
| invalid.deprecated | #998F80 | italic strikethrough |
| entity.name.namespace, entity.name.module, entity.name.type.namespace | #7B50B0 | — |
| storage.modifier.lifetime, entity.name.lifetime | #B8345E | — |
| punctuation.definition.string | #2D7D53 | — |
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}!`;
}