Dang! Dark
Publisher: Aaqa IshtyaqThemes in package: 2
🔥 Dark theme for vscode
🔥 Dark theme for vscode
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 |
|---|---|---|
| — | #ffffff | — |
| comment, punctuation.definition.comment, string.quoted.docstring | #464B5D | italic |
| variable, string constant.other.placeholder | #8F93A2 | — |
| constant.other.php | #FFCB6B | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #FF5370 | — |
| invalid.deprecated | #C792EA | — |
| keyword, storage.type, storage.modifier | #C792EA | — |
| Keyword, Storage | — | italic |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #89DDFF | — |
| keyword.control | — | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #82AAFF | — |
| source.cpp meta.block variable.other | #f07178 | — |
| variable.other.constant | #f07178 | — |
| support.other.variable, string.other.link | #f07178 | — |
| constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other | #F78C6C | — |
| constant.numeric, constant.language.null | #ff628c | — |
| variable.parameter.function.language.special, variable.parameter | #FF5370 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #a5ff90 | italic |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #80ffbb | — |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #B2CCD6 | — |
| entity.other.inherited-class.js | #B2CCD6 | — |
| variable.language, entity.name.type.class.js | #fb94ff | — |
| source.js storage.type.function | #fb94ff | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| variable.language | #FF5370 | italic |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #82AAFF | — |
| markup.inserted | #80ffbb | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #FF5370 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFCB6B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F78C6C | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5370 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #82AAFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #80ffbb | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #8F93A2 | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #80869E50 | — |
| text.html.markdown meta.dummy.line-break | — | |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.strike | strike | |
| markup.quote punctuation.definition.blockquote.markdown | #80869E50 | — |
| markup.quote | italic | |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #8F93A290 | — |
| variable.language.fenced.markdown | #80869E50 | — |
| meta.separator | #80869E50 | bold |
| markup.table | #8F93A2 | — |
| constant.character.format.placeholder.other.python | #F78C6C | — |
| python.support.magic.variable | #FB467B | — |
| meta.function.decorator.python | #7834d1 | — |
| python.builtin.support.function | #CB6CFE | |
| string.quoted.docstring.multi.python, string.quoted.docstring.multi.python keyword.control.flow.python | #5C6370 | italic |
| source.go meta.function-call.go | #DDDDDD | — |
| source.go keyword.package.go, source.go keyword.function.go, source.go keyword.struct.go, source.go keyword.interface.go | #89DDFF | italic |
| source.go keyword.const.go, source.go keyword.type.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #FF628C | italic |
| source.go constant.language.go, source.go constant.other.placeholder.go | #F78C6C | — |
| string.template punctuation.definition.string | #80CBC4 | — |
| entity.name.tag.yaml | #C792EA | — |
| string.unquoted.plain.out.yaml | #8F93A2 | — |
| meta.tag.js meta.embedded.expression.js punctuation.section.embedded.begin.js, meta.tag.js meta.embedded.expression.js punctuation.section.embedded.end.js, meta.property-list.css meta.property-value.css variable.other.less, punctuation.section.embedded.begin.js.jsx, punctuation.section.embedded.end.js.jsx, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.type, punctuation.section.embedded.js, punctuation.definintion.string, punctuation, string | — | normal |
| keyword.other.unit, entity.name.function.ts, entity.name.function.tsx, support.type.primitive, entity.other.attribute-name, entity.name.tag.custom, source.js.jsx keyword.control.flow.js, support.type.property.css, support.function.basic_functions, variable.assignment.coffee, support.function.basic_functions, keyword.operator.type.annotation, punctuation.section.embedded, assignment.coffee, entity.name.type.ts, italic, quote, type .function, type.function, storage.type.class, keyword.control, modifier, this | — | italic |
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 |
|---|---|---|
| — | #CED5E5 | — |
| comment, punctuation.definition.comment | #5C6370 | italic |
| string.quoted.docstring.multi.python, string.quoted.docstring.multi.python keyword.control.flow.python | #5C6370 | italic |
| meta.brace.round.begin, meta.brace.round.end, meta.brace.square.begin, meta.brace.square.end, meta.brace.curly.begin, meta.brace.curly.end, meta.group.braces.round.function.arguments | #97a7c8ff | — |
| string | #a5ff90 | italic |
| Boolean | #CB6CFE | italic |
| string.regexp | #C3E88D | — |
| string.detected-link | #CB6CFE | — |
| constant.numeric, constant.language, markdown.python.constant.numeric | #F78C6C | — |
| constant.character | #56D6D6 | — |
| constant.character.escape.backslash.regexp | #C3E88D | — |
| constant.character.format.placeholder.other.python | #F78C6C | — |
| constant.other.key, meta.group.braces.curly constant.other.object.key string.unquoted.label | #56D6D6 | — |
| variable.other.object | #FB467B | — |
| meta.property.object | #F78C6C | — |
| variable.other.class, meta.class.property variable.other.property | #FB467B | — |
| variable.other, meta.class.object.property, meta.property.class variable.other.property.static | #F78C6C | — |
| variable.other.readwrite | #FB467B | — |
| meta.group.braces variable.other.readwrite | #FB467B | — |
| variable.language, meta.class variable.other.readwrite | #97a7c8ff | — |
| variable.language.prototype | #CED5E5 | — |
| python.support.magic.variable | #FB467B | — |
| meta.function-call, variable.function, support.function, keyword.other.special-method, meta.block-level | #61AFEF | — |
| entity.name.function | #FFCC00 | — |
| meta.function-call.generic.python | #61AFEF | — |
| meta.function.decorator.python | #56D6D6 | — |
| variable.function.constructor | #FFCC00 | — |
| keyword.control, keyword.operator.new, keyword.operator.module, variable.language.super | #CB6CFE | — |
| meta.preprocessor, entity.name.function.preprocessor | #CB6CFE | — |
| entity.name.function.preprocessor | #FFCC00 | — |
| meta.namespace.identifier entity.name.type, entity.name.variable | #FFCC00 | — |
| cs.meta.namespace.function.identifier.body.class.method | #61AFEF | — |
| storage.type.cs, storage.type.variable.cs | #56D6D6 | — |
| keyword, keyword.other.namespace, storage.modifier | #CB6CFE | — |
| keyword.operator.logical.python | #CB6CFE | — |
| keyword.other.substitution.begin, keyword.other.substitution.end | #56D6D6 | — |
| keyword.operator.accessor | #97a7c8ff | — |
| keyword.operator, constant.other.color, punctuation.separator.key-value | #56D6D6 | — |
| keyword.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.control.anchor.regexp | #C3E88D | — |
| python.keyword.operator | #56D6D6 | — |
| entity.name.class, meta.class.extends variable.other.readwrite | #FFCC00 | |
| entity.other.inherited-class | #FFCC00 | italic underline |
| variable.parameter,token.variable.parameter,variable.other.jsdoc,variable.language.arguments,function.parameter | #FB467B | italic |
| variable.parameter.function.language.python | #FB467B | |
| entity.name.tag | #FB467B | — |
| entity.other.attribute-name | #AE81FF | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #FFCB6B | italic |
| selector.css.entity.other.attribute-name | #FFCC00 | — |
| source.sass keyword.control | #61AFEF | — |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.css support.type, source.sass support.type, source.scss support.type, source.less support.type, source.stylus support.type | #56D6D6 | — |
| support.function, support.class support.function | #56D6D6 | — |
| python.builtin.support.function | #CB6CFE | |
| python.meta.function-call.builtin.support.function, python.meta.type.support.function-call, python.meta.variable.function-call.legacy.builtin | #FFCC00 | |
| meta.type.support.inheritance.python | #56D6D6 | |
| entity.name.type.class.python | #FFCC00 | — |
| support.constant | #F78C6C | |
| support.type, support.class | #CB6CFE | |
| support.other.variable | — | |
| css.property-list.property-name | #56D6D6 | |
| invalid | #FFFFFF | — |
| invalid.deprecated | #523D14 | — |
| meta.structure.dictionaryon support.type.property-name | #FB467B | — |
| meta.structure.dictionaryon string.quoted.doubleon | #C3E88D | — |
| meta.structure.dictionaryon string.quoted.double.detected-link | #CB6CFE | — |
| markup.heading | #FB467B | — |
| string.other.link.title.markdown, string.other.link.description.markdown, meta.paragraph.markdown entity.name.tag.inline.any | #61AFEF | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #CB6CFE | — |
| markup.bold.markdown | — | bold |
| markup.fenced_code.block.markdown, markup.fenced.code.block.markdown, markup.raw.inline.markdown, markdown.block.raw | #56D6D6 | — |
| markup.fenced_code.block.markdown fenced_code.block.language, markup.fenced.code.block.markdown fenced.code.block.language | #F78C6C | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.raw.markdown, meta.paragraph.markdown punctuation.definition.tag | #56D6D6 | — |
| markdown.fenced_code.block.markdown constant.numeric, markdown.fenced.code.block.markdown constant.numeric, markdown.fenced_code.block.markdown constant.language, markdown.fenced.code.block.markdown constant.language | #F78C6C | — |
| markdown.block.fenced.code.string, markdown.block.fenced.code.string.quote | #C3E88D | — |
| markup.fenced_code.block.markdown keyword.operator, markup.fenced_code.block.markdown keyword.operator.logical.python, markup.fenced.code.block.markdown keyword.operator, markup.fenced_code.block.markdown keyword.control, markup.fenced.code.block.markdown keyword.control, markup.fenced_code.block.markdown storage.type, markup.fenced_code.block.markdown storage.type.function.lambda, markdown.block.fenced.code.lambda.storage.type | #61AFEF | — |
| markdown.block.fenced.code.operator.assignment | #97a7c8ff | — |
| markdown.block.variable.parameter | #F78C6C | — |
| meta.diff, meta.diff.header | #CED5E5 | — |
| markup.deleted | #FB467B | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword, storage.type, storage.modifier | #AE81FF | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}