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 | #88D7886e | — |
| comment.block.html | #88D9886e | — |
| comment.block.java | #88D9886e | — |
| comment.block.javadoc.java | #82DA826e | — |
| comment.block.powershell | #84DA846e | — |
| comment.block.xml | #82DA826e | — |
| comment.line.double-slash.c | #88D7886e | — |
| comment.line.double-slash.cpp | #84DA846e | — |
| comment.line.double-slash.java | #84DA846e | — |
| comment.line.double-slash.js | #84DA846e | — |
| comment.line.number-sign.makefile | #88D9886e | — |
| comment.line.number-sign.python | #88D9886e | — |
| comment.line.number-sign.yaml | #88D9886e | — |
| comment.line.percentage.erlang | #88D7886e | — |
| comment.line.powershell | #88D9886e | — |
| comment.source.cmake | #88D9886e | — |
| comment.source.cmakecache | #88D7886e | — |
| constant.character | #98A4F6de | — |
| constant.character.character-class.regexp | #DC9FF7de | — |
| constant.character.escape | #0FDBDBde | — |
| constant.character.set.regexp | #F8A7CAde | — |
| constant.language | #11DCDCde | — |
| constant.numeric | #A7B1F8de | — |
| constant.numeric.dec.python | #10E41Ede | — |
| constant.other.caps.python | #ED86B3de | — |
| constant.other.character-class.regexp | #FEACD0de | — |
| constant.other.character-class.set.regexp | #99D810de | — |
| constant.other.color.rgb-value | #10E51Ede | — |
| constant.other.placeholder | #F1AC83de | — |
| constant.other.rgb-value | #FDB68Bde | — |
| constant.regexp | #F698C1de | — |
| constant.sha.git-rebase | #9AD811de | — |
| emphasis | #98D80Fde | — |
| entity.name.class | #97A2EFde | — |
| entity.name.function | #99D810de | — |
| entity.name.function.preprocessor | #96A2F2de | — |
| entity.name.function.python | #10E51Ede | — |
| entity.name.label | #0FDBDBde | — |
| entity.name.namespace | #0FE41Cde | — |
| entity.name.operator | #0EDBDBde | — |
| entity.name.operator.custom-literal | #FDB78Dde | — |
| entity.name.scope-resolution | #0FDCDCde | — |
| entity.name.tag | #9AD80Fde | — |
| entity.name.tag.css | #10E51Ede | — |
| entity.name.type | #EC87B3de | — |
| entity.name.variable | #0DE51Ade | — |
| entity.other.attribute | #E79462de | — |
| entity.other.attribute-name | #FEAED1de | — |
| entity.other.attribute-name.class.css | #EFA77Cde | — |
| entity.other.attribute-name.class.mixin.css | #11E51Ede | — |
| entity.other.attribute-name.id | #98A4F6de | — |
| entity.other.attribute-name.id.css | #0FDBDBde | — |
| entity.other.attribute-name.parent-selector.css | #0AE41Ade | — |
| entity.other.attribute-name.pseudo-class.css | #FEB68Cde | — |
| entity.other.attribute-name.pseudo-element.css | #9BD812de | — |
| entity.other.attribute-name.scss | #FDB78Bde | — |
| entity.other.document.begin.yaml | #88D7886e | — |
| entity.other.inherited-class | #9BD812de | — |
| header | #0FDBDBde | — |
| invalid | #0DDCDCde | — |
| keyword | #0CDBDBde | — |
| keyword.codetag.notation.python | #9BD912de | — |
| keyword.control | #0CDBDBde | — |
| keyword.control.anchor.regexp | #D28BF1de | — |
| keyword.control.import.python | #D28AF3de | — |
| keyword.operator | #F8A7CAde | — |
| keyword.operator.alignas | #D28BF1de | — |
| keyword.operator.alignof | #F79FC6de | — |
| keyword.operator.cast | #11DCDCde | — |
| keyword.operator.delete | #0FDBDBde | — |
| keyword.operator.documentation.powershell | #88D7886e | — |
| keyword.operator.expression | #12DCDCde | — |
| keyword.operator.instanceof | #11E41Fde | — |
| keyword.operator.logical.python | #E99969de | — |
| keyword.operator.minus.exponent | #F8A7CAde | — |
| keyword.operator.negation.regexp | #F3B18Ade | — |
| keyword.operator.new | #E2AEF9de | — |
| keyword.operator.noexcept | #10E51Dde | — |
| keyword.operator.or.regexp | #9AD811de | — |
| keyword.operator.plus.exponent | #EF86B4de | — |
| keyword.operator.quantifier.regexp | #D28AF3de | — |
| keyword.operator.sizeof | #FEB68Cde | — |
| keyword.operator.typeid | #E5ACFEde | — |
| keyword.operator.wordlike | #9AD90Cde | — |
| keyword.other.operator | #F085B4de | — |
| keyword.other.package.java | #0AE41Ade | — |
| keyword.other.unit | #0DE51Ade | — |
| keyword.other.using | #12DCDCde | — |
| markup.bold | #E79462de | — |
| markup.changed | #95A1F1de | — |
| markup.deleted | #0FE41Cde | — |
| markup.fenced_code.block.markdown | #ED86B3de | — |
| markup.heading | #F8A7CAde | — |
| markup.inline.raw | #B9C2FEde | — |
| markup.inserted | #F085B4de | — |
| markup.italic | #10E51Dde | — |
| markup.raw.block.markdown | #12DCDCde | — |
| markup.strikethrough | #9BD90Fde | — |
| markup.underline | #0CE41Ade | — |
| meta.block.c | #9BD812de | — |
| meta.block.c | #D898F6de | — |
| meta.class.java | #FEB68Bde | — |
| meta.definition.variable.name | #95A1F4de | — |
| meta.diff.header | #10DBDBde | — |
| meta.embedded | #0FDBDBde | — |
| meta.embedded.assembly | #0DDCDCde | — |
| meta.function-call.arguments.python | #10DBDBde | — |
| meta.function-call.python | #B6BEFAde | — |
| meta.member.access.python | #FEAED1de | — |
| meta.method.java | #EC87B3de | — |
| meta.object-literal.key | #9AD910de | — |
| meta.paragraph.markdown | #0FDBDBde | — |
| meta.preprocessor | #9BD912de | — |
| meta.preprocessor.numeric | #9AD80Ede | — |
| meta.preprocessor.string | #DFA7F8de | — |
| meta.scope.prerequisites.makefile | #FEAED1de | — |
| meta.structure.dictionary.json.comments | #84DA846e | — |
| meta.structure.dictionary.key.python | #98D80Fde | — |
| meta.structure.dictionary.value.json.comments | #84DA846e | — |
| meta.template.expression | #11E51Ede | — |
| meta.type.cast.expr | #B6BEFAde | — |
| meta.type.new.expr | #9AD80Fde | — |
| parameter | #9BD812de | — |
| punctuation.character.set.begin.regexp | #11E41Dde | — |
| punctuation.character.set.end.regexp | #99D80Dde | — |
| punctuation.definition.array.begin.json | #9FAAF7de | — |
| punctuation.definition.character-class.regexp | #EFA77Cde | — |
| punctuation.definition.comment | #88D7886e | — |
| punctuation.definition.comment.json.comments | #82DA826e | — |
| punctuation.definition.comment.python | #88D9886e | — |
| punctuation.definition.dictionary.begin.json | #D591F4de | — |
| punctuation.definition.dictionary.end.json | #F38AB8de | — |
| punctuation.definition.group.assertion.regexp | #E79462de | — |
| punctuation.definition.group.regexp | #0EDBDBde | — |
| punctuation.definition.list.begin.json | #95A1F3de | — |
| punctuation.definition.list.begin.markdown | #10E51Ede | — |
| punctuation.definition.list.begin.python | #FDB78Bde | — |
| punctuation.definition.list.end.json | #11DCDCde | — |
| punctuation.definition.list.end.markdown | #D18DEFde | — |
| punctuation.definition.list.end.python | #0EDBDBde | — |
| punctuation.definition.parameters.begin.python | #DC9FF7de | — |
| punctuation.definition.parameters.end.bracket.round.java | #EE86B3de | — |
| punctuation.definition.quote.begin.markdown | #9AD80Ede | — |
| punctuation.definition.tag | #95A1F4de | — |
| punctuation.definition.template-expression.begin | #0EE51Cde | — |
| punctuation.definition.template-expression.end | #B9C2FEde | — |
| punctuation.section.class.begin.bracket.curly.java | #FEB68Bde | — |
| punctuation.section.embedded | #B6BEFAde | — |
| punctuation.section.embedded.begin.php | #D591F4de | — |
| punctuation.section.embedded.end.php | #E2AEF9de | — |
| punctuation.terminator.java | #0DDCDCde | — |
| source.cmake | #FEAED1de | — |
| source.coffee.embedded | #0FE41Cde | — |
| source.cpp | #0FE41Cde | — |
| source.css.less | #FDB78Bde | — |
| source.groovy.embedded | #0DE51Ade | — |
| source.java | #F3B18Ade | — |
| source.java-properties | #0EDBDBde | — |
| source.json.comments | #82DA826e | — |
| source.makefile | #9AD80Fde | — |
| source.powershell | #E7B2FEde | — |
| source.powershell.variable.other.member | #E5ACFEde | — |
| source.python | #F491BCde | — |
| storage | #10E41Ede | — |
| storage.modifier | #EFA77Cde | — |
| storage.modifier.import.java | #E7B2FEde | — |
| storage.modifier.package.java | #0EE51Dde | — |
| storage.type | #D08EEEde | — |
| storage.type.annotation.groovy | #D898F6de | — |
| storage.type.annotation.java | #E79462de | — |
| storage.type.boolean.go | #D18BF0de | — |
| storage.type.byte.go | #F38AB8de | — |
| storage.type.cs | #95A1F3de | — |
| storage.type.error.go | #0DDCDCde | — |
| storage.type.generic.cs | #EF86B4de | — |
| storage.type.generic.groovy | #11DCDCde | — |
| storage.type.generic.java | #0EE51Cde | — |
| storage.type.groovy | #D18DEFde | — |
| storage.type.java | #0CE41Ade | — |
| storage.type.modifier.cs | #9AD80Fde | — |
| storage.type.numeric.go | #0DE51Ade | — |
| storage.type.object.array.groovy | #FEB68Cde | — |
| storage.type.object.array.java | #11DCDCde | — |
| storage.type.parameters.groovy | #10E51Dde | — |
| storage.type.primitive.array.groovy | #E79462de | — |
| storage.type.primitive.array.java | #9BD912de | — |
| storage.type.primitive.groovy | #0FDBDBde | — |
| storage.type.primitive.java | #98A4F6de | — |
| storage.type.rune.go | #FEB68Cde | — |
| storage.type.string.go | #F79FC6de | — |
| storage.type.token.java | #9AD911de | — |
| storage.type.uintptr.go | #10DCDCde | — |
| storage.type.variable.cs | #F085B4de | — |
| string | #F3B18Ade | — |
| string.quoted.docstring.multi.python | #84DA846e | — |
| string.regexp | #DC9FF7de | — |
| string.tag | #10DBDBde | — |
| string.value | #D18DF0de | — |
| strong | #97A2F0de | — |
| support.class | #12DCDCde | — |
| support.constant.color | #9AD911de | — |
| support.constant.dom | #D898F6de | — |
| support.constant.font-name | #D18DEFde | — |
| support.constant.handlebars | #0DDCDCde | — |
| support.constant.json | #0EE51Dde | — |
| support.constant.math | #0EE51Cde | — |
| support.constant.media | #0FDCDCde | — |
| support.constant.media-type | #0CE41Ade | — |
| support.constant.property-value | #12DCDCde | — |
| support.function | #D18DEFde | — |
| support.function.git-rebase | #FEB68Cde | — |
| support.other.parenthesis.regexp | #9AD911de | — |
| support.type | #11DCDCde | — |
| support.type.property-name | #0DDCDCde | — |
| support.type.vendored.property-name | #EF86B4de | — |
| support.variable | #D08EEEde | — |
| token.debug-token | #9AD90Cde | — |
| token.error-token | #F38AB8de | — |
| token.info-token | #10DCDCde | — |
| token.warn-token | #0EE51Cde | — |
| variable | #10E51Dde | — |
| variable.css | #B9C2FEde | — |
| variable.language | #D18DEFde | — |
| variable.language.wildcard.java | #F491BCde | — |
| variable.other.constant | #D08DEDde | — |
| variable.other.definition.java | #F38AB8de | — |
| variable.other.enummember | #FEB68Bde | — |
| variable.other.less | #D18DEFde | — |
| variable.other.object.java | #ED86B3de | — |
| variable.other.object.property.java | #97A2F0de | — |
| variable.parameter.c | #FDB68Bde | — |
| variable.parameter.function.language.python | #B6BEFAde | — |
| variable.parameter.java | #E7B2FEde | — |
| variable.scss | #12DCDCde | — |
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}!`;
}