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 | #8BDA8B6e | — |
| comment.block.html | #87DB876e | — |
| comment.block.java | #87DB876e | — |
| comment.block.javadoc.java | #87DB876e | — |
| comment.block.powershell | #87DB876e | — |
| comment.block.xml | #82DB826e | — |
| comment.line.double-slash.c | #8BDA8B6e | — |
| comment.line.double-slash.cpp | #80DC806e | — |
| comment.line.double-slash.java | #80DC806e | — |
| comment.line.double-slash.js | #80DC806e | — |
| comment.line.number-sign.makefile | #82DB826e | — |
| comment.line.number-sign.python | #82DB826e | — |
| comment.line.number-sign.yaml | #80DC806e | — |
| comment.line.percentage.erlang | #80DC806e | — |
| comment.line.powershell | #8BDA8B6e | — |
| comment.source.cmake | #82DB826e | — |
| comment.source.cmakecache | #82DB826e | — |
| constant.character | #F388D8de | — |
| constant.character.character-class.regexp | #0EE395de | — |
| constant.character.escape | #45E40Fde | — |
| constant.character.set.regexp | #0FE293de | — |
| constant.language | #0EE394de | — |
| constant.numeric | #F388D8de | — |
| constant.numeric.dec.python | #ED8E80de | — |
| constant.other.caps.python | #BA97F3de | — |
| constant.other.character-class.regexp | #0EE292de | — |
| constant.other.character-class.set.regexp | #44E50Ede | — |
| constant.other.color.rgb-value | #E2C80Fde | — |
| constant.other.placeholder | #F79EE1de | — |
| constant.other.rgb-value | #F9B7ADde | — |
| constant.regexp | #0EE394de | — |
| constant.sha.git-rebase | #44E50Ede | — |
| emphasis | #0EE394de | — |
| entity.name.class | #FEABEAde | — |
| entity.name.function | #F08D7Fde | — |
| entity.name.function.preprocessor | #40E40Cde | — |
| entity.name.function.python | #75ACEAde | — |
| entity.name.label | #E2C70Ede | — |
| entity.name.namespace | #9FCBFEde | — |
| entity.name.operator | #0EE292de | — |
| entity.name.operator.custom-literal | #BA97F4de | — |
| entity.name.scope-resolution | #9AC9FEde | — |
| entity.name.tag | #0FE293de | — |
| entity.name.tag.css | #E1C710de | — |
| entity.name.type | #E1C80Ede | — |
| entity.name.variable | #FEB6ACde | — |
| entity.other.attribute | #E2C80Ede | — |
| entity.other.attribute-name | #F39688de | — |
| entity.other.attribute-name.class.css | #F39688de | — |
| entity.other.attribute-name.class.mixin.css | #BA97F2de | — |
| entity.other.attribute-name.id | #ED8E80de | — |
| entity.other.attribute-name.id.css | #F8A6E4de | — |
| entity.other.attribute-name.parent-selector.css | #10E294de | — |
| entity.other.attribute-name.pseudo-class.css | #0FE293de | — |
| entity.other.attribute-name.pseudo-element.css | #45E40Fde | — |
| entity.other.attribute-name.scss | #E0C70Dde | — |
| entity.other.document.begin.yaml | #82DB826e | — |
| entity.other.inherited-class | #73ACEBde | — |
| header | #F39688de | — |
| invalid | #F59C90de | — |
| keyword | #ED83D3de | — |
| keyword.codetag.notation.python | #E1C60Fde | — |
| keyword.control | #E1C710de | — |
| keyword.control.anchor.regexp | #B999F0de | — |
| keyword.control.import.python | #E2C80Ede | — |
| keyword.operator | #BB97F6de | — |
| keyword.operator.alignas | #7BB1EFde | — |
| keyword.operator.alignof | #45E40Fde | — |
| keyword.operator.cast | #F39688de | — |
| keyword.operator.delete | #0FE293de | — |
| keyword.operator.documentation.powershell | #8BDA8B6e | — |
| keyword.operator.expression | #42E40Ede | — |
| keyword.operator.instanceof | #FEB6ABde | — |
| keyword.operator.logical.python | #75ACEAde | — |
| keyword.operator.minus.exponent | #10E294de | — |
| keyword.operator.negation.regexp | #F9ADE6de | — |
| keyword.operator.new | #45E50Fde | — |
| keyword.operator.noexcept | #0EE395de | — |
| keyword.operator.or.regexp | #F79EE1de | — |
| keyword.operator.plus.exponent | #F18F81de | — |
| keyword.operator.quantifier.regexp | #ED9082de | — |
| keyword.operator.sizeof | #44E40Ede | — |
| keyword.operator.typeid | #44E510de | — |
| keyword.operator.wordlike | #ED84D3de | — |
| keyword.other.operator | #CFB5FAde | — |
| keyword.other.package.java | #EE82D3de | — |
| keyword.other.unit | #10E393de | — |
| keyword.other.using | #F18F81de | — |
| markup.bold | #F8A6E4de | — |
| markup.changed | #82B6F1de | — |
| markup.deleted | #9AC9FEde | — |
| markup.fenced_code.block.markdown | #F9B7ADde | — |
| markup.heading | #F181D5de | — |
| markup.inline.raw | #C09EF7de | — |
| markup.inserted | #E2C60Cde | — |
| markup.italic | #F79EE1de | — |
| markup.raw.block.markdown | #BA97F3de | — |
| markup.strikethrough | #98C3F6de | — |
| markup.underline | #7BB1EFde | — |
| meta.block.c | #75ADEDde | — |
| meta.block.c | #F39688de | — |
| meta.class.java | #ED9082de | — |
| meta.definition.variable.name | #45E40Fde | — |
| meta.diff.header | #EF83D4de | — |
| meta.embedded | #45E50Fde | — |
| meta.embedded.assembly | #89BAF3de | — |
| meta.function-call.arguments.python | #F08D7Fde | — |
| meta.function-call.python | #0FE393de | — |
| meta.member.access.python | #45E50Fde | — |
| meta.method.java | #46E50Fde | — |
| meta.object-literal.key | #44E40Ede | — |
| meta.paragraph.markdown | #0EE395de | — |
| meta.preprocessor | #FEAEEBde | — |
| meta.preprocessor.numeric | #10E394de | — |
| meta.preprocessor.string | #E1C80Ede | — |
| meta.scope.prerequisites.makefile | #0CE293de | — |
| meta.structure.dictionary.json.comments | #80DC806e | — |
| meta.structure.dictionary.key.python | #9DCAFEde | — |
| meta.structure.dictionary.value.json.comments | #8BDA8B6e | — |
| meta.template.expression | #FEAEEAde | — |
| meta.type.cast.expr | #F081D4de | — |
| meta.type.new.expr | #FEB6ABde | — |
| parameter | #E2C70Fde | — |
| punctuation.character.set.begin.regexp | #F39688de | — |
| punctuation.character.set.end.regexp | #FEAEEBde | — |
| punctuation.definition.array.begin.json | #9AC9FEde | — |
| punctuation.definition.character-class.regexp | #EF8E80de | — |
| punctuation.definition.comment | #8BDA8B6e | — |
| punctuation.definition.comment.json.comments | #87DB876e | — |
| punctuation.definition.comment.python | #8BDA8B6e | — |
| punctuation.definition.dictionary.begin.json | #E2C80Ede | — |
| punctuation.definition.dictionary.end.json | #CAADF9de | — |
| punctuation.definition.group.assertion.regexp | #9ECBFEde | — |
| punctuation.definition.group.regexp | #73ACEBde | — |
| punctuation.definition.list.begin.json | #42E40Dde | — |
| punctuation.definition.list.begin.markdown | #44E510de | — |
| punctuation.definition.list.begin.python | #40E40Cde | — |
| punctuation.definition.list.end.json | #42E40Dde | — |
| punctuation.definition.list.end.markdown | #CFB5FAde | — |
| punctuation.definition.list.end.python | #44E510de | — |
| punctuation.definition.parameters.begin.python | #42E40Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #E1C70Ede | — |
| punctuation.definition.quote.begin.markdown | #FEABEAde | — |
| punctuation.definition.tag | #F8A6E4de | — |
| punctuation.definition.template-expression.begin | #ED84D3de | — |
| punctuation.definition.template-expression.end | #B998F0de | — |
| punctuation.section.class.begin.bracket.curly.java | #0DE292de | — |
| punctuation.section.embedded | #B997F1de | — |
| punctuation.section.embedded.begin.php | #F697DEde | — |
| punctuation.section.embedded.end.php | #7BB1EFde | — |
| punctuation.terminator.java | #F59C90de | — |
| source.cmake | #43E50Dde | — |
| source.coffee.embedded | #E2C70Ede | — |
| source.cpp | #F6A397de | — |
| source.css.less | #B998F0de | — |
| source.groovy.embedded | #C09EF7de | — |
| source.java | #ED8E80de | — |
| source.java-properties | #D4BDFBde | — |
| source.json.comments | #8BDA8B6e | — |
| source.makefile | #73ACEBde | — |
| source.powershell | #0DE292de | — |
| source.powershell.variable.other.member | #E1C80Ede | — |
| source.python | #B998F0de | — |
| storage | #CFB5FAde | — |
| storage.modifier | #10E393de | — |
| storage.modifier.import.java | #10E294de | — |
| storage.modifier.package.java | #3EE40Ade | — |
| storage.type | #45E40Fde | — |
| storage.type.annotation.groovy | #7BB1EFde | — |
| storage.type.annotation.java | #B997F3de | — |
| storage.type.boolean.go | #9FCBFEde | — |
| storage.type.byte.go | #BA97F5de | — |
| storage.type.cs | #BA97F3de | — |
| storage.type.error.go | #0EE292de | — |
| storage.type.generic.cs | #E0C70Dde | — |
| storage.type.generic.groovy | #73ACEBde | — |
| storage.type.generic.java | #46E50Fde | — |
| storage.type.groovy | #F8B0A6de | — |
| storage.type.java | #F39688de | — |
| storage.type.modifier.cs | #FEABEAde | — |
| storage.type.numeric.go | #0FE293de | — |
| storage.type.object.array.groovy | #B997F1de | — |
| storage.type.object.array.java | #C09EF7de | — |
| storage.type.parameters.groovy | #0CE293de | — |
| storage.type.primitive.array.groovy | #FEAEEBde | — |
| storage.type.primitive.array.java | #3EE40Ade | — |
| storage.type.primitive.groovy | #E2C60Cde | — |
| storage.type.primitive.java | #CFB5FAde | — |
| storage.type.rune.go | #F59C90de | — |
| storage.type.string.go | #45E510de | — |
| storage.type.token.java | #F9B7ADde | — |
| storage.type.uintptr.go | #73ACEBde | — |
| storage.type.variable.cs | #F9B7ADde | — |
| string | #45E40Fde | — |
| string.quoted.docstring.multi.python | #87DB876e | — |
| string.regexp | #3EE40Ade | — |
| string.tag | #F9B7ADde | — |
| string.value | #45E40Fde | — |
| strong | #B997F1de | — |
| support.class | #F8A6E4de | — |
| support.constant.color | #FEABEAde | — |
| support.constant.dom | #B997F3de | — |
| support.constant.font-name | #10E393de | — |
| support.constant.handlebars | #0EE292de | — |
| support.constant.json | #ED84D3de | — |
| support.constant.math | #CAADF9de | — |
| support.constant.media | #F8B0A6de | — |
| support.constant.media-type | #E1C60Fde | — |
| support.constant.property-value | #43E50Ede | — |
| support.function | #98C3F6de | — |
| support.function.git-rebase | #E2C60Cde | — |
| support.other.parenthesis.regexp | #9DCAFEde | — |
| support.type | #45E40Fde | — |
| support.type.property-name | #44E50Ede | — |
| support.type.vendored.property-name | #9DCAFEde | — |
| support.variable | #9DCAFEde | — |
| token.debug-token | #75ACEAde | — |
| token.error-token | #B998F0de | — |
| token.info-token | #FEABEAde | — |
| token.warn-token | #E2C80Fde | — |
| variable | #BA97F4de | — |
| variable.css | #46E50Fde | — |
| variable.language | #10E394de | — |
| variable.language.wildcard.java | #F181D5de | — |
| variable.other.constant | #0AE290de | — |
| variable.other.definition.java | #E1C710de | — |
| variable.other.enummember | #D3BBFEde | — |
| variable.other.less | #0FE293de | — |
| variable.other.object.java | #0DE292de | — |
| variable.other.object.property.java | #CFB5FAde | — |
| variable.parameter.c | #45E410de | — |
| variable.parameter.function.language.python | #9FC8F7de | — |
| variable.parameter.java | #BB97F6de | — |
| variable.scss | #EE82D3de | — |
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}!`;
}