Drab Neon
Publisher: Brian BuieThemes in package: 1
It's neat.
It's neat.
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 |
|---|---|---|
| keyword, punctuation.definition.keyword, keyword.expressions-and-types.swift, keyword.operator.new, keyword.operator.of, keyword.operator.delete, variable.language, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special, storage, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def, storage.modifier | #9872C3 | — |
| keyword.operator, storage.type.function.arrow, punctuation.terminator.statement, punctuation.terminator.rule, meta.delimiter.comma | #9872C3 | — |
| support.variable.other.property, support.function.magic, support.function.method, support.variable, support.type.object.module, support.type.object.module keyword.operator, variable.other.predefined, support.type.property-name, string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp, constant.character.escape, constant.character.string.escape, constant.regexp, constant.other.date, constant.other.timestamp, variable.other.alias.yaml | #52BAB6 | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.vendored.property-value.css, support.constant.color.w3c-standard-color-name.css, support.function.misc.css, support.function.transform.css | #DFA465 | — |
| constant.other.key.perl, variable.other.object, meta.selectionset.graphql variable, meta.function-call variable.other.readwrite, constant.other.database-name.sql, constant.other.table-name.sql | #B0ACBE | — |
| entity.name.tag.yaml, constant.other.object.key, meta.property.object, entity.name.function.accessor, variable.other.property, support.type.property-name | #B0ACBE | — |
| support.type.property-name.json, entity.other.attribute-name, meta.property-name support.type.property-name, meta.structure.dictionary.json punctuation.support.type.property-name | #DE79B2 | — |
| entity.name.function.method, entity.name.function, entity.name.fragment.graphql, variable.fragment.graphql, support.function | #5A9ED7 | — |
| constant, string.quoted, string.template, punctuation.definition.string.begin, punctuation.definition.string.end, meta.property-value.css, keyword.other.unit | #B7B767 | — |
| entity.name.type.class, entity.name.class, entity.other.inherited-class, variable.other.class, variable.language.this, entity.name.type.instance | #DFA465 | — |
| variable.parameter, meta.function.parameters, entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, meta.selectionset.graphql meta.arguments variable | #B0ACBE | italic |
| entity.name.tag.html, entity.name.tag.css, entity.name.tag.reference.scss, entity.name.tag.tsx, entity.name.tag.open.jsx, entity.name.tag.open.tsx, entity.name.tag.close.jsx, entity.name.tag.close.tsx, support.class.component.open, support.class.component.close, punctuation.definition.tag, meta.selector, meta.attribute-selector.scss, meta.selector entity.other.attribute-name | #6EC979 | — |
| constant.other.symbol.hashkey punctuation.definition.constant.ruby, entity.other.attribute-name.placeholder punctuation, entity.other.attribute-name.pseudo-class punctuation, entity.other.attribute-name.pseudo-element punctuation, meta.object-binding-pattern-variable punctuation.destructuring, punctuation.colon.graphql, punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.entity.other.inherited-class, punctuation.function.swift, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.inheritance, punctuation.separator.key-value, punctuation.separator.key-value.mapping.yaml, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, string.unquoted.heredoc punctuation.definition.string, support.other.chomping-indicator.yaml, punctuation.separator.annotation | #9872C3 | — |
| keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, meta.brace.square, meta.brace.curly, meta.function-call punctuation, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, punctuation.definition.entity.begin, punctuation.definition.entity.end, punctuation.definition.tag.cs, punctuation.definition.type.begin, punctuation.definition.type.end, punctuation.section.scope.begin, punctuation.section.scope.end, punctuation.terminator.expression.php, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor, punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #B0ACBE | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment, storage.type.class.jsdoc, entity.name.type.instance.jsdoc | #546685 | italic |
| keyword.primitive-datatypes.swift, keyword.type.cs, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell entity.other.attribute-name, storage.class.std.rust, storage.type.attribute.swift, storage.type.c, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.objc, storage.type.php, storage.type.haskell, storage.type.ocaml | #9872C3 | italic |
| constant.other.symbol.hashkey.ruby, keyword.operator.dereference.java, keyword.operator.navigation.groovy, meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string, storage.modifier.import, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.separator.list.comma.css, constant.language.empty-list.haskell | #B0ACBE | — |
| log.error | #CD6F77 | — |
| log.warning | #B7B767 | — |
| log.info | #52BAB6 | — |
| log.debug | #546685 | — |
| log.constant | #B0ACBE | — |
| emphasis, markup.italic | — | italic |
| strong, markup.bold | — | bold |
| markup.inserted | #6EC979 | — |
| markup.deleted | #CD6F77 | — |
| markup.error | #CD6F77 | — |
| markup.changed | #B7B767 | — |
| markup.underline | — | underline |
| invalid | #CD6F77 | underline italic |
| markup.heading, markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #DE79B2 | bold |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #5A9ED7 | — |
| markup.inline.raw, markup.raw.restructuredtext | #6EC979 | — |
| markup.underline.link, markup.underline.link.image | #5A9ED7 | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #52BAB6 | — |
| entity.name.directive.restructuredtext, markup.quote, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #B7B767 | italic |
| meta.separator.markdown | #9872C3 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #6EC979 | — |
| punctuation.definition.constant.restructuredtext | #DE79B2 | — |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #B0ACBE | — |
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}!`;
}