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 | #E1BE8A6e | — |
| comment.block.html | #EABC8E6e | — |
| comment.block.java | #EABC8E6e | — |
| comment.block.javadoc.java | #E5BE8A6e | — |
| comment.block.powershell | #ECBC8D6e | — |
| comment.block.xml | #E5BE8A6e | — |
| comment.line.double-slash.c | #ECBC8D6e | — |
| comment.line.double-slash.cpp | #E5BE8A6e | — |
| comment.line.double-slash.java | #EABC8E6e | — |
| comment.line.double-slash.js | #E1BE8A6e | — |
| comment.line.number-sign.makefile | #E5BE8A6e | — |
| comment.line.number-sign.python | #ECBC8D6e | — |
| comment.line.number-sign.yaml | #E1BE8A6e | — |
| comment.line.percentage.erlang | #EABC8E6e | — |
| comment.line.powershell | #E5BE8A6e | — |
| comment.source.cmake | #EABC8E6e | — |
| comment.source.cmakecache | #ECBC8D6e | — |
| constant.character | #98D611de | — |
| constant.character.character-class.regexp | #98D70Bde | — |
| constant.character.escape | #A6B1F8de | — |
| constant.character.set.regexp | #F1AC82de | — |
| constant.language | #0EE319de | — |
| constant.numeric | #B5BEFAde | — |
| constant.numeric.dec.python | #98D711de | — |
| constant.other.caps.python | #10E31Dde | — |
| constant.other.character-class.regexp | #94A0F2de | — |
| constant.other.character-class.set.regexp | #B6C0FEde | — |
| constant.other.color.rgb-value | #94A0F4de | — |
| constant.other.placeholder | #F389B7de | — |
| constant.other.rgb-value | #98D70Bde | — |
| constant.regexp | #CF8AEFde | — |
| constant.sha.git-rebase | #94A0F3de | — |
| emphasis | #BBBBBBde | — |
| entity.name.class | #0EE41Bde | — |
| entity.name.function | #F389B7de | — |
| entity.name.function.preprocessor | #DB9FF7de | — |
| entity.name.function.python | #94A0F3de | — |
| entity.name.label | #9AD711de | — |
| entity.name.namespace | #E6B0FEde | — |
| entity.name.operator | #0EE41Bde | — |
| entity.name.operator.custom-literal | #10E31Ede | — |
| entity.name.scope-resolution | #C5C5C5de | — |
| entity.name.tag | #94A0F4de | — |
| entity.name.tag.css | #9FAAF7de | — |
| entity.name.type | #EC9D6Ede | — |
| entity.name.variable | #FEABCFde | — |
| entity.other.attribute | #D289F3de | — |
| entity.other.attribute-name | #B5BEFAde | — |
| entity.other.attribute-name.class.css | #F182B3de | — |
| entity.other.attribute-name.class.mixin.css | #98A3F6de | — |
| entity.other.attribute-name.id | #95A0EFde | — |
| entity.other.attribute-name.id.css | #99D711de | — |
| entity.other.attribute-name.parent-selector.css | #94A0F3de | — |
| entity.other.attribute-name.pseudo-class.css | #94A0F3de | — |
| entity.other.attribute-name.pseudo-element.css | #F698C1de | — |
| entity.other.attribute-name.scss | #FEABCFde | — |
| entity.other.document.begin.yaml | #ECBC8D6e | — |
| entity.other.inherited-class | #95A0EFde | — |
| header | #B4BEFEde | — |
| invalid | #0EE41Bde | — |
| keyword | #F0A77Bde | — |
| keyword.codetag.notation.python | #CF8BEEde | — |
| keyword.control | #D898F6de | — |
| keyword.control.anchor.regexp | #D590F4de | — |
| keyword.control.import.python | #EC9D6Ede | — |
| keyword.operator | #F182B3de | — |
| keyword.operator.alignas | #9AD711de | — |
| keyword.operator.alignof | #10E41Ede | — |
| keyword.operator.cast | #98D70Bde | — |
| keyword.operator.delete | #D089F1de | — |
| keyword.operator.documentation.powershell | #EABC8E6e | — |
| keyword.operator.expression | #10E41Dde | — |
| keyword.operator.instanceof | #A5A5A5de | — |
| keyword.operator.logical.python | #FDB489de | — |
| keyword.operator.minus.exponent | #99D710de | — |
| keyword.operator.negation.regexp | #9AD711de | — |
| keyword.operator.new | #FEABCFde | — |
| keyword.operator.noexcept | #9AD70Dde | — |
| keyword.operator.or.regexp | #D089F0de | — |
| keyword.operator.plus.exponent | #0AE416de | — |
| keyword.operator.quantifier.regexp | #D089F0de | — |
| keyword.operator.sizeof | #CF8BEEde | — |
| keyword.operator.typeid | #EE85B2de | — |
| keyword.operator.wordlike | #EE85B2de | — |
| keyword.other.operator | #EC9D6Ede | — |
| keyword.other.package.java | #FEACD0de | — |
| keyword.other.unit | #D898F6de | — |
| keyword.other.using | #10E41Ede | — |
| markup.bold | #D289F3de | — |
| markup.changed | #94A0F1de | — |
| markup.deleted | #98D80Fde | — |
| markup.fenced_code.block.markdown | #C5C5C5de | — |
| markup.heading | #97D610de | — |
| markup.inline.raw | #FEB387de | — |
| markup.inserted | #10E31Fde | — |
| markup.italic | #F490BCde | — |
| markup.raw.block.markdown | #C5C5C5de | — |
| markup.strikethrough | #E5ABFEde | — |
| markup.underline | #CF8BEEde | — |
| meta.block.c | #10E31Fde | — |
| meta.block.c | #A5A5A5de | — |
| meta.class.java | #10E31Ede | — |
| meta.definition.variable.name | #95A0F1de | — |
| meta.diff.header | #FDB489de | — |
| meta.embedded | #F8A6CAde | — |
| meta.embedded.assembly | #0EE41Bde | — |
| meta.function-call.arguments.python | #FEB387de | — |
| meta.function-call.python | #99D60Ede | — |
| meta.member.access.python | #C5C5C5de | — |
| meta.method.java | #94A0F2de | — |
| meta.object-literal.key | #ED85B2de | — |
| meta.paragraph.markdown | #FDB489de | — |
| meta.preprocessor | #C5C5C5de | — |
| meta.preprocessor.numeric | #F3B189de | — |
| meta.preprocessor.string | #10E31Fde | — |
| meta.scope.prerequisites.makefile | #F0A77Bde | — |
| meta.structure.dictionary.json.comments | #ECBC8D6e | — |
| meta.structure.dictionary.key.python | #FDB489de | — |
| meta.structure.dictionary.value.json.comments | #E1BE8A6e | — |
| meta.template.expression | #10E31Ede | — |
| meta.type.cast.expr | #99D611de | — |
| meta.type.new.expr | #FEB387de | — |
| parameter | #C0C0C0de | — |
| punctuation.character.set.begin.regexp | #F182B3de | — |
| punctuation.character.set.end.regexp | #FDB58Ade | — |
| punctuation.definition.array.begin.json | #A5A5A5de | — |
| punctuation.definition.character-class.regexp | #94A0F2de | — |
| punctuation.definition.comment | #E5BE8A6e | — |
| punctuation.definition.comment.json.comments | #E1BE8A6e | — |
| punctuation.definition.comment.python | #EABC8E6e | — |
| punctuation.definition.dictionary.begin.json | #99D70Cde | — |
| punctuation.definition.dictionary.end.json | #FDB58Ade | — |
| punctuation.definition.group.assertion.regexp | #10E41Dde | — |
| punctuation.definition.group.regexp | #FDB489de | — |
| punctuation.definition.list.begin.json | #CF8BEFde | — |
| punctuation.definition.list.begin.markdown | #F8A6CAde | — |
| punctuation.definition.list.begin.python | #B7B7B7de | — |
| punctuation.definition.list.end.json | #0FE41Ade | — |
| punctuation.definition.list.end.markdown | #A9A9A9de | — |
| punctuation.definition.list.end.python | #98D611de | — |
| punctuation.definition.parameters.begin.python | #97D70Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #10E41Ede | — |
| punctuation.definition.quote.begin.markdown | #99D60Ede | — |
| punctuation.definition.tag | #F490BCde | — |
| punctuation.definition.template-expression.begin | #99D60Ede | — |
| punctuation.definition.template-expression.end | #EE83B2de | — |
| punctuation.section.class.begin.bracket.curly.java | #0DE41Cde | — |
| punctuation.section.embedded | #98A3F6de | — |
| punctuation.section.embedded.begin.php | #F0A77Bde | — |
| punctuation.section.embedded.end.php | #94A0F3de | — |
| punctuation.terminator.java | #D089F1de | — |
| source.cmake | #D089F0de | — |
| source.coffee.embedded | #0EE31Bde | — |
| source.cpp | #A5A5A5de | — |
| source.css.less | #AEB7F9de | — |
| source.groovy.embedded | #EE83B2de | — |
| source.java | #94A0F0de | — |
| source.java-properties | #9AD711de | — |
| source.json.comments | #E5BE8A6e | — |
| source.makefile | #E6B0FEde | — |
| source.powershell | #FEABD1de | — |
| source.powershell.variable.other.member | #A5A5A5de | — |
| source.python | #C4C4C4de | — |
| storage | #EA9867de | — |
| storage.modifier | #EEA275de | — |
| storage.modifier.import.java | #98D611de | — |
| storage.modifier.package.java | #F8A6CAde | — |
| storage.type | #EE85B2de | — |
| storage.type.annotation.groovy | #0DE41Cde | — |
| storage.type.annotation.java | #F0A77Bde | — |
| storage.type.boolean.go | #C4C4C4de | — |
| storage.type.byte.go | #B6C0FEde | — |
| storage.type.cs | #99D60Ede | — |
| storage.type.error.go | #10E41Ede | — |
| storage.type.generic.cs | #EA9867de | — |
| storage.type.generic.groovy | #10E31Ede | — |
| storage.type.generic.java | #98D80Fde | — |
| storage.type.groovy | #FEB387de | — |
| storage.type.java | #98D611de | — |
| storage.type.modifier.cs | #94A0F4de | — |
| storage.type.numeric.go | #EA9867de | — |
| storage.type.object.array.groovy | #0EE31Bde | — |
| storage.type.object.array.java | #EA9867de | — |
| storage.type.parameters.groovy | #F1AC82de | — |
| storage.type.primitive.array.groovy | #FDB489de | — |
| storage.type.primitive.array.java | #EE83B2de | — |
| storage.type.primitive.groovy | #0FE41Ade | — |
| storage.type.primitive.java | #A6B1F8de | — |
| storage.type.rune.go | #B7B7B7de | — |
| storage.type.string.go | #AEB7F9de | — |
| storage.type.token.java | #FEB387de | — |
| storage.type.uintptr.go | #10E41Dde | — |
| storage.type.variable.cs | #0CE41Ade | — |
| string | #FDB489de | — |
| string.quoted.docstring.multi.python | #E1BE8A6e | — |
| string.regexp | #BBBBBBde | — |
| string.tag | #0DE41Cde | — |
| string.value | #98A3F6de | — |
| strong | #94A0F2de | — |
| support.class | #F8A6CAde | — |
| support.constant.color | #D898F6de | — |
| support.constant.dom | #95A0EFde | — |
| support.constant.font-name | #99D60Ede | — |
| support.constant.handlebars | #F490BCde | — |
| support.constant.json | #98D70Bde | — |
| support.constant.math | #98D711de | — |
| support.constant.media | #10E31Ede | — |
| support.constant.media-type | #F8A6CAde | — |
| support.constant.property-value | #DFA6F8de | — |
| support.function | #C0C0C0de | — |
| support.function.git-rebase | #0CE41Ade | — |
| support.other.parenthesis.regexp | #D590F4de | — |
| support.type | #A5A5A5de | — |
| support.type.property-name | #94A0F0de | — |
| support.type.vendored.property-name | #97D610de | — |
| support.variable | #0EE31Bde | — |
| token.debug-token | #C5C5C5de | — |
| token.error-token | #10E41Ede | — |
| token.info-token | #98D80Fde | — |
| token.warn-token | #FEABCFde | — |
| variable | #A5A5A5de | — |
| variable.css | #CF8BEFde | — |
| variable.language | #CF8BEFde | — |
| variable.language.wildcard.java | #F490BCde | — |
| variable.other.constant | #C0C0C0de | — |
| variable.other.definition.java | #F389B7de | — |
| variable.other.enummember | #B6C0FEde | — |
| variable.other.less | #C5C5C5de | — |
| variable.other.object.java | #98D611de | — |
| variable.other.object.property.java | #CF8BEFde | — |
| variable.parameter.c | #E6B0FEde | — |
| variable.parameter.function.language.python | #CF8AEFde | — |
| variable.parameter.java | #DFA6F8de | — |
| variable.scss | #99D70Cde | — |
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}!`;
}