OLED EyeEase TriLang
Publisher: Deniz Ekin CanbayThemes in package: 1
A true-black OLED VS Code theme tuned to reduce eye strain for Python, JSON, and YAML.
A true-black OLED VS Code theme tuned to reduce eye strain for Python, JSON, and YAML.
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 |
|---|---|---|
| source, text | #D4D4D4 | — |
| comment, punctuation.definition.comment | #8B9EB0 | italic |
| keyword, storage.type | #79C0FF | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #8AB9D1 | — |
| string, punctuation.definition.string | #8DD28A | — |
| constant.numeric, constant.language, constant.character | #E5C07B | — |
| entity.name.function, support.function, meta.function-call | #F0C674 | — |
| variable, meta.definition.variable.name, variable.other.readwrite | #D4D4D4 | — |
| variable.other.property.python, variable.other.object.property.python | #56B6C2 | — |
| entity.name.type, entity.name.class, support.class, support.type | #4EC9B0 | — |
| keyword.control.import.python, keyword.control.flow.python, storage.type.function.python | #569CD6 | — |
| keyword.operator.logical.not.python, keyword.operator.logical.not, keyword.operator.wordlike.not.python, keyword.operator.wordlike.not | #FF7B72 | — |
| keyword.operator.logical.python | #D2A8FF | — |
| meta.function.decorator.python, entity.name.function.decorator.python, punctuation.definition.decorator.python | #D2A8FF | — |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python, variable.language.special.cls.python | #79C0FF | — |
| meta.import.python entity.name.namespace.python, meta.import.python support.module.python, support.module.python, entity.name.namespace.python | #C678DD | — |
| meta.import.python variable.other.normal.python, meta.import.python variable.other.readwrite.python, meta.import.python variable.other.readwrite.alias.python, meta.import.python variable.other.alias.python, meta.import.python support.class.python | #98C379 | — |
| support.type.property-name.json, meta.object-literal.key.json string.quoted.double.json, meta.object.member.json string.quoted.double.json | #56B6C2 | — |
| punctuation.separator.key-value.json, punctuation.separator.dictionary.key-value.json, punctuation.separator.comma.json | #8B9EB0 | — |
| constant.language.boolean.json, constant.language.null.json | #D19A66 | — |
| entity.name.tag.yaml, entity.name.tag.yaml punctuation.definition.tag.yaml | #56B6C2 | — |
| string.unquoted.yaml, string.quoted.single.yaml, string.quoted.double.yaml | #8DD28A | — |
| constant.other.anchor.yaml, variable.other.alias.yaml | #C678DD | — |
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}!`;
}