Eink 60Hz Theme
Publisher: Lam NguyenThemes in package: 2
Dark+ with black background and enhanced contrast, optimized for e-ink displays at 60Hz. Inspired by the Dark+ Contrast theme by k3a.
Dark+ with black background and enhanced contrast, optimized for e-ink displays at 60Hz. Inspired by the Dark+ Contrast theme by k3a.
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #000000 | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #ffff7f | — |
| comment | #a575b5 | — |
| constant.language | #a96329 | — |
| constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #4a3157 | — |
| constant.regexp | #4b996a | — |
| constant.character | #a96329 | — |
| entity.name.tag | #a96329 | — |
| entity.name.tag.css, entity.name.tag.less | #284582 | — |
| entity.other.attribute-name | #632301 | — |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #284582 | — |
| invalid | #0bb8b8 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #986919 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #4a3157 | — |
| markup.deleted | #4f8faf | — |
| markup.changed | #a96329 | — |
| punctuation.definition.tag | #7f7f7f | — |
| meta.preprocessor | #a96329 | — |
| meta.preprocessor.string | #4f8faf | — |
| meta.preprocessor.numeric | #4a3157 | — |
| meta.structure.dictionary.key.python | #632301 | — |
| storage | #a96329 | — |
| storage.type | #a96329 | — |
| storage.modifier | #a96329 | — |
| string | #4f8faf | — |
| string.tag | #4f8faf | — |
| string.value | #4f8faf | — |
| string.regexp | #4fafaf | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #a96329 | — |
| meta.template.expression | #000000 | — |
| support.type.vendored.property-name, support.type.property-name, source.css variable, source.coffee.embedded | #2b2b2b | — |
| keyword | #a96329 | — |
| keyword.control | #a96329 | — |
| keyword.operator | #2b2b2b | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #a96329 | — |
| keyword.other.unit | #4a3157 | — |
| support.function.git-rebase | #2b2b2b | — |
| constant.sha.git-rebase | #4a3157 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #2b2b2b | — |
| variable.language.this | #a96329 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member | #232355 | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.name.scope-resolution, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #b1364f | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, punctuation.separator.namespace.ruby | #b1364f | — |
| keyword.control, source.cpp keyword.operator.new, source.cpp keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator | #3a793f | — |
| variable, meta.definition.variable.name, support.variable | #632301 | — |
| meta.object-literal.key | #632301 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #316e87 | — |
| meta.resultLinePrefix.contextLinePrefix.search | #341234 | — |
| comment | — | italic |
| constant.language | — | bold |
| entity.name.tag | — | bold |
| entity.name.tag.css, entity.name.tag.less | — | bold |
| entity.other.attribute-name | — | italic |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | — | italic |
| invalid | — | strikethrough |
| invalid.deprecated | — | strikethrough |
| markup.heading | — | bold underline |
| markup.inserted, markup.inserted.diff | — | underline |
| markup.deleted, markup.deleted.diff | — | strikethrough |
| markup.changed, markup.changed.diff | — | underline |
| markup.underline.link, markup.underline.link.markdown, markup.underline.link.image.markdown, meta.link.inline.markdown, meta.link.reference.markdown, string.other.link.title.markdown, string.other.link.description.markdown | — | underline |
| meta.preprocessor | — | bold |
| storage | — | bold italic underline |
| storage.type | — | bold italic underline |
| storage.modifier | — | bold |
| string | — | italic |
| string.tag | — | italic |
| string.value | — | italic |
| string.regexp | — | italic |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | — | bold |
| keyword | — | bold |
| keyword.control | — | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | — | bold |
| keyword.operator.word, keyword.operator.logical, keyword.operator.arrow, keyword.operator.assignment, keyword.operator.assignment.compound, keyword.operator.assignment.augmented, keyword.operator.bitwise, keyword.operator.bitwise.shift, keyword.operator.comparison, keyword.operator.increment, keyword.operator.ternary, keyword.operator.spread, keyword.operator.optional, keyword.operator.relation, keyword.operator.type, keyword.operator.control | — | bold |
| variable.language.this | — | bold italic |
| variable.language, variable.language.self, variable.language.super | — | bold italic |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member | — | bold |
| entity.name.function.member | — | bold |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.name.scope-resolution, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | — | bold italic |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, punctuation.separator.namespace.ruby | — | bold italic |
| keyword.control, source.cpp keyword.operator.new, source.cpp keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator | — | bold |
| variable.parameter, variable.parameter.function.language.special, entity.name.variable.parameter | — | italic |
| constant.character.escape, constant.character.escape.css, constant.character.escape.unicode, constant.character.escape.hex, constant.character.escape.octal, constant.character.escape.control, constant.character.escape.newline, constant.character.escape.backlash, constant.character.escape.double-quote, constant.character.escape.single-quote, constant.character.escape.bell, constant.character.escape.carriage-return, constant.character.escape.form-feed, constant.character.escape.line-separator, constant.character.escape.null, constant.character.escape.paragraph-separator, constant.character.escape.tab, constant.character.escape.vertical-tab | — | bold |
| variable.other.constant, variable.other.enummember | — | bold |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | — | bold |
| keyword.operator.quantifier.regexp | — | bold |
| meta.diff, meta.diff.header | — | bold |
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}!`;
}