One DarkPuccin
Publisher: ni3ravThemes in package: 6
A VS Code theme inspired by One Dark and Catppuccin.
A VS Code theme inspired by One Dark and Catppuccin.
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 |
|---|---|---|
| comment, punctuation.definition.comment, comment.block.documentation punctuation.definition.bracket, source.ocaml comment constant.regexp meta.separator, markup.other.anchor support.constant, markup.fenced_code, markup.fenced_code punctuation.definition, punctuation.definition.heading, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.strikethrough.markdown | #8890B5 | |
| entity.name, entity.name.package.go, entity.name.package.kotlin, entity.name.variable, markup.code, markup.fenced_code.block, meta.embedded.block variable punctuation.definition.variable.php, meta.function-call.arguments.python, meta.template.expression.kotlin, meta.toc-list.id.html, meta.var.clojure, parameter.variable.function, punctuation.definition.placeholder, punctuation.definition.variable, source.apacheconf, source.c, source.coffee, source.coffee.embedded.source, source.cpp, source.crystal, source.elixir.embedded.source, source.elm meta.declaration.module, source.elm meta.value, source.go, source.groovy.embedded.source, source.json meta.structure.dictionary.json support.type.property-name.json, source.julia, source.objc, source.powershell, source.python, source.reason variable.language, source.reason variable.language string.other.link, source.ruby, source.scala entity.name.import, source.shell, source.sql.embedded, source.swift, source.tf meta.template.expression, source.toml keyword, string constant.other.placeholder, string.quoted.double.class.other, string.quoted.double.kotlin entity.string.template.element.kotlin, string.quoted.interpolated.vala constant.character.escape.vala, support, support.variable, variable, variable.argument, variable.css, variable.global, variable.object, variable.other, variable.other.normal punctuation.definition.variable.shell, variable.other.readwrite, variable.scss | #C0CCF0 | |
| entity.name.variable.parameter, variable.parameter, variable.import.parameter | #E9D5CF | |
| constant, variable.other.constant, variable.other.constant.object, support.constant, constant.character.entity, support.variable.magic, markup.quote, punctuation.bracket.angle, entity.name.function.preprocessor.c, storage.type.scala, entity.helper.apacheconf, variable.language.crystal, punctuation.definition.constant, support.constant punctuation.definition.variable, constant.character.math, support.class.math, source.graphql constant.character, source.reason constant.language.list, support.variable.class.hideshow, entity.other.attribute-name.class, text.html entity.other.attribute-name, meta.tag.attributes entity.other.attribute-name, source.cs entity.other.attribute-name, constant.character.format.placeholder, constant.other.placeholder, source.vue entity.other.attribute-name, entity.other.attribute-name.mjml, source.vue meta.directive punctuation.separator.key-value, meta.definition.attribute-entry punctuation.separator, support.constant.property-value, constant.character.character-class.regexp, constant.language.empty-list.haskell, constant.language.unit.fsharp, source.reason constant.language.unit, constant.other, constant.other.caps, constant.others, constant.numeric, constant.language, constant.language.boolean, onstant.language.undefined, constant.language.null, meta.expression.implicit | #A59CFF | |
| entity.name.namespace, entity.name.type.namespace, support.other.namespace, punctuation.separator.namespace.access | #8EDAD0 | |
| entity.name.module | #8EDAD0 | |
| variable.other.object, variable.other.class, entity.name.type, entity.name.type.class, entity.name.class, support.class, support.class.builtin, entity.other.inherited-class | #F2BC99 | |
| variable.other.struct, entity.name.type.struct, entity.name.struct | #F493AF | |
| variable.other.enum, entity.name.type.enum, entity.name.enum | #ECA6B2 | |
| variable.other.enummember, entity.name.type.enummember, entity.name.variable.enum-member, entity.name.enumMember, entity.name.enummember | #ECA6B2 | |
| variable.other.interface, entity.name.type.interface, entity.name.type.trait, entity.name.interface | #ECDCB2 | |
| variable.function, support.type.property-name, support.type.vendored.property-name, entity.name.function, string.other.link, markup.link, support.type.vendored, support.other.variable, meta.function-call.generic.python, meta.method-call.groovy meta.method.groovy, meta.class.body.groovy meta.method.body.java storage.type.groovy, punctuation.definition.decorator, support.function.any-method, text.tex support.function, text.tex punctuation.definition.function, entity.name.section.fsharp entity.name.section.fsharp, support.variable.class.function, keyword.control.cucumber.table, punctuation.decorator, source.tf support.class, support.function, support.function.construct., meta.group.simple.subexpression.powershell | #97C0FF | |
| constant.other.color, constant.string.documentation.powershell, entity.name.lifetime.rust, entity.name.section, entity.name.section.group-title.editorconfig, entity.name.type.primitive, entity.other.attribute-name.pseudo-element, keyword.contro.rust, keyword.control punctuation.definition.function, keyword.control.ahk2, keyword.control.async, keyword.control.await, keyword.control.bash, keyword.control.break, keyword.control.c, keyword.control.case, keyword.control.catch, keyword.control.class, keyword.control.conditional, keyword.control.context, keyword.control.continue, keyword.control.cpp, keyword.control.declare, keyword.control.def, keyword.control.default, keyword.control.directive, keyword.control.do, keyword.control.elixir, keyword.control.else, keyword.control.elseif, keyword.control.elvish, keyword.control.exception, keyword.control.export, keyword.control.finally, keyword.control.fish, keyword.control.flow, keyword.control.for, keyword.control.foreach, keyword.control.from, keyword.control.fun, keyword.control.go, keyword.control.goto, keyword.control.if, keyword.control.import, keyword.control.java, keyword.control.julia, keyword.control.lisp, keyword.control.loop, keyword.control.lua, keyword.control.module, keyword.control.perl, keyword.control.php, keyword.control.powershell, keyword.control.python, keyword.control.return, keyword.control.ruby, keyword.control.scala, keyword.control.sh, keyword.control.switch, keyword.control.throw, keyword.other.definition | #BEB5F0 | |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, keyword.operator.comparison, storage.modifier, storage.type, storage.type.class, storage.type.interface, storage.type.function, storage.type.var, storage.type.let, storage.type.const | #BEB5F0 | |
| entity.name.type.type-parameter, variable.type.type-parameter, meta.type.parameters entity.name.type | #D3C5DF | |
| variable.other.event | #A7EDCC | |
| log.date | #C0CCF0 | |
| log.info | #7EA6E5 | |
| text.log, log.constant | #A5E0F0 | |
| log.debug | #CCA8F8 | |
| log.exceptiontype | #B2ECAC | |
| log.error | #E283A0 | |
| string, punctuation.definition.string, source.css support.constant, entity.name.import.go, markup.raw.texttt, markup.inserted.diff, source.scala punctuation.definition.character, constant.character.literal.scala, source.tf entity.name, string.quoted.double, string.unquoted | #B2ECAC | |
| string.template, punctuation.definition.string.template, string.interpolated.python string.quoted.single.python, string.quoted.double.heredoc, string.quoted.interpolated.vala, string.quoted.interpolated.vala punctuation.definition.string, string.regexp.apacheconf, markup.inline.raw.string, markup.inline.raw punctuation.definition.raw, string.quoted.double.interpolated.crystal, string.quoted.double.interpolated.crystal punctuation.definition.string, text.tex markup.raw, storage.type.string.python, storage.type.string | #B2ECAC | |
| constant.character.escape | #A59CFF | |
| punctuation.definition.template-expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #92C07C | |
| punctuation.separator.decimal.period, constant.integer.apacheconf, constant.language punctuation.definition.variable, string.quoted.double.skinparam.value, source.toml constant, source.zig keyword.constant.bool, source.zig keyword.constant.default, entity.name.type.numeric, entity.other.keyframe-offset.percentage | #A59CFF | |
| entity.name.variable.field, variable.other.field, variable.other.object.field, text.xml entity.other.attribute-name | #ECBADF | |
| variable.other.object.property, variable.object.property, variable.other.property, entity.name.variable.property, meta.object-literal.key, support.variable.property | #CCA8F8 | |
| variable.other.constant.property | #CCA8F8E5 | |
| keyword.control.razor.comment, keyword.control.razor.comment.star, meta.comment.razor keyword.control.cshtml.transition | #8890B5 | |
| keyword.control.cshtml.transition | #8EDAD0 | |
| keyword.control.razor.directive, keyword.control.razor.directive.page, keyword.control.razor.directive.inherits, keyword.control.razor.directive.code, keyword.control.razor.directive.codeblock, keyword.control.razor.directive.codeblock.open, keyword.control.razor.directive.codeblock.close | #8EDAD0 | |
| constant.other.color | #A5E0F0 | — |
| meta.selector | #A5E0F0 | — |
| invalid, invalid.illegal | #C37979 | — |
| keyword.operator, keyword.operator.logical, keyword.operator.comparison, keyword.operator.increment, keyword.operator.decrement, storage.type.function.arrow, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.arrow, keyword.operator.null-conditional, keyword.operator.nullable-type, keyword.operator.expression.pattern, punctuation.accessor, punctuation.definition.colon, punctuation.separator.scope-resolution, keyword.operator.ternary | #9DECCD | |
| punctuation.terminator, punctuation.separator.question-mark, punctuation.definition.typeparameters, punctuation.separator.comma, punctuation.curlybrace, punctuation.curlybrace.open, punctuation.curlybrace.close, punctuation.definition.typeparameters.begin, punctuation.definition.typeparameters.end, punctuation.separator.key-value, punctuation.separator.array, punctuation.separator, meta.structure.dictionary.value, punctuation.parenthesis | #CDC9F0 | |
| constant.other.symbol.hashkey.ruby, constant.other.symbol.hashkey.ruby punctuation.definition.constant.ruby, entity.name.type.annotation.kotlin, punctuation.definition.typeparameters, comment.block.documentation.phpdoc.php keyword.other.type.php, punctuation.definition.storage.type.objc, punctuation.definition.directive, punctuation.section.embedded, punctuation.separator.inheritance, markup punctuation.definition, comment.block.documentation entity.name.type, source.groovy storage.type, storage.type.annotation, punctuation.definition.annotation, source.haskell storage.type, punctuation.separator.clause-head-body, source.go storage.type, support.type.vb, support.type.julia, constant.other.reference, source.graphql support.type, source.reason support.type string, support.class.crystal, storage.type.integral, source.tf meta.keyword.string, source.tf meta.keyword.number, source.scala entity.name.class, markup.raw.monospace, markup.mark | #8EDAD0 | |
| entity.mime-type.apacheconf, entity.name.function.call.kotlin, entity.name.function.infix, entity.name.scope-resolution.function.call, entity.other, keyword.language.gherkin.feature.scenario, keyword.operator.function.infix, markup.changed.git_gutter, markup.underline, markup.underline.link, markup.underline.link.image, meta.symbol.namespace.clojure, punctuation.definition.parameters, source.nim keyword.other.common.function, source.reason entity.other.attribute-name constant.language constant.numeric, source.wsd support.class.preprocessings, support.function.construct, text.tex support.function.texttt, text.tex support.function.verb | #ECBADF | |
| punctuation.definition.italic, punctuation.definition.bold, entity.name.tag, entity.name.tag.css, variable.language punctuation.definition.variable, support.type.exception.python, storage.modifier.super, source.go keyword, keyword.function.go, meta.separator, keyword.other.fn.rust, storage.modifier.static.rust, source.r meta.function.r keyword.control.r, storage.type.def, meta.class.identifier storage.modifier, source.scala keyword.declaration, comment.block.documentation punctuation.definition.block.tag, comment.block.documentation punctuation.definition.inline.tag, entity.tag.apacheconf, keyword.other.julia, source.julia storage.modifier, meta.function.powershell storage.type.powershell, punctuation.terminator.function, keyword.other.rust, keyword.other.declaration-specifier.swift, source.ocaml keyword markup.underline, source.ocaml storage.type markup.underline, binding.fsharp keyword, function.anonymous keyword, function.anonymous keyword.symbol.fsharp, meta.embedded.block variable.language punctuation.definition.variable.php, keyword.declaration.dart, source.wsd keyword.other.class, source.wsd keyword.other.linebegin, keyword.other.skinparam.keyword, keyword.other.nim, markup.deleted.diff, source.tf support.class.variable, meta.function.lua keyword.control.lua, markup.block entity.name.tag, markup.meta.attribute-list, source.zig keyword.default, source.zig keyword.structure | #BEB5F0 | — |
| markup.changed.git_gutter | #D1A95B | — |
| 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 | #CCA8F8 | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #6F93DA | — |
| entity.other.attribute-name, entity.other.attribute-name.pseudo-class, meta.attribute.id entity.other.attribute-name, entity.other.attribute | #ECBADF | |
| punctuation.definition.attribute, meta.attribute.rust | #ECBADF | |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #ECBADF | |
| entity.other.attribute-name.class | #F2BC99 | — |
| source.sass keyword.control | #A59CFF | — |
| markup.inserted | #B1D181 | — |
| markup.deleted | #C56877 | — |
| markup.changed | #B586D5 | — |
| string.regexp | #7BB7CF | |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #7192D7 | |
| source.js constant.other.object.key.js string.unquoted.label.js | #CC475D | |
| source.json meta.structure.dictionary.json support.type.property-name.json | #97C0FF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #CCA8F8 | — |
| 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 | #F2BC99 | — |
| 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 | #ECBADF | — |
| 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 | #D48C9E | — |
| 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 | #A59CFF | — |
| 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 | #F493AF | — |
| 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 | #ECDCB2 | — |
| 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 | #8EDAD0 | — |
| text.html.markdown, punctuation.definition.list_item.markdown, meta.paragraph.markdown | #A5E0F0 | — |
| text.html.markdown markup.inline.raw.markdown | #957AA8 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #616E78 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #94A67A | — |
| entity.name.section.markdown | #F2BC99 | — |
| markup.italic | #A59CFF | |
| markup.bold, markup.bold string | #ECBADF | 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 | #CCA8F8 | bold |
| markup.underline | #D48C9E | underline |
| markup.quote punctuation.definition.blockquote.markdown | #6A7883 | — |
| markup.quote | — | |
| string.other.link.title.markdown | #8A9DC8 | — |
| string.other.link.description.title.markdown | #A380BC | — |
| constant.other.reference.link.markdown | #C0A672 | — |
| markup.raw.block | #A280BC | — |
| markup.raw.block.fenced.markdown | #00000055 | — |
| punctuation.definition.fenced.markdown | #00000055 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #C3C3C3 | — |
| variable.language.fenced.markdown | #6A7883 | — |
| meta.separator | #6A7883 | bold |
| markup.table | #CED3D3 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.css punctuation.definition.entity.css | #F2BC99 | |
| keyword.other.unit | #9DECCD | |
| support.type.property-name.css | #CCA8F8 | |
| meta.property-value, support.constant.property-value.css | #A59CFF | |
| entity.other.attribute-name.id, entity.other.attribute-name.id punctuation.definition.entity | #A5AC82 | |
| punctuation.definition.tag | #CDC9F0 | |
| entity.other.attribute-name.html | #ECBADF | |
| entity.name.tag.html | #BEB5F0 | |
| string.quoted.double.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #B2ECAC | |
| text, source.ignore | #A5E0F0 |
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}!`;
}