Blue Light Filter - Eye Care Theme
Publisher: Saksham YadavThemes in package: 2
A warm, eye-friendly VS Code theme that reduces blue light exposure for comfortable coding during extended sessions
A warm, eye-friendly VS Code theme that reduces blue light exposure for comfortable coding during extended sessions
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 | #7a6854 | italic |
| variable, string constant.other.placeholder | #d4b89c | — |
| constant.other.color | #e6b673 | — |
| invalid, invalid.illegal | #e67e80 | — |
| invalid.deprecated | #d69999 | — |
| keyword, storage.type, storage.modifier | #e67e80 | |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #d9a566 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #e67e80 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #e6b673 | — |
| meta.block variable.other | #d4b89c | — |
| support.other.variable, string.other.link | #e67e80 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #d69999 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #a7c080 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #e6b673 | — |
| support.type | #c9a678 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #e67e80 | — |
| variable.language | #e67e80 | italic |
| entity.name.method.js | #e6b673 | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #e6b673 | — |
| entity.other.attribute-name | #d9a566 | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #e6b673 | italic |
| entity.other.attribute-name.class | #e6b673 | — |
| source.sass keyword.control | #e6b673 | — |
| markup.inserted | #a7c080 | — |
| markup.deleted | #e67e80 | — |
| markup.changed | #d9a566 | — |
| string.regexp | #d9a566 | — |
| constant.character.escape | #d9a566 | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #e6b673 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #e6b673 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #e67e80 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #d9a566 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #e6b673 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #d4b89c | — |
| text.html.markdown markup.inline.raw.markdown | #d9a566 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #a89075 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #a7c080 | bold |
| markup.italic | #e67e80 | italic |
| markup.bold | #e67e80 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #e67e80 | bold italic |
| markup.underline | #d69999 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #a89075 | — |
| markup.quote | #7a6854 | italic |
| string.other.link.title.markdown | #e6b673 | — |
| string.other.link.description.title.markdown | #d9a566 | — |
| constant.other.reference.link.markdown | #e6b673 | — |
| markup.raw.block | #d9a566 | — |
| markup.raw.block.fenced.markdown | #a89075 | — |
| punctuation.definition.fenced.markdown | #a89075 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #d4b89c | — |
| variable.language.fenced.markdown | #a89075 | — |
| meta.separator | #7a6854 | bold |
| markup.table | #d4b89c | — |
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}!`;
}