Corn Dark
Publisher: Web ExampleThemes in package: 1
empty
empty
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.language, variable.other | #f2cdcd | — |
| entity.name.function, support.function | #89b4fa | italic |
| variable.parameter.function, variable.parameter.function-call | #f5c2e7 | italic |
| constant.numeric.decimal, constant.numeric.integer | #fab387 | bold |
| entity.name.type | #89b4fa | — |
| keyword.control, keyword.control.for, keyword.control.while, keyword.control.if, keyword.control.else, keyword.control.switch, keyword.control.case | #f38ba8 | — |
| punctuation.brackets, punctuation.section, punctuation.definition | #7f849c | — |
| punctuation.semi | #94e2d5 | — |
| entity.name.namespace | #f5e0dc | — |
| keyword.operator.comparison, keyword.operator.assignment, keyword.operator.arrow.skinny, keyword.operator.math, keyword.operator.key-value, keyword.operator.misc, keyword.operator.namespace | #89dceb | bold |
| constant.language | #b4befe | italic |
| constant.other | #fab387 | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #94e2d5 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #94e2d5 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #a6e3a1 | — |
| support.type.property-name.json.comments | #89b4fa | — |
| constant.language.json.comments | #fab387 | — |
| punctuation.separator.dictionary.pair.json.comments, punctuation.separator.array.json.comments | #94e2d5 | — |
| punctuation.definition.dictionary.begin.json.comments, punctuation.definition.dictionary.end.json.comments, punctuation.definition.array.begin.json.comments, punctuation.definition.array.end.json.comments | #9399b2 | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #89dceb | — |
| support.type.property-name.json | #94e2d5 | — |
| support.type.property-name.json punctuation | #94e2d5 | — |
| punctuation.definition.delayed.unison, punctuation.definition.list.begin.unison, punctuation.definition.list.end.unison, punctuation.definition.ability.begin.unison, punctuation.definition.ability.end.unison, punctuation.operator.assignment.as.unison, punctuation.separator.pipe.unison, punctuation.separator.delimiter.unison, punctuation.definition.hash.unison | #94e2d5 | — |
| variable.other.generic-type.haskell | #f38ba8 | — |
| storage.type.haskell | #f9e2af | — |
| storage.modifier.lifetime.rust | #cdd6f4 | — |
| entity.name.type.rust | #f9e2af | — |
| support.function.std.rust | #89b4fa | — |
| entity.name.function.rust | #89b4fa | italic |
| keyword.other.fn.rust | #eba0ac | — |
| keyword.control.rust | #cba6f7 | italic |
| punctuation.brackets.curly.rust, punctuation.brackets.round.rust, punctuation.brackets.square.rust, punctuation.brackets.attribute.rust | #7f849c | — |
| entity.name.namespace.rust | #f5e0dc | — |
| punctuation.semi.rust | #94e2d5 | — |
| keyword.operator.comparison.rust, keyword.operator.assignment.equal.rust, keyword.operator.arrow.skinny.rust, keyword.operator.math.rust, keyword.operator.key-value.rust, keyword.operator.misc.rust | #89dceb | — |
| keyword.operator.namespace.rust | #94e2d5 | — |
| punctuation.definition.attribute.rust, keyword.operator.attribute.inner.rust | #94e2d5 | bold |
| constant.numeric.decimal.rust | #fab387 | — |
| support.constant.core.rust | #f9e2af | — |
| entity.name.lifetime.rust | #fab387 | — |
| variable.language.rust, variable.other.rust | #cdd6f4 | italic |
| keyword.operator.misc.rust | #cdd6f4 | — |
| keyword.operator.sigil.rust | #f38ba8 | — |
| keyword.operator.lua | #89dceb | bold |
| constant.numeric.integer.lua | #fab387 | bold |
| variable.other.lua | #b4befe | italic |
| punctuation.definition.parameters.end.lua, punctuation.definition.parameters.begin.lua | #7f849c | — |
| support.constant.edge | #f38ba8 | — |
| constant.other.character-class.regexp | #94e2d5 | — |
| keyword.operator.quantifier.regexp | #f9e2af | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #a6e3a1 | — |
| comment markup.link | #6c7086 | — |
| markup.changed.diff | #fab387 | — |
| meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff | #89b4fa | — |
| markup.inserted.diff | #a6e3a1 | — |
| markup.deleted.diff | #94e2d5 | — |
| punctuation.separator.key-value | #cdd6f4 | — |
| keyword.operator.expression.import | #89b4fa | — |
| support.constant.math | #fab387 | — |
| support.constant.property.math | #f9e2af | — |
| variable.other.constant | #cdd6f4 | — |
| storage.type.annotation.java, storage.type.object.array.java | #fab387 | — |
| source.java | #94e2d5 | — |
| punctuation.section.block.begin.java, punctuation.section.block.end.java, punctuation.definition.method-parameters.begin.java, punctuation.definition.method-parameters.end.java, meta.method.identifier.java, punctuation.section.method.begin.java, punctuation.section.method.end.java, punctuation.terminator.java, punctuation.section.class.begin.java, punctuation.section.class.end.java, punctuation.section.inner-class.begin.java, punctuation.section.inner-class.end.java, meta.method-call.java, punctuation.section.class.begin.bracket.curly.java, punctuation.section.class.end.bracket.curly.java, punctuation.section.method.begin.bracket.curly.java, punctuation.section.method.end.bracket.curly.java, punctuation.separator.period.java, punctuation.bracket.angle.java, punctuation.definition.annotation.java, meta.method.body.java | #cdd6f4 | — |
| meta.method.java | #89b4fa | — |
| storage.modifier.import.java,storage.type.java,storage.type.generic.java | #fab387 | — |
| keyword.operator.instanceof.java | #f38ba8 | — |
| meta.definition.variable.name.java | #cdd6f4 | — |
| keyword.operator.logical, keyword.operator.ternary | #89dceb | bold |
| keyword.operator.bitwise | #89dceb | — |
| keyword.operator.channel | #89dceb | — |
| support.constant.property-value.scss, support.constant.property-value.css | #f9e2af | — |
| keyword.operator.css, keyword.operator.scss, keyword.operator.less | #89dceb | — |
| support.constant.color.w3c-standard-color-name.css, support.constant.color.w3c-standard-color-name.scss | #f9e2af | — |
| punctuation.separator.list.comma.css | #cdd6f4 | — |
| support.constant.color.w3c-standard-color-name.css | #f9e2af | — |
| support.type.vendored.property-name.css | #89dceb | — |
| support.module.node, support.type.object.module, support.module.node | #fab387 | — |
| entity.name.type.module | #fab387 | — |
| variable.other.readwrite, meta.object-literal.key, support.variable.property, support.variable.object.process, support.variable.object.node | #cdd6f4 | — |
| support.constant.json | #f9e2af | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof | #f38ba8 | — |
| support.type.object.console | #94e2d5 | — |
| support.variable.property.process | #f9e2af | — |
| entity.name.function,support.function.console | #89b4fa | — |
| keyword.operator.delete | #f38ba8 | — |
| support.type.object.dom | #89dceb | — |
| support.variable.dom, support.variable.property.dom | #94e2d5 | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment, keyword.operator.relational | #89dceb | bold |
| keyword.operator.c, keyword.operator.increment.c, keyword.operator.decrement.c, keyword.operator.bitwise.shift.c, keyword.operator.cpp, keyword.operator.increment.cpp, keyword.operator.decrement.cpp, keyword.operator.bitwise.shift.cpp | #89dceb | bold |
| punctuation.separator.delimiter | #cdd6f4 | — |
| punctuation.separator.c, punctuation.separator.cpp | #f38ba8 | — |
| support.type.posix-reserved.c, support.type.posix-reserved.cpp | #89dceb | — |
| keyword.operator.sizeof.c, keyword.operator.sizeof.cpp | #f38ba8 | — |
| keyword.operator | #89dceb | bold |
| keyword | #f38ba8 | — |
| entity.name.namespace | #fab387 | — |
| variable.language | #fab387 | — |
| token.variable.parameter.java | #cdd6f4 | — |
| import.storage.java | #fab387 | — |
| token.package.keyword | #f38ba8 | — |
| token.package | #cdd6f4 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #89b4fa | italic |
| entity.name.type.namespace | #fab387 | — |
| support.class, entity.name.type.class | #fab387 | — |
| entity.name.class.identifier.namespace.type | #fab387 | — |
| entity.name.class, variable.other.class.js, variable.other.class.ts | #fab387 | — |
| variable.other.class.php | #94e2d5 | — |
| entity.name.type | #fab387 | — |
| keyword.control | #89dceb | — |
| control.elements, keyword.operator.less | #f9e2af | — |
| keyword.other.special-method | #89b4fa | — |
| storage | #f38ba8 | — |
| token.storage | #f38ba8 | — |
| keyword.operator.expression.delete, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.expression.typeof, keyword.operator.expression.void | #f38ba8 | — |
| token.storage.type.java | #fab387 | — |
| support.function | #89dceb | — |
| support.type.property-name | #cdd6f4 | — |
| support.constant.property-value | #cdd6f4 | — |
| support.constant.font-name | #f9e2af | — |
| meta.tag | #cdd6f4 | — |
| string | #a6e3a1 | — |
| entity.other.inherited-class | #fab387 | — |
| constant.other.symbol | #89dceb | — |
| constant.numeric | #fab387 | — |
| constant | #f9e2af | — |
| punctuation.definition.constant | #f9e2af | — |
| entity.name.tag | #cba6f7 | — |
| entity.other.attribute-name | #89b4fa | — |
| entity.other.attribute-name.id | #89b4fa | |
| entity.other.attribute-name.class.css | #f9e2af | |
| variable.scss | #cba6f7 | — |
| meta.selector | #f38ba8 | — |
| markup.heading | #94e2d5 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #89b4fa | — |
| keyword.other.unit | #94e2d5 | — |
| markup.bold,todo.bold | #f9e2af | — |
| punctuation.definition.bold | #fab387 | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #f38ba8 | — |
| emphasis md | #f38ba8 | — |
| entity.name.section.markdown | #94e2d5 | — |
| punctuation.definition.heading.markdown | #94e2d5 | — |
| punctuation.definition.list.begin.markdown | #94e2d5 | — |
| markup.heading.setext | #cdd6f4 | — |
| punctuation.definition.bold.markdown | #f9e2af | — |
| markup.inline.raw.markdown | #a6e3a1 | — |
| markup.inline.raw.string.markdown | #a6e3a1 | — |
| punctuation.definition.list.markdown | #94e2d5 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #94e2d5 | — |
| beginning.punctuation.definition.list.markdown | #94e2d5 | — |
| punctuation.definition.metadata.markdown | #94e2d5 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #f38ba8 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #89b4fa | — |
| string.regexp | #89dceb | — |
| constant.character.escape | #89dceb | — |
| punctuation.section.embedded, variable.interpolation | #94e2d5 | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #f38ba8 | — |
| invalid.illegal, invalid.deprecated | #6c7086 | strikethrough |
| invalid.illegal.bad-ampersand.html | #cdd6f4 | — |
| invalid.broken | #f38ba8 | — |
| invalid.unimplemented | #a6adc8 | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #f38ba8 | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #f38ba8 | — |
| keyword.operator.error-control.php | #f38ba8 | — |
| keyword.operator.type.php | #f38ba8 | — |
| punctuation.section.array.begin.php | #cdd6f4 | — |
| punctuation.section.array.end.php | #cdd6f4 | — |
| invalid.illegal.non-null-typehinted.php | #f38ba8 | — |
| storage.type.php, meta.other.type.phpdoc.php, keyword.other.type.php, keyword.other.array.phpdoc.php | #fab387 | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #89b4fa | — |
| punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.separator.delimiter.php, punctuation.section.scope.begin.php, punctuation.section.scope.end.php, punctuation.terminator.expression.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.definition.storage-type.begin.bracket.round.php, punctuation.definition.storage-type.end.bracket.round.php, punctuation.definition.array.begin.bracket.round.php, punctuation.definition.array.end.bracket.round.php, punctuation.definition.begin.bracket.round.php, punctuation.definition.end.bracket.round.php, punctuation.definition.begin.bracket.curly.php, punctuation.definition.end.bracket.curly.php, punctuation.definition.section.switch-block.end.bracket.curly.php, punctuation.definition.section.switch-block.start.bracket.curly.php, punctuation.definition.section.switch-block.begin.bracket.curly.php, punctuation.definition.section.switch-block.end.bracket.curly.php | #cdd6f4 | — |
| support.constant.ext.php, support.constant.std.php, support.constant.core.php, support.constant.parser-token.php | #f9e2af | — |
| entity.name.goto-label.php,support.other.php | #89b4fa | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #89dceb | — |
| keyword.operator.regexp.php | #f38ba8 | — |
| keyword.operator.comparison.php | #89dceb | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #f38ba8 | — |
| function.parameter | #cdd6f4 | — |
| function.brace | #cdd6f4 | — |
| rgb-value | #89dceb | — |
| inline-color-decoration rgb-value | #f9e2af | — |
| less rgb-value | #f9e2af | — |
| selector.sass | #94e2d5 | — |
| support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx | #fab387 | — |
| block.scope.end,block.scope.begin | #cdd6f4 | — |
| storage.type.cs | #fab387 | — |
| entity.name.variable.local.cs | #cdd6f4 | — |
| token.info-token | #89b4fa | — |
| token.warn-token | #f9e2af | — |
| token.error-token | #f38ba8 | — |
| token.debug-token | #f38ba8 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #f38ba8 | — |
| meta.template.expression | #cdd6f4 | — |
| keyword.operator.module | #f38ba8 | — |
| support.type.type.flowtype | #89b4fa | — |
| support.type.primitive | #fab387 | — |
| meta.property.object | #94e2d5 | — |
| variable.parameter.function.js | #94e2d5 | — |
| keyword.other.template.begin | #a6e3a1 | — |
| keyword.other.template.end | #a6e3a1 | — |
| keyword.other.substitution.begin | #a6e3a1 | — |
| keyword.other.substitution.end | #a6e3a1 | — |
| keyword.import.go | #89b4fa | — |
| punctuation.quasi.element | #f38ba8 | — |
| constant.character.entity | #94e2d5 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #89dceb | — |
| meta.scope.prerequisites.makefile | #94e2d5 | — |
| source.makefile | #fab387 | — |
| storage.modifier.import.groovy | #fab387 | — |
| meta.method.groovy | #89b4fa | — |
| meta.definition.variable.name.groovy | #94e2d5 | — |
| meta.definition.class.inherited.classes.groovy | #a6e3a1 | — |
| support.type.swift, support.type.vb.asp | #fab387 | — |
| entity.name.function.xi | #89b4fa | — |
| entity.name.class.xi | #89dceb | — |
| constant.character.character-class.regexp.xi | #94e2d5 | — |
| constant.regexp.xi | #f38ba8 | — |
| keyword.control.xi | #89dceb | — |
| invalid.xi | #cdd6f4 | — |
| beginning.punctuation.definition.quote.markdown.xi | #a6e3a1 | — |
| beginning.punctuation.definition.list.markdown.xi | #6c7086 | — |
| constant.character.xi | #89b4fa | — |
| accent.xi | #89b4fa | — |
| wikiword.xi | #f9e2af | — |
| constant.other.color.rgb-value.xi | #89dceb | — |
| punctuation.definition.tag.xi | #6c7086 | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #94e2d5 | — |
| meta.brace.square | #cdd6f4 | — |
| comment, punctuation.definition.comment | #6c7086 | italic |
| markup.quote.markdown | #6c7086 | — |
| punctuation.definition.block.sequence.item.yaml | #cdd6f4 | — |
| constant.language.symbol.elixir | #89dceb | — |
| entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, variable.parameter, variable.language.super | — | italic |
| comment.line.double-slash,comment.block.documentation | — | italic |
| markup.italic.markdown | — | italic |
| invalid.deprecated.line-too-long.git-commit | #f9e2af | underline |
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}!`;
}