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 | #CBCB6F6e | — |
| comment.block.html | #CBCB716e | — |
| comment.block.java | #CBCB766e | — |
| comment.block.javadoc.java | #CBCB766e | — |
| comment.block.powershell | #CBCB766e | — |
| comment.block.xml | #CACA786e | — |
| comment.line.double-slash.c | #CBCB766e | — |
| comment.line.double-slash.cpp | #CBCB766e | — |
| comment.line.double-slash.java | #CBCB6F6e | — |
| comment.line.double-slash.js | #CACA786e | — |
| comment.line.number-sign.makefile | #CBCB766e | — |
| comment.line.number-sign.python | #CACA786e | — |
| comment.line.number-sign.yaml | #CBCB6F6e | — |
| comment.line.percentage.erlang | #CBCB716e | — |
| comment.line.powershell | #CBCB716e | — |
| comment.source.cmake | #CBCB766e | — |
| comment.source.cmakecache | #CBCB716e | — |
| constant.character | #F7B7A8de | — |
| constant.character.character-class.regexp | #C6C6C6de | — |
| constant.character.escape | #EF86BFde | — |
| constant.character.set.regexp | #C6C6C6de | — |
| constant.language | #C592EFde | — |
| constant.numeric | #11DFB8de | — |
| constant.numeric.dec.python | #E9907Bde | — |
| constant.other.caps.python | #10DFBAde | — |
| constant.other.character-class.regexp | #8CA6ECde | — |
| constant.other.character-class.set.regexp | #B1D315de | — |
| constant.other.color.rgb-value | #12DFBBde | — |
| constant.other.placeholder | #C6C6C6de | — |
| constant.other.rgb-value | #ED9480de | — |
| constant.regexp | #FEAFDAde | — |
| constant.sha.git-rebase | #AFC4FEde | — |
| emphasis | #C592EFde | — |
| entity.name.class | #B1C6FEde | — |
| entity.name.function | #0CE0B9de | — |
| entity.name.function.preprocessor | #CFA1F6de | — |
| entity.name.function.python | #B0D312de | — |
| entity.name.label | #C794F2de | — |
| entity.name.namespace | #AFD211de | — |
| entity.name.operator | #94ADF2de | — |
| entity.name.operator.custom-literal | #A7A7A7de | — |
| entity.name.scope-resolution | #C4C4C4de | — |
| entity.name.tag | #EA87BDde | — |
| entity.name.tag.css | #A8BEF7de | — |
| entity.name.type | #A9A9A9de | — |
| entity.name.variable | #B2D415de | — |
| entity.other.attribute | #F2A594de | — |
| entity.other.attribute-name | #8CA6ECde | — |
| entity.other.attribute-name.class.css | #F8B0D7de | — |
| entity.other.attribute-name.class.mixin.css | #CB9AF4de | — |
| entity.other.attribute-name.id | #A7A7A7de | — |
| entity.other.attribute-name.id.css | #EA8F7Ade | — |
| entity.other.attribute-name.parent-selector.css | #F2A594de | — |
| entity.other.attribute-name.pseudo-class.css | #ACC3FEde | — |
| entity.other.attribute-name.pseudo-element.css | #B1C6FEde | — |
| entity.other.attribute-name.scss | #10DEB9de | — |
| entity.other.document.begin.yaml | #CBCB716e | — |
| entity.other.inherited-class | #C591F1de | — |
| header | #C592EFde | — |
| invalid | #B1D315de | — |
| keyword | #C4C4C4de | — |
| keyword.codetag.notation.python | #EA8F7Ade | — |
| keyword.control | #EF9986de | — |
| keyword.control.anchor.regexp | #AEAEAEde | — |
| keyword.control.import.python | #BBBBBBde | — |
| keyword.operator | #BBBBBBde | — |
| keyword.operator.alignas | #10DEB9de | — |
| keyword.operator.alignof | #13DFBAde | — |
| keyword.operator.cast | #AFC4FEde | — |
| keyword.operator.delete | #C5C5C5de | — |
| keyword.operator.documentation.powershell | #CACA786e | — |
| keyword.operator.expression | #D3A8F7de | — |
| keyword.operator.instanceof | #B0D40Cde | — |
| keyword.operator.logical.python | #F7B7A8de | — |
| keyword.operator.minus.exponent | #13DEB7de | — |
| keyword.operator.negation.regexp | #B0C6FEde | — |
| keyword.operator.new | #DBB7F9de | — |
| keyword.operator.noexcept | #10DFBAde | — |
| keyword.operator.or.regexp | #9AB3F4de | — |
| keyword.operator.plus.exponent | #C6C6C6de | — |
| keyword.operator.quantifier.regexp | #B2D411de | — |
| keyword.operator.sizeof | #C6C6C6de | — |
| keyword.operator.typeid | #FEAEDAde | — |
| keyword.operator.wordlike | #F6A1CFde | — |
| keyword.other.operator | #8AA5ECde | — |
| keyword.other.package.java | #F7B7A8de | — |
| keyword.other.unit | #13DFBAde | — |
| keyword.other.using | #ED9480de | — |
| markup.bold | #B3D40Ede | — |
| markup.changed | #14DEBAde | — |
| markup.deleted | #C4C4C4de | — |
| markup.fenced_code.block.markdown | #C6C6C6de | — |
| markup.heading | #13DFBAde | — |
| markup.inline.raw | #0DDDB9de | — |
| markup.inserted | #8AA5ECde | — |
| markup.italic | #AFD211de | — |
| markup.raw.block.markdown | #EF9986de | — |
| markup.strikethrough | #F6B1A1de | — |
| markup.underline | #E8907Dde | — |
| meta.block.c | #B0C3F8de | — |
| meta.block.c | #14DEBAde | — |
| meta.class.java | #F4AB9Ade | — |
| meta.definition.variable.name | #B0C3F8de | — |
| meta.diff.header | #14DFBBde | — |
| meta.embedded | #F19F8Dde | — |
| meta.embedded.assembly | #EF9986de | — |
| meta.function-call.arguments.python | #F6B1A1de | — |
| meta.function-call.python | #94ADF2de | — |
| meta.member.access.python | #13DFBAde | — |
| meta.method.java | #13DFBAde | — |
| meta.object-literal.key | #F294C7de | — |
| meta.paragraph.markdown | #B0C3F8de | — |
| meta.preprocessor | #10DEB9de | — |
| meta.preprocessor.numeric | #8CA6ECde | — |
| meta.preprocessor.string | #DEB6FEde | — |
| meta.scope.prerequisites.makefile | #C6C6C6de | — |
| meta.structure.dictionary.json.comments | #CBCB766e | — |
| meta.structure.dictionary.key.python | #EF9986de | — |
| meta.structure.dictionary.value.json.comments | #CBCB766e | — |
| meta.template.expression | #F19F8Dde | — |
| meta.type.cast.expr | #14DEBAde | — |
| meta.type.new.expr | #FEACD9de | — |
| parameter | #F6B1A1de | — |
| punctuation.character.set.begin.regexp | #0CE0B9de | — |
| punctuation.character.set.end.regexp | #0EDDBAde | — |
| punctuation.definition.array.begin.json | #B0D40Cde | — |
| punctuation.definition.character-class.regexp | #A8BEF7de | — |
| punctuation.definition.comment | #CACA786e | — |
| punctuation.definition.comment.json.comments | #CBCB6F6e | — |
| punctuation.definition.comment.python | #CBCB6F6e | — |
| punctuation.definition.dictionary.begin.json | #C6C6C6de | — |
| punctuation.definition.dictionary.end.json | #C6C6C6de | — |
| punctuation.definition.group.assertion.regexp | #B1D315de | — |
| punctuation.definition.group.regexp | #C592F0de | — |
| punctuation.definition.list.begin.json | #FEB5A4de | — |
| punctuation.definition.list.begin.markdown | #E8907Dde | — |
| punctuation.definition.list.begin.python | #B3D40Ede | — |
| punctuation.definition.list.end.json | #C4C4C4de | — |
| punctuation.definition.list.end.markdown | #10DFBAde | — |
| punctuation.definition.list.end.python | #CFA1F6de | — |
| punctuation.definition.parameters.begin.python | #C592EFde | — |
| punctuation.definition.parameters.end.bracket.round.java | #C6C6C6de | — |
| punctuation.definition.quote.begin.markdown | #11DFB8de | — |
| punctuation.definition.tag | #DEB6FEde | — |
| punctuation.definition.template-expression.begin | #8DA8F1de | — |
| punctuation.definition.template-expression.end | #13DFBAde | — |
| punctuation.section.class.begin.bracket.curly.java | #9AB3F4de | — |
| punctuation.section.embedded | #B0C6FEde | — |
| punctuation.section.embedded.begin.php | #F6B1A1de | — |
| punctuation.section.embedded.end.php | #C6C6C6de | — |
| punctuation.terminator.java | #B0C3F8de | — |
| source.cmake | #B0D310de | — |
| source.coffee.embedded | #FEAEDAde | — |
| source.cpp | #FEACD9de | — |
| source.css.less | #11DFB8de | — |
| source.groovy.embedded | #12DFBBde | — |
| source.java | #C592EFde | — |
| source.java-properties | #B2D411de | — |
| source.json.comments | #CBCB716e | — |
| source.makefile | #DDB6FEde | — |
| source.powershell | #12DFBBde | — |
| source.powershell.variable.other.member | #BBBBBBde | — |
| source.python | #F18DC3de | — |
| storage | #B0D314de | — |
| storage.modifier | #13DEB7de | — |
| storage.modifier.import.java | #AEAEAEde | — |
| storage.modifier.package.java | #D3A8F7de | — |
| storage.type | #E8907Dde | — |
| storage.type.annotation.groovy | #EA87BDde | — |
| storage.type.annotation.java | #14DFBBde | — |
| storage.type.boolean.go | #8BA5EBde | — |
| storage.type.byte.go | #FEB4A4de | — |
| storage.type.cs | #B1D314de | — |
| storage.type.error.go | #B0C6FEde | — |
| storage.type.generic.cs | #9AB3F4de | — |
| storage.type.generic.groovy | #B0D314de | — |
| storage.type.generic.java | #14DFBBde | — |
| storage.type.groovy | #ACC3FEde | — |
| storage.type.java | #CB9AF4de | — |
| storage.type.modifier.cs | #DBB7F9de | — |
| storage.type.numeric.go | #B2D415de | — |
| storage.type.object.array.groovy | #0CE0B9de | — |
| storage.type.object.array.java | #AFD308de | — |
| storage.type.parameters.groovy | #ED85BDde | — |
| storage.type.primitive.array.groovy | #9AB3F4de | — |
| storage.type.primitive.array.java | #AFD413de | — |
| storage.type.primitive.groovy | #B1D315de | — |
| storage.type.primitive.java | #C5C5C5de | — |
| storage.type.rune.go | #ACC3FEde | — |
| storage.type.string.go | #11DFB8de | — |
| storage.type.token.java | #10DFBAde | — |
| storage.type.uintptr.go | #C494ECde | — |
| storage.type.variable.cs | #F49ACBde | — |
| string | #13DFBAde | — |
| string.quoted.docstring.multi.python | #CBCB6F6e | — |
| string.regexp | #F7B7A8de | — |
| string.tag | #FEAFDAde | — |
| string.value | #10DEB9de | — |
| strong | #AFC4FEde | — |
| support.class | #0DDDB9de | — |
| support.constant.color | #C6C6C6de | — |
| support.constant.dom | #B0D314de | — |
| support.constant.font-name | #B0D312de | — |
| support.constant.handlebars | #B0D40Cde | — |
| support.constant.json | #AFC4FEde | — |
| support.constant.math | #10DFBAde | — |
| support.constant.media | #BBBBBBde | — |
| support.constant.media-type | #AFD211de | — |
| support.constant.property-value | #F49ACBde | — |
| support.function | #C0C0C0de | — |
| support.function.git-rebase | #B0D40Cde | — |
| support.other.parenthesis.regexp | #FEB4A3de | — |
| support.type | #F4AB9Ade | — |
| support.type.property-name | #ED9480de | — |
| support.type.vendored.property-name | #E9907Bde | — |
| support.variable | #DDB5FEde | — |
| token.debug-token | #13DFBAde | — |
| token.error-token | #10DFBAde | — |
| token.info-token | #8DA8F1de | — |
| token.warn-token | #F49ACBde | — |
| variable | #B2D414de | — |
| variable.css | #FEB5A4de | — |
| variable.language | #E8907Dde | — |
| variable.language.wildcard.java | #B0C3F8de | — |
| variable.other.constant | #DEB6FEde | — |
| variable.other.definition.java | #9AB3F4de | — |
| variable.other.enummember | #13DFBAde | — |
| variable.other.less | #13DFBAde | — |
| variable.other.object.java | #C6C6C6de | — |
| variable.other.object.property.java | #B1D314de | — |
| variable.parameter.c | #C794F2de | — |
| variable.parameter.function.language.python | #B3D40Ede | — |
| variable.parameter.java | #F2A594de | — |
| variable.scss | #10DEB9de | — |
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}!`;
}