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 | #6B3B6B6e | — |
| comment.block.html | #4B4B4B6e | — |
| comment.block.java | #6C3A6C6e | — |
| comment.block.javadoc.java | #673C676e | — |
| comment.block.powershell | #6B3B6B6e | — |
| comment.block.xml | #4B4B4B6e | — |
| comment.line.double-slash.c | #6B3B6B6e | — |
| comment.line.double-slash.cpp | #6B3B6B6e | — |
| comment.line.double-slash.java | #6B3B6B6e | — |
| comment.line.double-slash.js | #4B4B4B6e | — |
| comment.line.number-sign.makefile | #6B3B6B6e | — |
| comment.line.number-sign.python | #4B4B4B6e | — |
| comment.line.number-sign.yaml | #6B3B6B6e | — |
| comment.line.percentage.erlang | #6B3B6B6e | — |
| comment.line.powershell | #4B4B4B6e | — |
| comment.source.cmake | #4B4B4B6e | — |
| comment.source.cmakecache | #4B4B4B6e | — |
| constant.character | #0A327Cde | — |
| constant.character.character-class.regexp | #900A66de | — |
| constant.character.escape | #6F2457de | — |
| constant.character.set.regexp | #274887de | — |
| constant.language | #0F5909de | — |
| constant.numeric | #094032de | — |
| constant.numeric.dec.python | #90230Ade | — |
| constant.other.caps.python | #093384de | — |
| constant.other.character-class.regexp | #09317Cde | — |
| constant.other.character-class.set.regexp | #6604CBde | — |
| constant.other.color.rgb-value | #26498Bde | — |
| constant.other.placeholder | #682AA5de | — |
| constant.other.rgb-value | #4F4F05de | — |
| constant.regexp | #4F4F09de | — |
| constant.sha.git-rebase | #274B8Cde | — |
| emphasis | #7B3726de | — |
| entity.name.class | #4E4E0Ade | — |
| entity.name.function | #274887de | — |
| entity.name.function.preprocessor | #922309de | — |
| entity.name.function.python | #1F5547de | — |
| entity.name.label | #6729A3de | — |
| entity.name.namespace | #6703CAde | — |
| entity.name.operator | #0A5605de | — |
| entity.name.operator.custom-literal | #1F4B1Cde | — |
| entity.name.scope-resolution | #274B8Dde | — |
| entity.name.tag | #223B69de | — |
| entity.name.tag.css | #0A3E9Ede | — |
| entity.name.type | #672AA4de | bold |
| entity.name.variable | #0E590Ade | — |
| entity.other.attribute | #910966de | — |
| entity.other.attribute-name | #09503Fde | — |
| entity.other.attribute-name.class.css | #21521Ede | — |
| entity.other.attribute-name.class.mixin.css | #6F3224de | — |
| entity.other.attribute-name.id | #90230Ade | — |
| entity.other.attribute-name.id.css | #213861de | — |
| entity.other.attribute-name.parent-selector.css | #0F580Ade | — |
| entity.other.attribute-name.pseudo-class.css | #0E5809de | — |
| entity.other.attribute-name.pseudo-element.css | #1B443Ade | — |
| entity.other.attribute-name.scss | #90230Ade | — |
| entity.other.document.begin.yaml | #673C676e | — |
| entity.other.inherited-class | #822765de | — |
| header | #7E3527de | — |
| invalid | #6F2457de | — |
| keyword | #0F580Ade | bold |
| keyword.codetag.notation.python | #0F570Ade | bold |
| keyword.control | #900A66de | bold |
| keyword.control.anchor.regexp | #0A5744de | bold |
| keyword.control.import.python | #0F580Ade | bold |
| keyword.operator | #093384de | bold |
| keyword.operator.alignas | #264A89de | bold |
| keyword.operator.alignof | #682AA5de | bold |
| keyword.operator.cast | #1F5547de | bold |
| keyword.operator.delete | #3D3D19de | bold |
| keyword.operator.documentation.powershell | #673C676e | bold |
| keyword.operator.expression | #842766de | bold |
| keyword.operator.instanceof | #1E5245de | bold |
| keyword.operator.logical.python | #662AA4de | bold |
| keyword.operator.minus.exponent | #0A5605de | bold |
| keyword.operator.negation.regexp | #083280de | bold |
| keyword.operator.new | #0A327Cde | bold |
| keyword.operator.noexcept | #592A20de | bold |
| keyword.operator.or.regexp | #1C4B3Fde | bold |
| keyword.operator.plus.exponent | #084233de | bold |
| keyword.operator.quantifier.regexp | #1F5547de | bold |
| keyword.operator.sizeof | #0F580Ade | bold |
| keyword.operator.typeid | #233E70de | bold |
| keyword.operator.wordlike | #4E4E08de | bold |
| keyword.other.operator | #0F580Ade | bold |
| keyword.other.package.java | #4F4F0Ade | bold |
| keyword.other.unit | #264A89de | bold |
| keyword.other.using | #6F3224de | bold |
| markup.bold | #672AA5de | — |
| markup.changed | #7D3626de | — |
| markup.deleted | #26498Bde | — |
| markup.fenced_code.block.markdown | #951F03de | — |
| markup.heading | #4F4F05de | — |
| markup.inline.raw | #6806CAde | — |
| markup.inserted | #274B8Dde | — |
| markup.italic | #7B3726de | — |
| markup.raw.block.markdown | #09503Fde | — |
| markup.strikethrough | #095644de | — |
| markup.underline | #6703CAde | — |
| meta.block.c | #095643de | — |
| meta.block.c | #942007de | — |
| meta.class.java | #3D3D19de | — |
| meta.definition.variable.name | #09503Fde | — |
| meta.diff.header | #0E5809de | — |
| meta.embedded | #910766de | — |
| meta.embedded.assembly | #6805CAde | — |
| meta.function-call.arguments.python | #4E4E09de | — |
| meta.function-call.python | #1E5245de | — |
| meta.member.access.python | #6F2457de | — |
| meta.method.java | #920867de | — |
| meta.object-literal.key | #662AA1de | — |
| meta.paragraph.markdown | #0F580Ade | — |
| meta.preprocessor | #7E3625de | — |
| meta.preprocessor.numeric | #92230Ade | — |
| meta.preprocessor.string | #0F580Ade | — |
| meta.scope.prerequisites.makefile | #672352de | — |
| meta.structure.dictionary.json.comments | #6B3B6B6e | — |
| meta.structure.dictionary.key.python | #562785de | — |
| meta.structure.dictionary.value.json.comments | #6B3B6B6e | — |
| meta.template.expression | #094032de | — |
| meta.type.cast.expr | #0E5809de | bold |
| meta.type.new.expr | #0F580Ade | bold |
| parameter | #0F590Ade | — |
| punctuation.character.set.begin.regexp | #7E3527de | — |
| punctuation.character.set.end.regexp | #7D3626de | — |
| punctuation.definition.array.begin.json | #22551Fde | — |
| punctuation.definition.character-class.regexp | #910766de | — |
| punctuation.definition.comment | #6C3A6C6e | — |
| punctuation.definition.comment.json.comments | #4B4B4B6e | — |
| punctuation.definition.comment.python | #6B3B6B6e | — |
| punctuation.definition.dictionary.begin.json | #0D5908de | — |
| punctuation.definition.dictionary.end.json | #49246Fde | — |
| punctuation.definition.group.assertion.regexp | #602D21de | — |
| punctuation.definition.group.regexp | #932107de | — |
| punctuation.definition.list.begin.json | #0A41A6de | — |
| punctuation.definition.list.begin.markdown | #932107de | — |
| punctuation.definition.list.begin.python | #0A5643de | — |
| punctuation.definition.list.end.json | #930767de | — |
| punctuation.definition.list.end.markdown | #662AA1de | — |
| punctuation.definition.list.end.python | #264A89de | — |
| punctuation.definition.parameters.begin.python | #0A5643de | — |
| punctuation.definition.parameters.end.bracket.round.java | #4E2576de | — |
| punctuation.definition.quote.begin.markdown | #932107de | — |
| punctuation.definition.tag | #4F4F06de | — |
| punctuation.definition.template-expression.begin | #7B3726de | — |
| punctuation.definition.template-expression.end | #932006de | — |
| punctuation.section.class.begin.bracket.curly.java | #942007de | — |
| punctuation.section.embedded | #6806CAde | — |
| punctuation.section.embedded.begin.php | #682AA5de | — |
| punctuation.section.embedded.end.php | #235720de | — |
| punctuation.terminator.java | #5B288Dde | — |
| source.cmake | #822765de | — |
| source.coffee.embedded | #900A66de | — |
| source.cpp | #673023de | — |
| source.css.less | #6729A3de | — |
| source.groovy.embedded | #662AA3de | — |
| source.java | #1D441Bde | — |
| source.java-properties | #90230Ade | — |
| source.json.comments | #6B3B6B6e | — |
| source.makefile | #6F3224de | — |
| source.powershell | #662AA1de | — |
| source.powershell.variable.other.member | #90230Ade | — |
| source.python | #095643de | — |
| storage | #822765de | — |
| storage.modifier | #0E590Ade | — |
| storage.modifier.import.java | #1F4B1Cde | — |
| storage.modifier.package.java | #095643de | — |
| storage.type | #4E4E0Ade | bold |
| storage.type.annotation.groovy | #3D3D19de | bold |
| storage.type.annotation.java | #7E3625de | bold |
| storage.type.boolean.go | #4E4E09de | bold |
| storage.type.byte.go | #4E4E09de | bold |
| storage.type.cs | #932107de | bold |
| storage.type.error.go | #0A5743de | bold |
| storage.type.generic.cs | #44441Bde | bold |
| storage.type.generic.groovy | #0D5908de | bold |
| storage.type.generic.java | #0E590Ade | bold |
| storage.type.groovy | #930667de | bold |
| storage.type.java | #7D3726de | bold |
| storage.type.modifier.cs | #1F5547de | bold |
| storage.type.numeric.go | #763425de | bold |
| storage.type.object.array.groovy | #21551Fde | bold |
| storage.type.object.array.java | #672352de | bold |
| storage.type.parameters.groovy | #073385de | bold |
| storage.type.primitive.array.groovy | #4E2576de | bold |
| storage.type.primitive.array.java | #1B443Ade | bold |
| storage.type.primitive.groovy | #951F03de | bold |
| storage.type.primitive.java | #7D3626de | bold |
| storage.type.rune.go | #4E4E09de | bold |
| storage.type.string.go | #4E4E1Dde | bold |
| storage.type.token.java | #5B288Dde | bold |
| storage.type.uintptr.go | #90230Ade | bold |
| storage.type.variable.cs | #4E2576de | bold |
| string | #0C5907de | — |
| string.quoted.docstring.multi.python | #6B3B6B6e | — |
| string.regexp | #662AA4de | — |
| string.tag | #095644de | — |
| string.value | #0D5808de | — |
| strong | #763425de | — |
| support.class | #4F4F06de | — |
| support.constant.color | #592A20de | — |
| support.constant.dom | #930467de | — |
| support.constant.font-name | #4E4E09de | — |
| support.constant.handlebars | #4E4E0Ade | — |
| support.constant.json | #942005de | — |
| support.constant.math | #1D441Bde | — |
| support.constant.media | #1E5245de | — |
| support.constant.media-type | #812765de | bold |
| support.constant.property-value | #0F580Ade | — |
| support.function | #900A66de | — |
| support.function.git-rebase | #922208de | — |
| support.other.parenthesis.regexp | #084233de | — |
| support.type | #662AA4de | bold |
| support.type.property-name | #4F4F0Ade | bold |
| support.type.vendored.property-name | #264B8Dde | bold |
| support.variable | #0A5605de | — |
| token.debug-token | #7E3727de | — |
| token.error-token | #920867de | — |
| token.info-token | #1F4B1Cde | — |
| token.warn-token | #0A41A6de | — |
| variable | #44441Bde | — |
| variable.css | #672352de | — |
| variable.language | #6805CAde | — |
| variable.language.wildcard.java | #1E5245de | — |
| variable.other.constant | #0F5909de | — |
| variable.other.definition.java | #6729A3de | — |
| variable.other.enummember | #562785de | — |
| variable.other.less | #4E4E09de | — |
| variable.other.object.java | #235720de | — |
| variable.other.object.property.java | #4F4F0Ade | — |
| variable.parameter.c | #0A388Ede | — |
| variable.parameter.function.language.python | #08503Ede | — |
| variable.parameter.java | #922208de | — |
| variable.scss | #90230Ade | — |
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}!`;
}