piworzuop-dark-theme
Publisher: PiworzuopThemes in package: 1
dark theme done mainly for personal use
dark theme done mainly for personal use
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 |
|---|---|---|
| variable, string constant.other.placeholder, invalid.deprecated, keyword, storage.type, storage.modifier | #6ADFA3 | — |
| variable, string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | — | italic |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #4EB67A | — |
| constant.other.php | #6ADFA3 | — |
| constant.other.color | #5ED28B | — |
| invalid, invalid.illegal | #FFF975 | — |
| Keyword, Storage | — | italic |
| keyword.control, constant.other.color, punctuation.definition.tag, punctuation, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #A7A8AF | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js | #18B526 | — |
| keyword.control.at-rule, punctuation.terminator.rule.css, keyword.control.operator, punctuation.definition.entity.css, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js | #11D200 | — |
| punctuation.definition, string.quoted.single.scss | #A7A8AF | — |
| keyword.control | — | bold |
| comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html | #6D6F7C | — |
| text.html.derivative | #A7A8AF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #11D200 | — |
| entity.name.tag.html | — | bold |
| variable.parameter.js, variable.parameter.keyframe-list.css | #6ADFA3 | — |
| variable.other.object.js, storage.type.js, string.other.link.title.markdown, variable.other.readwrite.js, variable.other.property.js | #18B526 | |
| string, string.quoted.double.html, variable.other.constant.js, variable.other.object.property.js, string.quoted.double.json, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, variable.function, keyword.other.special-method, entity.name.function, markup.bold, markup.bold.markdown, markup.italic.markdown, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control | #23D562 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #5DF600 | — |
| support.other.variable, string.other.link, markup.table | #11D200 | — |
| constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.separator.key-value.html | #6ADFA3 | — |
| variable.parameter.function.language.special, variable.parameter | #FFF975 | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js | #4EB67A | |
| 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, entity.other.attribute-name.html | #6ADFA3 | — |
| 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 | #18B526 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FFF975 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #23D562 | italic |
| entity.other.attribute-name, support.function | #6ADFA3 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, keyword.control.conditional.js, support.constant, entity.other.attribute-name.html, string.quoted.single.js, storage.type.function.js, meta.object-literal.key | #11D200 | — |
| source.scss keyword.control | #6ADFA3 | — |
| markup.inserted | #4EB67A | — |
| markup.deleted | #FFF975 | — |
| markup.changed | #6ADFA3 | — |
| string.regexp | #5DF600 | — |
| constant.character.escape | #5DF600 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #11D200 | italic |
| support.type.property-name.json | #11D200 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #11D200 | — |
| text.html.markdown markup.inline.raw.markdown | #6ADFA3 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #26980050 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #18B526 | bold |
| markup.underline | #23D562 | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #26980050 | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #6ADFA3 | — |
| constant.other.reference.link.markdown | #6ADFA3 | — |
| markup.raw.block | #6ADFA3 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #5DF600 | — |
| variable.language.fenced.markdown | #269800 | — |
| meta.separator | #A7A8AF | bold |
| token.info-token | #269800 | — |
| token.warn-token | #6ADFA3 | — |
| token.error-token | #FF293B | — |
| token.debug-token | #5DF600 | — |
| storage.type.class.cpp,storage.type.struct.cpp | #1fff57 | — |
| storage.modifier.specifier.functional.pre-parameters.constexpr.cpp | #1fff57 | — |
| storage.type.built-in.primitive.cpp | #00a72a | — |
| storage.type.modifier.access.control.public.cpp,storage.type.modifier.access.control.private.cpp,storage.type.modifier.access.public.cpp,storage.type.modifier.access.private.cpp,storage.type.modifier.access.protected.cpp,storage.type.modifier.access.control.protected.cpp | #00d66b | italic |
| storage.modifier.virtual.cpp | #1fff57 | — |
| storage.modifier.specifier.const.cpp,storage.modifier.specifier.functional.post-parameters.const | #1fff57 | — |
| variable.other.global.cpp | #f0ff1f | bold |
| keyword.operator.assignment.cpp,keyword.operator.cpp | #1fff57 | — |
| keyword.operator.logical.cpp | #fd0303 | bold |
| entity.name.function.preprocessor.cpp | #2023f8 | — |
| constant.language.true.cpp,constant.language.false.cpp | #27d4c6 | — |
| keyword.operator.comparison.cpp | #ff1e00 | — |
| storage.type.template.cpp,punctuation.section.angle-brackets.start.template.definition.cpp,punctuation.section.angle-brackets.end.template.definition.cpp | #197dff | — |
| storage.type.template.argument.typename.cpp,storage.type.template.argument.class.cpp | #42d0fb | — |
| entity.name.type.cpp | #ff6e1b | bold |
| variable.other.local.cpp | #eaff76 | — |
| variable.other.property.cpp | #3fd1b1 | — |
| entity.name.function.member.cpp | #1165ff | italic bold |
| entity.name.function.cpp | #da03bd | italic bold |
| keyword.control.directive.include.cpp,keyword.control.directive.conditional.ifdef.cpp,keyword.control.directive.endif.cpp,keyword.control.directive.conditional.ifndef.cpp,keyword.control.directive.define.cpp,keyword.control.directive.pragma.cpp | #1a28f0 | — |
| punctuation.definition.directive.cpp | #1a28f0 | — |
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}!`;
}