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 | #402A146e | — |
| comment.block.html | #422A126e | — |
| comment.block.java | #3E2B136e | — |
| comment.block.javadoc.java | #402A146e | — |
| comment.block.powershell | #402A146e | — |
| comment.block.xml | #412A136e | — |
| comment.line.double-slash.c | #402A146e | — |
| comment.line.double-slash.cpp | #422A126e | — |
| comment.line.double-slash.java | #402A146e | — |
| comment.line.double-slash.js | #402A146e | — |
| comment.line.number-sign.makefile | #412A136e | — |
| comment.line.number-sign.python | #3E2B136e | — |
| comment.line.number-sign.yaml | #402A146e | — |
| comment.line.percentage.erlang | #412A136e | — |
| comment.line.powershell | #402A146e | — |
| comment.source.cmake | #3E2B136e | — |
| comment.source.cmakecache | #422A126e | — |
| constant.character | #02458Ade | — |
| constant.character.character-class.regexp | #50450Ede | — |
| constant.character.escape | #541C1Cde | — |
| constant.character.set.regexp | #4E1C43de | — |
| constant.language | #502020de | — |
| constant.numeric | #352F06de | — |
| constant.numeric.dec.python | #28491Ede | — |
| constant.other.caps.python | #0E3704de | — |
| constant.other.character-class.regexp | #4F460Fde | — |
| constant.other.character-class.set.regexp | #02458Ade | — |
| constant.other.color.rgb-value | #50450Ede | — |
| constant.other.placeholder | #1D500Fde | — |
| constant.other.rgb-value | #352F06de | — |
| constant.regexp | #34206Bde | — |
| constant.sha.git-rebase | #561047de | — |
| emphasis | #5E2424de | — |
| entity.name.class | #361977de | — |
| entity.name.function | #115035de | — |
| entity.name.function.preprocessor | #35245Fde | — |
| entity.name.function.python | #0A5031de | — |
| entity.name.label | #353118de | — |
| entity.name.namespace | #0F2F58de | — |
| entity.name.operator | #600E0Ede | — |
| entity.name.operator.custom-literal | #0F3803de | — |
| entity.name.scope-resolution | #49431Ede | — |
| entity.name.tag | #342F13de | — |
| entity.name.tag.css | #5D0049de | — |
| entity.name.type | #24415Ede | bold |
| entity.name.variable | #50450Ede | — |
| entity.other.attribute | #352263de | — |
| entity.other.attribute-name | #18304Ade | — |
| entity.other.attribute-name.class.css | #652525de | — |
| entity.other.attribute-name.class.mixin.css | #103050de | — |
| entity.other.attribute-name.id | #362166de | — |
| entity.other.attribute-name.id.css | #1E4937de | — |
| entity.other.attribute-name.parent-selector.css | #310B8Ede | — |
| entity.other.attribute-name.pseudo-class.css | #24415Ede | — |
| entity.other.attribute-name.pseudo-element.css | #572222de | — |
| entity.other.attribute-name.scss | #361977de | — |
| entity.other.document.begin.yaml | #402A146e | — |
| entity.other.inherited-class | #561147de | — |
| header | #5B1515de | — |
| invalid | #652525de | — |
| keyword | #12304Ede | bold |
| keyword.codetag.notation.python | #504609de | bold |
| keyword.control | #35245Fde | bold |
| keyword.control.anchor.regexp | #541C1Cde | bold |
| keyword.control.import.python | #580F43de | bold |
| keyword.operator | #361C73de | bold |
| keyword.operator.alignas | #331285de | bold |
| keyword.operator.alignof | #1A3C2Dde | bold |
| keyword.operator.cast | #16360Ede | bold |
| keyword.operator.delete | #561A1Ade | bold |
| keyword.operator.documentation.powershell | #3E2B136e | bold |
| keyword.operator.expression | #254565de | bold |
| keyword.operator.instanceof | #361C73de | bold |
| keyword.operator.logical.python | #033059de | bold |
| keyword.operator.minus.exponent | #254565de | bold |
| keyword.operator.negation.regexp | #1B3147de | bold |
| keyword.operator.new | #502020de | bold |
| keyword.operator.noexcept | #4E1C43de | bold |
| keyword.operator.or.regexp | #043721de | bold |
| keyword.operator.plus.exponent | #1D3045de | bold |
| keyword.operator.quantifier.regexp | #50450Ede | bold |
| keyword.operator.sizeof | #1D500Fde | bold |
| keyword.operator.typeid | #0B5032de | bold |
| keyword.operator.wordlike | #342F12de | bold |
| keyword.other.operator | #1E5011de | bold |
| keyword.other.package.java | #342F12de | bold |
| keyword.other.unit | #352F06de | bold |
| keyword.other.using | #5B1515de | bold |
| markup.bold | #561047de | — |
| markup.changed | #34206Bde | — |
| markup.deleted | #57224Bde | — |
| markup.fenced_code.block.markdown | #561047de | — |
| markup.heading | #0F2F58de | — |
| markup.inline.raw | #0F2F58de | — |
| markup.inserted | #5F0F0Fde | — |
| markup.italic | #1D500Fde | — |
| markup.raw.block.markdown | #5F0F0Fde | — |
| markup.strikethrough | #49431Ede | — |
| markup.underline | #1A3C2Dde | — |
| meta.block.c | #4F460Fde | — |
| meta.block.c | #361C73de | — |
| meta.class.java | #6C275Dde | — |
| meta.definition.variable.name | #1E5011de | — |
| meta.diff.header | #203850de | — |
| meta.embedded | #650101de | — |
| meta.embedded.assembly | #1E3518de | — |
| meta.function-call.arguments.python | #125035de | — |
| meta.function-call.python | #123526de | — |
| meta.member.access.python | #193512de | — |
| meta.method.java | #3A276Cde | — |
| meta.object-literal.key | #25421Dde | — |
| meta.paragraph.markdown | #331285de | — |
| meta.preprocessor | #125035de | — |
| meta.preprocessor.numeric | #1A500Bde | — |
| meta.preprocessor.string | #1E3518de | — |
| meta.scope.prerequisites.makefile | #033059de | — |
| meta.structure.dictionary.json.comments | #402A146e | — |
| meta.structure.dictionary.key.python | #115035de | — |
| meta.structure.dictionary.value.json.comments | #422A126e | — |
| meta.template.expression | #650101de | — |
| meta.type.cast.expr | #34206Bde | bold |
| meta.type.new.expr | #254565de | bold |
| parameter | #580F43de | — |
| punctuation.character.set.begin.regexp | #0E5033de | — |
| punctuation.character.set.end.regexp | #4F1A44de | — |
| punctuation.definition.array.begin.json | #1A3146de | — |
| punctuation.definition.character-class.regexp | #342F13de | — |
| punctuation.definition.comment | #422A126e | — |
| punctuation.definition.comment.json.comments | #3E2B136e | — |
| punctuation.definition.comment.python | #402A146e | — |
| punctuation.definition.dictionary.begin.json | #1B500Ede | — |
| punctuation.definition.dictionary.end.json | #0A5031de | — |
| punctuation.definition.group.assertion.regexp | #561147de | — |
| punctuation.definition.group.regexp | #24415Ede | — |
| punctuation.definition.list.begin.json | #5F0F0Fde | — |
| punctuation.definition.list.begin.markdown | #28491Ede | — |
| punctuation.definition.list.begin.python | #572222de | — |
| punctuation.definition.list.end.json | #254565de | — |
| punctuation.definition.list.end.markdown | #1E4937de | — |
| punctuation.definition.list.end.python | #561A1Ade | — |
| punctuation.definition.parameters.begin.python | #511845de | — |
| punctuation.definition.parameters.end.bracket.round.java | #49431Ede | — |
| punctuation.definition.quote.begin.markdown | #310B8Ede | — |
| punctuation.definition.tag | #1A500Bde | — |
| punctuation.definition.template-expression.begin | #35245Fde | — |
| punctuation.definition.template-expression.end | #1E5011de | — |
| punctuation.section.class.begin.bracket.curly.java | #1D500Fde | — |
| punctuation.section.embedded | #28491Ede | — |
| punctuation.section.embedded.begin.php | #3C371Ade | — |
| punctuation.section.embedded.end.php | #1D3045de | — |
| punctuation.terminator.java | #352263de | — |
| source.cmake | #50460Bde | — |
| source.coffee.embedded | #4F460Fde | — |
| source.cpp | #183529de | — |
| source.css.less | #16360Ede | — |
| source.groovy.embedded | #35245Fde | — |
| source.java | #1E5011de | — |
| source.java-properties | #372565de | — |
| source.json.comments | #422A126e | — |
| source.makefile | #3C371Ade | — |
| source.powershell | #183529de | — |
| source.powershell.variable.other.member | #24415Ede | — |
| source.python | #1D500Fde | — |
| storage | #193512de | — |
| storage.modifier | #223C1Ade | — |
| storage.modifier.import.java | #310991de | — |
| storage.modifier.package.java | #1A3C2Dde | — |
| storage.type | #1E3518de | bold |
| storage.type.annotation.groovy | #652557de | bold |
| storage.type.annotation.java | #5F0F0Fde | bold |
| storage.type.boolean.go | #34206Bde | bold |
| storage.type.byte.go | #34206Bde | bold |
| storage.type.cs | #352361de | bold |
| storage.type.error.go | #0B5032de | bold |
| storage.type.generic.cs | #732828de | bold |
| storage.type.generic.groovy | #521F1Fde | bold |
| storage.type.generic.java | #193512de | bold |
| storage.type.groovy | #34206Bde | bold |
| storage.type.java | #033059de | bold |
| storage.type.modifier.cs | #033822de | bold |
| storage.type.numeric.go | #581818de | bold |
| storage.type.object.array.groovy | #033059de | bold |
| storage.type.object.array.java | #352263de | bold |
| storage.type.parameters.groovy | #4F4611de | bold |
| storage.type.primitive.array.groovy | #581818de | bold |
| storage.type.primitive.array.java | #12304Ede | bold |
| storage.type.primitive.groovy | #12304Ede | bold |
| storage.type.primitive.java | #352361de | bold |
| storage.type.rune.go | #3C371Ade | bold |
| storage.type.string.go | #0E3624de | bold |
| storage.type.token.java | #1F5012de | bold |
| storage.type.uintptr.go | #1A3513de | bold |
| storage.type.variable.cs | #650101de | bold |
| string | #5E2451de | — |
| string.quoted.docstring.multi.python | #3E2B136e | — |
| string.regexp | #1B500Ede | — |
| string.tag | #185109de | — |
| string.value | #5E2451de | — |
| strong | #362166de | — |
| support.class | #1B3147de | — |
| support.constant.color | #561047de | — |
| support.constant.dom | #6C2727de | — |
| support.constant.font-name | #203850de | — |
| support.constant.handlebars | #342F13de | — |
| support.constant.json | #531545de | — |
| support.constant.math | #502020de | — |
| support.constant.media | #4F1A44de | — |
| support.constant.media-type | #50450Ede | bold |
| support.constant.property-value | #02458Ade | — |
| support.function | #423D1Dde | — |
| support.function.git-rebase | #531545de | — |
| support.other.parenthesis.regexp | #1A3C2Dde | — |
| support.type | #1D4232de | bold |
| support.type.property-name | #223C57de | bold |
| support.type.vendored.property-name | #581818de | bold |
| support.variable | #1D3045de | — |
| token.debug-token | #352F06de | — |
| token.error-token | #0A5031de | — |
| token.info-token | #34245Ede | — |
| token.warn-token | #531545de | — |
| variable | #123526de | — |
| variable.css | #4F460Fde | — |
| variable.language | #561047de | — |
| variable.language.wildcard.java | #352361de | — |
| variable.other.constant | #4F1A44de | — |
| variable.other.definition.java | #504609de | — |
| variable.other.enummember | #35245Fde | — |
| variable.other.less | #0E3704de | — |
| variable.other.object.java | #310B8Ede | — |
| variable.other.object.property.java | #0F2F58de | — |
| variable.parameter.c | #34245Ede | — |
| variable.parameter.function.language.python | #0E5033de | — |
| variable.parameter.java | #5D0348de | — |
| variable.scss | #4F460Fde | — |
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}!`;
}