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 | #1536156e | — |
| comment.block.html | #1636166e | — |
| comment.block.java | #1536156e | — |
| comment.block.javadoc.java | #1736176e | — |
| comment.block.powershell | #1736176e | — |
| comment.block.xml | #1536156e | — |
| comment.line.double-slash.c | #1636166e | — |
| comment.line.double-slash.cpp | #1736176e | — |
| comment.line.double-slash.java | #1736176e | — |
| comment.line.double-slash.js | #1536156e | — |
| comment.line.number-sign.makefile | #1636166e | — |
| comment.line.number-sign.python | #1836186e | — |
| comment.line.number-sign.yaml | #1836186e | — |
| comment.line.percentage.erlang | #1536156e | — |
| comment.line.powershell | #1736176e | — |
| comment.source.cmake | #1636166e | — |
| comment.source.cmakecache | #1536156e | — |
| constant.character | #0B5039de | — |
| constant.character.character-class.regexp | #11370Ede | — |
| constant.character.escape | #032D66de | — |
| constant.character.set.regexp | #581143de | — |
| constant.language | #621D4Fde | — |
| constant.numeric | #404040de | — |
| constant.numeric.dec.python | #083803de | — |
| constant.other.caps.python | #2F2F2Fde | — |
| constant.other.character-class.regexp | #571443de | — |
| constant.other.character-class.set.regexp | #454545de | — |
| constant.other.color.rgb-value | #380A88de | — |
| constant.other.placeholder | #5E1310de | — |
| constant.other.rgb-value | #5A0D40de | — |
| constant.regexp | #174636de | — |
| constant.sha.git-rebase | #2F2F2Fde | — |
| emphasis | #3B1D6Cde | — |
| entity.name.class | #2F2F2Fde | — |
| entity.name.function | #640600de | — |
| entity.name.function.preprocessor | #0E3629de | — |
| entity.name.function.python | #083802de | — |
| entity.name.label | #6A1F55de | — |
| entity.name.namespace | #014294de | — |
| entity.name.operator | #792621de | — |
| entity.name.operator.custom-literal | #621D4Fde | — |
| entity.name.scope-resolution | #380090de | — |
| entity.name.tag | #2F2F2Fde | — |
| entity.name.tag.css | #113056de | — |
| entity.name.type | #14510Dde | bold |
| entity.name.variable | #6A231Fde | — |
| entity.other.attribute | #0B5039de | — |
| entity.other.attribute-name | #2F2F2Fde | — |
| entity.other.attribute-name.class.css | #581143de | — |
| entity.other.attribute-name.class.mixin.css | #581A16de | — |
| entity.other.attribute-name.id | #083802de | — |
| entity.other.attribute-name.id.css | #15510Ede | — |
| entity.other.attribute-name.parent-selector.css | #2F2F2Fde | — |
| entity.other.attribute-name.pseudo-class.css | #5F100Cde | — |
| entity.other.attribute-name.pseudo-element.css | #0B5039de | — |
| entity.other.attribute-name.scss | #3F2071de | — |
| entity.other.document.begin.yaml | #1736176e | — |
| entity.other.inherited-class | #0D2F59de | — |
| header | #640603de | — |
| invalid | #14510Dde | — |
| keyword | #0E3629de | bold |
| keyword.codetag.notation.python | #581A16de | bold |
| keyword.control | #1A3F16de | bold |
| keyword.control.anchor.regexp | #1F406Ade | bold |
| keyword.control.import.python | #3C3C3Cde | bold |
| keyword.operator | #143052de | bold |
| keyword.operator.alignas | #11370Ede | bold |
| keyword.operator.alignof | #2F2F2Fde | bold |
| keyword.operator.cast | #380090de | bold |
| keyword.operator.delete | #174636de | bold |
| keyword.operator.documentation.powershell | #1836186e | bold |
| keyword.operator.expression | #3C1973de | bold |
| keyword.operator.instanceof | #183814de | bold |
| keyword.operator.logical.python | #014294de | bold |
| keyword.operator.minus.exponent | #454545de | bold |
| keyword.operator.negation.regexp | #5B0944de | bold |
| keyword.operator.new | #551643de | bold |
| keyword.operator.noexcept | #13510Bde | bold |
| keyword.operator.or.regexp | #13510Bde | bold |
| keyword.operator.plus.exponent | #19304Dde | bold |
| keyword.operator.quantifier.regexp | #085038de | bold |
| keyword.operator.sizeof | #163F31de | bold |
| keyword.operator.typeid | #640600de | bold |
| keyword.operator.wordlike | #0F370Bde | bold |
| keyword.other.operator | #032D66de | bold |
| keyword.other.package.java | #0F5208de | bold |
| keyword.other.unit | #404040de | bold |
| keyword.other.using | #5F100Dde | bold |
| markup.bold | #5B0944de | — |
| markup.changed | #033825de | — |
| markup.deleted | #581A16de | — |
| markup.fenced_code.block.markdown | #3B1080de | — |
| markup.heading | #115209de | — |
| markup.inline.raw | #0B5039de | — |
| markup.inserted | #14382Cde | — |
| markup.italic | #204471de | — |
| markup.raw.block.markdown | #1F4D19de | — |
| markup.strikethrough | #0A5039de | — |
| markup.underline | #541E1Bde | — |
| meta.block.c | #1D3C62de | — |
| meta.block.c | #531843de | — |
| meta.class.java | #204471de | — |
| meta.definition.variable.name | #2F2F2Fde | — |
| meta.diff.header | #561B18de | — |
| meta.embedded | #62211Dde | — |
| meta.embedded.assembly | #571443de | — |
| meta.function-call.arguments.python | #174636de | — |
| meta.function-call.python | #085038de | — |
| meta.member.access.python | #3C1E6Bde | — |
| meta.method.java | #204471de | — |
| meta.object-literal.key | #0E3629de | — |
| meta.paragraph.markdown | #404040de | — |
| meta.preprocessor | #712420de | — |
| meta.preprocessor.numeric | #590D44de | — |
| meta.preprocessor.string | #541B44de | — |
| meta.scope.prerequisites.makefile | #640600de | — |
| meta.structure.dictionary.json.comments | #1736176e | — |
| meta.structure.dictionary.key.python | #3C1973de | — |
| meta.structure.dictionary.value.json.comments | #1736176e | — |
| meta.template.expression | #551643de | — |
| meta.type.cast.expr | #621D4Fde | bold |
| meta.type.new.expr | #0F5208de | bold |
| parameter | #1F406Ade | — |
| punctuation.character.set.begin.regexp | #2F2F2Fde | — |
| punctuation.character.set.end.regexp | #5B201Cde | — |
| punctuation.definition.array.begin.json | #590D44de | — |
| punctuation.definition.character-class.regexp | #3B1080de | — |
| punctuation.definition.comment | #1636166e | — |
| punctuation.definition.comment.json.comments | #1636166e | — |
| punctuation.definition.comment.python | #1636166e | — |
| punctuation.definition.dictionary.begin.json | #380090de | — |
| punctuation.definition.dictionary.end.json | #033726de | — |
| punctuation.definition.group.assertion.regexp | #551643de | — |
| punctuation.definition.group.regexp | #0D2F59de | — |
| punctuation.definition.list.begin.json | #581A16de | — |
| punctuation.definition.list.begin.markdown | #3C1E6Bde | — |
| punctuation.definition.list.begin.python | #0F362Ade | — |
| punctuation.definition.list.end.json | #2F2F2Fde | — |
| punctuation.definition.list.end.markdown | #39028Ede | — |
| punctuation.definition.list.end.python | #590D44de | — |
| punctuation.definition.parameters.begin.python | #62211Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #163F31de | — |
| punctuation.definition.quote.begin.markdown | #62211Dde | — |
| punctuation.definition.tag | #464646de | — |
| punctuation.definition.template-expression.begin | #3B1D6Cde | — |
| punctuation.definition.template-expression.end | #0F503Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #3B1080de | — |
| punctuation.section.embedded | #5A0D40de | — |
| punctuation.section.embedded.begin.php | #5F100Cde | — |
| punctuation.section.embedded.end.php | #1F406Ade | — |
| punctuation.terminator.java | #571443de | — |
| source.cmake | #2F2F2Fde | — |
| source.coffee.embedded | #1F406Ade | — |
| source.cpp | #5E0343de | — |
| source.css.less | #0D2F59de | — |
| source.groovy.embedded | #380A88de | — |
| source.java | #1D3C62de | — |
| source.java-properties | #0F370Bde | — |
| source.json.comments | #1636166e | — |
| source.makefile | #39028Ede | — |
| source.powershell | #712420de | — |
| source.powershell.variable.other.member | #2F2F2Fde | — |
| source.python | #3C1F6Ade | — |
| storage | #0D503Ade | — |
| storage.modifier | #3C1F6Ade | — |
| storage.modifier.import.java | #1B3454de | — |
| storage.modifier.package.java | #5A0D40de | — |
| storage.type | #541E1Bde | bold |
| storage.type.annotation.groovy | #0D2F59de | bold |
| storage.type.annotation.java | #3B1D6Cde | bold |
| storage.type.boolean.go | #115209de | bold |
| storage.type.byte.go | #183814de | bold |
| storage.type.cs | #360192de | bold |
| storage.type.error.go | #5B1814de | bold |
| storage.type.generic.cs | #1D4617de | bold |
| storage.type.generic.groovy | #1F4D19de | bold |
| storage.type.generic.java | #3F2071de | bold |
| storage.type.groovy | #373737de | bold |
| storage.type.java | #0D2F59de | bold |
| storage.type.modifier.cs | #085038de | bold |
| storage.type.numeric.go | #033726de | bold |
| storage.type.object.array.groovy | #71205Bde | bold |
| storage.type.object.array.java | #5F100Dde | bold |
| storage.type.parameters.groovy | #183814de | bold |
| storage.type.primitive.array.groovy | #13370Ede | bold |
| storage.type.primitive.array.java | #1B3454de | bold |
| storage.type.primitive.groovy | #39028Ede | bold |
| storage.type.primitive.java | #2F2F2Fde | bold |
| storage.type.rune.go | #561C18de | bold |
| storage.type.string.go | #183814de | bold |
| storage.type.token.java | #6A1F55de | bold |
| storage.type.uintptr.go | #19304Dde | bold |
| storage.type.variable.cs | #3C1F6Ade | bold |
| string | #5A0D40de | — |
| string.quoted.docstring.multi.python | #1636166e | — |
| string.regexp | #521841de | — |
| string.tag | #2F2F2Fde | — |
| string.value | #5A0D40de | — |
| strong | #13370Fde | — |
| support.class | #0D3059de | — |
| support.constant.color | #0F5208de | — |
| support.constant.dom | #11370Ede | — |
| support.constant.font-name | #17304Fde | — |
| support.constant.handlebars | #2F2F2Fde | — |
| support.constant.json | #3F2071de | — |
| support.constant.math | #085038de | — |
| support.constant.media | #5B201Cde | — |
| support.constant.media-type | #1C385Bde | bold |
| support.constant.property-value | #1D4617de | — |
| support.function | #5F100Cde | — |
| support.function.git-rebase | #581A16de | — |
| support.other.parenthesis.regexp | #581A16de | — |
| support.type | #581143de | bold |
| support.type.property-name | #590D44de | bold |
| support.type.vendored.property-name | #5F100Cde | bold |
| support.variable | #3C1874de | — |
| token.debug-token | #521841de | — |
| token.error-token | #640600de | — |
| token.info-token | #3F2071de | — |
| token.warn-token | #561B18de | — |
| variable | #204471de | — |
| variable.css | #404040de | — |
| variable.language | #19304Dde | — |
| variable.language.wildcard.java | #1C385Bde | — |
| variable.other.constant | #1D3C62de | — |
| variable.other.definition.java | #333333de | — |
| variable.other.enummember | #1D3C62de | — |
| variable.other.less | #581A16de | — |
| variable.other.object.java | #1D3C62de | — |
| variable.other.object.property.java | #5E1310de | — |
| variable.parameter.c | #13510Bde | — |
| variable.parameter.function.language.python | #62211Dde | — |
| variable.parameter.java | #0F503Ade | — |
| variable.scss | #5F100Cde | — |
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}!`;
}