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 | #C9C9716e | — |
| comment.block.html | #C9C97B6e | — |
| comment.block.java | #C9C9726e | — |
| comment.block.javadoc.java | #C9C9726e | — |
| comment.block.powershell | #C9C9726e | — |
| comment.block.xml | #C9C9726e | — |
| comment.line.double-slash.c | #C9C9726e | — |
| comment.line.double-slash.cpp | #C9C9756e | — |
| comment.line.double-slash.java | #C9C9726e | — |
| comment.line.double-slash.js | #C9C9756e | — |
| comment.line.number-sign.makefile | #C9C9716e | — |
| comment.line.number-sign.python | #C9C9756e | — |
| comment.line.number-sign.yaml | #C9C9726e | — |
| comment.line.percentage.erlang | #C9C9726e | — |
| comment.line.powershell | #C9C97B6e | — |
| comment.source.cmake | #C9C97B6e | — |
| comment.source.cmakecache | #C9C9756e | — |
| constant.character | #C0CC0Fde | — |
| constant.character.character-class.regexp | #EF81C3de | — |
| constant.character.escape | #81A5EDde | — |
| constant.character.set.regexp | #BE91F2de | — |
| constant.language | #C0CD13de | — |
| constant.numeric | #FEABDDde | — |
| constant.numeric.dec.python | #BF92F1de | — |
| constant.other.caps.python | #0FDFA6de | — |
| constant.other.character-class.regexp | #C1CE0Cde | — |
| constant.other.character-class.set.regexp | #BBCC05de | — |
| constant.other.color.rgb-value | #C1CE13de | — |
| constant.other.placeholder | #BECD07de | — |
| constant.other.rgb-value | #11DEA7de | — |
| constant.regexp | #F598D0de | — |
| constant.sha.git-rebase | #10DEA9de | — |
| emphasis | #F5AB98de | — |
| entity.name.class | #91B2F4de | — |
| entity.name.function | #BF91F4de | — |
| entity.name.function.preprocessor | #BECD07de | — |
| entity.name.function.python | #FEB19Dde | — |
| entity.name.label | #ED8E76de | — |
| entity.name.namespace | #C0CE11de | — |
| entity.name.operator | #ED81C2de | — |
| entity.name.operator.custom-literal | #F29F8Ade | — |
| entity.name.scope-resolution | #1FE310de | — |
| entity.name.tag | #1BE30Ede | — |
| entity.name.tag.css | #FEB19Ede | — |
| entity.name.type | #1DE30Ede | — |
| entity.name.variable | #FEB29Fde | — |
| entity.other.attribute | #BF91F2de | — |
| entity.other.attribute-name | #1FE211de | — |
| entity.other.attribute-name.class.css | #BD92EFde | — |
| entity.other.attribute-name.class.mixin.css | #C0CE11de | — |
| entity.other.attribute-name.id | #1EE311de | — |
| entity.other.attribute-name.id.css | #11DEA7de | — |
| entity.other.attribute-name.parent-selector.css | #81A5EDde | — |
| entity.other.attribute-name.pseudo-class.css | #F29F8Ade | — |
| entity.other.attribute-name.pseudo-element.css | #FEB19Ede | — |
| entity.other.attribute-name.scss | #BF92F1de | — |
| entity.other.document.begin.yaml | #C9C9756e | — |
| entity.other.inherited-class | #F28AC9de | — |
| header | #81A5EDde | — |
| invalid | #C1CE13de | — |
| keyword | #F7B19Fde | — |
| keyword.codetag.notation.python | #F28AC9de | — |
| keyword.control | #FEB19Dde | — |
| keyword.control.anchor.regexp | #1FE211de | — |
| keyword.control.import.python | #C1CE13de | — |
| keyword.operator | #EA8D76de | — |
| keyword.operator.alignas | #FEABDDde | — |
| keyword.operator.alignof | #F183C5de | — |
| keyword.operator.cast | #CDA7F8de | — |
| keyword.operator.delete | #C89FF7de | — |
| keyword.operator.documentation.powershell | #C9C9756e | — |
| keyword.operator.expression | #0DDFA7de | — |
| keyword.operator.instanceof | #9FBDF7de | — |
| keyword.operator.logical.python | #8AADF2de | — |
| keyword.operator.minus.exponent | #ED8E76de | — |
| keyword.operator.negation.regexp | #83A8F1de | — |
| keyword.operator.new | #C1CD12de | — |
| keyword.operator.noexcept | #C1CE13de | — |
| keyword.operator.or.regexp | #FEABDDde | — |
| keyword.operator.plus.exponent | #1DE30Ede | — |
| keyword.operator.quantifier.regexp | #82A5ECde | — |
| keyword.operator.sizeof | #A8C5FEde | — |
| keyword.operator.typeid | #11DEA7de | — |
| keyword.operator.wordlike | #EF81C3de | — |
| keyword.other.operator | #83A8F1de | — |
| keyword.other.package.java | #C1CD11de | — |
| keyword.other.unit | #BD92EEde | — |
| keyword.other.using | #0EDFA6de | — |
| markup.bold | #EE80C2de | — |
| markup.changed | #9FBDF7de | — |
| markup.deleted | #C1CE0Ede | — |
| markup.fenced_code.block.markdown | #BD92EEde | — |
| markup.heading | #08DFA5de | — |
| markup.inline.raw | #82A5ECde | — |
| markup.inserted | #0FDFA6de | — |
| markup.italic | #11DFA7de | — |
| markup.raw.block.markdown | #BBCC05de | — |
| markup.strikethrough | #EA8D76de | — |
| markup.underline | #0CDEA7de | — |
| meta.block.c | #82A5ECde | — |
| meta.block.c | #C2CD0Dde | — |
| meta.class.java | #1FE211de | — |
| meta.definition.variable.name | #8AADF2de | — |
| meta.diff.header | #1CE30Ede | — |
| meta.embedded | #1DE30Ede | — |
| meta.embedded.assembly | #C2CE0Fde | — |
| meta.function-call.arguments.python | #D8B6FEde | — |
| meta.function-call.python | #1DE30Ede | — |
| meta.member.access.python | #C2CD0Dde | — |
| meta.method.java | #D7B4FEde | — |
| meta.object-literal.key | #EF937Cde | — |
| meta.paragraph.markdown | #82A5ECde | — |
| meta.preprocessor | #0BDDA4de | — |
| meta.preprocessor.numeric | #08DFA5de | — |
| meta.preprocessor.string | #EA8D76de | — |
| meta.scope.prerequisites.makefile | #BFCD11de | — |
| meta.structure.dictionary.json.comments | #C9C9716e | — |
| meta.structure.dictionary.key.python | #FEABDDde | — |
| meta.structure.dictionary.value.json.comments | #C9C9726e | — |
| meta.template.expression | #A3C2FEde | — |
| meta.type.cast.expr | #F5AB98de | — |
| meta.type.new.expr | #C1CD12de | — |
| parameter | #0FDFA6de | — |
| punctuation.character.set.begin.regexp | #FEB19Dde | — |
| punctuation.character.set.end.regexp | #82A5EEde | — |
| punctuation.definition.array.begin.json | #0DDFA7de | — |
| punctuation.definition.character-class.regexp | #D1AEF9de | — |
| punctuation.definition.comment | #C9C9726e | — |
| punctuation.definition.comment.json.comments | #C9C9716e | — |
| punctuation.definition.comment.python | #C9C9726e | — |
| punctuation.definition.dictionary.begin.json | #A7C5FEde | — |
| punctuation.definition.dictionary.end.json | #F491CCde | — |
| punctuation.definition.group.assertion.regexp | #A9C5FEde | — |
| punctuation.definition.group.regexp | #0FDFA6de | — |
| punctuation.definition.list.begin.json | #C1CD12de | — |
| punctuation.definition.list.begin.markdown | #11DDA8de | — |
| punctuation.definition.list.begin.python | #BECD07de | — |
| punctuation.definition.list.end.json | #F19983de | — |
| punctuation.definition.list.end.markdown | #FEB29Fde | — |
| punctuation.definition.list.end.python | #11DDA8de | — |
| punctuation.definition.parameters.begin.python | #10DEA9de | — |
| punctuation.definition.parameters.end.bracket.round.java | #BD92EFde | — |
| punctuation.definition.quote.begin.markdown | #EF937Cde | — |
| punctuation.definition.tag | #81A5EDde | — |
| punctuation.definition.template-expression.begin | #11DEA7de | — |
| punctuation.definition.template-expression.end | #81A5EDde | — |
| punctuation.section.class.begin.bracket.curly.java | #F19983de | — |
| punctuation.section.embedded | #98B7F5de | — |
| punctuation.section.embedded.begin.php | #F5AB98de | — |
| punctuation.section.embedded.end.php | #1EE310de | — |
| punctuation.terminator.java | #82A5ECde | — |
| source.cmake | #C0CD13de | — |
| source.coffee.embedded | #1EE311de | — |
| source.cpp | #1FE211de | — |
| source.css.less | #F598D0de | — |
| source.groovy.embedded | #C1CE0Cde | — |
| source.java | #A8C5FEde | — |
| source.java-properties | #ED81C2de | — |
| source.json.comments | #C9C97B6e | — |
| source.makefile | #0DDFA7de | — |
| source.powershell | #C0CC0Fde | — |
| source.powershell.variable.other.member | #1FE211de | — |
| source.python | #C89FF7de | — |
| storage | #82A5EEde | — |
| storage.modifier | #F9AEDBde | — |
| storage.modifier.import.java | #C498F5de | — |
| storage.modifier.package.java | #C0CC0Fde | — |
| storage.type | #F19983de | — |
| storage.type.annotation.groovy | #C89FF7de | — |
| storage.type.annotation.java | #8AADF2de | — |
| storage.type.boolean.go | #9FBDF7de | — |
| storage.type.byte.go | #BBCC05de | — |
| storage.type.cs | #EE80C2de | — |
| storage.type.error.go | #F9AEDBde | — |
| storage.type.generic.cs | #ED81C2de | — |
| storage.type.generic.groovy | #1EE311de | — |
| storage.type.generic.java | #EF937Cde | — |
| storage.type.groovy | #F491CCde | — |
| storage.type.java | #FEB19Dde | — |
| storage.type.modifier.cs | #F29F8Ade | — |
| storage.type.numeric.go | #CDA7F8de | — |
| storage.type.object.array.groovy | #C1CE13de | — |
| storage.type.object.array.java | #0DDFA7de | — |
| storage.type.parameters.groovy | #BE92F0de | — |
| storage.type.primitive.array.groovy | #11DDA8de | — |
| storage.type.primitive.array.java | #ED8E76de | — |
| storage.type.primitive.groovy | #ED81C2de | — |
| storage.type.primitive.java | #11DFA7de | — |
| storage.type.rune.go | #BBCC05de | — |
| storage.type.string.go | #81A5EDde | — |
| storage.type.token.java | #1FE310de | — |
| storage.type.uintptr.go | #F491CCde | — |
| storage.type.variable.cs | #BECD07de | — |
| string | #C1CE0Cde | — |
| string.quoted.docstring.multi.python | #C9C97B6e | — |
| string.regexp | #FEAF9Bde | — |
| string.tag | #D7B4FEde | — |
| string.value | #F598D0de | — |
| strong | #D7B4FEde | — |
| support.class | #C0CD12de | — |
| support.constant.color | #C0CE11de | — |
| support.constant.dom | #EF937Cde | — |
| support.constant.font-name | #9FBDF7de | — |
| support.constant.handlebars | #D6B6FAde | — |
| support.constant.json | #1FE310de | — |
| support.constant.math | #F28AC9de | — |
| support.constant.media | #1FE310de | — |
| support.constant.media-type | #0BDDA4de | — |
| support.constant.property-value | #C0CD13de | — |
| support.function | #1FE211de | — |
| support.function.git-rebase | #C2CE13de | — |
| support.other.parenthesis.regexp | #FEAF9Bde | — |
| support.type | #0CDEA7de | — |
| support.type.property-name | #CDA7F8de | — |
| support.type.vendored.property-name | #0EDFA7de | — |
| support.variable | #FEA9DCde | — |
| token.debug-token | #F7B19Fde | — |
| token.error-token | #82A5ECde | — |
| token.info-token | #F5AB98de | — |
| token.warn-token | #C1CE0Ede | — |
| variable | #F183C5de | — |
| variable.css | #1EE311de | — |
| variable.language | #BECD07de | — |
| variable.language.wildcard.java | #FEABDDde | — |
| variable.other.constant | #11DEA7de | — |
| variable.other.definition.java | #A7C2F8de | — |
| variable.other.enummember | #1AE20Cde | — |
| variable.other.less | #FEB29Fde | — |
| variable.other.object.java | #BFCD11de | — |
| variable.other.object.property.java | #0DDFA7de | — |
| variable.parameter.c | #F8A7D7de | — |
| variable.parameter.function.language.python | #82A5ECde | — |
| variable.parameter.java | #EF81C3de | — |
| variable.scss | #1CE30Ede | — |
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}!`;
}