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 | #9A9AF66e | — |
| comment.block.html | #9999F86e | — |
| comment.block.java | #9999F86e | — |
| comment.block.javadoc.java | #9A9AF66e | — |
| comment.block.powershell | #9999F86e | — |
| comment.block.xml | #9B9BF86e | — |
| comment.line.double-slash.c | #9999F96e | — |
| comment.line.double-slash.cpp | #9999F96e | — |
| comment.line.double-slash.java | #9999F86e | — |
| comment.line.double-slash.js | #9A9AF66e | — |
| comment.line.number-sign.makefile | #9A9AF66e | — |
| comment.line.number-sign.python | #9999F96e | — |
| comment.line.number-sign.yaml | #9A9AF66e | — |
| comment.line.percentage.erlang | #9A9AF66e | — |
| comment.line.powershell | #9999F86e | — |
| comment.source.cmake | #9A9AF66e | — |
| comment.source.cmakecache | #9B9BF86e | — |
| constant.character | #0AD680de | — |
| constant.character.character-class.regexp | #4BBB38de | — |
| constant.character.escape | #BDA7F6de | — |
| constant.character.set.regexp | #EE8686de | — |
| constant.language | #AE94F2de | — |
| constant.numeric | #EB7CCBde | — |
| constant.numeric.dec.python | #AF93F2de | — |
| constant.other.caps.python | #A8A80Cde | — |
| constant.other.character-class.regexp | #AE93F2de | — |
| constant.other.character-class.set.regexp | #EB7DCCde | — |
| constant.other.color.rgb-value | #A8A80Cde | — |
| constant.other.placeholder | #25BE0Cde | — |
| constant.other.rgb-value | #F29191de | — |
| constant.regexp | #EB7CCBde | — |
| constant.sha.git-rebase | #0BBA6Fde | — |
| emphasis | #A8A809de | — |
| entity.name.class | #A8A809de | — |
| entity.name.function | #EE8484de | — |
| entity.name.function.preprocessor | #EB7DCBde | — |
| entity.name.function.python | #ABAB0Bde | — |
| entity.name.label | #ABAB0Ade | — |
| entity.name.namespace | #66A7FCde | — |
| entity.name.operator | #AAAA0Bde | — |
| entity.name.operator.custom-literal | #A8A837de | — |
| entity.name.scope-resolution | #3ECB8Ede | — |
| entity.name.tag | #AE93F2de | — |
| entity.name.tag.css | #7DADEBde | — |
| entity.name.type | #C7C739de | — |
| entity.name.variable | #38B780de | — |
| entity.other.attribute | #98BFF3de | — |
| entity.other.attribute-name | #EB7DCBde | — |
| entity.other.attribute-name.class.css | #0BCA78de | — |
| entity.other.attribute-name.class.mixin.css | #72A5E7de | — |
| entity.other.attribute-name.id | #EE8484de | — |
| entity.other.attribute-name.id.css | #72A5E7de | — |
| entity.other.attribute-name.parent-selector.css | #74A5E8de | — |
| entity.other.attribute-name.pseudo-class.css | #74A5E7de | — |
| entity.other.attribute-name.pseudo-element.css | #AAAA0Cde | — |
| entity.other.attribute-name.scss | #23BE0Ade | — |
| entity.other.document.begin.yaml | #9B9BF86e | — |
| entity.other.inherited-class | #5CD249de | — |
| header | #B7B738de | — |
| invalid | #A8A809de | — |
| keyword | #8BB6F0de | — |
| keyword.codetag.notation.python | #3ECB8Ede | — |
| keyword.control | #25BE0Cde | — |
| keyword.control.anchor.regexp | #C7C739de | — |
| keyword.control.import.python | #F59FDDde | — |
| keyword.operator | #EE8585de | — |
| keyword.operator.alignas | #AF93F2de | — |
| keyword.operator.alignof | #0AD680de | — |
| keyword.operator.cast | #EE8484de | — |
| keyword.operator.delete | #ABAB0Ade | — |
| keyword.operator.documentation.powershell | #9999F86e | — |
| keyword.operator.expression | #74A5E7de | — |
| keyword.operator.instanceof | #0ADC82de | — |
| keyword.operator.logical.python | #AAAA0Cde | — |
| keyword.operator.minus.exponent | #F08B8Bde | — |
| keyword.operator.negation.regexp | #0BCA78de | — |
| keyword.operator.new | #AAAA0Cde | — |
| keyword.operator.noexcept | #0ACB78de | — |
| keyword.operator.or.regexp | #73A5E7de | — |
| keyword.operator.plus.exponent | #4BBF38de | — |
| keyword.operator.quantifier.regexp | #EB7DCBde | — |
| keyword.operator.sizeof | #61D54Ede | — |
| keyword.operator.typeid | #AF93F2de | — |
| keyword.operator.wordlike | #EB7DCCde | — |
| keyword.other.operator | #AE93F2de | — |
| keyword.other.package.java | #EE8585de | — |
| keyword.other.unit | #38B781de | — |
| keyword.other.using | #A9A937de | — |
| markup.bold | #38B780de | — |
| markup.changed | #ABAB0Bde | — |
| markup.deleted | #EE8585de | — |
| markup.fenced_code.block.markdown | #AAAA0Dde | — |
| markup.heading | #0ACB78de | — |
| markup.inline.raw | #38B781de | — |
| markup.inserted | #C7C739de | — |
| markup.italic | #38B781de | — |
| markup.raw.block.markdown | #EE8585de | — |
| markup.strikethrough | #61D54Ede | — |
| markup.underline | #0ABB6Fde | — |
| meta.block.c | #AF94F2de | — |
| meta.block.c | #75A6E8de | — |
| meta.class.java | #EE84CFde | — |
| meta.definition.variable.name | #0AD981de | — |
| meta.diff.header | #AE94F2de | — |
| meta.embedded | #09BC6Fde | — |
| meta.embedded.assembly | #AE93F2de | — |
| meta.function-call.arguments.python | #EB7DCCde | — |
| meta.function-call.python | #39C78Ade | — |
| meta.member.access.python | #F398D9de | — |
| meta.method.java | #EE84CFde | — |
| meta.object-literal.key | #EB7DCCde | — |
| meta.paragraph.markdown | #75A6E8de | — |
| meta.preprocessor | #0BCA78de | — |
| meta.preprocessor.numeric | #73A5E8de | — |
| meta.preprocessor.string | #0ABA6Dde | — |
| meta.scope.prerequisites.makefile | #EE8686de | — |
| meta.structure.dictionary.json.comments | #9B9BF86e | — |
| meta.structure.dictionary.key.python | #F08BD3de | — |
| meta.structure.dictionary.value.json.comments | #9999F96e | — |
| meta.template.expression | #73A5E7de | — |
| meta.type.cast.expr | #AAAA0Cde | — |
| meta.type.new.expr | #AE93F2de | — |
| parameter | #24BC09de | — |
| punctuation.character.set.begin.regexp | #EE8686de | — |
| punctuation.character.set.end.regexp | #73A5E8de | — |
| punctuation.definition.array.begin.json | #7DADEBde | — |
| punctuation.definition.character-class.regexp | #AAAA0Cde | — |
| punctuation.definition.comment | #9A9AF66e | — |
| punctuation.definition.comment.json.comments | #9B9BF86e | — |
| punctuation.definition.comment.python | #9B9BF86e | — |
| punctuation.definition.dictionary.begin.json | #26BE0Cde | — |
| punctuation.definition.dictionary.end.json | #C7C739de | — |
| punctuation.definition.group.assertion.regexp | #AAAA0Cde | — |
| punctuation.definition.group.regexp | #AE94F2de | — |
| punctuation.definition.list.begin.json | #24BF0Ade | — |
| punctuation.definition.list.begin.markdown | #0ABB6Fde | — |
| punctuation.definition.list.begin.python | #EE8484de | — |
| punctuation.definition.list.end.json | #24BF0Ade | — |
| punctuation.definition.list.end.markdown | #EE8585de | — |
| punctuation.definition.list.end.python | #AAAA0Cde | — |
| punctuation.definition.parameters.begin.python | #EE8484de | — |
| punctuation.definition.parameters.end.bracket.round.java | #AE93F2de | — |
| punctuation.definition.quote.begin.markdown | #43CE93de | — |
| punctuation.definition.tag | #4AB938de | — |
| punctuation.definition.template-expression.begin | #EB7CCBde | — |
| punctuation.definition.template-expression.end | #EB7DCBde | — |
| punctuation.section.class.begin.bracket.curly.java | #BDA7F6de | — |
| punctuation.section.embedded | #A8A809de | — |
| punctuation.section.embedded.begin.php | #AE93F2de | — |
| punctuation.section.embedded.end.php | #4DC739de | — |
| punctuation.terminator.java | #AF94F2de | — |
| source.cmake | #74A5E8de | — |
| source.coffee.embedded | #A9A937de | — |
| source.cpp | #EB7DCCde | — |
| source.css.less | #AE93F2de | — |
| source.groovy.embedded | #4DC739de | — |
| source.java | #EE8686de | — |
| source.java-properties | #77A8E9de | — |
| source.json.comments | #9999F96e | — |
| source.makefile | #F6A7A7de | — |
| source.powershell | #AF94F2de | — |
| source.powershell.variable.other.member | #EB7CCBde | — |
| source.python | #73A5E8de | — |
| storage | #9FC4F5de | — |
| storage.modifier | #73A6E8de | — |
| storage.modifier.import.java | #F29191de | — |
| storage.modifier.package.java | #EE8686de | — |
| storage.type | #F59FDDde | — |
| storage.type.annotation.groovy | #EB7CCBde | — |
| storage.type.annotation.java | #EE8585de | — |
| storage.type.boolean.go | #EB7CCBde | — |
| storage.type.byte.go | #EE84CFde | — |
| storage.type.cs | #EE8484de | — |
| storage.type.error.go | #AEAE38de | — |
| storage.type.generic.cs | #EE8585de | — |
| storage.type.generic.groovy | #AAAA0Dde | — |
| storage.type.generic.java | #91BBF2de | — |
| storage.type.groovy | #38B780de | — |
| storage.type.java | #EE84CFde | — |
| storage.type.modifier.cs | #23BE0Ade | — |
| storage.type.numeric.go | #73A5E7de | — |
| storage.type.object.array.groovy | #AE94F2de | — |
| storage.type.object.array.java | #5CD249de | — |
| storage.type.parameters.groovy | #38B780de | — |
| storage.type.primitive.array.groovy | #EE8686de | — |
| storage.type.primitive.array.java | #0BCA78de | — |
| storage.type.primitive.groovy | #74A6E8de | — |
| storage.type.primitive.java | #EE8585de | — |
| storage.type.rune.go | #25BE0Cde | — |
| storage.type.string.go | #25BC0Cde | — |
| storage.type.token.java | #EB7DCBde | — |
| storage.type.uintptr.go | #ABAB0Bde | — |
| storage.type.variable.cs | #ABAB0Ade | — |
| string | #91BBF2de | — |
| string.quoted.docstring.multi.python | #9B9BF86e | — |
| string.regexp | #25BC0Cde | — |
| string.tag | #57CE43de | — |
| string.value | #84B1EEde | — |
| strong | #75A6E8de | — |
| support.class | #25BE0Cde | — |
| support.constant.color | #AEAE38de | — |
| support.constant.dom | #EB7DCCde | — |
| support.constant.font-name | #25BE0Cde | — |
| support.constant.handlebars | #38BF85de | — |
| support.constant.json | #AE93F2de | — |
| support.constant.math | #73A5E8de | — |
| support.constant.media | #39C78Ade | — |
| support.constant.media-type | #AAAA0Cde | — |
| support.constant.property-value | #AE94F2de | — |
| support.function | #74A5E7de | — |
| support.function.git-rebase | #24BF0Ade | — |
| support.other.parenthesis.regexp | #A8A80Cde | — |
| support.type | #F08BD3de | — |
| support.type.property-name | #24BC0Cde | — |
| support.type.vendored.property-name | #74A5E8de | — |
| support.variable | #75A6E8de | — |
| token.debug-token | #EB7CCBde | — |
| token.error-token | #75A6E8de | — |
| token.info-token | #0ADB81de | — |
| token.warn-token | #EB7CCBde | — |
| variable | #38B781de | — |
| variable.css | #AE93F2de | — |
| variable.language | #F398D9de | — |
| variable.language.wildcard.java | #A8A837de | — |
| variable.other.constant | #AE94F2de | — |
| variable.other.definition.java | #AAAA0Cde | — |
| variable.other.enummember | #AE93F2de | — |
| variable.other.less | #0BBA6Fde | — |
| variable.other.object.java | #43CE93de | — |
| variable.other.object.property.java | #AAAA0Cde | — |
| variable.parameter.c | #39C78Ade | — |
| variable.parameter.function.language.python | #75A6E8de | — |
| variable.parameter.java | #EE8484de | — |
| variable.scss | #EE8585de | — |
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}!`;
}