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 | #F8AFF86e | — |
| comment.block.html | #C8C8C86e | — |
| comment.block.java | #C7C7C76e | — |
| comment.block.javadoc.java | #F7B1F76e | — |
| comment.block.powershell | #F8AFF86e | — |
| comment.block.xml | #C8C8C86e | — |
| comment.line.double-slash.c | #C8C8C86e | — |
| comment.line.double-slash.cpp | #C8C8C86e | — |
| comment.line.double-slash.java | #F7B1F76e | — |
| comment.line.double-slash.js | #C8C8C86e | — |
| comment.line.number-sign.makefile | #F8AFF86e | — |
| comment.line.number-sign.python | #C7C7C76e | — |
| comment.line.number-sign.yaml | #C7C7C76e | — |
| comment.line.percentage.erlang | #C7C7C76e | — |
| comment.line.powershell | #F7B1F76e | — |
| comment.source.cmake | #F8AFF86e | — |
| comment.source.cmakecache | #F7B1F76e | — |
| constant.character | #C2D313de | — |
| constant.character.character-class.regexp | #8AADF1de | — |
| constant.character.escape | #86A8EFde | — |
| constant.character.set.regexp | #D9B4FEde | — |
| constant.language | #C395F1de | — |
| constant.numeric | #FEB6A8de | — |
| constant.numeric.dec.python | #FEB2DEde | — |
| constant.other.caps.python | #91B2F3de | — |
| constant.other.character-class.regexp | #0CE1AFde | — |
| constant.other.character-class.set.regexp | #F7B4A7de | — |
| constant.other.color.rgb-value | #91B2F3de | — |
| constant.other.placeholder | #F9AEDAde | — |
| constant.other.rgb-value | #C2D20Cde | — |
| constant.regexp | #AEC9FEde | — |
| constant.sha.git-rebase | #12E2ADde | — |
| emphasis | #F7B4A7de | — |
| entity.name.class | #0DE70Dde | — |
| entity.name.function | #FEACDBde | — |
| entity.name.function.preprocessor | #D8B6FAde | — |
| entity.name.function.python | #0AE70Ade | — |
| entity.name.label | #C297EEde | — |
| entity.name.namespace | #86A8EEde | — |
| entity.name.operator | #A7C2F7de | — |
| entity.name.operator.custom-literal | #C395F1de | — |
| entity.name.scope-resolution | #EA917Fde | — |
| entity.name.tag | #C1D307de | — |
| entity.name.tag.css | #11E811de | — |
| entity.name.type | #10E710de | — |
| entity.name.variable | #EF86C3de | — |
| entity.other.attribute | #0DE70Dde | — |
| entity.other.attribute-name | #C2D212de | — |
| entity.other.attribute-name.class.css | #12E2ADde | — |
| entity.other.attribute-name.class.mixin.css | #CFA7F7de | — |
| entity.other.attribute-name.id | #C0D20Ede | — |
| entity.other.attribute-name.id.css | #12E3AEde | — |
| entity.other.attribute-name.parent-selector.css | #C3D111de | — |
| entity.other.attribute-name.pseudo-class.css | #FEB2DEde | — |
| entity.other.attribute-name.pseudo-element.css | #FEB7A9de | — |
| entity.other.attribute-name.scss | #8AADF1de | — |
| entity.other.document.begin.yaml | #F7B1F76e | — |
| entity.other.inherited-class | #C3D111de | — |
| header | #12E3AEde | — |
| invalid | #C495F2de | — |
| keyword | #F085C3de | — |
| keyword.codetag.notation.python | #0CE60Cde | — |
| keyword.control | #98B7F5de | — |
| keyword.control.anchor.regexp | #12E3ADde | — |
| keyword.control.import.python | #11E811de | — |
| keyword.operator | #10E1ADde | — |
| keyword.operator.alignas | #D8B6FAde | — |
| keyword.operator.alignof | #F19B8Ade | — |
| keyword.operator.cast | #C2D113de | — |
| keyword.operator.delete | #0DE3ADde | — |
| keyword.operator.documentation.powershell | #C7C7C76e | — |
| keyword.operator.expression | #C1D307de | — |
| keyword.operator.instanceof | #F6AE9Fde | — |
| keyword.operator.logical.python | #12E3ADde | — |
| keyword.operator.minus.exponent | #10E810de | — |
| keyword.operator.negation.regexp | #10E810de | — |
| keyword.operator.new | #11E811de | — |
| keyword.operator.noexcept | #0CE80Cde | — |
| keyword.operator.or.regexp | #11E811de | — |
| keyword.operator.plus.exponent | #F3A191de | — |
| keyword.operator.quantifier.regexp | #AEC7F9de | — |
| keyword.operator.sizeof | #11E811de | — |
| keyword.operator.typeid | #86A8EEde | — |
| keyword.operator.wordlike | #F09583de | — |
| keyword.other.operator | #C0D20Ede | — |
| keyword.other.package.java | #11E811de | — |
| keyword.other.unit | #C1D111de | — |
| keyword.other.using | #C2D313de | — |
| markup.bold | #F19B8Ade | — |
| markup.changed | #12E2ADde | — |
| markup.deleted | #C0D20Ede | — |
| markup.fenced_code.block.markdown | #EF86C3de | — |
| markup.heading | #C1D111de | — |
| markup.inline.raw | #11E711de | — |
| markup.inserted | #11E2AEde | — |
| markup.italic | #DCBBFEde | — |
| markup.raw.block.markdown | #0AE2ABde | — |
| markup.strikethrough | #C394F3de | — |
| markup.underline | #F3A191de | — |
| meta.block.c | #11E811de | — |
| meta.block.c | #9FBCF6de | — |
| meta.class.java | #EC88C2de | — |
| meta.definition.variable.name | #CB9FF6de | — |
| meta.diff.header | #C698F5de | — |
| meta.embedded | #F09583de | — |
| meta.embedded.assembly | #C295F0de | — |
| meta.function-call.arguments.python | #F6AE9Fde | — |
| meta.function-call.python | #F69FD2de | — |
| meta.member.access.python | #FEB2DEde | — |
| meta.method.java | #A7C2F7de | — |
| meta.object-literal.key | #F9AEDAde | — |
| meta.paragraph.markdown | #0CE80Cde | — |
| meta.preprocessor | #C0D20Ede | — |
| meta.preprocessor.numeric | #10E1ADde | — |
| meta.preprocessor.string | #11E811de | — |
| meta.scope.prerequisites.makefile | #11E711de | — |
| meta.structure.dictionary.json.comments | #F7B1F76e | — |
| meta.structure.dictionary.key.python | #C1D113de | — |
| meta.structure.dictionary.value.json.comments | #F7B1F76e | — |
| meta.template.expression | #11E711de | — |
| meta.type.cast.expr | #FEB2A3de | — |
| meta.type.new.expr | #C0D20Ede | — |
| parameter | #F19B8Ade | — |
| punctuation.character.set.begin.regexp | #98B7F5de | — |
| punctuation.character.set.end.regexp | #C0D10Dde | — |
| punctuation.definition.array.begin.json | #10E2AEde | — |
| punctuation.definition.character-class.regexp | #11E811de | — |
| punctuation.definition.comment | #F8AFF86e | — |
| punctuation.definition.comment.json.comments | #F8AFF86e | — |
| punctuation.definition.comment.python | #C8C8C86e | — |
| punctuation.definition.dictionary.begin.json | #D3AEF9de | — |
| punctuation.definition.dictionary.end.json | #88A9ECde | — |
| punctuation.definition.group.assertion.regexp | #D8B6FAde | — |
| punctuation.definition.group.regexp | #C1D111de | — |
| punctuation.definition.list.begin.json | #FEB7A9de | — |
| punctuation.definition.list.begin.markdown | #F085C3de | — |
| punctuation.definition.list.begin.python | #AEC9FEde | — |
| punctuation.definition.list.end.json | #F69FD2de | — |
| punctuation.definition.list.end.markdown | #0EE80Ede | — |
| punctuation.definition.list.end.python | #0EE80Ede | — |
| punctuation.definition.parameters.begin.python | #EC88C2de | — |
| punctuation.definition.parameters.end.bracket.round.java | #C3D111de | — |
| punctuation.definition.quote.begin.markdown | #C0D10Dde | — |
| punctuation.definition.tag | #0CE60Cde | — |
| punctuation.definition.template-expression.begin | #FEB6A8de | — |
| punctuation.definition.template-expression.end | #C295F0de | — |
| punctuation.section.class.begin.bracket.curly.java | #C295F0de | — |
| punctuation.section.embedded | #10E1ADde | — |
| punctuation.section.embedded.begin.php | #EE8F7Dde | — |
| punctuation.section.embedded.end.php | #EE87C3de | — |
| punctuation.terminator.java | #CB9FF6de | — |
| source.cmake | #FEB7A9de | — |
| source.coffee.embedded | #11E811de | — |
| source.cpp | #0AE70Ade | — |
| source.css.less | #FEACDBde | — |
| source.groovy.embedded | #EC88C2de | — |
| source.java | #0DE3ADde | — |
| source.java-properties | #10E810de | — |
| source.json.comments | #F8AFF86e | — |
| source.makefile | #ED88C3de | — |
| source.powershell | #C2D20Cde | — |
| source.powershell.variable.other.member | #FEB7A9de | — |
| source.python | #F09583de | — |
| storage | #C1D307de | — |
| storage.modifier | #B0C9FEde | — |
| storage.modifier.import.java | #AEC9FEde | — |
| storage.modifier.package.java | #C495F2de | — |
| storage.type | #12E712de | — |
| storage.type.annotation.groovy | #10E810de | — |
| storage.type.annotation.java | #C2D20Cde | — |
| storage.type.boolean.go | #10E810de | — |
| storage.type.byte.go | #FEB6A8de | — |
| storage.type.cs | #C394F3de | — |
| storage.type.error.go | #FEB2DEde | — |
| storage.type.generic.cs | #88A9EDde | — |
| storage.type.generic.groovy | #0AE2ABde | — |
| storage.type.generic.java | #C1D307de | — |
| storage.type.groovy | #0CE1AFde | — |
| storage.type.java | #C295F0de | — |
| storage.type.modifier.cs | #B0C9FEde | — |
| storage.type.numeric.go | #ACC7FEde | — |
| storage.type.object.array.groovy | #98B7F5de | — |
| storage.type.object.array.java | #12E3ADde | — |
| storage.type.parameters.groovy | #F18AC6de | — |
| storage.type.primitive.array.groovy | #C395F1de | — |
| storage.type.primitive.array.java | #10E2AEde | — |
| storage.type.primitive.groovy | #C2D112de | — |
| storage.type.primitive.java | #10E810de | — |
| storage.type.rune.go | #98B7F5de | — |
| storage.type.string.go | #B0C9FEde | — |
| storage.type.token.java | #11E1AEde | — |
| storage.type.uintptr.go | #FEB2A3de | — |
| storage.type.variable.cs | #0AE70Ade | — |
| string | #98B7F5de | — |
| string.quoted.docstring.multi.python | #C8C8C86e | — |
| string.regexp | #F6AE9Fde | — |
| string.tag | #C2D20Cde | — |
| string.value | #10E810de | — |
| strong | #11E811de | — |
| support.class | #FEB7A9de | — |
| support.constant.color | #0CE80Cde | — |
| support.constant.dom | #FEB6A8de | — |
| support.constant.font-name | #10E1ADde | — |
| support.constant.handlebars | #F18AC6de | — |
| support.constant.json | #C495F2de | — |
| support.constant.math | #F598CEde | — |
| support.constant.media | #88A8EBde | — |
| support.constant.media-type | #CFA7F7de | — |
| support.constant.property-value | #F7B4A7de | — |
| support.function | #FEB6A8de | — |
| support.function.git-rebase | #C1D111de | — |
| support.other.parenthesis.regexp | #C1D308de | — |
| support.type | #B0C9FEde | — |
| support.type.property-name | #EC88C2de | — |
| support.type.vendored.property-name | #B0C9FEde | — |
| support.variable | #8AADF1de | — |
| token.debug-token | #ED88C3de | — |
| token.error-token | #FEB1DFde | — |
| token.info-token | #FEB2DEde | — |
| token.warn-token | #F7B4A7de | — |
| variable | #FEB7A9de | — |
| variable.css | #FEB2A3de | — |
| variable.language | #11E811de | — |
| variable.language.wildcard.java | #10E1ADde | — |
| variable.other.constant | #D8B6FAde | — |
| variable.other.definition.java | #88A8EBde | — |
| variable.other.enummember | #9FBCF6de | — |
| variable.other.less | #12E2ADde | — |
| variable.other.object.java | #ED907Ede | — |
| variable.other.object.property.java | #86A8EEde | — |
| variable.parameter.c | #C3D111de | — |
| variable.parameter.function.language.python | #12E712de | — |
| variable.parameter.java | #F3A191de | — |
| variable.scss | #C1D308de | — |
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}!`;
}