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 | #7CD3D36e | — |
| comment.block.html | #81D3D36e | — |
| comment.block.java | #81D3D36e | — |
| comment.block.javadoc.java | #81D3D36e | — |
| comment.block.powershell | #78D4D46e | — |
| comment.block.xml | #78D4D46e | — |
| comment.line.double-slash.c | #81D3D36e | — |
| comment.line.double-slash.cpp | #81D3D36e | — |
| comment.line.double-slash.java | #78D4D46e | — |
| comment.line.double-slash.js | #81D3D36e | — |
| comment.line.number-sign.makefile | #82D3D36e | — |
| comment.line.number-sign.python | #7CD3D36e | — |
| comment.line.number-sign.yaml | #82D3D36e | — |
| comment.line.percentage.erlang | #81D3D36e | — |
| comment.line.powershell | #7CD3D36e | — |
| comment.source.cmake | #7CD3D36e | — |
| comment.source.cmakecache | #81D3D36e | — |
| constant.character | #0FE0A8de | — |
| constant.character.character-class.regexp | #F387D6de | — |
| constant.character.escape | #0EE0A8de | — |
| constant.character.set.regexp | #F8A5E2de | — |
| constant.language | #2AE30Bde | — |
| constant.numeric | #0FDFA7de | — |
| constant.numeric.dec.python | #F79DDFde | — |
| constant.other.caps.python | #9DC7F7de | — |
| constant.other.character-class.regexp | #C19DF7de | — |
| constant.other.character-class.set.regexp | #CBCB10de | — |
| constant.other.color.rgb-value | #29E40Ede | — |
| constant.other.placeholder | #0EDFA7de | — |
| constant.other.rgb-value | #F28881de | — |
| constant.regexp | #2CE30Fde | — |
| constant.sha.git-rebase | #25E40Ade | — |
| emphasis | #CBCB08de | — |
| entity.name.class | #BC96F6de | — |
| entity.name.function | #FEB0AAde | — |
| entity.name.function.preprocessor | #CBACFAde | — |
| entity.name.function.python | #CBCB0Fde | — |
| entity.name.label | #EF80D1de | — |
| entity.name.namespace | #2CE30Fde | — |
| entity.name.operator | #F28881de | — |
| entity.name.operator.custom-literal | #CCCC07de | — |
| entity.name.scope-resolution | #0EDFA8de | — |
| entity.name.tag | #F58ED9de | — |
| entity.name.tag.css | #FEAAE9de | — |
| entity.name.type | #CBCB0Cde | — |
| entity.name.variable | #CBCB10de | — |
| entity.other.attribute | #CBCB0Ade | — |
| entity.other.attribute-name | #F8A5E2de | — |
| entity.other.attribute-name.class.css | #9BC9FEde | — |
| entity.other.attribute-name.class.mixin.css | #27E40Cde | — |
| entity.other.attribute-name.id | #0BDFA6de | — |
| entity.other.attribute-name.id.css | #F07ED1de | — |
| entity.other.attribute-name.parent-selector.css | #F69C96de | — |
| entity.other.attribute-name.pseudo-class.css | #0EDFA8de | — |
| entity.other.attribute-name.pseudo-element.css | #10DFA7de | — |
| entity.other.attribute-name.scss | #BA94F4de | — |
| entity.other.document.begin.yaml | #7CD3D36e | — |
| entity.other.inherited-class | #2BE40Ede | — |
| header | #F18982de | — |
| invalid | #FEB2ADde | — |
| keyword | #CBCB0Cde | — |
| keyword.codetag.notation.python | #CBCB0Cde | — |
| keyword.control | #CBCB0Cde | — |
| keyword.control.anchor.regexp | #CCCC10de | — |
| keyword.control.import.python | #EE82D0de | — |
| keyword.operator | #28E40Dde | — |
| keyword.operator.alignas | #CBACFAde | — |
| keyword.operator.alignof | #F38E87de | — |
| keyword.operator.cast | #70AAECde | — |
| keyword.operator.delete | #F7A39Dde | — |
| keyword.operator.documentation.powershell | #7CD3D36e | — |
| keyword.operator.expression | #F8AAA5de | — |
| keyword.operator.instanceof | #D1B3FEde | — |
| keyword.operator.logical.python | #2AE30Ede | — |
| keyword.operator.minus.exponent | #10DFA7de | — |
| keyword.operator.negation.regexp | #CCCC10de | — |
| keyword.operator.new | #2BE40Ede | — |
| keyword.operator.noexcept | #D5BAFEde | — |
| keyword.operator.or.regexp | #FAB1ACde | — |
| keyword.operator.plus.exponent | #F07ED1de | — |
| keyword.operator.quantifier.regexp | #2BE40Fde | — |
| keyword.operator.sizeof | #0EE0A8de | — |
| keyword.operator.typeid | #F387D6de | — |
| keyword.operator.wordlike | #CCCC10de | — |
| keyword.other.operator | #CBCB0Cde | — |
| keyword.other.package.java | #72ACEEde | — |
| keyword.other.unit | #CCCC0Bde | — |
| keyword.other.using | #CBCB0Fde | — |
| markup.bold | #2BE410de | — |
| markup.changed | #CCCC07de | — |
| markup.deleted | #F5958Ede | — |
| markup.fenced_code.block.markdown | #0ADFA6de | — |
| markup.heading | #FEB2ADde | — |
| markup.inline.raw | #CBCB0Fde | — |
| markup.inserted | #F8AAA5de | — |
| markup.italic | #96C3F6de | — |
| markup.raw.block.markdown | #28E40Dde | — |
| markup.strikethrough | #27E40Cde | — |
| markup.underline | #FEAAE9de | — |
| meta.block.c | #27E40Cde | — |
| meta.block.c | #F08A84de | — |
| meta.class.java | #2AE30Bde | — |
| meta.definition.variable.name | #96C3F6de | — |
| meta.diff.header | #CCCC10de | — |
| meta.embedded | #F08B84de | — |
| meta.embedded.assembly | #CCCC10de | — |
| meta.function-call.arguments.python | #2BE40Fde | — |
| meta.function-call.python | #10DFA7de | — |
| meta.member.access.python | #CCCC10de | — |
| meta.method.java | #2BE40Fde | — |
| meta.object-literal.key | #FEB2ADde | — |
| meta.paragraph.markdown | #F696DCde | — |
| meta.preprocessor | #0EE0A8de | — |
| meta.preprocessor.numeric | #CCCC11de | — |
| meta.preprocessor.string | #CCCC10de | — |
| meta.scope.prerequisites.makefile | #CBCB0Ade | — |
| meta.structure.dictionary.json.comments | #7CD3D36e | — |
| meta.structure.dictionary.key.python | #F5958Ede | — |
| meta.structure.dictionary.value.json.comments | #7CD3D36e | — |
| meta.template.expression | #96C3F6de | — |
| meta.type.cast.expr | #96C3F6de | — |
| meta.type.new.expr | #28E40Dde | — |
| parameter | #0ADFA6de | — |
| punctuation.character.set.begin.regexp | #72ACEEde | — |
| punctuation.character.set.end.regexp | #F69C96de | — |
| punctuation.definition.array.begin.json | #D5BAFEde | — |
| punctuation.definition.character-class.regexp | #29E40Ede | — |
| punctuation.definition.comment | #78D4D46e | — |
| punctuation.definition.comment.json.comments | #82D3D36e | — |
| punctuation.definition.comment.python | #78D4D46e | — |
| punctuation.definition.dictionary.begin.json | #CBCB11de | — |
| punctuation.definition.dictionary.end.json | #FEB2ADde | — |
| punctuation.definition.group.assertion.regexp | #F8A5E2de | — |
| punctuation.definition.group.regexp | #0DE0AAde | — |
| punctuation.definition.list.begin.json | #FEB3AEde | — |
| punctuation.definition.list.begin.markdown | #EF8B84de | — |
| punctuation.definition.list.begin.python | #9CC9FEde | — |
| punctuation.definition.list.end.json | #0FDFA8de | — |
| punctuation.definition.list.end.markdown | #F8AAA5de | — |
| punctuation.definition.list.end.python | #F696DCde | — |
| punctuation.definition.parameters.begin.python | #9DC7F7de | — |
| punctuation.definition.parameters.end.bracket.round.java | #0FDFA7de | — |
| punctuation.definition.quote.begin.markdown | #0EE0A7de | — |
| punctuation.definition.tag | #F69C96de | — |
| punctuation.definition.template-expression.begin | #F08A84de | — |
| punctuation.definition.template-expression.end | #FEB2ADde | — |
| punctuation.section.class.begin.bracket.curly.java | #2CE30Fde | — |
| punctuation.section.embedded | #9BC9FEde | — |
| punctuation.section.embedded.begin.php | #0FE0A7de | — |
| punctuation.section.embedded.end.php | #0FE0A7de | — |
| punctuation.terminator.java | #BB94F5de | — |
| source.cmake | #FEB0AAde | — |
| source.coffee.embedded | #FAACE5de | — |
| source.cpp | #F696DCde | — |
| source.css.less | #2AE40Ede | — |
| source.groovy.embedded | #9DC7F7de | — |
| source.java | #28E40Dde | — |
| source.java-properties | #0DE0AAde | — |
| source.json.comments | #7CD3D36e | — |
| source.makefile | #CCCC10de | — |
| source.powershell | #9CC9FEde | — |
| source.powershell.variable.other.member | #CBCB0Ade | — |
| source.python | #F7A39Dde | — |
| storage | #0FDFA8de | — |
| storage.modifier | #87B9F3de | — |
| storage.modifier.import.java | #79B0F0de | — |
| storage.modifier.package.java | #F69C96de | — |
| storage.type | #70AAECde | — |
| storage.type.annotation.groovy | #F08A84de | — |
| storage.type.annotation.java | #0EDFA8de | — |
| storage.type.boolean.go | #CBCB0Fde | — |
| storage.type.byte.go | #F387D6de | — |
| storage.type.cs | #CBCB08de | — |
| storage.type.error.go | #F58ED9de | — |
| storage.type.generic.cs | #F28881de | — |
| storage.type.generic.groovy | #EF7FD1de | — |
| storage.type.generic.java | #D5BAFEde | — |
| storage.type.groovy | #BA95F3de | — |
| storage.type.java | #72ACEEde | — |
| storage.type.modifier.cs | #F696DCde | — |
| storage.type.numeric.go | #0EDFA8de | — |
| storage.type.object.array.groovy | #29E40Ede | — |
| storage.type.object.array.java | #2AE40Ede | — |
| storage.type.parameters.groovy | #EE81D1de | — |
| storage.type.primitive.array.groovy | #F38E87de | — |
| storage.type.primitive.array.java | #FEB2ADde | — |
| storage.type.primitive.groovy | #28E40Dde | — |
| storage.type.primitive.java | #BA95F2de | — |
| storage.type.rune.go | #0CE0A7de | — |
| storage.type.string.go | #CBCB11de | — |
| storage.type.token.java | #BA94F4de | — |
| storage.type.uintptr.go | #0FDFA8de | — |
| storage.type.variable.cs | #F18982de | — |
| string | #2BE40Fde | — |
| string.quoted.docstring.multi.python | #7CD3D36e | — |
| string.regexp | #79B0F0de | — |
| string.tag | #9CCAFEde | — |
| string.value | #BA95F2de | — |
| strong | #0FDFA8de | — |
| support.class | #BA95F2de | — |
| support.constant.color | #BA95F2de | — |
| support.constant.dom | #10E0A8de | — |
| support.constant.font-name | #CCCC0Dde | — |
| support.constant.handlebars | #2BE30Fde | — |
| support.constant.json | #BA94F4de | — |
| support.constant.math | #F280D3de | — |
| support.constant.media | #F07ED1de | — |
| support.constant.media-type | #0EDFA8de | — |
| support.constant.property-value | #2BE40Fde | — |
| support.function | #0CE0A7de | — |
| support.function.git-rebase | #80B5F2de | — |
| support.other.parenthesis.regexp | #2BE30Fde | — |
| support.type | #C6A5F8de | — |
| support.type.property-name | #0BDFA6de | — |
| support.type.vendored.property-name | #BA95F2de | — |
| support.variable | #D0B4FAde | — |
| token.debug-token | #BB94F5de | — |
| token.error-token | #9DC7F7de | — |
| token.info-token | #BC96F6de | — |
| token.warn-token | #FEAAE9de | — |
| variable | #96C3F6de | — |
| variable.css | #0CE0A7de | — |
| variable.language | #F38E87de | — |
| variable.language.wildcard.java | #87B9F3de | — |
| variable.other.constant | #FEB2ADde | — |
| variable.other.definition.java | #CCCC10de | — |
| variable.other.enummember | #BA94F4de | — |
| variable.other.less | #9CC9FEde | — |
| variable.other.object.java | #0DE0AAde | — |
| variable.other.object.property.java | #80B5F2de | — |
| variable.parameter.c | #23E508de | — |
| variable.parameter.function.language.python | #CBCB08de | — |
| variable.parameter.java | #23E508de | — |
| variable.scss | #BA94F4de | — |
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}!`;
}