VSCode Dark++
Publisher: ihnney DevThemes in package: 1
Make my style
Make my style
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #BD93F9 | — |
| source | #F8F8F2 | — |
| meta.diff, meta.diff.header | #6272A4 | — |
| markup.inserted | #20E3B2 | — |
| markup.deleted | #FF5555 | — |
| markup.changed | #FFB86C | — |
| invalid | #FF5555 | underline italic |
| invalid.deprecated | #F8F8F2 | underline italic |
| entity.name.filename | #F1FA8C | — |
| markup.error | #FF5555 | — |
| markup.underline | — | underline |
| markup.bold | #FFB86C | bold |
| markup.heading | #BD93F9 | bold |
| markup.italic | #F1FA8C | italic |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #8BE9FD | — |
| markup.inline.raw, markup.raw.restructuredtext | #20E3B2 | — |
| markup.underline.link, markup.underline.link.image | #8BE9FD | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #FF79C6 | — |
| entity.name.directive.restructuredtext, markup.quote | #F1FA8C | italic |
| meta.separator.markdown | #6272A4 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #20E3B2 | — |
| punctuation.definition.constant.restructuredtext | #BD93F9 | — |
| markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #BD93F9 | — |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #F8F8F2 | — |
| markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #F1FA8C | — |
| entity.name.type.class, entity.name.class | #8BE9FD | italic |
| keyword.expressions-and-types.swift, keyword.other.this, variable.language, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #BD93F9 | italic |
| entity.other.inherited-class | #8BE9FD | italic |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class | #FF79C6 | — |
| comment.block.documentation entity.name.type | #8BE9FD | italic |
| comment.block.documentation entity.name.type punctuation.definition.bracket | #8BE9FD | — |
| comment.block.documentation variable | #FFB86C | italic |
| constant, variable.other.constant | #BD93F9 | — |
| constant.character.escape, constant.character.string.escape, constant.regexp | #FF79C6 | — |
| entity.name.tag | #FF79C6 | — |
| entity.other.attribute-name.parent-selector | #FF79C6 | — |
| entity.other.attribute-name | #20E3B2 | italic |
| entity.name.function, meta.function-call.generic, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, support.function.any-method.lua, keyword.operator.function.infix | #20E3B2 | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #FFB86C | italic |
| meta.decorator variable.other.readwrite, meta.decorator variable.other.property | #20E3B2 | italic |
| meta.decorator variable.other.object | #20E3B2 | — |
| keyword, punctuation.definition.keyword | #FF79C6 | — |
| keyword.control.new, keyword.operator.new | — | bold |
| meta.selector | #FF79C6 | — |
| support | #8BE9FD | |
| support.function.magic, support.variable, variable.other.predefined | #BD93F9 | italic |
| support.function, support.type.property-name | — | italic |
| 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.group.double.toml, meta.group.toml, 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 | #FF79C6 | — |
| keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, 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, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor | #F8F8F2 | — |
| meta.string-contents.quoted.double punctuation.definition.variable, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.coffee, punctuation.section.embedded.end, punctuation.section.embedded.end source.php, punctuation.section.embedded.end source.ruby, punctuation.definition.variable.makefile | #FF79C6 | — |
| entity.name.function.target.makefile, entity.name.section.toml, entity.name.tag.yaml, variable.other.key.toml | #8BE9FD | — |
| constant.other.date, constant.other.timestamp | #FFB86C | — |
| variable.other.alias.yaml | #20E3B2 | italic underline |
| storage, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def | #FF79C6 | italic |
| entity.name.type, 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 | #8BE9FD | italic |
| entity.name.type.type-parameter, meta.indexer.mappedtype.declaration entity.name.type, meta.type.parameters entity.name.type | #FFB86C | — |
| storage.modifier | #FF79C6 | — |
| string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp | #F1FA8C | — |
| punctuation.definition.group.capture.regexp | #FF79C6 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #FF5555 | — |
| punctuation.definition.character-class.regexp | #8BE9FD | — |
| punctuation.definition.group.regexp | #FFB86C | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #FF5555 | — |
| meta.assertion.look-ahead.regexp | #20E3B2 | — |
| string | #F1FA8C | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #E9F284 | — |
| punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #8BE9FE | — |
| string.quoted.docstring.multi, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python constant.character.escape | #6272A4 | — |
| variable, constant.other.key.perl, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx | #F8F8F2 | — |
| meta.import variable.other.readwrite, meta.object-binding-pattern-variable variable.object.property, meta.variable.assignment.destructured.object.coffee variable | #FFB86C | italic |
| meta.export variable.other.readwrite.alias, meta.variable.assignment.destructured.object.coffee variable variable | #F8F8F2 | |
| meta.selectionset.graphql variable | #F1FA8C | — |
| meta.selectionset.graphql meta.arguments variable | #F8F8F2 | — |
| entity.name.fragment.graphql, variable.fragment.graphql | #8BE9FD | — |
| 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 | #F8F8F2 | — |
| source.shell variable.other | #BD93F9 | — |
| support.constant | #BD93F9 | — |
| meta.scope.prerequisites.makefile | #F1FA8C | — |
| meta.attribute-selector.scss | #F1FA8C | — |
| punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #F8F8F2 | — |
| meta.preprocessor.haskell | #6272A4 | — |
| entity.other.attribute-name, entity.name.function, support.type.media-names.css, support.type.property-names.css, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.html, variable.other.class.js, variable.other.class.ts | #20E3B2 | |
| variable.other.property.js, variable.other.property.jsx, variable.other.property.ts, variable.other.property.tsx, variable.other.property.static.js, variable.other.property.static.jsx, variable.other.property.static.ts, variable.other.property.static.tsx, JSXNested, variable.other.readwrite.js, punctuation.semi-colon, punctuation.colon, punctuation.definition.tag | #FFFFFF | — |
| variable.graphql, string, punctuation.definition.string.begin, punctuation.definition.string.end, meta.attribute-selector.scss, meta.attribute-selector.css | #EAC394 | — |
| keyword, storage, constant.length.units.css, source.inside-js.css.styled, constant.numeric.css, punctuation.definition.keyword, entity.name.tag, keyword.other.unit.percentage.css, keyword.other.unit.px.css, keyword.other.unit.rem.css, constant.length.units.css, constant.percentage.units.css, constant.time.units.css, constant.angle.units.css | #FF6BCB | — |
| variable.parameter, variable.other.constant, variable.other.constant.ts, variable.other.constant.tsx, support.variable, constant, support.type.property-name.media.css, meta.property-values.css, support.constant | #9A86FD | |
| support.class.component | — | |
| variable.other.constant.object, variable.other.readwrite.shorthandpropertyname.js | #BD93F9 | — |
| entity.name.type.parameter | #FFB86C | — |
| support.constant.important.css, punctuation.important.css, support.function, support.function.css, support.function.transform.css, constant.language.pseudo.css, constant.language.pseudo.prefixed.css, entity.name.function.scss | #BD93F9 | — |
| support, entity.name.type, meta.interface.ts, entity.other.inherited-class | #2CCCFF | — |
| meta.import variable.other.readwrite.alias, support.variable.property, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.readwrite.js, entity.name.type.class, variable.other.property.js, variable.other.property.ts, variable.other.property.tsx, variable.scss, storage.modifier.ts, variable.other.property.static.js, string.unquoted.js, meta.object-literal.key | #82AAFF | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| constant.length.units.css, constant.percentage.units.css, support.type.media-names.css, support.type.property-names.css | #9B87FD | — |
| meta.paragraph.markdown, text.html.derivative, JSXNested | #FBF3E8 | — |
| entity.name.class.js, entity.name.class.jsx, entity.name.class.ts, entity.name.class.tsx | #2cccff | — |
| storage.type.js, storage.type.jsx, storage.type.ts, storage.type.tsx | #FC77AA | bold italic |
| storage.type.function.js, storage.type.function.jsx, storage.type.function.ts, storage.type.function.tsx | #FC77AA | italic |
| keyword.operator.new.js, keyword.operator.new.jsx, keyword.operator.new.ts, keyword.operator.new.tsx | #FC77AA | bold italic |
| meta.object-literal.key.js, meta.object-literal.key.jsx, meta.object-literal.key.ts, meta.object-literal.key.tsx | #0bd3f7 | — |
| entity.name.function.js, entity.name.function.jsx, entity.name.function.ts, entity.name.function.tsx | #20E3B2 | italic |
| support.function.js, support.function.jsx, support.function.ts, support.function.tsx | #20E3B2 | — |
| support.class.builtin.js, support.class.builtin.jsx, support.class.builtin.ts, support.class.builtin.tsx | #01ecb2da | italic bold |
| string | #e0bb8d | — |
| variable.parameter.js, variable.parameter.jsx, variable.parameter.ts, variable.parameter.tsx | #8fd8ff | italic |
| variable.other.object.js, variable.other.object.jsx, variable.other.object.ts, variable.other.object.tsx | #fde181 | — |
| variable.other.object.property.js, variable.other.object.property.jsx, variable.other.object.property.ts, variable.other.object.property.tsx | #91bffc | — |
| variable.other.readwrite.js, variable.other.readwrite.jsx, variable.other.readwrite.ts, variable.other.readwrite.tsx | #0bd3f7 | — |
| variable.other.constant.js, variable.other.constant.jsx, variable.other.constant.ts, variable.other.constant.tsx | #e6e6e6 | — |
| variable.other.property.js, variable.other.property.jsx, variable.other.property.ts, variable.other.property.tsx | #00bbf9 | — |
| constant.language.boolean.js, constant.language.boolean.jsx, constant.language.boolean.ts, constant.language.boolean.tsx | #8d7aec | — |
| constant.numeric.js, constant.numeric.jsx, constant.numeric.ts, constant.numeric.tsx | #cd8c4f | — |
| punctuation.separator.key-value.js, punctuation.separator.key-value.jsx, punctuation.separator.key-value.ts, punctuation.separator.key-value.tsx | #4b98e0 | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #587186 | — |
| variable.other.object.js, variable.other.object.jsx, variable.other.object.ts, variable.other.object.tsx | #f0dd88 | — |
| entity.name.type.class.js, entity.name.type.class.jsx, entity.name.type.class.ts, entity.name.type.class.tsx | #3dd4cd | italic |
| variable.language.this.js, variable.language.this.jsx, variable.language.this.ts, variable.language.this.tsx, storage.modifier.js, storage.modifier.jsx, storage.modifier.ts, storage.modifier.tsx, storage.modifier.async.js, storage.modifier.async.jsx, storage.modifier.async.ts, storage.modifier.async.tsx, keyword.control.flow.js, keyword.control.flow.jsx, keyword.control.flow.ts, keyword.control.flow.tsx | #FC77AA | italic |
| storage.type.class.js, storage.type.class.jsx, storage.type.class.ts, storage.type.class.tsx | #f781ae | italic bold |
| punctuation.definition.begin.js, punctuation.definition.begin.jsx, punctuation.definition.begin.ts, punctuation.definition.begin.tsx | #8d7d83 | — |
| constant.numeric.decimal.js, constant.numeric.decimal.jsx, constant.numeric.decimal.ts, constant.numeric.decimal.tsx, constant.language.boolean.true.js, constant.language.boolean.true.jsx, constant.language.boolean.true.ts, constant.language.boolean.true.tsx, constant.language.boolean.false.js, constant.language.boolean.false.jsx, constant.language.boolean.false.ts, constant.language.boolean.false.tsx | #e79372 | — |
| keyword.operator.arithmetic.js, keyword.operator.arithmetic.jsx, keyword.operator.arithmetic.ts, keyword.operator.arithmetic.tsx, keyword.operator.assignment.js, keyword.operator.assignment.jsx, keyword.operator.assignment.ts, keyword.operator.assignment.tsx | #8BE9FD | — |
| support.constant.json.js, support.constant.json.jsx, support.constant.json.ts, support.constant.json.tsx | — | italic |
| variable.other.constant.property.js, variable.other.constant.property.jsx, variable.other.constant.property.ts, variable.other.constant.property.tsx | #0BD3F7 | — |
| variable.other.constant.property.js, variable.other.constant.property.jsx, variable.other.constant.property.ts, variable.other.constant.property.tsx, variable.other.readwrite.alias.js, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx | #0BD3F7 | — |
| keyword.control.import.js, keyword.control.import.jsx, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.as.js, keyword.control.as.jsx, keyword.control.as.ts, keyword.control.as.tsx, keyword.control.from.js, keyword.control.from.jsx, keyword.control.from.ts, keyword.control.from.tsx, keyword.operator.relational.js, keyword.operator.relational.jsx, keyword.operator.relational.ts, keyword.operator.relational.tsx, keyword.operator.logical.js, keyword.operator.logical.jsx, keyword.operator.logical.ts, keyword.operator.logical.tsx, keyword.control.switch.js, keyword.control.switch.jsx, keyword.control.switch.ts, keyword.control.switch.tsx, keyword.control.conditional.js, keyword.control.conditional.jsx, keyword.control.conditional.ts, keyword.control.conditional.tsx, keyword.control.trycatch.js, keyword.control.trycatch.jsx, keyword.control.trycatch.ts, keyword.control.trycatch.tsx, constant.language.json, constant.numeric.json, constant.numeric.css, keyword.control.at-rule.media.css, keyword.operator.logical.and.media.css, meta.selector.css, entity.name.tag.html | #FC77AA | — |
| support.constant.property-value.css, invalid.deprecated.* | #0bd4db | — |
| support.constant.property-value.css, invalid.deprecated.* | #0bd4db | — |
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}!`;
}