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 | #6DAEEF6e | — |
| comment.block.html | #7BB7F36e | — |
| comment.block.java | #81C0F66e | — |
| comment.block.javadoc.java | #73B2F16e | — |
| comment.block.powershell | #9BCEFA6e | — |
| comment.block.xml | #94C6F76e | — |
| comment.line.double-slash.c | #86BEF56e | — |
| comment.line.double-slash.cpp | #9BCEFA6e | — |
| comment.line.double-slash.java | #7ABBF46e | — |
| comment.line.double-slash.js | #76B9F46e | — |
| comment.line.number-sign.makefile | #77B4F26e | — |
| comment.line.number-sign.python | #94C6F76e | — |
| comment.line.number-sign.yaml | #7ABBF46e | — |
| comment.line.percentage.erlang | #76B9F46e | — |
| comment.line.powershell | #8FC8F86e | — |
| comment.source.cmake | #99C8F86e | — |
| comment.source.cmakecache | #6FB0F06e | — |
| constant.character | #CDA6F4de | — |
| constant.character.character-class.regexp | #C59AF0de | — |
| constant.character.escape | #6AC70Ede | — |
| constant.character.set.regexp | #99CDFEde | — |
| constant.language | #0DDA74de | — |
| constant.numeric | #77E10Cde | — |
| constant.numeric.dec.python | #96D15Cde | — |
| constant.other.caps.python | #6BC90Bde | — |
| constant.other.character-class.regexp | #FCAE60de | — |
| constant.other.character-class.set.regexp | #9FC8F2de | — |
| constant.other.color.rgb-value | #E9B887de | — |
| constant.other.placeholder | #0BD46Fde | — |
| constant.other.rgb-value | #F4A5CDde | — |
| constant.regexp | #F6ADD2de | — |
| constant.sha.git-rebase | #E989E9de | — |
| emphasis | #C69BF1de | — |
| entity.name.class | #EE92C0de | — |
| entity.name.function | #F099F0de | — |
| entity.name.function.preprocessor | #CFAAF5de | — |
| entity.name.function.python | #58CC92de | — |
| entity.name.label | #F097C4de | — |
| entity.name.namespace | #EB8EEBde | — |
| entity.name.operator | #75DC0Dde | — |
| entity.name.operator.custom-literal | #0DC76Bde | — |
| entity.name.scope-resolution | #54C88Ede | — |
| entity.name.tag | #6AC40Ede | — |
| entity.name.tag.css | #EF98EFde | — |
| entity.name.type | #6BC90Ede | — |
| entity.name.variable | #70DEA7de | — |
| entity.other.attribute | #FCAD60de | — |
| entity.other.attribute-name | #82BB48de | — |
| entity.other.attribute-name.class.css | #87B9E9de | — |
| entity.other.attribute-name.class.mixin.css | #D8B7F8de | — |
| entity.other.attribute-name.id | #EE92C0de | — |
| entity.other.attribute-name.id.css | #EB8CBCde | — |
| entity.other.attribute-name.parent-selector.css | #E2AC76de | — |
| entity.other.attribute-name.pseudo-class.css | #52C78Dde | — |
| entity.other.attribute-name.pseudo-element.css | #A1D969de | — |
| entity.other.attribute-name.scss | #49BF85de | — |
| entity.other.document.begin.yaml | #8FC8F86e | — |
| entity.other.inherited-class | #73DC0Bde | — |
| header | #75DC0Dde | — |
| invalid | #F6AED2de | — |
| keyword | #DAA36Bde | — |
| keyword.codetag.notation.python | #91BFEDde | — |
| keyword.control | #EF97EFde | — |
| keyword.control.anchor.regexp | #6BDAA3de | — |
| keyword.control.import.python | #CEA8F5de | — |
| keyword.operator | #0DC86Bde | — |
| keyword.operator.alignas | #4CC086de | — |
| keyword.operator.alignof | #F5ACD1de | — |
| keyword.operator.cast | #F8B6D7de | — |
| keyword.operator.delete | #D3B0F7de | — |
| keyword.operator.documentation.powershell | #9BCEFA6e | — |
| keyword.operator.expression | #F8B5D6de | — |
| keyword.operator.instanceof | #7AAEE3de | — |
| keyword.operator.logical.python | #71B8FDde | — |
| keyword.operator.minus.exponent | #E9B888de | — |
| keyword.operator.negation.regexp | #8EC854de | — |
| keyword.operator.new | #C396EFde | — |
| keyword.operator.noexcept | #F3A5F3de | — |
| keyword.operator.or.regexp | #62B0FCde | — |
| keyword.operator.plus.exponent | #89BAEAde | — |
| keyword.operator.quantifier.regexp | #DDA66Fde | — |
| keyword.operator.sizeof | #87C24Dde | — |
| keyword.operator.typeid | #C89EF2de | — |
| keyword.operator.wordlike | #D1ACF6de | — |
| keyword.other.operator | #0CC367de | — |
| keyword.other.package.java | #EE94C1de | — |
| keyword.other.unit | #ECBE8Ede | — |
| keyword.other.using | #86C04Cde | — |
| markup.bold | #EF97C3de | — |
| markup.changed | #97C3EFde | — |
| markup.deleted | #CCA5F4de | — |
| markup.fenced_code.block.markdown | #5DD096de | — |
| markup.heading | #F99A3Dde | — |
| markup.inline.raw | #E4AF7Bde | — |
| markup.inserted | #CDA6F4de | — |
| markup.italic | #F6AFD3de | — |
| markup.raw.block.markdown | #A4CBF3de | — |
| markup.strikethrough | #EB8DBDde | — |
| markup.underline | #F29FC8de | — |
| meta.block.c | #6DCD0Bde | — |
| meta.block.c | #9CC7F1de | — |
| meta.class.java | #9BD461de | — |
| meta.definition.variable.name | #EE93EEde | — |
| meta.diff.header | #FDB56Ede | — |
| meta.embedded | #EE95EEde | — |
| meta.embedded.assembly | #ECBC8Cde | — |
| meta.function-call.arguments.python | #F4A5CDde | — |
| meta.function-call.python | #C49AF0de | — |
| meta.member.access.python | #F19CC7de | — |
| meta.method.java | #52C78Dde | — |
| meta.object-literal.key | #EB8CBCde | — |
| meta.paragraph.markdown | #ED8FBFde | — |
| meta.preprocessor | #EF98EFde | — |
| meta.preprocessor.numeric | #E3AE7Ade | — |
| meta.preprocessor.string | #DEA770de | — |
| meta.scope.prerequisites.makefile | #4CC086de | — |
| meta.structure.dictionary.json.comments | #77B4F26e | — |
| meta.structure.dictionary.key.python | #F098C4de | — |
| meta.structure.dictionary.value.json.comments | #7BB7F36e | — |
| meta.template.expression | #F5AAD0de | — |
| meta.type.cast.expr | #D9B9F9de | — |
| meta.type.new.expr | #67BF0Dde | — |
| parameter | #EB8DEBde | — |
| punctuation.character.set.begin.regexp | #EB8DEBde | — |
| punctuation.character.set.end.regexp | #89BAEAde | — |
| punctuation.definition.array.begin.json | #E1AC76de | — |
| punctuation.definition.character-class.regexp | #D0AAF5de | — |
| punctuation.definition.comment | #94C6F76e | — |
| punctuation.definition.comment.json.comments | #6DAEEF6e | — |
| punctuation.definition.comment.python | #99C8F86e | — |
| punctuation.definition.dictionary.begin.json | #4CC086de | — |
| punctuation.definition.dictionary.end.json | #6CDBA3de | — |
| punctuation.definition.group.assertion.regexp | #0CE377de | — |
| punctuation.definition.group.regexp | #0BD06Dde | — |
| punctuation.definition.list.begin.json | #D0ABF5de | — |
| punctuation.definition.list.begin.markdown | #EE96C3de | — |
| punctuation.definition.list.begin.python | #91BFEDde | — |
| punctuation.definition.list.end.json | #EB8DEBde | — |
| punctuation.definition.list.end.markdown | #DBBDF9de | — |
| punctuation.definition.list.end.python | #CCA5F4de | — |
| punctuation.definition.parameters.begin.python | #EE92C0de | — |
| punctuation.definition.parameters.end.bracket.round.java | #EE95EEde | — |
| punctuation.definition.quote.begin.markdown | #F19FF1de | — |
| punctuation.definition.tag | #71DEA8de | — |
| punctuation.definition.template-expression.begin | #EF97EFde | — |
| punctuation.definition.template-expression.end | #9EC8F2de | — |
| punctuation.section.class.begin.bracket.curly.java | #EBBB8Bde | — |
| punctuation.section.embedded | #A6CDF4de | — |
| punctuation.section.embedded.begin.php | #F09BC6de | — |
| punctuation.section.embedded.end.php | #0DDD74de | — |
| punctuation.terminator.java | #F7B2D4de | — |
| source.cmake | #89C34Dde | — |
| source.coffee.embedded | #FCAE60de | — |
| source.cpp | #F5ACD1de | — |
| source.css.less | #CAA1F2de | — |
| source.groovy.embedded | #54C88Ede | — |
| source.java | #6BC90Bde | — |
| source.java-properties | #75BAFDde | — |
| source.json.comments | #8BC5F76e | — |
| source.makefile | #68C10Ede | — |
| source.powershell | #EBBB8Bde | — |
| source.powershell.variable.other.member | #F4A8F4de | — |
| source.python | #5BCF95de | — |
| storage | #54C88Ede | — |
| storage.modifier | #94C1EFde | — |
| storage.modifier.import.java | #8FBFEDde | — |
| storage.modifier.package.java | #E987E9de | — |
| storage.type | #EC8EBDde | — |
| storage.type.annotation.groovy | #E1AC76de | — |
| storage.type.annotation.java | #97C3EFde | — |
| storage.type.boolean.go | #A1D968de | — |
| storage.type.byte.go | #F4A6F4de | — |
| storage.type.cs | #EA8BEAde | — |
| storage.type.error.go | #C498F0de | — |
| storage.type.generic.cs | #95CAFEde | — |
| storage.type.generic.groovy | #7CB0E4de | — |
| storage.type.generic.java | #8EBDECde | — |
| storage.type.groovy | #96CF5Bde | — |
| storage.type.java | #E9B786de | — |
| storage.type.modifier.cs | #E3AF7Ade | — |
| storage.type.numeric.go | #C498F0de | — |
| storage.type.object.array.groovy | #A5CCF4de | — |
| storage.type.object.array.java | #F7B2F7de | — |
| storage.type.parameters.groovy | #E9B886de | — |
| storage.type.primitive.array.groovy | #EEC092de | — |
| storage.type.primitive.array.java | #E989E9de | — |
| storage.type.primitive.groovy | #EB8CBCde | — |
| storage.type.primitive.java | #C89FF2de | — |
| storage.type.rune.go | #F099F0de | — |
| storage.type.string.go | #CFA8F5de | — |
| storage.type.token.java | #F4A8CEde | — |
| storage.type.uintptr.go | #9FD766de | — |
| storage.type.variable.cs | #0DE379de | — |
| string | #70DEA7de | — |
| string.quoted.docstring.multi.python | #9BCAF96e | — |
| string.regexp | #F8B6D7de | — |
| string.tag | #C9A1F3de | — |
| string.value | #EE93C1de | — |
| strong | #99CDFEde | — |
| support.class | #EE92C0de | — |
| support.constant.color | #0DC86Bde | — |
| support.constant.dom | #0BDF75de | — |
| support.constant.font-name | #EC90ECde | — |
| support.constant.handlebars | #EF97EFde | — |
| support.constant.json | #0ED06Ede | — |
| support.constant.math | #0BDA74de | — |
| support.constant.media | #EE91C0de | — |
| support.constant.media-type | #CEA6F4de | — |
| support.constant.property-value | #F19DC7de | — |
| support.function | #DEA770de | — |
| support.function.git-rebase | #6BDAA3de | — |
| support.other.parenthesis.regexp | #FBA752de | — |
| support.type | #F6AED2de | — |
| support.type.property-name | #70DEA7de | — |
| support.type.vendored.property-name | #9BD461de | — |
| support.variable | #D7B5F8de | — |
| token.debug-token | #92C0EEde | — |
| token.error-token | #93C1EEde | — |
| token.info-token | #C499F0de | — |
| token.warn-token | #EEC092de | — |
| variable | #50C48Ade | — |
| variable.css | #E6B381de | — |
| variable.language | #8AC450de | — |
| variable.language.wildcard.java | #8EC854de | — |
| variable.other.constant | #50C48Ade | — |
| variable.other.definition.java | #87C14Cde | — |
| variable.other.enummember | #53C88Ede | — |
| variable.other.less | #EF97C3de | — |
| variable.other.object.java | #C89FF2de | — |
| variable.other.object.property.java | #0CD26Fde | — |
| variable.parameter.c | #F4A7F4de | — |
| variable.parameter.function.language.python | #EC8DBCde | — |
| variable.parameter.java | #CCA5F4de | — |
| variable.scss | #F7B3D5de | — |
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}!`;
}