Save-Eyes-Light
Publisher: alexlabThemes in package: 1
A light theme to save your eyes 👀
A light theme to save your eyes 👀
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 | #AAAAAA | italic |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #1e824c | — |
| invalid.illegal | #660000 | — |
| keyword.operator | #777777 | — |
| keyword, storage | #2a7ab0 | — |
| storage.type, support.type | #1e824c | italic |
| constant.language, support.constant, variable.language | #4f5a65 | — |
| variable, support.variable | #F92672 | — |
| entity.name.function, support.function | #dc2a2a | bold |
| entity.name.type, entity.other.inherited-class, support.class | #F92672 | bold |
| entity.name.exception | #660000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #3a539b | — |
| source.css support.constant.property-value.css, source.sass support.constant.property-value.css, source.scss support.constant.property-value.css, source.less support.constant.property-value.css, source.stylus support.constant.property-value.css, source.postcss support.constant.property-value.css, source.css meta.property-value.css, source.sass meta.property-value.css, source.scss meta.property-value.css, source.less meta.property-value.css, source.stylus meta.property-value.css, source.postcss meta.property-value.css, source.css keyword.other.unit.em.css, source.sass keyword.other.unit.em.css, source.scss keyword.other.unit.em.css, source.less keyword.other.unit.em.css, source.stylus keyword.other.unit.em.css, source.postcss keyword.other.unit.em.css, source.css constant.numeric.css, source.sass constant.numeric.css, source.scss constant.numeric.css, source.less constant.numeric.css, source.stylus constant.numeric.css, source.postcss constant.numeric.css, source.css support.constant.font-name.css, source.sass support.constant.font-name.css, source.scss support.constant.font-name.css, source.less support.constant.font-name.css, source.stylus support.constant.font-name.css, source.postcss support.constant.font-name.css, source.css keyword.other.unit.percentage.css, source.sass keyword.other.unit.percentage.css, source.scss keyword.other.unit.percentage.css, source.less keyword.other.unit.percentage.css, source.stylus keyword.other.unit.percentage.css, source.postcss keyword.other.unit.percentage.css, source.css keyword.other.unit.px.css, source.sass keyword.other.unit.px.css, source.scss keyword.other.unit.px.css, source.less keyword.other.unit.px.css, source.stylus keyword.other.unit.px.css, source.postcss keyword.other.unit.px.css, source.css keyword.other.unit.rem.css, source.sass keyword.other.unit.rem.css, source.scss keyword.other.unit.rem.css, source.less keyword.other.unit.rem.css, source.stylus keyword.other.unit.rem.css, source.postcss keyword.other.unit.rem.css, source.css keyword.other.unit.s.css, source.sass keyword.other.unit.s.css, source.scss keyword.other.unit.s.css, source.less keyword.other.unit.s.css, source.stylus keyword.other.unit.s.css, source.postcss keyword.other.unit.s.css | #3a539b | — |
| string | #1e824c | — |
| constant.character.escape | #777777 | — |
| string.regexp | #2a7ab0 | — |
| constant.other.symbol | #4f5a65 | — |
| punctuation | #777777 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #2574a9 | — |
| entity.name.tag | #3455db | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #2574a9 | italic |
| constant.character.entity, punctuation.definition.entity | #4f5a65 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #F92672 | — |
| meta.property-name, support.type.property-name | #4f5a65 | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #1e824c | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #2a7ab0 | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #dc2a2a | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #F92672 | — |
| markup.list | #2a7ab0 | — |
| markup.bold, markup.italic | #1e824c | — |
| markup.inline.raw | #4f5a65 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}