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 | #CBCB716e | — |
| comment.block.html | #CBCB766e | — |
| comment.block.java | #CBCB766e | — |
| comment.block.javadoc.java | #CACA736e | — |
| comment.block.powershell | #CBCB7C6e | — |
| comment.block.xml | #CACA736e | — |
| comment.line.double-slash.c | #CBCB7C6e | — |
| comment.line.double-slash.cpp | #CACA736e | — |
| comment.line.double-slash.java | #CBCB766e | — |
| comment.line.double-slash.js | #CBCB7C6e | — |
| comment.line.number-sign.makefile | #CBCB716e | — |
| comment.line.number-sign.python | #CACA736e | — |
| comment.line.number-sign.yaml | #CBCB7C6e | — |
| comment.line.percentage.erlang | #CBCB716e | — |
| comment.line.powershell | #CACA736e | — |
| comment.source.cmake | #CBCB7C6e | — |
| comment.source.cmakecache | #CBCB766e | — |
| constant.character | #B7D212de | — |
| constant.character.character-class.regexp | #F5B298de | — |
| constant.character.escape | #FEAFDCde | — |
| constant.character.set.regexp | #F490C9de | — |
| constant.language | #F1A282de | — |
| constant.numeric | #B6D312de | — |
| constant.numeric.dec.python | #B7D30Ede | — |
| constant.other.caps.python | #88A6F1de | — |
| constant.other.character-class.regexp | #DEB4FEde | — |
| constant.other.character-class.set.regexp | #B7D312de | — |
| constant.other.color.rgb-value | #0AE40Ade | — |
| constant.other.placeholder | #89A6EDde | — |
| constant.other.rgb-value | #D5A6F8de | — |
| constant.regexp | #F7B89Fde | — |
| constant.sha.git-rebase | #FEB59Ade | — |
| emphasis | #0EE50Ede | — |
| entity.name.class | #FEABDBde | — |
| entity.name.function | #C890F2de | — |
| entity.name.function.preprocessor | #0BDDBFde | — |
| entity.name.function.python | #11DEC0de | — |
| entity.name.label | #98B2F5de | — |
| entity.name.namespace | #88A6F1de | — |
| entity.name.operator | #B5D305de | — |
| entity.name.operator.custom-literal | #FEB599de | — |
| entity.name.scope-resolution | #B7D312de | — |
| entity.name.tag | #89A7F2de | — |
| entity.name.tag.css | #0DE50Dde | — |
| entity.name.type | #B0C5FEde | — |
| entity.name.variable | #B6D30Dde | — |
| entity.other.attribute | #F8A6D5de | — |
| entity.other.attribute-name | #11DFC1de | — |
| entity.other.attribute-name.class.css | #10E610de | — |
| entity.other.attribute-name.class.mixin.css | #B7D212de | — |
| entity.other.attribute-name.id | #B8D311de | — |
| entity.other.attribute-name.id.css | #ED86C0de | — |
| entity.other.attribute-name.parent-selector.css | #B7D311de | — |
| entity.other.attribute-name.pseudo-class.css | #F1A282de | — |
| entity.other.attribute-name.pseudo-element.css | #EF9C7Cde | — |
| entity.other.attribute-name.scss | #89A6EFde | — |
| entity.other.document.begin.yaml | #CBCB716e | — |
| entity.other.inherited-class | #C790F1de | — |
| header | #F8A6D5de | — |
| invalid | #C890F2de | — |
| keyword | #8AA6ECde | — |
| keyword.codetag.notation.python | #0EDFC0de | — |
| keyword.control | #B7D30Ede | — |
| keyword.control.anchor.regexp | #98B2F5de | — |
| keyword.control.import.python | #89A6EFde | — |
| keyword.operator | #0FDFC0de | — |
| keyword.operator.alignas | #B7D311de | — |
| keyword.operator.alignof | #B6D30Dde | — |
| keyword.operator.cast | #10E610de | — |
| keyword.operator.delete | #F490C9de | — |
| keyword.operator.documentation.powershell | #CBCB766e | — |
| keyword.operator.expression | #ABC3FEde | — |
| keyword.operator.instanceof | #DEB4FEde | — |
| keyword.operator.logical.python | #89A6EFde | — |
| keyword.operator.minus.exponent | #90ADF4de | — |
| keyword.operator.negation.regexp | #89A6EFde | — |
| keyword.operator.new | #B6D30Dde | — |
| keyword.operator.noexcept | #11E511de | — |
| keyword.operator.or.regexp | #12E512de | — |
| keyword.operator.plus.exponent | #FEAEDBde | — |
| keyword.operator.quantifier.regexp | #FEAFDCde | — |
| keyword.operator.sizeof | #10DFC2de | — |
| keyword.operator.typeid | #0DE50Dde | — |
| keyword.operator.wordlike | #0AE40Ade | — |
| keyword.other.operator | #F2A789de | — |
| keyword.other.package.java | #F182C1de | — |
| keyword.other.unit | #11E611de | — |
| keyword.other.using | #0DDEC0de | — |
| markup.bold | #B6D30Dde | — |
| markup.changed | #12E512de | — |
| markup.deleted | #8AA6ECde | — |
| markup.fenced_code.block.markdown | #AEC3F9de | — |
| markup.heading | #FEB69Bde | — |
| markup.inline.raw | #11E511de | — |
| markup.inserted | #DDB5FAde | — |
| markup.italic | #C890F2de | — |
| markup.raw.block.markdown | #B5D212de | — |
| markup.strikethrough | #C692EFde | — |
| markup.underline | #C890F2de | — |
| meta.block.c | #B6D312de | — |
| meta.block.c | #B6D20Cde | — |
| meta.class.java | #10DEC1de | — |
| meta.definition.variable.name | #B8D311de | — |
| meta.diff.header | #10DFC1de | — |
| meta.embedded | #DDB5FAde | — |
| meta.embedded.assembly | #0EDFC0de | — |
| meta.function-call.arguments.python | #11DEC1de | — |
| meta.function-call.python | #F4AD90de | — |
| meta.member.access.python | #11E511de | — |
| meta.method.java | #D5A6F8de | — |
| meta.object-literal.key | #EE84C0de | — |
| meta.paragraph.markdown | #C890F2de | — |
| meta.preprocessor | #F182C1de | — |
| meta.preprocessor.numeric | #C990F4de | — |
| meta.preprocessor.string | #B7D212de | — |
| meta.scope.prerequisites.makefile | #10E610de | — |
| meta.structure.dictionary.json.comments | #CBCB766e | — |
| meta.structure.dictionary.key.python | #F8A6D5de | — |
| meta.structure.dictionary.value.json.comments | #CBCB716e | — |
| meta.template.expression | #08DFC0de | — |
| meta.type.cast.expr | #F7B89Fde | — |
| meta.type.new.expr | #C692EFde | — |
| parameter | #C791F0de | — |
| punctuation.character.set.begin.regexp | #F5B298de | — |
| punctuation.character.set.end.regexp | #AEC3F9de | — |
| punctuation.definition.array.begin.json | #B7D312de | — |
| punctuation.definition.character-class.regexp | #B6D312de | — |
| punctuation.definition.comment | #CBCB766e | — |
| punctuation.definition.comment.json.comments | #CBCB716e | — |
| punctuation.definition.comment.python | #CBCB7C6e | — |
| punctuation.definition.dictionary.begin.json | #C793EDde | — |
| punctuation.definition.dictionary.end.json | #B8D311de | — |
| punctuation.definition.group.assertion.regexp | #ED86C0de | — |
| punctuation.definition.group.regexp | #C792EFde | — |
| punctuation.definition.list.begin.json | #0EDFC0de | — |
| punctuation.definition.list.begin.markdown | #EF83C0de | — |
| punctuation.definition.list.begin.python | #D19FF7de | — |
| punctuation.definition.list.end.json | #12E512de | — |
| punctuation.definition.list.end.markdown | #11E511de | — |
| punctuation.definition.list.end.python | #ABC3FEde | — |
| punctuation.definition.parameters.begin.python | #0FDFC0de | — |
| punctuation.definition.parameters.end.bracket.round.java | #FEAEDBde | — |
| punctuation.definition.quote.begin.markdown | #B6D307de | — |
| punctuation.definition.tag | #11E511de | — |
| punctuation.definition.template-expression.begin | #F79FD1de | — |
| punctuation.definition.template-expression.end | #FEB698de | — |
| punctuation.section.class.begin.bracket.curly.java | #C793EDde | — |
| punctuation.section.embedded | #F490C9de | — |
| punctuation.section.embedded.begin.php | #FEB599de | — |
| punctuation.section.embedded.end.php | #F2A789de | — |
| punctuation.terminator.java | #0CDEBFde | — |
| source.cmake | #0AE40Ade | — |
| source.coffee.embedded | #0BDDBFde | — |
| source.cpp | #ED86C0de | — |
| source.css.less | #B5D305de | — |
| source.groovy.embedded | #FEB698de | — |
| source.java | #D19FF7de | — |
| source.java-properties | #10DFC2de | — |
| source.json.comments | #CBCB7C6e | — |
| source.makefile | #C793EDde | — |
| source.powershell | #11E611de | — |
| source.powershell.variable.other.member | #C890F2de | — |
| source.python | #89A7F2de | — |
| storage | #DEB4FEde | — |
| storage.modifier | #AEC3F9de | — |
| storage.modifier.import.java | #11E511de | — |
| storage.modifier.package.java | #FEB698de | — |
| storage.type | #0CDEBFde | — |
| storage.type.annotation.groovy | #89A6EFde | — |
| storage.type.annotation.java | #ED9775de | — |
| storage.type.boolean.go | #0AE40Ade | — |
| storage.type.byte.go | #A6BEF8de | — |
| storage.type.cs | #89A6EDde | — |
| storage.type.error.go | #F1A282de | — |
| storage.type.generic.cs | #11E511de | — |
| storage.type.generic.groovy | #89A6EFde | — |
| storage.type.generic.java | #0CE60Cde | — |
| storage.type.groovy | #10E610de | — |
| storage.type.java | #11E611de | — |
| storage.type.modifier.cs | #ED9775de | — |
| storage.type.numeric.go | #0CE60Cde | — |
| storage.type.object.array.groovy | #FEAFDCde | — |
| storage.type.object.array.java | #89A6EEde | — |
| storage.type.parameters.groovy | #ED9775de | — |
| storage.type.primitive.array.groovy | #EF9C7Cde | — |
| storage.type.primitive.array.java | #11DFC0de | — |
| storage.type.primitive.groovy | #EF83C0de | — |
| storage.type.primitive.java | #F8A6D5de | — |
| storage.type.rune.go | #D9AEF9de | — |
| storage.type.string.go | #0CDEBFde | — |
| storage.type.token.java | #90ADF4de | — |
| storage.type.uintptr.go | #10DFC1de | — |
| storage.type.variable.cs | #0DDEC0de | — |
| string | #11DEC0de | — |
| string.quoted.docstring.multi.python | #CBCB7C6e | — |
| string.regexp | #11DEC1de | — |
| string.tag | #F490C9de | — |
| string.value | #ED9775de | — |
| strong | #F2A789de | — |
| support.class | #DDB5FAde | — |
| support.constant.color | #F598CDde | — |
| support.constant.dom | #0EDFC0de | — |
| support.constant.font-name | #0DE50Dde | — |
| support.constant.handlebars | #EF83C0de | — |
| support.constant.json | #C990F4de | — |
| support.constant.math | #0EE50Ede | — |
| support.constant.media | #FEB599de | — |
| support.constant.media-type | #C692EFde | — |
| support.constant.property-value | #11DFC0de | — |
| support.function | #AEC3F9de | — |
| support.function.git-rebase | #B7D30Ede | — |
| support.other.parenthesis.regexp | #B5D20Ede | — |
| support.type | #F1A282de | — |
| support.type.property-name | #08DFC0de | — |
| support.type.vendored.property-name | #89A6EFde | — |
| support.variable | #EE84C0de | — |
| token.debug-token | #B7D311de | — |
| token.error-token | #F490C9de | — |
| token.info-token | #11E611de | — |
| token.warn-token | #B7D312de | — |
| variable | #FEB599de | — |
| variable.css | #EE84C0de | — |
| variable.language | #11DFC1de | — |
| variable.language.wildcard.java | #E9916Ede | — |
| variable.other.constant | #F79FD1de | — |
| variable.other.definition.java | #B7D212de | — |
| variable.other.enummember | #C692EFde | — |
| variable.other.less | #FEB698de | — |
| variable.other.object.java | #AEC5FEde | — |
| variable.other.object.property.java | #A6BEF8de | — |
| variable.parameter.c | #B6D30Dde | — |
| variable.parameter.function.language.python | #B6D30Dde | — |
| variable.parameter.java | #B6D30Dde | — |
| variable.scss | #F9AED9de | — |
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}!`;
}