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 | #BABAF96e | — |
| comment.block.html | #BBBBFB6e | — |
| comment.block.java | #BABAF96e | — |
| comment.block.javadoc.java | #BABAF96e | — |
| comment.block.powershell | #BABAF96e | — |
| comment.block.xml | #BABAFC6e | — |
| comment.line.double-slash.c | #BBBBFB6e | — |
| comment.line.double-slash.cpp | #BABAF86e | — |
| comment.line.double-slash.java | #BABAF86e | — |
| comment.line.double-slash.js | #BBBBFB6e | — |
| comment.line.number-sign.makefile | #BBBBFB6e | — |
| comment.line.number-sign.python | #BBBBFB6e | — |
| comment.line.number-sign.yaml | #BABAFC6e | — |
| comment.line.percentage.erlang | #BABAF96e | — |
| comment.line.powershell | #BBBBFB6e | — |
| comment.source.cmake | #BABAF96e | — |
| comment.source.cmakecache | #BBBBFB6e | — |
| constant.character | #0EDF33de | — |
| constant.character.character-class.regexp | #FEA8C7de | — |
| constant.character.escape | #EE7FA6de | — |
| constant.character.set.regexp | #B3B8FEde | — |
| constant.language | #969BF0de | — |
| constant.numeric | #83D510de | — |
| constant.numeric.dec.python | #F89EBDde | — |
| constant.other.caps.python | #9EA3F8de | — |
| constant.other.character-class.regexp | #83D50Fde | — |
| constant.other.character-class.set.regexp | #0CD2EEde | — |
| constant.other.color.rgb-value | #D680F0de | — |
| constant.other.placeholder | #0AD3F1de | — |
| constant.other.rgb-value | #83D50Fde | — |
| constant.regexp | #0ED4EEde | — |
| constant.sha.git-rebase | #85D610de | — |
| emphasis | #969BF0de | — |
| entity.name.class | #0FDE33de | — |
| entity.name.function | #959BF2de | — |
| entity.name.function.preprocessor | #B7B7B7de | — |
| entity.name.function.python | #959AF3de | — |
| entity.name.label | #A9A9A9de | — |
| entity.name.namespace | #FEA3C3de | — |
| entity.name.operator | #D681F1de | — |
| entity.name.operator.custom-literal | #82D60Cde | — |
| entity.name.scope-resolution | #0FDE33de | — |
| entity.name.tag | #AEAEAEde | — |
| entity.name.tag.css | #B5BBFEde | — |
| entity.name.type | #D681F1de | — |
| entity.name.variable | #959BF2de | — |
| entity.other.attribute | #DD8FF5de | — |
| entity.other.attribute-name | #FEA8C8de | — |
| entity.other.attribute-name.class.css | #0ED2EDde | — |
| entity.other.attribute-name.class.mixin.css | #81D50Cde | — |
| entity.other.attribute-name.id | #84D510de | — |
| entity.other.attribute-name.id.css | #0EDF33de | — |
| entity.other.attribute-name.parent-selector.css | #0ED2EDde | — |
| entity.other.attribute-name.pseudo-class.css | #84D60Fde | — |
| entity.other.attribute-name.pseudo-element.css | #0ED4EEde | — |
| entity.other.attribute-name.scss | #ADB1FAde | — |
| entity.other.document.begin.yaml | #BBBBFB6e | — |
| entity.other.inherited-class | #85D610de | — |
| header | #FEA8C6de | — |
| invalid | #F9A5C3de | — |
| keyword | #C1C1C1de | — |
| keyword.codetag.notation.python | #85D610de | — |
| keyword.control | #BBBBBBde | — |
| keyword.control.anchor.regexp | #0BD3EDde | — |
| keyword.control.import.python | #959AF3de | — |
| keyword.operator | #F89EBDde | — |
| keyword.operator.alignas | #B5B9FBde | — |
| keyword.operator.alignof | #0FDE33de | — |
| keyword.operator.cast | #A5A5A5de | — |
| keyword.operator.delete | #E29EF8de | — |
| keyword.operator.documentation.powershell | #BBBBFB6e | — |
| keyword.operator.expression | #E9A8FEde | — |
| keyword.operator.instanceof | #0ED4EEde | — |
| keyword.operator.logical.python | #0CD2EDde | — |
| keyword.operator.minus.exponent | #0FDF34de | — |
| keyword.operator.negation.regexp | #F488AEde | — |
| keyword.operator.new | #80D505de | — |
| keyword.operator.noexcept | #0FDE33de | — |
| keyword.operator.or.regexp | #E9A8FEde | — |
| keyword.operator.plus.exponent | #AEAEAEde | — |
| keyword.operator.quantifier.regexp | #0FDF34de | — |
| keyword.operator.sizeof | #E5A5F9de | — |
| keyword.operator.typeid | #81D50Cde | — |
| keyword.operator.wordlike | #85D610de | — |
| keyword.other.operator | #0ED4EEde | — |
| keyword.other.package.java | #0EDF33de | — |
| keyword.other.unit | #F07EA5de | — |
| keyword.other.using | #0ED4EEde | — |
| markup.bold | #B3B8FEde | — |
| markup.changed | #B7B7B7de | — |
| markup.deleted | #EBA8FEde | — |
| markup.fenced_code.block.markdown | #82D50Cde | — |
| markup.heading | #0BD3EDde | — |
| markup.inline.raw | #0FDF34de | — |
| markup.inserted | #85D610de | — |
| markup.italic | #BBBBBBde | — |
| markup.raw.block.markdown | #82D60Cde | — |
| markup.strikethrough | #BBBBBBde | — |
| markup.underline | #0CDE32de | — |
| meta.block.c | #FEA3C3de | — |
| meta.block.c | #F58FB3de | — |
| meta.class.java | #969BF0de | — |
| meta.definition.variable.name | #959BF2de | — |
| meta.diff.header | #959AF5de | — |
| meta.embedded | #F696B8de | — |
| meta.embedded.assembly | #E9A3FEde | — |
| meta.function-call.arguments.python | #969BF0de | — |
| meta.function-call.python | #0ADF30de | — |
| meta.member.access.python | #F488AEde | — |
| meta.method.java | #0ED2EDde | — |
| meta.object-literal.key | #0CDE32de | — |
| meta.paragraph.markdown | #85D610de | — |
| meta.preprocessor | #B5B9FBde | — |
| meta.preprocessor.numeric | #82D60Cde | — |
| meta.preprocessor.string | #83D510de | — |
| meta.scope.prerequisites.makefile | #0ED2EDde | — |
| meta.structure.dictionary.json.comments | #BABAF86e | — |
| meta.structure.dictionary.key.python | #D680F0de | — |
| meta.structure.dictionary.value.json.comments | #BABAF96e | — |
| meta.template.expression | #EBA8FEde | — |
| meta.type.cast.expr | #959AF3de | — |
| meta.type.new.expr | #84D510de | — |
| parameter | #A5A5A5de | — |
| punctuation.character.set.begin.regexp | #959AF3de | — |
| punctuation.character.set.end.regexp | #0EDF33de | — |
| punctuation.definition.array.begin.json | #0AD3F1de | — |
| punctuation.definition.character-class.regexp | #0ED4EEde | — |
| punctuation.definition.comment | #BBBBFB6e | — |
| punctuation.definition.comment.json.comments | #BBBBFB6e | — |
| punctuation.definition.comment.python | #BBBBFB6e | — |
| punctuation.definition.dictionary.begin.json | #84D60Fde | — |
| punctuation.definition.dictionary.end.json | #ADB1FAde | — |
| punctuation.definition.group.assertion.regexp | #C1C1C1de | — |
| punctuation.definition.group.regexp | #A5A5A5de | — |
| punctuation.definition.list.begin.json | #C1C1C1de | — |
| punctuation.definition.list.begin.markdown | #B7B7B7de | — |
| punctuation.definition.list.begin.python | #A2A2A2de | — |
| punctuation.definition.list.end.json | #82D50Cde | — |
| punctuation.definition.list.end.markdown | #83D50Fde | — |
| punctuation.definition.list.end.python | #0BDE2Fde | — |
| punctuation.definition.parameters.begin.python | #E5A5F9de | — |
| punctuation.definition.parameters.end.bracket.round.java | #959AF3de | — |
| punctuation.definition.quote.begin.markdown | #E096F6de | — |
| punctuation.definition.tag | #08DF2Fde | — |
| punctuation.definition.template-expression.begin | #F17DA5de | — |
| punctuation.definition.template-expression.end | #F281A9de | — |
| punctuation.section.class.begin.bracket.curly.java | #F696B8de | — |
| punctuation.section.embedded | #82D60Bde | — |
| punctuation.section.embedded.begin.php | #84D510de | — |
| punctuation.section.embedded.end.php | #F17DA5de | — |
| punctuation.terminator.java | #0FDF35de | — |
| source.cmake | #A5AAF9de | — |
| source.coffee.embedded | #F58FB3de | — |
| source.cpp | #0CD2EEde | — |
| source.css.less | #0CD2EEde | — |
| source.groovy.embedded | #82D50Cde | — |
| source.java | #85D610de | — |
| source.java-properties | #82D50Cde | — |
| source.json.comments | #BBBBFB6e | — |
| source.makefile | #D680F0de | — |
| source.powershell | #0ED4EEde | — |
| source.powershell.variable.other.member | #ED7FA6de | — |
| source.python | #0FDE33de | — |
| storage | #0FDE32de | — |
| storage.modifier | #85D50Fde | — |
| storage.modifier.import.java | #0ADF30de | — |
| storage.modifier.package.java | #0CD2EEde | — |
| storage.type | #D680F0de | — |
| storage.type.annotation.groovy | #0ED4EEde | — |
| storage.type.annotation.java | #0CD4EDde | — |
| storage.type.boolean.go | #0ED4EEde | — |
| storage.type.byte.go | #E9A8FEde | — |
| storage.type.cs | #969BF1de | — |
| storage.type.error.go | #0CD2EDde | — |
| storage.type.generic.cs | #D681F1de | — |
| storage.type.generic.groovy | #0CDE34de | — |
| storage.type.generic.java | #FEA8C7de | — |
| storage.type.groovy | #969CF6de | — |
| storage.type.java | #0ADF30de | — |
| storage.type.modifier.cs | #F696B8de | — |
| storage.type.numeric.go | #0FDE32de | — |
| storage.type.object.array.groovy | #85D610de | — |
| storage.type.object.array.java | #0FDE32de | — |
| storage.type.parameters.groovy | #0DDF32de | — |
| storage.type.primitive.array.groovy | #84D60Fde | — |
| storage.type.primitive.array.java | #85D610de | — |
| storage.type.primitive.groovy | #0FDE33de | — |
| storage.type.primitive.java | #D680F0de | — |
| storage.type.rune.go | #85D610de | — |
| storage.type.string.go | #0CD2EEde | — |
| storage.type.token.java | #D582EEde | — |
| storage.type.uintptr.go | #C1C1C1de | — |
| storage.type.variable.cs | #82D60Ade | — |
| string | #D582EEde | — |
| string.quoted.docstring.multi.python | #BABAF96e | — |
| string.regexp | #BBBBBBde | — |
| string.tag | #F58FB3de | — |
| string.value | #80D505de | — |
| strong | #0FDF34de | — |
| support.class | #E29EF8de | — |
| support.constant.color | #0FDE32de | — |
| support.constant.dom | #82D50Dde | — |
| support.constant.font-name | #F488AEde | — |
| support.constant.handlebars | #BBBBBBde | — |
| support.constant.json | #83D50Fde | — |
| support.constant.math | #9EA3F8de | — |
| support.constant.media | #0CDE34de | — |
| support.constant.media-type | #E9A8FEde | — |
| support.constant.property-value | #0ED4EEde | — |
| support.function | #A2A2A2de | — |
| support.function.git-rebase | #0CD2EDde | — |
| support.other.parenthesis.regexp | #C1C1C1de | — |
| support.type | #0ED4EEde | — |
| support.type.property-name | #EF7EA6de | — |
| support.type.vendored.property-name | #EBA8FEde | — |
| support.variable | #0ED4EEde | — |
| token.debug-token | #0BD3EDde | — |
| token.error-token | #E5A5F9de | — |
| token.info-token | #0ED4EEde | — |
| token.warn-token | #969BF2de | — |
| variable | #EAA8FEde | — |
| variable.css | #0CDE32de | — |
| variable.language | #0CD2EDde | — |
| variable.language.wildcard.java | #0ED4EEde | — |
| variable.other.constant | #D781F2de | — |
| variable.other.definition.java | #D680F0de | — |
| variable.other.enummember | #EF7EA6de | — |
| variable.other.less | #969CF6de | — |
| variable.other.object.java | #A5A5A5de | — |
| variable.other.object.property.java | #83D510de | — |
| variable.parameter.c | #0FDE32de | — |
| variable.parameter.function.language.python | #0CD2EEde | — |
| variable.parameter.java | #EBA8FEde | — |
| variable.scss | #959AF3de | — |
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}!`;
}