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 | #BBBBFC6e | — |
| comment.block.html | #BBBBFB6e | — |
| comment.block.java | #BBBBFB6e | — |
| comment.block.javadoc.java | #BBBBF96e | — |
| comment.block.powershell | #BBBBFC6e | — |
| comment.block.xml | #BCBCF86e | — |
| comment.line.double-slash.c | #BBBBFB6e | — |
| comment.line.double-slash.cpp | #BBBBFC6e | — |
| comment.line.double-slash.java | #BBBBF96e | — |
| comment.line.double-slash.js | #BCBCF86e | — |
| comment.line.number-sign.makefile | #BBBBFB6e | — |
| comment.line.number-sign.python | #BCBCF86e | — |
| comment.line.number-sign.yaml | #BBBBF96e | — |
| comment.line.percentage.erlang | #BCBCF86e | — |
| comment.line.powershell | #BCBCF86e | — |
| comment.source.cmake | #BBBBF96e | — |
| comment.source.cmakecache | #BBBBFC6e | — |
| constant.character | #C1C1C1de | — |
| constant.character.character-class.regexp | #919CF4de | — |
| constant.character.escape | #F4AE88de | — |
| constant.character.set.regexp | #97D205de | — |
| constant.language | #D18FF5de | — |
| constant.numeric | #0FE01Bde | — |
| constant.numeric.dec.python | #0ADF17de | — |
| constant.other.caps.python | #FEA8CCde | — |
| constant.other.character-class.regexp | #E2AEFEde | — |
| constant.other.character-class.set.regexp | #9AD310de | — |
| constant.other.color.rgb-value | #FEA8CBde | — |
| constant.other.placeholder | #0EE01Bde | — |
| constant.other.rgb-value | #C1C1C1de | — |
| constant.regexp | #F89EC3de | — |
| constant.sha.git-rebase | #919CF5de | — |
| emphasis | #99D20Fde | — |
| entity.name.class | #B3BDFEde | — |
| entity.name.function | #919CF3de | — |
| entity.name.function.preprocessor | #D89EF8de | — |
| entity.name.function.python | #99D310de | — |
| entity.name.label | #EF9E73de | — |
| entity.name.namespace | #0CE019de | — |
| entity.name.operator | #919CF2de | — |
| entity.name.operator.custom-literal | #929EF0de | — |
| entity.name.scope-resolution | #A3A3A3de | — |
| entity.name.tag | #919CF3de | — |
| entity.name.tag.css | #CB87F1de | — |
| entity.name.type | #0BE016de | — |
| entity.name.variable | #0ADF17de | — |
| entity.other.attribute | #F1A379de | — |
| entity.other.attribute-name | #A3A3A3de | — |
| entity.other.attribute-name.class.css | #9EA8F8de | — |
| entity.other.attribute-name.class.mixin.css | #F17DACde | — |
| entity.other.attribute-name.id | #FEA3C8de | — |
| entity.other.attribute-name.id.css | #E1ADFEde | — |
| entity.other.attribute-name.parent-selector.css | #FDAF86de | — |
| entity.other.attribute-name.pseudo-class.css | #0FE01Bde | — |
| entity.other.attribute-name.pseudo-element.css | #99D307de | — |
| entity.other.attribute-name.scss | #919CF3de | — |
| entity.other.document.begin.yaml | #BBBBFC6e | — |
| entity.other.inherited-class | #97D20Dde | — |
| header | #919CF4de | — |
| invalid | #E1ADFEde | — |
| keyword | #DFADFAde | — |
| keyword.codetag.notation.python | #99D310de | — |
| keyword.control | #919CF3de | — |
| keyword.control.anchor.regexp | #ADB6FAde | — |
| keyword.control.import.python | #E2AEFEde | — |
| keyword.operator | #DBA5F9de | — |
| keyword.operator.alignas | #9AD310de | — |
| keyword.operator.alignof | #CE88F4de | — |
| keyword.operator.cast | #96A2F6de | — |
| keyword.operator.delete | #9AD310de | — |
| keyword.operator.documentation.powershell | #BBBBFC6e | — |
| keyword.operator.expression | #F696BEde | — |
| keyword.operator.instanceof | #FEB084de | — |
| keyword.operator.logical.python | #96A2F6de | — |
| keyword.operator.minus.exponent | #9AD310de | — |
| keyword.operator.negation.regexp | #F2A981de | — |
| keyword.operator.new | #0ADF19de | — |
| keyword.operator.noexcept | #0FE01Bde | — |
| keyword.operator.or.regexp | #919CF4de | — |
| keyword.operator.plus.exponent | #EF9E73de | — |
| keyword.operator.quantifier.regexp | #0FE01Bde | — |
| keyword.operator.sizeof | #FEAF85de | — |
| keyword.operator.typeid | #97D20Dde | — |
| keyword.operator.wordlike | #FEAF85de | — |
| keyword.other.operator | #98D40Bde | — |
| keyword.other.package.java | #F58FB9de | — |
| keyword.other.unit | #CE88F4de | — |
| keyword.other.using | #A5AFF9de | — |
| markup.bold | #EF7EADde | — |
| markup.changed | #F4AE88de | — |
| markup.deleted | #F488B4de | — |
| markup.fenced_code.block.markdown | #EB9465de | — |
| markup.heading | #0FDF1Cde | — |
| markup.inline.raw | #99D20Fde | — |
| markup.inserted | #0FE01Bde | — |
| markup.italic | #A5A5A5de | — |
| markup.raw.block.markdown | #9AD30Fde | — |
| markup.strikethrough | #929EF0de | — |
| markup.underline | #98D30Cde | — |
| meta.block.c | #0FE01Bde | — |
| meta.block.c | #0CE019de | — |
| meta.class.java | #D496F6de | — |
| meta.definition.variable.name | #F89EC3de | — |
| meta.diff.header | #EF7EADde | — |
| meta.embedded | #F1A379de | — |
| meta.embedded.assembly | #E1ADFEde | — |
| meta.function-call.arguments.python | #C1C1C1de | — |
| meta.function-call.python | #F4AE88de | — |
| meta.member.access.python | #B3BDFEde | — |
| meta.method.java | #98D30Cde | — |
| meta.object-literal.key | #9AD310de | — |
| meta.paragraph.markdown | #99D30Fde | — |
| meta.preprocessor | #B3B3B3de | — |
| meta.preprocessor.numeric | #0EDF1Bde | — |
| meta.preprocessor.string | #C0C0C0de | — |
| meta.scope.prerequisites.makefile | #F4AE88de | — |
| meta.structure.dictionary.json.comments | #BBBBF96e | — |
| meta.structure.dictionary.key.python | #F89EC3de | — |
| meta.structure.dictionary.value.json.comments | #BBBBFC6e | — |
| meta.template.expression | #F696BEde | — |
| meta.type.cast.expr | #F281AFde | — |
| meta.type.new.expr | #99D307de | — |
| parameter | #9AD310de | — |
| punctuation.character.set.begin.regexp | #99D307de | — |
| punctuation.character.set.end.regexp | #0CE019de | — |
| punctuation.definition.array.begin.json | #99D307de | — |
| punctuation.definition.character-class.regexp | #0CE019de | — |
| punctuation.definition.comment | #BCBCF86e | — |
| punctuation.definition.comment.json.comments | #BCBCF86e | — |
| punctuation.definition.comment.python | #BBBBF96e | — |
| punctuation.definition.dictionary.begin.json | #F488B4de | — |
| punctuation.definition.dictionary.end.json | #99D30Fde | — |
| punctuation.definition.group.assertion.regexp | #A5AFF9de | — |
| punctuation.definition.group.regexp | #CE88F4de | — |
| punctuation.definition.list.begin.json | #CE88F4de | — |
| punctuation.definition.list.begin.markdown | #919CF5de | — |
| punctuation.definition.list.begin.python | #FDB084de | — |
| punctuation.definition.list.end.json | #F281AFde | — |
| punctuation.definition.list.end.markdown | #FEB085de | — |
| punctuation.definition.list.end.python | #F4AE88de | — |
| punctuation.definition.parameters.begin.python | #B3BDFEde | — |
| punctuation.definition.parameters.end.bracket.round.java | #AAAAAAde | — |
| punctuation.definition.quote.begin.markdown | #F4AE88de | — |
| punctuation.definition.tag | #97D205de | — |
| punctuation.definition.template-expression.begin | #99D20Fde | — |
| punctuation.definition.template-expression.end | #F9A5C8de | — |
| punctuation.section.class.begin.bracket.curly.java | #0EE01Bde | — |
| punctuation.section.embedded | #0FE01Bde | — |
| punctuation.section.embedded.begin.php | #9EA8F8de | — |
| punctuation.section.embedded.end.php | #A5AFF9de | — |
| punctuation.terminator.java | #CB87F0de | — |
| source.cmake | #A3A3A3de | — |
| source.coffee.embedded | #C1C1C1de | — |
| source.cpp | #99D20Fde | — |
| source.css.less | #F281AFde | — |
| source.groovy.embedded | #919DF0de | — |
| source.java | #98D40Bde | — |
| source.java-properties | #F17DACde | — |
| source.json.comments | #BBBBFB6e | — |
| source.makefile | #0EE01Bde | — |
| source.powershell | #E2ADFEde | — |
| source.powershell.variable.other.member | #B5BDFBde | — |
| source.python | #F281AFde | — |
| storage | #A5A5A5de | — |
| storage.modifier | #D18FF5de | — |
| storage.modifier.import.java | #0EE01Bde | — |
| storage.modifier.package.java | #99D20Fde | — |
| storage.type | #A5AFF9de | — |
| storage.type.annotation.groovy | #9AD30Fde | — |
| storage.type.annotation.java | #D496F6de | — |
| storage.type.boolean.go | #9AD310de | — |
| storage.type.byte.go | #C1C1C1de | — |
| storage.type.cs | #97D205de | — |
| storage.type.error.go | #E1ADFEde | — |
| storage.type.generic.cs | #BCBCBCde | — |
| storage.type.generic.groovy | #AAAAAAde | — |
| storage.type.generic.java | #CE88F4de | — |
| storage.type.groovy | #ED81ADde | — |
| storage.type.java | #0FE01Bde | — |
| storage.type.modifier.cs | #919CF3de | — |
| storage.type.numeric.go | #F58FB9de | — |
| storage.type.object.array.groovy | #CB87F0de | — |
| storage.type.object.array.java | #B3BDFEde | — |
| storage.type.parameters.groovy | #919CF3de | — |
| storage.type.primitive.array.groovy | #0FE01Bde | — |
| storage.type.primitive.array.java | #919DF0de | — |
| storage.type.primitive.groovy | #EF7EADde | — |
| storage.type.primitive.java | #F488B4de | — |
| storage.type.rune.go | #DBA5F9de | — |
| storage.type.string.go | #C1C1C1de | — |
| storage.type.token.java | #F9A5C8de | — |
| storage.type.uintptr.go | #96A2F6de | — |
| storage.type.variable.cs | #BCBCBCde | — |
| string | #0CE019de | — |
| string.quoted.docstring.multi.python | #BBBBF96e | — |
| string.regexp | #F488B4de | — |
| string.tag | #99D307de | — |
| string.value | #FEA8CBde | — |
| strong | #B5BDFBde | — |
| support.class | #F89EC3de | — |
| support.constant.color | #0ADF17de | — |
| support.constant.dom | #919CF3de | — |
| support.constant.font-name | #F58FB9de | — |
| support.constant.handlebars | #96A2F6de | — |
| support.constant.json | #F4AE88de | — |
| support.constant.math | #ED81ADde | — |
| support.constant.media | #0FE01Bde | — |
| support.constant.media-type | #FEA8CBde | — |
| support.constant.property-value | #D18FF5de | — |
| support.function | #FEB084de | — |
| support.function.git-rebase | #CB87F1de | — |
| support.other.parenthesis.regexp | #C1C1C1de | — |
| support.type | #AEAEAEde | — |
| support.type.property-name | #FDB087de | — |
| support.type.vendored.property-name | #919DF1de | — |
| support.variable | #0DDF18de | — |
| token.debug-token | #9AD30Cde | — |
| token.error-token | #99D310de | — |
| token.info-token | #F1A379de | — |
| token.warn-token | #FEAF85de | — |
| variable | #CB87F1de | — |
| variable.css | #F58FB9de | — |
| variable.language | #A3A3A3de | — |
| variable.language.wildcard.java | #C1C1C1de | — |
| variable.other.constant | #99D310de | — |
| variable.other.definition.java | #B3B3B3de | — |
| variable.other.enummember | #FDB087de | — |
| variable.other.less | #919CF3de | — |
| variable.other.object.java | #97D20Dde | — |
| variable.other.object.property.java | #CC86F2de | — |
| variable.parameter.c | #ED81ADde | — |
| variable.parameter.function.language.python | #A5AFF9de | — |
| variable.parameter.java | #F17DACde | — |
| variable.scss | #CC87F2de | — |
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}!`;
}