DPL Dark Theme
Publisher: DPL Dark ThemeThemes in package: 1
Dark Theme by Mr. Deab Phalla.
Dark Theme by Mr. Deab Phalla.
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6A9955 | — |
| constant.language | #569CD6 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #B5CEA8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #569CD6 | — |
| entity.name.tag.css | #D7BA7D | — |
| entity.other.attribute-name | #9CDCFE | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #D7BA7D | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | #569CD6 | bold |
| markup.heading | #569CD6 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #B5CEA8 | — |
| markup.deleted | #CE9178 | — |
| markup.changed | #569CD6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796E6 | — |
| markup.inline.raw | #CE9178 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #569CD6 | — |
| meta.preprocessor.string | #CE9178 | — |
| meta.preprocessor.numeric | #B5CEA8 | — |
| meta.structure.dictionary.key.python | #9CDCFE | — |
| meta.diff.header | #569CD6 | — |
| storage | #569CD6 | — |
| storage.type | #569CD6 | — |
| storage.modifier, keyword.operator.noexcept | #569CD6 | — |
| string, meta.embedded.assembly | #CE9178 | — |
| string.tag | #CE9178 | — |
| string.value | #CE9178 | — |
| string.regexp | #D16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #569CD6 | — |
| meta.template.expression | #D4D4D4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #9CDCFE | — |
| keyword | #569CD6 | — |
| keyword.control | #569CD6 | — |
| keyword.operator | #D4D4D4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #569CD6 | — |
| keyword.other.unit | #B5CEA8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #569CD6 | — |
| support.function.git-rebase | #9CDCFE | — |
| constant.sha.git-rebase | #B5CEA8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #D4D4D4 | — |
| variable.language | #569CD6 | — |
| string | #D3C943 | — |
| meta.embedded.assembly | #D3C943 | — |
| keyword - keyword.operator | #75A0EF | — |
| keyword.control | #75A0EF | — |
| storage | #75A0EF | — |
| storage.type | #75A0EF | — |
| entity.name.function | #19C9C9 | — |
| support.function | #19C9C9 | — |
| source.python, meta.attribute.python | #70aad9 | — |
| keyword.operator.assignment.python, keyword.control.import.python, storage.type.function.python, meta.function.decorator.python, entity.name.function.decorator.python, keyword.control.flow.python | #EE6BF8 | — |
| entity.name.function.python, meta.function-call.generic.python, entity.name.type.class.python, meta.member.access.python, variable.parameter.function.language.special.self.python, variable.language.special.self.python | #4ecfca | — |
| meta.function.decorator.python, entity.name.function.decorator.python, variable.parameter.function.language.special.self.python, variable.language.special.self.python | — | italic |
| variable.parameter.function-call.python | — | italic |
| comment.line.number-sign.python, string.quoted.docstring.multi.python | #898989 | italic |
| heading.1.markdown, heading.2.markdown | #4CAF50 | bold |
| heading.3.markdown, heading.4.markdown, heading.5.markdown | #2196F3 | — |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #c9c9c9 | — |
| fenced_code.block.language.markdown, punctuation.definition.markdown | #F13ACD | italic bold |
| markup.fenced_code.block.markdown | #C9C9C9 | — |
| markup.bold.markdown | #955CF4 | — |
| punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown | #75A0EF | — |
| string.other.link.title.markdown | #955CF4 | bold |
| markup.inline.raw.string.markdown | #929396 | — |
| support.function.aggregate.sql | #19C9C9 | — |
| keyword.other.sql, keyword.other.DML.sql, keyword.plsql.mysql, keyword.other.alias.sql | #EE6BF8 | — |
| string.quoted.double.sql, string.quoted.single.sql | #75A0EF | — |
| 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}!`;
}