Adventure theme
Publisher: zoodogoodThemes in package: 2
Highlight comments, but dim keywords and operators using purple instead of red for errors
Highlight comments, but dim keywords and operators using purple instead of red for errors
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 |
|---|---|---|
| string | #ce9178 | — |
| variable.parameter.function.language.special.self,variable.language.this | #ffffff30 | italic |
| 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 | #e06c75 | — |
| variable.other.generic-type.haskell | #ffffff30 | — |
| storage.type.haskell | #d19a66 | — |
| support.variable.magic.python | #e06c75 | — |
| punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python | #ffffffa0 | — |
| variable.parameter.function.language.special.self.python | #ebedee | — |
| storage.modifier.lifetime.rust | #ffffffa0 | — |
| support.function.std.rust | #ecc06e | — |
| entity.name.lifetime.rust | #ebedee | — |
| variable.language.rust | #e06c75 | — |
| support.constant.edge | #ffffff30 | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #ce9178 | — |
| variable.parameter.function | #ffffffa0 | — |
| comment markup.link | #8bafde | — |
| markup.changed.diff | #ebedee | — |
| meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff | #ecc06e | — |
| markup.inserted.diff | #ce9178 | — |
| markup.deleted.diff | #e06c75 | — |
| meta.function.c,meta.function.cpp | #e06c75 | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #ffffffa0 | — |
| punctuation.separator.key-value | #ffffffa0 | — |
| keyword.operator.expression.import | #ecc06e | — |
| support.constant.math | #ebedee | — |
| support.constant.property.math | #d19a66 | — |
| variable.other.constant | #ebedee | — |
| storage.type.annotation.java, storage.type.object.array.java | #ffffff30 | — |
| source.java | #e06c75 | — |
| 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 | #ffffffa0 | — |
| meta.method.java | #ecc06e | — |
| storage.modifier.import.java,storage.type.java,storage.type.generic.java | #ebedee | — |
| meta.definition.variable.name.java | #e06c75 | — |
| support.constant.property-value.scss, support.constant.property-value.css, support.constant.color.current | #d19a66 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #d19a66 | — |
| punctuation.separator.list.comma.css | #ffffffa0 | — |
| support.constant.color.w3c-standard-color-name.css | #d19a66 | — |
| support.type.vendored.property-name.css | #ffffff30 | — |
| support.module.node,support.type.object.module,support.module.node | #ebedee | — |
| entity.name.type.module | #ebedee | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node, meta.object-literal.key string | #e06c75 | — |
| support.constant.json | #d19a66 | — |
| keyword.operator.new, keyword.operator.optional, keyword.operator.expression.keyof, keyword.operator.expression.void, keyword.operator.module | #ffffff30 | — |
| support.type.object.console | #e06c75 | — |
| support.variable.property.process | #d19a66 | — |
| entity.name.function,support.function.console | #ecc06e | — |
| keyword.operator.misc.rust | #ffffffa0 | — |
| keyword.operator.sigil.rust | #ffffff30 | — |
| support.type.object.dom | #ffffff30 | — |
| support.variable.dom,support.variable.property.dom | #e06c75 | — |
| punctuation.separator.delimiter | #ffffffa0 | — |
| punctuation.separator.c,punctuation.separator.cpp | #ffffff30 | — |
| support.type.posix-reserved.c,support.type.posix-reserved.cpp | #ffffff30 | — |
| variable.parameter.function.language.python | #d19a66 | — |
| support.type.python | #ffffff30 | — |
| variable.parameter.function.python | #d19a66 | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python | #ffffffa0 | — |
| meta.function-call.generic.python | #ecc06e | — |
| constant.character.format.placeholder.other.python | #d19a66 | — |
| keyword.operator | #ffffffa0 | — |
| keyword | #ffffff30 | — |
| entity.name.namespace | #ebedee | — |
| variable | #e06c75 | — |
| variable.c | #ffffffa0 | — |
| variable.language | #ebedee | — |
| token.variable.parameter.java | #ffffffa0 | — |
| import.storage.java | #ebedee | — |
| token.package.keyword | #ffffff30 | — |
| token.package | #ffffffa0 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #ecc06e | — |
| entity.name.type.namespace | #ebedee | — |
| support.class, entity.name.type.class | #ebedee | — |
| entity.name.class.identifier.namespace.type | #ebedee | — |
| entity.name.class, variable.other.class.js, variable.other.class.ts | #ebedee | — |
| variable.other.class.php | #e06c75 | — |
| entity.name.type | #ebedee | — |
| keyword.control | #ffffff30 | — |
| control.elements, keyword.operator.less | #d19a66 | — |
| keyword.other.special-method | #ecc06e | — |
| storage | #ffffff30 | — |
| token.storage | #ffffff30 | — |
| token.storage.type.java | #ebedee | — |
| support.function | #ecc06e | — |
| source.css support.function | #6a915c | — |
| meta.function.variable.css support.function | #ffffff30 | — |
| support.type.property-name | #ce9178 | — |
| support.constant.property-value | #ce9178 | — |
| support.constant.font-name | #d19a66 | — |
| meta.tag | #ffffffa0 | — |
| entity.other.inherited-class | #ebedee | — |
| constant.other.symbol | #ffffff30 | — |
| constant.numeric | #d19a66 | — |
| constant | #d19a66 | — |
| punctuation.definition.constant | #d19a66 | — |
| entity.other.attribute-name.id | #ecc06e | |
| entity.other.attribute-name.class.css | #d19a66 | |
| markup.heading | #e06c75 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #ecc06e | — |
| markup.bold,todo.bold | #d19a66 | — |
| punctuation.definition.bold | #ebedee | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #ffffff30 | — |
| emphasis md | #ffffff30 | — |
| entity.name.section.markdown | #e06c75 | — |
| punctuation.definition.heading.markdown | #e06c75 | — |
| punctuation.definition.list.begin.markdown | #e06c75 | — |
| markup.heading.setext | #ffffffa0 | — |
| punctuation.definition.bold.markdown | #d19a66 | — |
| markup.inline.raw.markdown | #ce9178 | — |
| markup.inline.raw.string.markdown | #ce9178 | — |
| punctuation.definition.list.markdown | #e06c75 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #e06c75 | — |
| beginning.punctuation.definition.list.markdown | #e06c75 | — |
| punctuation.definition.metadata.markdown | #e06c75 | — |
| markup.underline.link | #ffffff30 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #ecc06e | — |
| constant.character.escape | #ffffff30 | — |
| punctuation.section.embedded, variable.interpolation | #e06c75 | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #ffffff30 | — |
| invalid.illegal | #ffffff | — |
| invalid.illegal.bad-ampersand.html | #ffffffa0 | — |
| invalid.broken | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| invalid.unimplemented | #ffffff | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #e06c75 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #e06c75 | — |
| 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 | #ce9178 | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #ffffff30 | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #ffffff30 | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #ffffff30 | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php | #ebedee | — |
| keyword.operator.type.php | #ffffff30 | — |
| punctuation.section.array.begin.php | #ffffffa0 | — |
| punctuation.section.array.end.php | #ffffffa0 | — |
| invalid.illegal.non-null-typehinted.php | #f44747 | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #ebedee | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #ecc06e | — |
| 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 | #ffffffa0 | — |
| support.constant.core.rust | #d19a66 | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #d19a66 | — |
| entity.name.goto-label.php,support.other.php | #ecc06e | — |
| keyword.operator.comparison.php | #ffffff30 | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #ffffff30 | — |
| meta.function.decorator.python | #ecc06e | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #ffffff30 | — |
| function.parameter | #ffffffa0 | — |
| function.brace | #ffffffa0 | — |
| function.parameter.ruby, function.parameter.cs | #ffffffa0 | — |
| constant.language.symbol.ruby | #ffffff30 | — |
| rgb-value | #ffffff30 | — |
| inline-color-decoration rgb-value | #d19a66 | — |
| less rgb-value | #d19a66 | — |
| selector.sass | #e06c75 | — |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #ce9178 | — |
| block.scope.end,block.scope.begin | #ffffffa0 | — |
| storage.type.cs | #ebedee | — |
| entity.name.variable.local.cs | #e06c75 | — |
| token.info-token | #ecc06e | — |
| token.warn-token | #d19a66 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #ffffff30 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #ffffff30 | — |
| meta.template.expression | #ffffffa0 | — |
| support.type.type.flowtype | #ecc06e | — |
| support.type.primitive | #ce9178 | — |
| meta.property.object, support.variable.property | #e06c75 | — |
| variable.parameter.function.js | #e06c75 | — |
| keyword.other.template.begin | #ce9178 | — |
| keyword.other.template.end | #ce9178 | — |
| keyword.other.substitution.begin | #ce9178 | — |
| keyword.other.substitution.end | #ce9178 | — |
| entity.name.package.go | #ebedee | — |
| support.type.prelude.elm | #ffffff30 | — |
| support.constant.elm | #d19a66 | — |
| punctuation.quasi.element | #ffffff30 | — |
| constant.character.entity | #e06c75 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #ffffff30 | — |
| entity.global.clojure | #ebedee | — |
| meta.symbol.clojure | #e06c75 | — |
| constant.keyword.clojure | #ffffff30 | — |
| meta.arguments.coffee, variable.parameter.function.coffee | #e06c75 | — |
| source.ini | #ce9178 | — |
| meta.scope.prerequisites.makefile | #e06c75 | — |
| source.makefile | #ebedee | — |
| storage.modifier.import.groovy | #ebedee | — |
| meta.method.groovy | #ecc06e | — |
| meta.definition.variable.name.groovy | #e06c75 | — |
| meta.definition.class.inherited.classes.groovy | #ce9178 | — |
| support.variable.semantic.hlsl | #ebedee | — |
| support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, support.type.object.hlsl | #ffffff30 | — |
| text.variable, text.bracketed | #e06c75 | — |
| support.type.swift, support.type.vb.asp | #ebedee | — |
| entity.name.function.xi | #ebedee | — |
| entity.name.class.xi | #ffffff30 | — |
| constant.character.character-class.regexp.xi | #e06c75 | — |
| constant.regexp.xi | #ffffff30 | — |
| keyword.control.xi | #ffffff30 | — |
| invalid.xi | #ffffffa0 | — |
| beginning.punctuation.definition.quote.markdown.xi | #ce9178 | — |
| beginning.punctuation.definition.list.markdown.xi | #8bafde | — |
| constant.character.xi | #ecc06e | — |
| accent.xi | #ecc06e | — |
| wikiword.xi | #d19a66 | — |
| constant.other.color.rgb-value.xi | #ffffff | — |
| punctuation.definition.tag.xi | #8bafde | — |
| entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #ebedee | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #e06c75 | — |
| meta.brace.square | #ffffffa0 | — |
| comment, punctuation.definition.comment | #8bafde | italic |
| markup.quote.markdown | #8bafde | — |
| punctuation.definition.block.sequence.item.yaml | #ffffffa0 | — |
| constant.language.symbol.elixir | #ffffff30 | — |
| 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 |
| keyword.control.import.python,keyword.control.flow.python | — | italic |
| markup.italic.markdown | — | italic |
| punctuation.definition.typeparameters.begin, punctuation.definition.typeparameters.end | #ffffffa0 | — |
| meta.type.annotation punctuation.definition.parameters.begin,meta.type.annotation punctuation.definition.parameters.end | #ffffffa0 | — |
| variable.parameter.misc.css | #ffffffa0 | — |
| keyword.other.debugger | #ecc06e | — |
| text | #cccccc | — |
| meta.property-list.css | #ffffffa0 | — |
| support.type.property-name.css, meta.property-name.css, entity.other.attribute-name | #e06c75 | — |
| keyword.other.unit | #c69160 | — |
| support.class.component | #d19a66 | — |
| variable.argument.css | — | italic |
| meta.attribute.rust | #8bafde | — |
| support.type.property-name.json, support.type.property-name.json punctuation | #6a915c | — |
| entity.name.tag | #ffffff30 | bold |
| meta.tag.structure.section.start entity.name.tag, meta.tag.structure.main.start entity.name.tag, meta.tag.structure.aside.start entity.name.tag, meta.tag.structure.footer.start entity.name.tag, meta.tag.structure.nav.start entity.name.tag, meta.tag.structure.header.start entity.name.tag, meta.tag.structure.html.start entity.name.tag, meta.tag.custom.start entity.name.tag, meta.scope.tag.section meta.tag.start entity.name.tag, meta.scope.tag.main meta.tag.start entity.name.tag, meta.scope.tag.aside meta.tag.start entity.name.tag, meta.scope.tag.footer meta.tag.start entity.name.tag, meta.scope.tag.nav meta.tag.start entity.name.tag, meta.scope.tag.header meta.tag.start entity.name.tag, meta.scope.tag.html meta.tag.start entity.name.tag, meta.tag.start meta.tag.custom entity.name.tag | #6a915c | bold |
| meta.tag.metadata.style.start entity.name.tag, meta.tag.metadata.script.start entity.name.tag, meta.scope.tag.style entity.name.tag, meta.style.svelte entity.name.tag, meta.scope.tag.script entity.name.tag, meta.script.svelte entity.name.tag | #c69160 | — |
| entity.name.tag.css, entity.name.tag.custom.css, entity.name.tag.wildcard.css | #6a915c | |
| string.regexp, keyword.operator.regexp.php, string.regexp keyword | #ce9178 | — |
| string.regexp constant.character.escape | #ce9178 | — |
| string.regexp constant.other.character-class.range, constant.other.character-class.regexp, support.other.escape.special.regexp, keyword.control.anchor.regexp, support.other.match.any.regexp, support.other.match.end.regexp, support.other.match.begin.regexp | #ebedee | — |
| string.regexp keyword.operator.quantifier | #72af5b | — |
| string.regexp keyword.other | #e06c75 | — |
| string.regexp punctuation.definition, punctuation.parenthesis.regexp, keyword.operator.lookbehind.regexp, keyword.operator.lookahead.regexp | #e06c75 | — |
| string.regexp meta.group.assertion | #ffffffa0 | — |
| meta.object-binding-pattern-variable variable.object.property | #ffffff30 | — |
| keyword.operator.assignment, keyword.operator.increment, keyword.operator.decrement | #ecc06e | — |
| keyword.operator.expression.delete | #ecc06e | — |
| meta.field.declaration keyword.operator.assignment, meta.var.expr keyword.operator.assignment, meta.parameters keyword.operator.assignment, meta.type.parameters keyword.operator.assignment, meta.enum.declaration keyword.operator.assignment | #ffffffa0 | — |
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}!`;
}