viiv
Publisher: B.WThemes in package: 206
A VsCode theme that puts developers into focus mode quickly.
A VsCode theme that puts developers into focus mode quickly.
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.block.documentation.c | #3232156e | — |
| comment.block.html | #3232156e | — |
| comment.block.java | #3333136e | — |
| comment.block.javadoc.java | #3232166e | — |
| comment.block.powershell | #3333136e | — |
| comment.block.xml | #3232136e | — |
| comment.line.double-slash.c | #3333136e | — |
| comment.line.double-slash.cpp | #3232166e | — |
| comment.line.double-slash.java | #3232136e | — |
| comment.line.double-slash.js | #3333136e | — |
| comment.line.number-sign.makefile | #3232136e | — |
| comment.line.number-sign.python | #3333136e | — |
| comment.line.number-sign.yaml | #3232166e | — |
| comment.line.percentage.erlang | #3232166e | — |
| comment.line.powershell | #3232166e | — |
| comment.source.cmake | #3333136e | — |
| comment.source.cmakecache | #3232156e | — |
| constant.character | #2B1490de | — |
| constant.character.character-class.regexp | #494228de | — |
| constant.character.escape | #423C25de | — |
| constant.character.set.regexp | #4F2A4Bde | — |
| constant.language | #253621de | — |
| constant.numeric | #2B4225de | — |
| constant.numeric.dec.python | #373018de | — |
| constant.other.caps.python | #183727de | — |
| constant.other.character-class.regexp | #20333Fde | — |
| constant.other.character-class.set.regexp | #3C316Ade | — |
| constant.other.color.rgb-value | #33285Cde | — |
| constant.other.placeholder | #2A404Fde | — |
| constant.other.rgb-value | #632F2Fde | — |
| constant.regexp | #494228de | — |
| constant.sha.git-rebase | #423C25de | — |
| emphasis | #21362Bde | — |
| entity.name.class | #183629de | — |
| entity.name.function | #332B55de | — |
| entity.name.function.preprocessor | #2E4928de | — |
| entity.name.function.python | #332B55de | — |
| entity.name.label | #193345de | — |
| entity.name.namespace | #1E3718de | — |
| entity.name.operator | #5C2D2Dde | — |
| entity.name.operator.custom-literal | #534611de | — |
| entity.name.scope-resolution | #54460Fde | — |
| entity.name.tag | #215115de | — |
| entity.name.tag.css | #6A3164de | — |
| entity.name.type | #283C23de | bold |
| entity.name.variable | #1E3718de | — |
| entity.other.attribute | #183629de | — |
| entity.other.attribute-name | #2C4555de | — |
| entity.other.attribute-name.class.css | #552C51de | — |
| entity.other.attribute-name.class.mixin.css | #423C25de | — |
| entity.other.attribute-name.id | #4E1E48de | — |
| entity.other.attribute-name.id.css | #373018de | — |
| entity.other.attribute-name.parent-selector.css | #253742de | — |
| entity.other.attribute-name.pseudo-class.css | #32246Bde | — |
| entity.other.attribute-name.pseudo-element.css | #183629de | — |
| entity.other.attribute-name.scss | #392F63de | — |
| entity.other.document.begin.yaml | #3232136e | — |
| entity.other.inherited-class | #494228de | — |
| header | #321E79de | — |
| invalid | #20333Fde | — |
| keyword | #1F5213de | bold |
| keyword.codetag.notation.python | #544613de | bold |
| keyword.control | #534615de | bold |
| keyword.control.anchor.regexp | #2D495Cde | bold |
| keyword.control.import.python | #135132de | bold |
| keyword.operator | #32246Bde | bold |
| keyword.operator.alignas | #494228de | bold |
| keyword.operator.alignof | #053920de | bold |
| keyword.operator.cast | #342B52de | bold |
| keyword.operator.delete | #632F5Ede | bold |
| keyword.operator.documentation.powershell | #3333136e | bold |
| keyword.operator.expression | #283B49de | bold |
| keyword.operator.instanceof | #54164Ede | bold |
| keyword.operator.logical.python | #2B4225de | bold |
| keyword.operator.minus.exponent | #17334Ade | bold |
| keyword.operator.negation.regexp | #253621de | bold |
| keyword.operator.new | #37301Ade | bold |
| keyword.operator.noexcept | #2B4225de | bold |
| keyword.operator.or.regexp | #2B1490de | bold |
| keyword.operator.plus.exponent | #290D98de | bold |
| keyword.operator.quantifier.regexp | #492828de | bold |
| keyword.operator.sizeof | #342C55de | bold |
| keyword.operator.typeid | #373018de | bold |
| keyword.operator.wordlike | #1F5213de | bold |
| keyword.other.operator | #2C4555de | bold |
| keyword.other.package.java | #544613de | bold |
| keyword.other.unit | #163727de | bold |
| keyword.other.using | #494228de | bold |
| markup.bold | #20333Fde | — |
| markup.changed | #4A2626de | — |
| markup.deleted | #601313de | — |
| markup.fenced_code.block.markdown | #1A3444de | — |
| markup.heading | #632F2Fde | — |
| markup.inline.raw | #115232de | — |
| markup.inserted | #55154Ede | — |
| markup.italic | #284938de | — |
| markup.raw.block.markdown | #053920de | — |
| markup.strikethrough | #55154Ede | — |
| markup.underline | #1E3718de | — |
| meta.block.c | #284938de | — |
| meta.block.c | #5C1818de | — |
| meta.class.java | #284938de | — |
| meta.definition.variable.name | #284938de | — |
| meta.diff.header | #511A4Cde | — |
| meta.embedded | #33285Cde | — |
| meta.embedded.assembly | #494228de | — |
| meta.function-call.arguments.python | #6A3164de | — |
| meta.function-call.python | #571D1Dde | — |
| meta.member.access.python | #611313de | — |
| meta.method.java | #373018de | — |
| meta.object-literal.key | #1A520Dde | — |
| meta.paragraph.markdown | #532121de | — |
| meta.preprocessor | #373018de | — |
| meta.preprocessor.numeric | #2B1490de | — |
| meta.preprocessor.string | #322761de | — |
| meta.scope.prerequisites.makefile | #2A404Fde | — |
| meta.structure.dictionary.json.comments | #3232136e | — |
| meta.structure.dictionary.key.python | #392F63de | — |
| meta.structure.dictionary.value.json.comments | #3333136e | — |
| meta.template.expression | #373018de | — |
| meta.type.cast.expr | #32246Bde | bold |
| meta.type.new.expr | #0D3823de | bold |
| parameter | #115232de | — |
| punctuation.character.set.begin.regexp | #4A2626de | — |
| punctuation.character.set.end.regexp | #233C30de | — |
| punctuation.definition.array.begin.json | #590D51de | — |
| punctuation.definition.character-class.regexp | #3B3005de | — |
| punctuation.definition.comment | #3232136e | — |
| punctuation.definition.comment.json.comments | #3333136e | — |
| punctuation.definition.comment.python | #3333136e | — |
| punctuation.definition.dictionary.begin.json | #115232de | — |
| punctuation.definition.dictionary.end.json | #4B2146de | — |
| punctuation.definition.group.assertion.regexp | #0D522Fde | — |
| punctuation.definition.group.regexp | #492845de | — |
| punctuation.definition.list.begin.json | #494228de | — |
| punctuation.definition.list.begin.markdown | #1F3618de | — |
| punctuation.definition.list.begin.python | #4C2525de | — |
| punctuation.definition.list.end.json | #4C2525de | — |
| punctuation.definition.list.end.markdown | #363117de | — |
| punctuation.definition.list.end.python | #423C25de | — |
| punctuation.definition.parameters.begin.python | #193345de | — |
| punctuation.definition.parameters.end.bracket.round.java | #253742de | — |
| punctuation.definition.quote.begin.markdown | #2B1490de | — |
| punctuation.definition.tag | #233C30de | — |
| punctuation.definition.template-expression.begin | #552C2Cde | — |
| punctuation.definition.template-expression.end | #363221de | — |
| punctuation.section.class.begin.bracket.curly.java | #373018de | — |
| punctuation.section.embedded | #38300Dde | — |
| punctuation.section.embedded.begin.php | #4B2146de | — |
| punctuation.section.embedded.end.php | #1E3343de | — |
| punctuation.terminator.java | #2B0A99de | — |
| source.cmake | #5C2D2Dde | — |
| source.coffee.embedded | #1E3343de | — |
| source.cpp | #253621de | — |
| source.css.less | #1C520Fde | — |
| source.groovy.embedded | #680404de | — |
| source.java | #053450de | — |
| source.java-properties | #4F2A4Bde | — |
| source.json.comments | #3232136e | — |
| source.makefile | #32246Bde | — |
| source.powershell | #534615de | — |
| source.powershell.variable.other.member | #254234de | — |
| source.python | #332B55de | — |
| storage | #534615de | — |
| storage.modifier | #2B1490de | — |
| storage.modifier.import.java | #322A56de | — |
| storage.modifier.package.java | #183727de | — |
| storage.type | #290D98de | bold |
| storage.type.annotation.groovy | #283C23de | bold |
| storage.type.annotation.java | #1F5213de | bold |
| storage.type.boolean.go | #053351de | bold |
| storage.type.byte.go | #3B3005de | bold |
| storage.type.cs | #3C3723de | bold |
| storage.type.error.go | #332B53de | bold |
| storage.type.generic.cs | #4B2146de | bold |
| storage.type.generic.groovy | #5C2D57de | bold |
| storage.type.generic.java | #6A3131de | bold |
| storage.type.groovy | #253621de | bold |
| storage.type.java | #20333Fde | bold |
| storage.type.modifier.cs | #233C30de | bold |
| storage.type.numeric.go | #2C4555de | bold |
| storage.type.object.array.groovy | #163727de | bold |
| storage.type.object.array.java | #053450de | bold |
| storage.type.parameters.groovy | #363117de | bold |
| storage.type.primitive.array.groovy | #4F2A2Ade | bold |
| storage.type.primitive.array.java | #15380Dde | bold |
| storage.type.primitive.groovy | #2B0A99de | bold |
| storage.type.primitive.java | #2D495Cde | bold |
| storage.type.rune.go | #5C2D57de | bold |
| storage.type.string.go | #632F5Ede | bold |
| storage.type.token.java | #534611de | bold |
| storage.type.uintptr.go | #363221de | bold |
| storage.type.variable.cs | #363117de | bold |
| string | #155133de | — |
| string.quoted.docstring.multi.python | #3232166e | — |
| string.regexp | #0D3823de | — |
| string.tag | #4B2146de | — |
| string.value | #680404de | — |
| strong | #283B49de | — |
| support.class | #6A3131de | — |
| support.constant.color | #4F2A2Ade | — |
| support.constant.dom | #511A4Cde | — |
| support.constant.font-name | #5D0155de | — |
| support.constant.handlebars | #4F2A4Bde | — |
| support.constant.json | #1E3343de | — |
| support.constant.math | #2B4225de | — |
| support.constant.media | #21362Bde | — |
| support.constant.media-type | #290D98de | bold |
| support.constant.property-value | #15380Dde | — |
| support.function | #1C520Fde | — |
| support.function.git-rebase | #601313de | — |
| support.other.parenthesis.regexp | #5C2D2Dde | — |
| support.type | #283C23de | bold |
| support.type.property-name | #1D3716de | bold |
| support.type.vendored.property-name | #215115de | bold |
| support.variable | #534611de | — |
| token.debug-token | #033920de | — |
| token.error-token | #2B0A99de | — |
| token.info-token | #423C25de | — |
| token.warn-token | #053920de | — |
| variable | #193345de | — |
| variable.css | #155133de | — |
| variable.language | #494228de | — |
| variable.language.wildcard.java | #4E1E48de | — |
| variable.other.constant | #552C51de | — |
| variable.other.definition.java | #632F5Ede | — |
| variable.other.enummember | #103905de | — |
| variable.other.less | #363221de | — |
| variable.other.object.java | #2A404Fde | — |
| variable.other.object.property.java | #290D98de | — |
| variable.parameter.c | #632F5Ede | — |
| variable.parameter.function.language.python | #17334Ade | — |
| variable.parameter.java | #4E2424de | — |
| variable.scss | #534611de | — |
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}!`;
}