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 | #FFFFFF | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #000080 | — |
| comment | #5a8a4a | — |
| constant.language | #569cd6 | — |
| constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #b5cea8 | — |
| constant.regexp | #b46695 | — |
| constant.character | #569cd6 | — |
| entity.name.tag | #569cd6 | — |
| entity.name.tag.css, entity.name.tag.less | #d7ba7d | — |
| entity.other.attribute-name | #9cdcfe | — |
| 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 | #d7ba7d | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #6796e6 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #b07050 | — |
| markup.changed | #569cd6 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor | #569cd6 | — |
| meta.preprocessor.string | #b07050 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| storage | #569cd6 | — |
| storage.type | #569cd6 | — |
| storage.modifier | #569cd6 | — |
| string | #b07050 | — |
| string.tag | #b07050 | — |
| string.value | #b07050 | — |
| string.regexp | #b05050 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #569cd6 | — |
| meta.template.expression | #ffffff | — |
| support.type.vendored.property-name, support.type.property-name, source.css variable, source.coffee.embedded | #d4d4d4 | — |
| keyword | #569cd6 | — |
| keyword.control | #569cd6 | — |
| keyword.operator | #d4d4d4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #569cd6 | — |
| keyword.other.unit | #b5cea8 | — |
| support.function.git-rebase | #d4d4d4 | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language.this | #569cd6 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member | #DCDCAA | — |
| 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 | #4EC9B0 | — |
| 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 | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, source.cpp keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator | #C586C0 | — |
| variable, meta.definition.variable.name, support.variable | #9CDCFE | — |
| meta.object-literal.key | #9CDCFE | — |
| 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 | #CE9178 | — |
| meta.resultLinePrefix.contextLinePrefix.search | #CBEDCB | — |
| 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 |
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}!`;
}
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}!`;
}