Dev Theme Pro
Publisher: Faizan AshiqThemes in package: 6
6-in-1 dark theme with Markdown preview, Mermaid diagrams, table tools, export workflows, and code snapshots.
6-in-1 dark theme with Markdown preview, Mermaid diagrams, table tools, export workflows, and code snapshots.
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 |
|---|---|---|
| Default | #bababa | — |
| comment, punctuation.definition.comment, string.quoted.docstring | #677373 | italic |
| invalid, invalid.illegal | #F06279 | — |
| invalid.deprecated | #aa4b4b92 | — |
| keyword, keyword.control.flow, storage.type, storage.modifier, variable.language.this, variable.language.super, support.type.object.module, keyword.control, keyword.other, punctuation.accessor.optional | #B070FF | — |
| punctuation, punctuation.separator.inheritance, punctuation.separator.comma, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, meta.brace, punctuation.definition.block, meta.objectliteral punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.binding-pattern.object, punctuation.terminator, keyword.operator.type.annotation, punctuation.separator.key-value | #D8E9FAcc | — |
| string.quoted, string.quoted.single, punctuation.definition.string, string.template, string.interpolated | #cc866a | — |
| string.other.link | #F06262 | — |
| string.regexp | #578EFB | — |
| variable, support.variable.property, support.other.variable, meta.objectliteral meta.object.member variable.other.readwrite, variable.parameter | #bababa | — |
| constant.numeric.decimal, constant.language, constant, support.constant.property-value, variable.other.constant.property | #d65689 | — |
| meta.object-literal.key, variable.other.property | #9D9ECF | — |
| entity.name.type, entity.other.inherited-class, support.type, support.class, support.class.component, support.other, meta.use.php, markup.changed.git_gutter, variable.other.readwrite meta.object.member meta.objectliteral meta.object.member meta.objectliteral, meta.type.annotation support.type.primitive | #BAAF6D | bold |
| meta.method.declaration meta.block meta.function-call entity.name.function, meta.definition.method, meta.var.expr meta.function-call entity.name.function, meta.block meta.function-call entity.name.function, meta.function-call entity.name.function | #45BF80 | — |
| meta.decorator entity.name.function, meta.decorator variable.other.property, source.ts meta.decorator.ts meta.function-call.ts entity.name.function.ts | #6194FC | bold |
| entity.name.tag support.class.component | #6194FC | bold |
| meta.jsx.children | #cbcbcb | — |
| entity.name.module | #578EFB | — |
| *url*, *link*, *uri* | — | underline |
| source.json meta.structure.dictionary.json support.type.property-name.json | #a3b565 | |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #9f74c0 | |
| 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 | #ef748c | |
| 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 | #ed899a | |
| 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 | #cf988d | |
| 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 | #92abdf | |
| 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 | #d89396 | |
| 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 | #c7a6dd | |
| 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 | #bbd199 | |
| source.json | — | |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #e15a90 | — |
| text.html.basic, text.html.derivative, meta.embedded.block.html | #bababa | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #e15a9099 | — |
| entity.other.attribute-name | #29adce | italic |
| keyword.operator.assignment.html, punctuation.separator.key-value.html | #D8E9FA99 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #cc866a | — |
| constant.character.entity.html, constant.character.entity, punctuation.definition.entity.html | #d65689 | — |
| meta.tag.metadata.doctype.html, meta.tag.sgml.doctype, keyword.other.doctype, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml.doctype string | #677373 | italic |
| entity.name.tag.script, entity.name.tag.style | #B070FF | — |
| 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, support.type.property-name.css, support.type.property-name.media.css, support.type.vendored.property-name.css | #9D9ECF | |
| support.constant.property-value, support.constant.property-value.css, support.constant.color.w3c-standard-color-name, support.constant.color.w3c-extended-color-name, constant.other.color.rgb-value, constant.other.color, meta.property-value.css constant.other.color.rgb-value | #d65689 | — |
| keyword.other.unit, keyword.other.unit.css, keyword.other.unit.scss, keyword.other.unit.less | #578EFB | — |
| keyword.control.at-rule, keyword.control.at-rule.include, keyword.control.at-rule.import, keyword.control.at-rule.media, keyword.control.at-rule.keyframes, keyword.control.at-rule.each, meta.at-rule.header.css, meta.at-rule.keyword.css, variable.other.at-rule.media | #B070FF | |
| keyword.other.important | #F06279 | bold |
| support.function.misc, support.function.misc.css, support.function.transform, support.function.transition, support.function.calc, support.function.gradient, support.function.gradient.css, support.function.any-method, entity.name.function.scss, meta.function.variable.css entity.name.function | #45BF80 | — |
| variable.css, variable.argument.css, support.type.custom-property.css, support.type.custom-property.name.css | #578EFB | italic |
| entity.other.attribute-name.class, entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css | #C9A96B | |
| entity.other.attribute-name.id, entity.other.attribute-name.id.css | #578EFB | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #578EFB | — |
| variable.scss, variable.other.scss, variable.map.scss, variable.parameter.scss, variable.other.less, variable.parameter.less | #578EFB | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.less, punctuation.definition.interpolation.end.bracket.curly.less | #B070FF | — |
| source.shell | #45BF80 | — |
| string.unquoted.argument.shell | #a8b8d7 | — |
| keyword.operator.pattern.case.shell, source.shell keyword.operator.pattern.case.default, string.unquoted.shell, punctuation.definition.variable.shell variable.other.normal.shell, punctuation.definition.variable.shell, punctuation.section.array.shell, punctuation.definition.string.end.shell, punctuation.definition.logical-expression.shell, keyword.operator.pattern.case.default.shell, punctuation.section.arithmetic.double.shell, punctuation.section.parenthese.shell, meta.parenthese.group.shell, punctuation.definition.subshell.single.shell | #bababa | bold |
| punctuation.separator.statement.and.shell | #B070FF | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #B070FF | italic |
| support.function.builtin.python | #45BF80 | — |
| support.function.magic.python | #45BF80 | italic |
| support.type.python | #BAAF6D | bold |
| source.python punctuation.definition.decorator.python | #6194FC | bold |
| source.python entity.name.function.decorator.python | #6194FC | bold |
| source.python entity.name.function.python | #45BF80 | — |
| source.python entity.name.type.class.python | #BAAF6D | bold |
| source.python entity.other.inherited-class.python | #BAAF6D | bold |
| source.python constant.other.caps.python | #d65689 | — |
| source.python string.quoted.docstring | #677373 | italic |
| source.python constant.character.format.placeholder.other.python, source.python punctuation.definition.template-expression.begin.python, source.python punctuation.definition.template-expression.end.python | #578EFB | — |
| source.python meta.function.parameters.python meta.function.parameters.annotation.python | #BAAF6D | — |
| source.python punctuation.separator.annotation.result.python | #B070FF | — |
| text.html.markdown | #9FA3B2 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #D3F89D | — |
| text.html.markdown markup.inline.raw.markdown | #1A8ED2 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #9096AE50 | — |
| markup.quote punctuation.definition.blockquote.markdown | #9096AE50 | — |
| string.other.link.title.markdown | #578EFB | — |
| string.other.link.description.title.markdown | #1A8ED2 | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #9FA3B290 | — |
| variable.language.fenced.markdown | #9096AE50 | — |
| meta.separator | #9096AE50 | bold |
| markup.italic | #d65689 | italic |
| markup.bold, markup.bold string | #d65689 | 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 | #d65689 | bold |
| markup.underline | #F79C7C | underline |
| markup.raw.block | #1A8ED2 | — |
| markup.table | #9FA3B2 | — |
| markup.inserted | #D3F89D | — |
| markup.deleted | #F06279 | — |
| markup.changed | #c093de | — |
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}!`;
}