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 | #BABAF86e | — |
| comment.block.html | #BABAFC6e | — |
| comment.block.java | #BABAFC6e | — |
| comment.block.javadoc.java | #BABAF86e | — |
| comment.block.powershell | #BABAF86e | — |
| comment.block.xml | #BABAF96e | — |
| comment.line.double-slash.c | #BBBBFB6e | — |
| comment.line.double-slash.cpp | #BABAFC6e | — |
| comment.line.double-slash.java | #BABAFC6e | — |
| comment.line.double-slash.js | #BABAF96e | — |
| comment.line.number-sign.makefile | #BABAF96e | — |
| comment.line.number-sign.python | #BABAFC6e | — |
| comment.line.number-sign.yaml | #BABAF86e | — |
| comment.line.percentage.erlang | #BABAF96e | — |
| comment.line.powershell | #BBBBFB6e | — |
| comment.source.cmake | #BABAF86e | — |
| comment.source.cmakecache | #BBBBFB6e | — |
| constant.character | #F3A487de | — |
| constant.character.character-class.regexp | #FEA2DAde | — |
| constant.character.escape | #BCBCBCde | — |
| constant.character.set.regexp | #F079C0de | — |
| constant.language | #D5ACFAde | — |
| constant.numeric | #C28AF3de | — |
| constant.numeric.dec.python | #0FD8BEde | — |
| constant.other.caps.python | #B3B3B3de | — |
| constant.other.character-class.regexp | #D9AFFEde | — |
| constant.other.character-class.set.regexp | #FEAC8Fde | — |
| constant.other.color.rgb-value | #C18BF0de | — |
| constant.other.placeholder | #EB8864de | — |
| constant.other.rgb-value | #F3A487de | — |
| constant.regexp | #A6A6A6de | — |
| constant.sha.git-rebase | #C18BEFde | — |
| emphasis | #829FF2de | — |
| entity.name.class | #F6AF96de | — |
| entity.name.function | #FEA5DAde | — |
| entity.name.function.preprocessor | #BCBCBCde | — |
| entity.name.function.python | #FEAD90de | — |
| entity.name.label | #EF7AC0de | — |
| entity.name.namespace | #AAAAAAde | — |
| entity.name.operator | #A8C0FEde | — |
| entity.name.operator.custom-literal | #BDCA11de | — |
| entity.name.scope-resolution | #BECA11de | — |
| entity.name.tag | #F3A487de | — |
| entity.name.tag.css | #D9AFFEde | — |
| entity.name.type | #BDCA11de | — |
| entity.name.variable | #BDCA0Fde | — |
| entity.other.attribute | #F696CFde | — |
| entity.other.attribute-name | #FEA4DAde | — |
| entity.other.attribute-name.class.css | #FEAD90de | — |
| entity.other.attribute-name.class.mixin.css | #9DB5F7de | — |
| entity.other.attribute-name.id | #C996F6de | — |
| entity.other.attribute-name.id.css | #A8C0FEde | — |
| entity.other.attribute-name.parent-selector.css | #BDC910de | — |
| entity.other.attribute-name.pseudo-class.css | #BDC910de | — |
| entity.other.attribute-name.pseudo-element.css | #BFCA0Dde | — |
| entity.other.attribute-name.scss | #EF7AC0de | — |
| entity.other.document.begin.yaml | #BABAF96e | — |
| entity.other.inherited-class | #85A1EEde | — |
| header | #C18BF0de | — |
| invalid | #0BD9BCde | — |
| keyword | #AFAFAFde | — |
| keyword.codetag.notation.python | #EB8864de | — |
| keyword.control | #10D8BEde | — |
| keyword.control.anchor.regexp | #A6A6A6de | — |
| keyword.control.import.python | #05D9BBde | — |
| keyword.operator | #D5ACFAde | — |
| keyword.operator.alignas | #FEA4DAde | — |
| keyword.operator.alignof | #0FD7BCde | — |
| keyword.operator.cast | #DAAFFEde | — |
| keyword.operator.delete | #DAAFFEde | — |
| keyword.operator.documentation.powershell | #BABAF96e | — |
| keyword.operator.expression | #BDC90Fde | — |
| keyword.operator.instanceof | #BDC90Fde | — |
| keyword.operator.logical.python | #829FF2de | — |
| keyword.operator.minus.exponent | #84A1F0de | — |
| keyword.operator.negation.regexp | #10D7BDde | — |
| keyword.operator.new | #829FF1de | — |
| keyword.operator.noexcept | #C1C1C1de | — |
| keyword.operator.or.regexp | #10D7BDde | — |
| keyword.operator.plus.exponent | #BDCA10de | — |
| keyword.operator.quantifier.regexp | #FEA4DAde | — |
| keyword.operator.sizeof | #0FD8BEde | — |
| keyword.operator.typeid | #FDAE91de | — |
| keyword.operator.wordlike | #C18BF2de | — |
| keyword.other.operator | #A5BBF8de | — |
| keyword.other.package.java | #9DB5F7de | — |
| keyword.other.unit | #EE9372de | — |
| keyword.other.using | #B8B8B8de | — |
| markup.bold | #C1C1C1de | — |
| markup.changed | #FEA4DAde | — |
| markup.deleted | #FDAE91de | — |
| markup.fenced_code.block.markdown | #BBC907de | — |
| markup.heading | #0BD9BCde | — |
| markup.inline.raw | #C18BF1de | — |
| markup.inserted | #F5A98Ede | — |
| markup.italic | #BECA11de | — |
| markup.raw.block.markdown | #0BD9BCde | — |
| markup.strikethrough | #EE7BC0de | — |
| markup.underline | #BBCA0Bde | — |
| meta.block.c | #BBCA0Bde | — |
| meta.block.c | #0ED7BCde | — |
| meta.class.java | #F79DD3de | — |
| meta.definition.variable.name | #A6A6A6de | — |
| meta.diff.header | #BBC907de | — |
| meta.embedded | #A6A6A6de | — |
| meta.embedded.assembly | #C1C1C1de | — |
| meta.function-call.arguments.python | #EE9372de | — |
| meta.function-call.python | #AAAAAAde | — |
| meta.member.access.python | #F58ECCde | — |
| meta.method.java | #C1C1C1de | — |
| meta.object-literal.key | #B3B3B3de | — |
| meta.paragraph.markdown | #C1C1C1de | — |
| meta.preprocessor | #0ED7BCde | — |
| meta.preprocessor.numeric | #BDC911de | — |
| meta.preprocessor.string | #96AFF6de | — |
| meta.scope.prerequisites.makefile | #C1C1C1de | — |
| meta.structure.dictionary.json.comments | #BBBBFB6e | — |
| meta.structure.dictionary.key.python | #BDC911de | — |
| meta.structure.dictionary.value.json.comments | #BABAFC6e | — |
| meta.template.expression | #FDAD90de | — |
| meta.type.cast.expr | #BBC907de | — |
| meta.type.new.expr | #A8BFFEde | — |
| parameter | #BFCA0Dde | — |
| punctuation.character.set.begin.regexp | #F3A487de | — |
| punctuation.character.set.end.regexp | #FEAC8Fde | — |
| punctuation.definition.array.begin.json | #BBC907de | — |
| punctuation.definition.character-class.regexp | #0FD7BCde | — |
| punctuation.definition.comment | #BBBBFB6e | — |
| punctuation.definition.comment.json.comments | #BABAF86e | — |
| punctuation.definition.comment.python | #BBBBFB6e | — |
| punctuation.definition.dictionary.begin.json | #BDC911de | — |
| punctuation.definition.dictionary.end.json | #BECA11de | — |
| punctuation.definition.group.assertion.regexp | #FEA4DBde | — |
| punctuation.definition.group.regexp | #F09879de | — |
| punctuation.definition.list.begin.json | #829FF1de | — |
| punctuation.definition.list.begin.markdown | #10D7BDde | — |
| punctuation.definition.list.begin.python | #FEA4DAde | — |
| punctuation.definition.list.end.json | #C1C1C1de | — |
| punctuation.definition.list.end.markdown | #F5A98Ede | — |
| punctuation.definition.list.end.python | #D5ACFAde | — |
| punctuation.definition.parameters.begin.python | #BBC907de | — |
| punctuation.definition.parameters.end.bracket.round.java | #BBCB05de | — |
| punctuation.definition.quote.begin.markdown | #84A0EFde | — |
| punctuation.definition.tag | #BBC907de | — |
| punctuation.definition.template-expression.begin | #C1C1C1de | — |
| punctuation.definition.template-expression.end | #829FF1de | — |
| punctuation.section.class.begin.bracket.curly.java | #C1C1C1de | — |
| punctuation.section.embedded | #829FF1de | — |
| punctuation.section.embedded.begin.php | #D5ACFAde | — |
| punctuation.section.embedded.end.php | #A8BFFEde | — |
| punctuation.terminator.java | #05D9BBde | — |
| source.cmake | #A6A6A6de | — |
| source.coffee.embedded | #D8AAFEde | — |
| source.cpp | #D1A5F8de | — |
| source.css.less | #BDC910de | — |
| source.groovy.embedded | #84A0F0de | — |
| source.java | #BCBCBCde | — |
| source.java-properties | #A8C0FEde | — |
| source.json.comments | #BABAF96e | — |
| source.makefile | #FEA5DAde | — |
| source.powershell | #C1C1C1de | — |
| source.powershell.variable.other.member | #BDCA0Fde | — |
| source.python | #FDAE91de | — |
| storage | #FDAE91de | — |
| storage.modifier | #FEA4DBde | — |
| storage.modifier.import.java | #9DB5F7de | — |
| storage.modifier.package.java | #A6A6A6de | — |
| storage.type | #BDC910de | — |
| storage.type.annotation.groovy | #0AD8BEde | — |
| storage.type.annotation.java | #D5ACFAde | — |
| storage.type.boolean.go | #C1C1C1de | — |
| storage.type.byte.go | #BDCA10de | — |
| storage.type.cs | #87A4F3de | — |
| storage.type.error.go | #C18BF0de | — |
| storage.type.generic.cs | #C58EF5de | — |
| storage.type.generic.groovy | #C18BEFde | — |
| storage.type.generic.java | #BDCA10de | — |
| storage.type.groovy | #BDCA0Fde | — |
| storage.type.java | #84A1F0de | — |
| storage.type.modifier.cs | #84A0EFde | — |
| storage.type.numeric.go | #FDAE91de | — |
| storage.type.object.array.groovy | #F280C4de | — |
| storage.type.object.array.java | #F280C4de | — |
| storage.type.parameters.groovy | #0ED7BCde | — |
| storage.type.primitive.array.groovy | #DAAFFEde | — |
| storage.type.primitive.array.java | #F09879de | — |
| storage.type.primitive.groovy | #BDC911de | — |
| storage.type.primitive.java | #BDC910de | — |
| storage.type.rune.go | #BDC90Fde | — |
| storage.type.string.go | #F6AF96de | — |
| storage.type.token.java | #A8C0FEde | — |
| storage.type.uintptr.go | #FEAC8Fde | — |
| storage.type.variable.cs | #F280C4de | — |
| string | #A8BFFEde | — |
| string.quoted.docstring.multi.python | #BABAFC6e | — |
| string.regexp | #F387C8de | — |
| string.tag | #829FF2de | — |
| string.value | #A8BFFEde | — |
| strong | #FDAD8Fde | — |
| support.class | #C18BF1de | — |
| support.constant.color | #A5BBF8de | — |
| support.constant.dom | #F079C0de | — |
| support.constant.font-name | #BBCB05de | — |
| support.constant.handlebars | #EB8864de | — |
| support.constant.json | #10D8BDde | — |
| support.constant.math | #C1C1C1de | — |
| support.constant.media | #EE7BC0de | — |
| support.constant.media-type | #829FF2de | — |
| support.constant.property-value | #FDAE91de | — |
| support.function | #AFAFAFde | — |
| support.function.git-rebase | #C1C1C1de | — |
| support.other.parenthesis.regexp | #EB8864de | — |
| support.type | #C18BF0de | — |
| support.type.property-name | #05D9BBde | — |
| support.type.vendored.property-name | #EF7AC0de | — |
| support.variable | #9DB5F7de | — |
| token.debug-token | #DAAFFEde | — |
| token.error-token | #0BD9BCde | — |
| token.info-token | #C1C1C1de | — |
| token.warn-token | #0DD7BDde | — |
| variable | #F280C4de | — |
| variable.css | #BDCA10de | — |
| variable.language | #0FD7BCde | — |
| variable.language.wildcard.java | #EE7BC0de | — |
| variable.other.constant | #BBCA0Bde | — |
| variable.other.definition.java | #F696CFde | — |
| variable.other.enummember | #FEA4DAde | — |
| variable.other.less | #BCBCBCde | — |
| variable.other.object.java | #0ED8BDde | — |
| variable.other.object.property.java | #CD9DF7de | — |
| variable.parameter.c | #C1C1C1de | — |
| variable.parameter.function.language.python | #F5A98Ede | — |
| variable.parameter.java | #F3A487de | — |
| variable.scss | #0ED8BDde | — |
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}!`;
}