Lanternfish
Publisher: Curtis TarrThemes in package: 2
High-contrast, low-intensity light and dark themes.
High-contrast, low-intensity light and dark themes.
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 |
|---|---|---|
| variable, meta.definition.variable entity.name.function, text.html.markdown, meta.paragraph.markdown, meta.scope.subject.git-commit, text.git-commit meta.scope.subject | #e3d9cb | — |
| comment, punctuation.definition.comment, string.comment, meta.tag.metadata.doctype entity.name.tag, meta.tag.sgml.doctype | #877d70 | italic |
| keyword.codetag.notation, comment.line.keyword, comment.block.documentation keyword, variable.parameter, meta.parameter variable.other, meta.function.parameters variable.other, variable.language.this, variable.language.self, variable.language.super, variable.language.special, constant.language.this, markup.italic, punctuation.definition.italic.markdown, support.function.magic.python | #b6a2ce | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, comment.block.documentation storage.type, comment.block.documentation punctuation.definition.block.tag | #9b9386 | italic |
| comment.block.documentation variable, comment.block.documentation entity.name.type, variable.other.jsdoc | #877d70 | italic |
| string, meta.attribute-selector string, support.constant.property-value.css, meta.property-value.css, support.constant.font-name.css, meta.structure.dictionary.value.json string.quoted.double.json, markup.inline.raw, markup.fenced_code.block.markdown, markup.raw.block | #dcc074 | — |
| punctuation.definition.string, keyword.other.unit, constant.numeric.other.unit, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.separator, punctuation.comma | #9b9386 | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression, punctuation.definition.string.interpolated, entity.other.attribute-name.table.toml, support.type.property-name.table.toml | #54b394 | bold |
| constant.character.escape, constant.other.placeholder, constant.character.string.escape, meta.type.parameters entity.name.type, support.type.object.module, variable.language, support.variable, support.variable.property.dom, variable.other.global, meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation, storage.type.annotation, meta.decorator entity.name.function, constant.character.entity, punctuation.definition.entity, entity.other.attribute-name.id, variable.scss, variable.other.less, variable.argument.css, variable.parameter.url.scss, punctuation.definition.list.begin.markdown, markup.list.numbered.markdown, markup.list.unnumbered.markdown, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, keyword.other.back-reference.regexp, punctuation.definition.character-class.regexp, variable.other.normal.shell, variable.other.special.shell, punctuation.definition.variable.shell, string.interpolated.dollar.shell, markup.changed, meta.fstring.python, constant.character.format.placeholder.other.python, entity.name.function.macro.rust, meta.macro.rust, entity.name.function.preprocessor | #b6a2ce | — |
| constant.numeric, constant.language, support.constant, constant.other, variable.other.constant, variable.other.enummember, entity.name.constant, entity.name.label, punctuation.definition.label, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, punctuation.definition.entity.css, constant.character.escape.regexp, constant.character.numeric.regexp, meta.diff.range, meta.diff.index, punctuation.definition.range.diff | #e58bb0 | — |
| keyword, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.logical.python, keyword.operator.wordlike, storage, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, meta.import keyword.other, support.function.import, entity.name.tag, support.class.component, keyword.control.at-rule, punctuation.definition.keyword.css, punctuation.definition.group.regexp, punctuation.definition.group.capture.regexp, meta.group.regexp, markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted.diff | #54b394 | — |
| keyword.control | #7ba898 | — |
| keyword.operator, meta.brace.pipe, markup.table, punctuation.definition.table.markdown | #b7ad9e | — |
| punctuation.definition.bracket, punctuation.definition.brackets, punctuation.definition.begin.bracket, punctuation.definition.end.bracket, punctuation.section.brackets, punctuation.section.braces, punctuation.section.parens, punctuation.section.parenthesis, punctuation.section.group, punctuation.section.block, punctuation.section.array, punctuation.definition.block, punctuation.definition.group, punctuation.definition.array, punctuation.definition.list, punctuation.definition.dict, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.definition.typeparameters, punctuation.parenthesis, punctuation.parentheses, punctuation.brackets, punctuation.bracket, punctuation.squarebracket, punctuation.curlybrace, punctuation.section.embedded, punctuation.definition.tag, meta.brace.round, meta.brace.square, meta.brace.curly, meta.embedded.brace | #b7ad9e | bold |
| entity.name.function, meta.function entity.name.function, meta.definition.function entity.name.function, meta.function.declaration entity.name.function, storage.type.function.method, keyword.other.special-method, meta.function-call entity.name.function, variable.function, meta.function-call.generic, meta.method-call entity.name.function, support.function, support.macro, entity.other.attribute-name, meta.attribute.unrecognized entity.other.attribute-name, meta.function.calc, meta.structure.dictionary.json meta.structure.dictionary.value support.type.property-name.json, entity.name.command.shell, markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted.diff | #cd80da | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.other.inherited-class, support.class, support.type, meta.type.annotation entity.name.type, storage.type.primitive, keyword.type, support.class.component, entity.name.tag.jsx, entity.name.tag.tsx, entity.name.tag.js.jsx, support.type.property-name.css, support.type.property-name.less, support.type.property-name.scss, meta.property-name.css, support.type.property-name.json, meta.structure.dictionary.json support.type.property-name, string.json support.type.property-name, entity.name.tag.yaml, entity.name.tag.yml, keyword.key.toml, entity.name.tag.toml, entity.name.section.group-title.ini, keyword.other.definition.ini, string.other.link.title.markdown, string.other.link.description.markdown, markup.link, string.regexp, string.regexp punctuation.definition.string, constant.other.reference.git, string.other.issue.git-commit, entity.name.fragment.graphql, variable.fragment.graphql | #82b3d0 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property, variable.object.property, meta.object-literal.key string, support.type.property-name, constant.other.option.shell, string.unquoted.argument.shell, variable.graphql, meta.selectionset.graphql variable | #d8cebf | — |
| invalid | #e06a7e | underline |
| invalid.deprecated | #dcc074 | strikethrough |
| markup.heading, markup.heading entity.name, entity.name.section.markdown, punctuation.definition.heading.markdown | #cd80da | bold |
| markup.bold, punctuation.definition.bold.markdown | #b6a2ce | bold |
| markup.bold markup.italic, markup.italic markup.bold | #b6a2ce | bold italic |
| markup.strikethrough | #968b7d | strikethrough |
| punctuation.definition.markdown, fenced_code.block.language.markdown, punctuation.definition.raw.markdown | #877d70 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, constant.other.reference.link.markdown | #e58bb0 | underline |
| markup.quote, punctuation.definition.quote.begin.markdown | #968b7d | italic |
| meta.separator.markdown, punctuation.definition.constant.markdown | #5a5349 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #e58bb0 | italic |
| meta.preprocessor, keyword.control.directive, punctuation.definition.directive | #54b394 | italic |
| constant.character.escape.line-continuation | #968b7d | — |
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 |
|---|---|---|
| variable, meta.definition.variable entity.name.function, text.html.markdown, meta.paragraph.markdown, meta.scope.subject.git-commit, text.git-commit meta.scope.subject | #3b352d | — |
| comment, punctuation.definition.comment, string.comment, meta.tag.metadata.doctype entity.name.tag, meta.tag.sgml.doctype | #877b6a | italic |
| keyword.codetag.notation, comment.line.keyword, comment.block.documentation keyword, variable.parameter, meta.parameter variable.other, meta.function.parameters variable.other, variable.language.this, variable.language.self, variable.language.super, variable.language.special, constant.language.this, markup.italic, punctuation.definition.italic.markdown, support.function.magic.python | #6a52a8 | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, comment.block.documentation storage.type, comment.block.documentation punctuation.definition.block.tag | #706a5d | italic |
| comment.block.documentation variable, comment.block.documentation entity.name.type, variable.other.jsdoc | #877b6a | italic |
| string, meta.attribute-selector string, support.constant.property-value.css, meta.property-value.css, support.constant.font-name.css, meta.structure.dictionary.value.json string.quoted.double.json, markup.inline.raw, markup.fenced_code.block.markdown, markup.raw.block | #7d6200 | — |
| punctuation.definition.string, keyword.other.unit, constant.numeric.other.unit, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.separator, punctuation.comma | #706a5d | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression, punctuation.definition.string.interpolated, entity.other.attribute-name.table.toml, support.type.property-name.table.toml | #0f7a5f | bold |
| constant.character.escape, constant.other.placeholder, constant.character.string.escape, meta.type.parameters entity.name.type, support.type.object.module, variable.language, support.variable, support.variable.property.dom, variable.other.global, meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.annotation, storage.type.annotation, meta.decorator entity.name.function, constant.character.entity, punctuation.definition.entity, entity.other.attribute-name.id, variable.scss, variable.other.less, variable.argument.css, variable.parameter.url.scss, punctuation.definition.list.begin.markdown, markup.list.numbered.markdown, markup.list.unnumbered.markdown, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, keyword.other.back-reference.regexp, punctuation.definition.character-class.regexp, variable.other.normal.shell, variable.other.special.shell, punctuation.definition.variable.shell, string.interpolated.dollar.shell, markup.changed, meta.fstring.python, constant.character.format.placeholder.other.python, entity.name.function.macro.rust, meta.macro.rust, entity.name.function.preprocessor | #6a52a8 | — |
| constant.numeric, constant.language, support.constant, constant.other, variable.other.constant, variable.other.enummember, entity.name.constant, entity.name.label, punctuation.definition.label, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, punctuation.definition.entity.css, constant.character.escape.regexp, constant.character.numeric.regexp, meta.diff.range, meta.diff.index, punctuation.definition.range.diff | #b83c7a | — |
| keyword, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.logical.python, keyword.operator.wordlike, storage, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, meta.import keyword.other, support.function.import, entity.name.tag, support.class.component, keyword.control.at-rule, punctuation.definition.keyword.css, punctuation.definition.group.regexp, punctuation.definition.group.capture.regexp, meta.group.regexp, markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted.diff | #0f7a5f | — |
| keyword.control | #4a7a68 | — |
| keyword.operator, meta.brace.pipe, markup.table, punctuation.definition.table.markdown | #6b6558 | — |
| punctuation.definition.bracket, punctuation.definition.brackets, punctuation.definition.begin.bracket, punctuation.definition.end.bracket, punctuation.section.brackets, punctuation.section.braces, punctuation.section.parens, punctuation.section.parenthesis, punctuation.section.group, punctuation.section.block, punctuation.section.array, punctuation.definition.block, punctuation.definition.group, punctuation.definition.array, punctuation.definition.list, punctuation.definition.dict, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.definition.typeparameters, punctuation.parenthesis, punctuation.parentheses, punctuation.brackets, punctuation.bracket, punctuation.squarebracket, punctuation.curlybrace, punctuation.section.embedded, punctuation.definition.tag, meta.brace.round, meta.brace.square, meta.brace.curly, meta.embedded.brace | #6b6558 | bold |
| entity.name.function, meta.function entity.name.function, meta.definition.function entity.name.function, meta.function.declaration entity.name.function, storage.type.function.method, keyword.other.special-method, meta.function-call entity.name.function, variable.function, meta.function-call.generic, meta.method-call entity.name.function, support.function, support.macro, entity.other.attribute-name, meta.attribute.unrecognized entity.other.attribute-name, meta.function.calc, meta.structure.dictionary.json meta.structure.dictionary.value support.type.property-name.json, entity.name.command.shell, markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted.diff | #9a3fc0 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.other.inherited-class, support.class, support.type, meta.type.annotation entity.name.type, storage.type.primitive, keyword.type, support.class.component, entity.name.tag.jsx, entity.name.tag.tsx, entity.name.tag.js.jsx, support.type.property-name.css, support.type.property-name.less, support.type.property-name.scss, meta.property-name.css, support.type.property-name.json, meta.structure.dictionary.json support.type.property-name, string.json support.type.property-name, entity.name.tag.yaml, entity.name.tag.yml, keyword.key.toml, entity.name.tag.toml, entity.name.section.group-title.ini, keyword.other.definition.ini, string.other.link.title.markdown, string.other.link.description.markdown, markup.link, string.regexp, string.regexp punctuation.definition.string, constant.other.reference.git, string.other.issue.git-commit, entity.name.fragment.graphql, variable.fragment.graphql | #2f6f9e | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property, variable.object.property, meta.object-literal.key string, support.type.property-name, constant.other.option.shell, string.unquoted.argument.shell, variable.graphql, meta.selectionset.graphql variable | #4a4235 | — |
| invalid | #c00b33 | underline |
| invalid.deprecated | #7d6200 | strikethrough |
| markup.heading, markup.heading entity.name, entity.name.section.markdown, punctuation.definition.heading.markdown | #9a3fc0 | bold |
| markup.bold, punctuation.definition.bold.markdown | #6a52a8 | bold |
| markup.bold markup.italic, markup.italic markup.bold | #6a52a8 | bold italic |
| markup.strikethrough | #756b5c | strikethrough |
| punctuation.definition.markdown, fenced_code.block.language.markdown, punctuation.definition.raw.markdown | #877b6a | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, constant.other.reference.link.markdown | #b83c7a | underline |
| markup.quote, punctuation.definition.quote.begin.markdown | #756b5c | italic |
| meta.separator.markdown, punctuation.definition.constant.markdown | #aca8a1 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #b83c7a | italic |
| meta.preprocessor, keyword.control.directive, punctuation.definition.directive | #0f7a5f | italic |
| constant.character.escape.line-continuation | #756b5c | — |
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}!`;
}