Dark Plus Oled
Publisher: Weiyu WangThemes in package: 6
Dark Plus Oled
Dark Plus Oled
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 | #c9c9c9ff | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000079ff | — |
| comment, string.quoted.docstring | #649150ff | — |
| constant.language | #5194cbff | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #abc39fff | — |
| constant.regexp | #5f608dff | — |
| entity.name.tag | #5194cbff | — |
| entity.name.tag.css | #ccb076ff | — |
| entity.other.attribute-name | #94d1f1ff | — |
| 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 | #ccb076ff | — |
| invalid | #e74343ff | — |
| markup.underline | — | underline |
| markup.bold | #5194cbff | bold |
| markup.heading | #5194cbff | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #abc39fff | — |
| markup.deleted | #c38972ff | — |
| markup.changed | #5194cbff | — |
| punctuation.definition.quote.begin.markdown | #649150ff | — |
| punctuation.definition.list.begin.markdown | #618edaff | — |
| markup.inline.raw | #c38972ff | — |
| punctuation.definition.tag | #797979ff | — |
| meta.preprocessor, entity.name.function.preprocessor | #5194cbff | — |
| meta.preprocessor.string | #c38972ff | — |
| meta.preprocessor.numeric | #abc39fff | — |
| meta.structure.dictionary.key.python | #94d1f1ff | — |
| meta.diff.header | #5194cbff | — |
| storage | #5194cbff | — |
| storage.type | #5194cbff | — |
| storage.modifier, keyword.operator.noexcept | #5194cbff | — |
| string, meta.embedded.assembly | #c38972ff | — |
| string.tag | #c38972ff | — |
| string.value | #c38972ff | — |
| string.regexp | #c66363ff | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #5194cbff | — |
| meta.template.expression | #c9c9c9ff | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #94d1f1ff | — |
| keyword | #5194cbff | — |
| keyword.control | #5194cbff | — |
| keyword.operator | #c9c9c9ff | — |
| 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 | #5194cbff | — |
| keyword.other.unit | #abc39fff | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #5194cbff | — |
| support.function.git-rebase | #94d1f1ff | — |
| constant.sha.git-rebase | #abc39fff | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #c9c9c9ff | — |
| variable.language | #5194cbff | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #d1d1a1ff | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #4abea7ff | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4abea7ff | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #bb7fb6ff | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #94d1f1ff | — |
| variable.other.constant, variable.other.enummember | #4bb7f2ff | — |
| meta.object-literal.key | #94d1f1ff | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #c38972ff | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #c38972ff | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #c66363ff | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #d1d1a1ff | — |
| keyword.operator.quantifier.regexp | #ccb076ff | — |
| constant.character, constant.other.option | #5194cbff | — |
| constant.character.escape | #ccb076ff | — |
| entity.name.label | #bebebeff | — |
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}!`;
}