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 | #37C3376e | — |
| comment.block.html | #36C5366e | — |
| comment.block.java | #35C6356e | — |
| comment.block.javadoc.java | #37C3376e | — |
| comment.block.powershell | #37C3376e | — |
| comment.block.xml | #37C3376e | — |
| comment.line.double-slash.c | #33C4336e | — |
| comment.line.double-slash.cpp | #33C4336e | — |
| comment.line.double-slash.java | #37C3376e | — |
| comment.line.double-slash.js | #36C5366e | — |
| comment.line.number-sign.makefile | #35C6356e | — |
| comment.line.number-sign.python | #37C3376e | — |
| comment.line.number-sign.yaml | #36C5366e | — |
| comment.line.percentage.erlang | #37C3376e | — |
| comment.line.powershell | #37C3376e | — |
| comment.source.cmake | #37C3376e | — |
| comment.source.cmakecache | #36C5366e | — |
| constant.character | #EB9359de | — |
| constant.character.character-class.regexp | #F384B6de | — |
| constant.character.escape | #D68BF6de | — |
| constant.character.set.regexp | #F485B7de | — |
| constant.language | #08BCBCde | — |
| constant.numeric | #F484B7de | — |
| constant.numeric.dec.python | #F6B88Ede | — |
| constant.other.caps.python | #96A4F7de | — |
| constant.other.character-class.regexp | #EA945Ade | — |
| constant.other.character-class.set.regexp | #8BB707de | — |
| constant.other.color.rgb-value | #26D537de | — |
| constant.other.placeholder | #DA96F7de | — |
| constant.other.rgb-value | #D68BF6de | — |
| constant.regexp | #07DCDCde | — |
| constant.sha.git-rebase | #F485B7de | — |
| emphasis | #EA9359de | — |
| entity.name.class | #D58BF5de | — |
| entity.name.function | #95A4F7de | — |
| entity.name.function.preprocessor | #2CD8D8de | — |
| entity.name.function.python | #D68CF5de | — |
| entity.name.label | #94A3F7de | — |
| entity.name.namespace | #EA9359de | — |
| entity.name.operator | #94A3F7de | — |
| entity.name.operator.custom-literal | #D68CF5de | — |
| entity.name.scope-resolution | #EB9359de | — |
| entity.name.tag | #D68CF6de | — |
| entity.name.tag.css | #07D21Cde | — |
| entity.name.type | #F5B387de | — |
| entity.name.variable | #F484B7de | — |
| entity.other.attribute | #07C5C5de | — |
| entity.other.attribute-name | #EF9F6Ade | — |
| entity.other.attribute-name.class.css | #06DD1Cde | — |
| entity.other.attribute-name.class.mixin.css | #08BCBCde | — |
| entity.other.attribute-name.id | #06CFCFde | — |
| entity.other.attribute-name.id.css | #27BABAde | — |
| entity.other.attribute-name.parent-selector.css | #95A4F7de | — |
| entity.other.attribute-name.pseudo-class.css | #E0A5F9de | — |
| entity.other.attribute-name.pseudo-element.css | #EA9359de | — |
| entity.other.attribute-name.scss | #F484B6de | — |
| entity.other.document.begin.yaml | #37C3376e | — |
| entity.other.inherited-class | #D68CF5de | — |
| header | #8BB707de | — |
| invalid | #8DB808de | — |
| keyword | #07DDDDde | — |
| keyword.codetag.notation.python | #EB945Ade | — |
| keyword.control | #3CE14Cde | — |
| keyword.control.anchor.regexp | #8BB806de | — |
| keyword.control.import.python | #EB9459de | — |
| keyword.operator | #07D1D1de | — |
| keyword.operator.alignas | #F585B8de | — |
| keyword.operator.alignof | #8BB707de | — |
| keyword.operator.cast | #27BCBCde | — |
| keyword.operator.delete | #D58BF5de | — |
| keyword.operator.documentation.powershell | #37C3376e | — |
| keyword.operator.expression | #F484B7de | — |
| keyword.operator.instanceof | #F485B7de | — |
| keyword.operator.logical.python | #8CBA07de | — |
| keyword.operator.minus.exponent | #26D537de | — |
| keyword.operator.negation.regexp | #D58BF5de | — |
| keyword.operator.new | #F586B8de | — |
| keyword.operator.noexcept | #06E01Cde | — |
| keyword.operator.or.regexp | #94A3F7de | — |
| keyword.operator.plus.exponent | #96A4F7de | — |
| keyword.operator.quantifier.regexp | #2FDC40de | — |
| keyword.operator.sizeof | #D68BF6de | — |
| keyword.operator.typeid | #95A3F6de | — |
| keyword.operator.wordlike | #FC8B3Ede | — |
| keyword.other.operator | #D68BF5de | — |
| keyword.other.package.java | #F3AE80de | — |
| keyword.other.unit | #06DA1Dde | — |
| keyword.other.using | #07C61Cde | — |
| markup.bold | #07C8C8de | — |
| markup.changed | #28D3D3de | — |
| markup.deleted | #8DB808de | — |
| markup.fenced_code.block.markdown | #28D3D3de | — |
| markup.heading | #D58BF5de | — |
| markup.inline.raw | #EB9459de | — |
| markup.inserted | #F587B8de | — |
| markup.italic | #EB9459de | — |
| markup.raw.block.markdown | #DA96F7de | — |
| markup.strikethrough | #07D31Dde | — |
| markup.underline | #95A3F7de | — |
| meta.block.c | #08BDBDde | — |
| meta.block.c | #EB9359de | — |
| meta.class.java | #96A4F7de | — |
| meta.definition.variable.name | #94A3F7de | — |
| meta.diff.header | #06E01Cde | — |
| meta.embedded | #07BDBDde | — |
| meta.embedded.assembly | #F5B387de | — |
| meta.function-call.arguments.python | #D68CF5de | — |
| meta.function-call.python | #ED9A63de | — |
| meta.member.access.python | #8DB808de | — |
| meta.method.java | #8AB706de | — |
| meta.object-literal.key | #8DB908de | — |
| meta.paragraph.markdown | #EA945Ade | — |
| meta.preprocessor | #FC8B3Ede | — |
| meta.preprocessor.numeric | #27BCBCde | — |
| meta.preprocessor.string | #91B624de | — |
| meta.scope.prerequisites.makefile | #06CFCFde | — |
| meta.structure.dictionary.json.comments | #36C5366e | — |
| meta.structure.dictionary.key.python | #A5B2F9de | — |
| meta.structure.dictionary.value.json.comments | #36C5366e | — |
| meta.template.expression | #A9D526de | — |
| meta.type.cast.expr | #07D1D1de | — |
| meta.type.new.expr | #F485B7de | — |
| parameter | #8CB807de | — |
| punctuation.character.set.begin.regexp | #F485B7de | — |
| punctuation.character.set.end.regexp | #F484B6de | — |
| punctuation.definition.array.begin.json | #F484B6de | — |
| punctuation.definition.character-class.regexp | #FC8A3Dde | — |
| punctuation.definition.comment | #36C5366e | — |
| punctuation.definition.comment.json.comments | #33C4336e | — |
| punctuation.definition.comment.python | #36C5366e | — |
| punctuation.definition.dictionary.begin.json | #EB9459de | — |
| punctuation.definition.dictionary.end.json | #27BBBBde | — |
| punctuation.definition.group.assertion.regexp | #94A3F7de | — |
| punctuation.definition.group.regexp | #28CACAde | — |
| punctuation.definition.list.begin.json | #94A3F7de | — |
| punctuation.definition.list.begin.markdown | #8AB706de | — |
| punctuation.definition.list.begin.python | #06C319de | — |
| punctuation.definition.list.end.json | #96A4F7de | — |
| punctuation.definition.list.end.markdown | #EF9F6Ade | — |
| punctuation.definition.list.end.python | #27BBBBde | — |
| punctuation.definition.parameters.begin.python | #3CE14Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #D58BF5de | — |
| punctuation.definition.quote.begin.markdown | #8BB608de | — |
| punctuation.definition.tag | #F485B7de | — |
| punctuation.definition.template-expression.begin | #D58BF5de | — |
| punctuation.definition.template-expression.end | #F6B88Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #8BB608de | — |
| punctuation.section.embedded | #8CB708de | — |
| punctuation.section.embedded.begin.php | #F5B387de | — |
| punctuation.section.embedded.end.php | #94A3F7de | — |
| punctuation.terminator.java | #27BABAde | — |
| source.cmake | #94A3F7de | — |
| source.coffee.embedded | #8CB807de | — |
| source.cpp | #25CC36de | — |
| source.css.less | #8CB807de | — |
| source.groovy.embedded | #94A3F7de | — |
| source.java | #8AB706de | — |
| source.java-properties | #F485B6de | — |
| source.json.comments | #37C3376e | — |
| source.makefile | #06DA1Dde | — |
| source.powershell | #8CB708de | — |
| source.powershell.variable.other.member | #F485B7de | — |
| source.python | #94A3F7de | — |
| storage | #42E352de | — |
| storage.modifier | #2CD8D8de | — |
| storage.modifier.import.java | #D58BF5de | — |
| storage.modifier.package.java | #F586B8de | — |
| storage.type | #25C435de | — |
| storage.type.annotation.groovy | #32DADAde | — |
| storage.type.annotation.java | #27BCBCde | — |
| storage.type.boolean.go | #FC8B3Ede | — |
| storage.type.byte.go | #8CBA07de | — |
| storage.type.cs | #F484B7de | — |
| storage.type.error.go | #25C435de | — |
| storage.type.generic.cs | #F485B7de | — |
| storage.type.generic.groovy | #F89DC6de | — |
| storage.type.generic.java | #96A4F7de | — |
| storage.type.groovy | #2FDC40de | — |
| storage.type.java | #F585B7de | — |
| storage.type.modifier.cs | #94A3F7de | — |
| storage.type.numeric.go | #35DF46de | — |
| storage.type.object.array.groovy | #07D21Cde | — |
| storage.type.object.array.java | #D68BF5de | — |
| storage.type.parameters.groovy | #EB945Ade | — |
| storage.type.primitive.array.groovy | #26D537de | — |
| storage.type.primitive.array.java | #F3AE80de | — |
| storage.type.primitive.groovy | #95A4F7de | — |
| storage.type.primitive.java | #94A3F7de | — |
| storage.type.rune.go | #EA9358de | — |
| storage.type.string.go | #FC8C3Fde | — |
| storage.type.token.java | #94A3F7de | — |
| storage.type.uintptr.go | #08BCBCde | — |
| storage.type.variable.cs | #93A3F7de | — |
| string | #9DABF8de | — |
| string.quoted.docstring.multi.python | #37C3376e | — |
| string.regexp | #D58BF5de | — |
| string.tag | #8BB708de | — |
| string.value | #F586B8de | — |
| strong | #06DA1Dde | — |
| support.class | #8BB608de | — |
| support.constant.color | #D58BF5de | — |
| support.constant.dom | #EA9359de | — |
| support.constant.font-name | #07D21Cde | — |
| support.constant.handlebars | #95A4F7de | — |
| support.constant.json | #F484B7de | — |
| support.constant.math | #D68CF5de | — |
| support.constant.media | #F0A471de | — |
| support.constant.media-type | #94A4F7de | — |
| support.constant.property-value | #25CC36de | — |
| support.function | #07CA1Cde | — |
| support.function.git-rebase | #F6B88Ede | — |
| support.other.parenthesis.regexp | #94A3F7de | — |
| support.type | #A2CC25de | — |
| support.type.property-name | #06C418de | — |
| support.type.vendored.property-name | #8DB808de | — |
| support.variable | #06C319de | — |
| token.debug-token | #EA945Ade | — |
| token.error-token | #D58BF5de | — |
| token.info-token | #D68CF5de | — |
| token.warn-token | #EB945Ade | — |
| variable | #94A3F7de | — |
| variable.css | #F586B8de | — |
| variable.language | #D68CF5de | — |
| variable.language.wildcard.java | #8BB608de | — |
| variable.other.constant | #F484B7de | — |
| variable.other.definition.java | #F484B6de | — |
| variable.other.enummember | #95A4F7de | — |
| variable.other.less | #8CBA07de | — |
| variable.other.object.java | #F585B8de | — |
| variable.other.object.property.java | #D58BF5de | — |
| variable.parameter.c | #F485B7de | — |
| variable.parameter.function.language.python | #29DA3Bde | — |
| variable.parameter.java | #07D01Cde | — |
| variable.scss | #07D31Dde | — |
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}!`;
}