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 | #CBCB726e | — |
| comment.block.html | #CBCB7B6e | — |
| comment.block.java | #CBCB726e | — |
| comment.block.javadoc.java | #CBCB7C6e | — |
| comment.block.powershell | #CBCB766e | — |
| comment.block.xml | #CBCB726e | — |
| comment.line.double-slash.c | #CBCB766e | — |
| comment.line.double-slash.cpp | #CBCB7C6e | — |
| comment.line.double-slash.java | #CBCB766e | — |
| comment.line.double-slash.js | #CBCB7B6e | — |
| comment.line.number-sign.makefile | #CBCB7B6e | — |
| comment.line.number-sign.python | #CBCB7C6e | — |
| comment.line.number-sign.yaml | #CBCB766e | — |
| comment.line.percentage.erlang | #CBCB766e | — |
| comment.line.powershell | #CBCB766e | — |
| comment.source.cmake | #CBCB7B6e | — |
| comment.source.cmakecache | #CBCB7B6e | — |
| constant.character | #0DDCDCde | — |
| constant.character.character-class.regexp | #10E61Fde | — |
| constant.character.escape | #0EE51Fde | — |
| constant.character.set.regexp | #95A2EFde | — |
| constant.language | #0CDBDBde | — |
| constant.numeric | #10DBDBde | — |
| constant.numeric.dec.python | #CD8EF1de | — |
| constant.other.caps.python | #9ED711de | — |
| constant.other.character-class.regexp | #0CDBDBde | — |
| constant.other.character-class.set.regexp | #95A2F3de | — |
| constant.other.color.rgb-value | #10DCDCde | — |
| constant.other.placeholder | #9DD80Ede | — |
| constant.other.rgb-value | #11DBDBde | — |
| constant.regexp | #95A2F0de | — |
| constant.sha.git-rebase | #10DBDBde | — |
| emphasis | #F4B390de | — |
| entity.name.class | #ED88B3de | — |
| entity.name.function | #CD8DF2de | — |
| entity.name.function.preprocessor | #FDB790de | — |
| entity.name.function.python | #11DBDBde | — |
| entity.name.label | #FEB790de | — |
| entity.name.namespace | #F184B2de | — |
| entity.name.operator | #9DD80Ade | — |
| entity.name.operator.custom-literal | #DBA6F8de | — |
| entity.name.scope-resolution | #0EE41Ede | — |
| entity.name.tag | #9CD905de | — |
| entity.name.tag.css | #FEABCFde | — |
| entity.name.type | #11DBDBde | — |
| entity.name.variable | #9ED810de | — |
| entity.other.attribute | #FEB790de | — |
| entity.other.attribute-name | #10E61Fde | — |
| entity.other.attribute-name.class.css | #0EE41Ede | — |
| entity.other.attribute-name.class.mixin.css | #10DCDCde | — |
| entity.other.attribute-name.id | #ED9F74de | — |
| entity.other.attribute-name.id.css | #A6B1F8de | — |
| entity.other.attribute-name.parent-selector.css | #10DCDCde | — |
| entity.other.attribute-name.pseudo-class.css | #D497F5de | — |
| entity.other.attribute-name.pseudo-element.css | #F184B2de | — |
| entity.other.attribute-name.scss | #94A2F3de | — |
| entity.other.document.begin.yaml | #CBCB726e | — |
| entity.other.inherited-class | #10E51Dde | — |
| header | #11DCDCde | — |
| invalid | #0EE41Ede | — |
| keyword | #11DBDBde | — |
| keyword.codetag.notation.python | #E3B5FEde | — |
| keyword.control | #0EE41Ede | — |
| keyword.control.anchor.regexp | #D497F5de | — |
| keyword.control.import.python | #0EE41Ede | — |
| keyword.operator | #F5B997de | — |
| keyword.operator.alignas | #10E51Dde | — |
| keyword.operator.alignof | #CD8EF0de | — |
| keyword.operator.cast | #11DCDCde | — |
| keyword.operator.delete | #10E620de | — |
| keyword.operator.documentation.powershell | #CBCB766e | — |
| keyword.operator.expression | #97A4F5de | — |
| keyword.operator.instanceof | #95A2F2de | — |
| keyword.operator.logical.python | #0EE51Fde | — |
| keyword.operator.minus.exponent | #9FD812de | — |
| keyword.operator.negation.regexp | #CD8EF1de | — |
| keyword.operator.new | #9ED711de | — |
| keyword.operator.noexcept | #95A2F4de | — |
| keyword.operator.or.regexp | #11DCDCde | — |
| keyword.operator.plus.exponent | #F5B997de | — |
| keyword.operator.quantifier.regexp | #D090F4de | — |
| keyword.operator.sizeof | #11DBDBde | — |
| keyword.operator.typeid | #9ED90Ede | — |
| keyword.operator.wordlike | #E3B5FEde | — |
| keyword.other.operator | #FEB0D1de | — |
| keyword.other.package.java | #E3B5FEde | — |
| keyword.other.unit | #D090F4de | — |
| keyword.other.using | #ED88B3de | — |
| markup.bold | #97A4F5de | — |
| markup.changed | #9EABF7de | — |
| markup.deleted | #CC8EEFde | — |
| markup.fenced_code.block.markdown | #9ED90Cde | — |
| markup.heading | #9CD905de | — |
| markup.inline.raw | #B4BFFEde | — |
| markup.inserted | #EE87B3de | — |
| markup.italic | #FEAFD1de | — |
| markup.raw.block.markdown | #CD8EF0de | — |
| markup.strikethrough | #0AE61Ade | — |
| markup.underline | #ED9F74de | — |
| meta.block.c | #A0D811de | — |
| meta.block.c | #F9ADCEde | — |
| meta.class.java | #EF86B3de | — |
| meta.definition.variable.name | #0EDCDCde | — |
| meta.diff.header | #9DD710de | — |
| meta.embedded | #A0D811de | — |
| meta.embedded.assembly | #F5B997de | — |
| meta.function-call.arguments.python | #FEAFD1de | — |
| meta.function-call.python | #FEAFD1de | — |
| meta.member.access.python | #CD8DF2de | — |
| meta.method.java | #D497F5de | — |
| meta.object-literal.key | #FEABCFde | — |
| meta.paragraph.markdown | #9FD811de | — |
| meta.preprocessor | #0ADDDDde | — |
| meta.preprocessor.numeric | #9ED90Dde | — |
| meta.preprocessor.string | #A0D811de | — |
| meta.scope.prerequisites.makefile | #F184B2de | — |
| meta.structure.dictionary.json.comments | #CBCB7B6e | — |
| meta.structure.dictionary.key.python | #10E51Fde | — |
| meta.structure.dictionary.value.json.comments | #CBCB726e | — |
| meta.template.expression | #E4B4FEde | — |
| meta.type.cast.expr | #9ED711de | — |
| meta.type.new.expr | #BAC3FEde | — |
| parameter | #FEABCFde | — |
| punctuation.character.set.begin.regexp | #0DE51Fde | — |
| punctuation.character.set.end.regexp | #0EE51Fde | — |
| punctuation.definition.array.begin.json | #0CDBDBde | — |
| punctuation.definition.character-class.regexp | #9ED711de | — |
| punctuation.definition.comment | #CBCB7C6e | — |
| punctuation.definition.comment.json.comments | #CBCB7B6e | — |
| punctuation.definition.comment.python | #CBCB7B6e | — |
| punctuation.definition.dictionary.begin.json | #FEB791de | — |
| punctuation.definition.dictionary.end.json | #ED9F74de | — |
| punctuation.definition.group.assertion.regexp | #F289B6de | — |
| punctuation.definition.group.regexp | #DBA6F8de | — |
| punctuation.definition.list.begin.json | #0CE61Ade | — |
| punctuation.definition.list.begin.markdown | #10E51Fde | — |
| punctuation.definition.list.begin.python | #95A2F2de | — |
| punctuation.definition.list.end.json | #F8A6C9de | — |
| punctuation.definition.list.end.markdown | #95A2F3de | — |
| punctuation.definition.list.end.python | #10E51Fde | — |
| punctuation.definition.parameters.begin.python | #0FDBDBde | — |
| punctuation.definition.parameters.end.bracket.round.java | #F5B997de | — |
| punctuation.definition.quote.begin.markdown | #FEB791de | — |
| punctuation.definition.tag | #10DBDBde | — |
| punctuation.definition.template-expression.begin | #F085B3de | — |
| punctuation.definition.template-expression.end | #ED88B3de | — |
| punctuation.section.class.begin.bracket.curly.java | #11DCDCde | — |
| punctuation.section.embedded | #9FD812de | — |
| punctuation.section.embedded.begin.php | #FDB790de | — |
| punctuation.section.embedded.end.php | #F289B6de | — |
| punctuation.terminator.java | #9DD80Ede | — |
| source.cmake | #F597BFde | — |
| source.coffee.embedded | #10E620de | — |
| source.cpp | #EF86B3de | — |
| source.css.less | #9DD80Ede | — |
| source.groovy.embedded | #9ED90Cde | — |
| source.java | #9ED90Fde | — |
| source.java-properties | #9ED711de | — |
| source.json.comments | #CBCB726e | — |
| source.makefile | #FEB0D1de | — |
| source.powershell | #9ED90Cde | — |
| source.powershell.variable.other.member | #CD8EF0de | — |
| source.python | #B5BFFAde | — |
| storage | #FEB791de | — |
| storage.modifier | #9EABF7de | — |
| storage.modifier.import.java | #F184B2de | — |
| storage.modifier.package.java | #CE8DF2de | — |
| storage.type | #9ED810de | — |
| storage.type.annotation.groovy | #F289B6de | — |
| storage.type.annotation.java | #A6B1F8de | — |
| storage.type.boolean.go | #B4BFFEde | — |
| storage.type.byte.go | #FEB0D1de | — |
| storage.type.cs | #0DE51Fde | — |
| storage.type.error.go | #D497F5de | — |
| storage.type.generic.cs | #10E620de | — |
| storage.type.generic.groovy | #E3B5FEde | — |
| storage.type.generic.java | #FEB790de | — |
| storage.type.groovy | #D79EF7de | — |
| storage.type.java | #E4B5FEde | — |
| storage.type.modifier.cs | #10E620de | — |
| storage.type.numeric.go | #E1B5FAde | — |
| storage.type.object.array.groovy | #E4B4FEde | — |
| storage.type.object.array.java | #10E51Dde | — |
| storage.type.parameters.groovy | #0EE51Fde | — |
| storage.type.primitive.array.groovy | #EB9A6Dde | — |
| storage.type.primitive.array.java | #0FE61Fde | — |
| storage.type.primitive.groovy | #11DCDCde | — |
| storage.type.primitive.java | #EF86B3de | — |
| storage.type.rune.go | #0EDBDBde | — |
| storage.type.string.go | #9ED90Ede | — |
| storage.type.token.java | #11DBDBde | — |
| storage.type.uintptr.go | #F184B2de | — |
| storage.type.variable.cs | #EB9A6Dde | — |
| string | #FEB790de | — |
| string.quoted.docstring.multi.python | #CBCB766e | — |
| string.regexp | #FEB790de | — |
| string.tag | #11DCDCde | — |
| string.value | #D090F4de | — |
| strong | #EC87B3de | — |
| support.class | #94A2F3de | — |
| support.constant.color | #9DD80Ede | — |
| support.constant.dom | #F490BBde | — |
| support.constant.font-name | #9ED810de | — |
| support.constant.handlebars | #FDB68Ede | — |
| support.constant.json | #9DD80Ede | — |
| support.constant.math | #FEB0D1de | — |
| support.constant.media | #0EDCDCde | — |
| support.constant.media-type | #E1B5FAde | — |
| support.constant.property-value | #10E61Fde | — |
| support.function | #A0D811de | — |
| support.function.git-rebase | #E99567de | — |
| support.other.parenthesis.regexp | #F597BFde | — |
| support.type | #D090F4de | — |
| support.type.property-name | #11DBDBde | — |
| support.type.vendored.property-name | #ED88B3de | — |
| support.variable | #FDB78Fde | — |
| token.debug-token | #F4B390de | — |
| token.error-token | #FEB0D1de | — |
| token.info-token | #CD8EF1de | — |
| token.warn-token | #10E51Dde | — |
| variable | #10DCDCde | — |
| variable.css | #BAC3FEde | — |
| variable.language | #0ADDDDde | — |
| variable.language.wildcard.java | #EFA47Bde | — |
| variable.other.constant | #FDB78Fde | — |
| variable.other.definition.java | #D79EF7de | — |
| variable.other.enummember | #CC8FEEde | — |
| variable.other.less | #F2AE89de | — |
| variable.other.object.java | #D090F4de | — |
| variable.other.object.property.java | #11DCDCde | — |
| variable.parameter.c | #F79EC4de | — |
| variable.parameter.function.language.python | #11DCDCde | — |
| variable.parameter.java | #E3B5FEde | — |
| variable.scss | #0DE51Fde | — |
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}!`;
}