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 | #9E9EF96e | — |
| comment.block.html | #9C9CFA6e | — |
| comment.block.java | #ACACFC6e | — |
| comment.block.javadoc.java | #ACACFB6e | — |
| comment.block.powershell | #AAAAFA6e | — |
| comment.block.xml | #B8B8FD6e | — |
| comment.line.double-slash.c | #B4B4FC6e | — |
| comment.line.double-slash.cpp | #9999F76e | — |
| comment.line.double-slash.java | #A5A5F96e | — |
| comment.line.double-slash.js | #9898F86e | — |
| comment.line.number-sign.makefile | #A8A8FB6e | — |
| comment.line.number-sign.python | #ACACFB6e | — |
| comment.line.number-sign.yaml | #B4B4FC6e | — |
| comment.line.percentage.erlang | #AEAEFA6e | — |
| comment.line.powershell | #A9A9FA6e | — |
| comment.source.cmake | #9F9FFA6e | — |
| comment.source.cmakecache | #9D9DF86e | — |
| constant.character | #FEA382de | — |
| constant.character.character-class.regexp | #E78865de | — |
| constant.character.escape | #F1A084de | — |
| constant.character.set.regexp | #09C39Ede | — |
| constant.language | #C093F4de | — |
| constant.numeric | #CEAAF8de | — |
| constant.numeric.dec.python | #C9A1F7de | — |
| constant.other.caps.python | #CDA8F8de | — |
| constant.other.character-class.regexp | #F69CD2de | — |
| constant.other.character-class.set.regexp | #F2A68Ade | — |
| constant.other.color.rgb-value | #33D133de | — |
| constant.other.placeholder | #98AE0Ade | — |
| constant.other.rgb-value | #FD8A5Fde | — |
| constant.regexp | #09B795de | — |
| constant.sha.git-rebase | #BE8FF3de | — |
| emphasis | #F8A6D7de | — |
| entity.name.class | #08D4AAde | — |
| entity.name.function | #A7BCF8de | — |
| entity.name.function.preprocessor | #C89FF7de | — |
| entity.name.function.python | #EE79C0de | — |
| entity.name.label | #A1B7F7de | — |
| entity.name.namespace | #D2B0F9de | — |
| entity.name.operator | #A7C00Ade | — |
| entity.name.operator.custom-literal | #EC9472de | — |
| entity.name.scope-resolution | #C194F5de | — |
| entity.name.tag | #ED9576de | — |
| entity.name.tag.css | #2FBC9Fde | — |
| entity.name.type | #EF7CC1de | — |
| entity.name.variable | #9DB40Ade | — |
| entity.other.attribute | #44DA44de | — |
| entity.other.attribute-name | #EF7DC2de | — |
| entity.other.attribute-name.class.css | #0ACC0Ade | — |
| entity.other.attribute-name.class.mixin.css | #9FB508de | — |
| entity.other.attribute-name.id | #F28AC9de | — |
| entity.other.attribute-name.id.css | #A7BCF8de | — |
| entity.other.attribute-name.parent-selector.css | #2FC4A6de | — |
| entity.other.attribute-name.pseudo-class.css | #A7BCF8de | — |
| entity.other.attribute-name.pseudo-element.css | #BE91F4de | — |
| entity.other.attribute-name.scss | #F492CDde | — |
| entity.other.document.begin.yaml | #B3B3FC6e | — |
| entity.other.inherited-class | #89A5F2de | — |
| header | #2FCC2Fde | — |
| invalid | #BC8CF3de | — |
| keyword | #2FBC9Fde | — |
| keyword.codetag.notation.python | #AEC90Ade | — |
| keyword.control | #C093F4de | — |
| keyword.control.anchor.regexp | #07D0A8de | — |
| keyword.control.import.python | #B0C42Fde | — |
| keyword.operator | #A0B70Ade | — |
| keyword.operator.alignas | #09BD9Ade | — |
| keyword.operator.alignof | #BE90F3de | — |
| keyword.operator.cast | #F491CCde | — |
| keyword.operator.delete | #08D5ADde | — |
| keyword.operator.documentation.powershell | #B3B3FC6e | — |
| keyword.operator.expression | #08D9B0de | — |
| keyword.operator.instanceof | #09D7AEde | — |
| keyword.operator.logical.python | #96AC0Ade | — |
| keyword.operator.minus.exponent | #07D7ADde | — |
| keyword.operator.negation.regexp | #C498F5de | — |
| keyword.operator.new | #F7A1D4de | — |
| keyword.operator.noexcept | #99B00Ade | — |
| keyword.operator.or.regexp | #3ED73Ede | — |
| keyword.operator.plus.exponent | #BE90F3de | — |
| keyword.operator.quantifier.regexp | #09D709de | — |
| keyword.operator.sizeof | #F288C7de | — |
| keyword.operator.typeid | #9FB508de | — |
| keyword.operator.wordlike | #0ABB0Ade | — |
| keyword.other.operator | #C89FF7de | — |
| keyword.other.package.java | #F79FD3de | — |
| keyword.other.unit | #44DB44de | — |
| keyword.other.using | #FEA98Ade | — |
| markup.bold | #F1A184de | — |
| markup.changed | #ABC409de | — |
| markup.deleted | #F490CCde | — |
| markup.fenced_code.block.markdown | #CFABF9de | — |
| markup.heading | #F2A487de | — |
| markup.inline.raw | #09D6ADde | — |
| markup.inserted | #A9C20Ade | — |
| markup.italic | #2FBF2Fde | — |
| markup.raw.block.markdown | #2FCC2Fde | — |
| markup.strikethrough | #F183C5de | — |
| markup.underline | #98AE08de | — |
| meta.block.c | #2FBC2Fde | — |
| meta.block.c | #07BF07de | — |
| meta.class.java | #0ABB98de | — |
| meta.definition.variable.name | #92ADF4de | — |
| meta.diff.header | #AEC90Ade | — |
| meta.embedded | #C498F5de | — |
| meta.embedded.assembly | #2FCD2Fde | — |
| meta.function-call.arguments.python | #9FB70Ade | — |
| meta.function-call.python | #09CA09de | — |
| meta.member.access.python | #8BA6F2de | — |
| meta.method.java | #9BB307de | — |
| meta.object-literal.key | #F3A88Dde | — |
| meta.paragraph.markdown | #95AFF5de | — |
| meta.preprocessor | #F4AB91de | — |
| meta.preprocessor.numeric | #33D1B1de | — |
| meta.preprocessor.string | #F79FD4de | — |
| meta.scope.prerequisites.makefile | #C8A0F7de | — |
| meta.structure.dictionary.json.comments | #A5A5F96e | — |
| meta.structure.dictionary.key.python | #09C509de | — |
| meta.structure.dictionary.value.json.comments | #B6B6FB6e | — |
| meta.template.expression | #97AC0Ade | — |
| meta.type.cast.expr | #D2B0F9de | — |
| meta.type.new.expr | #F2A588de | — |
| parameter | #CDA8F8de | — |
| punctuation.character.set.begin.regexp | #F8A5D6de | — |
| punctuation.character.set.end.regexp | #F09F82de | — |
| punctuation.definition.array.begin.json | #F183C5de | — |
| punctuation.definition.character-class.regexp | #C295F5de | — |
| punctuation.definition.comment | #B7B7FC6e | — |
| punctuation.definition.comment.json.comments | #9898F96e | — |
| punctuation.definition.comment.python | #B0B0FC6e | — |
| punctuation.definition.dictionary.begin.json | #CAA3F7de | — |
| punctuation.definition.dictionary.end.json | #EE79BEde | — |
| punctuation.definition.group.assertion.regexp | #F79FD4de | — |
| punctuation.definition.group.regexp | #A3BAF7de | — |
| punctuation.definition.list.begin.json | #BF91F4de | — |
| punctuation.definition.list.begin.markdown | #2FCCADde | — |
| punctuation.definition.list.begin.python | #09D7ADde | — |
| punctuation.definition.list.end.json | #3ED73Ede | — |
| punctuation.definition.list.end.markdown | #95AFF5de | — |
| punctuation.definition.list.end.python | #A5BBF8de | — |
| punctuation.definition.parameters.begin.python | #A2B32Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #3ED73Ede | — |
| punctuation.definition.quote.begin.markdown | #FE9873de | — |
| punctuation.definition.tag | #88A4F2de | — |
| punctuation.definition.template-expression.begin | #96AC09de | — |
| punctuation.definition.template-expression.end | #EF9D7Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #38D438de | — |
| punctuation.section.embedded | #D2AFF9de | — |
| punctuation.section.embedded.begin.php | #E88865de | — |
| punctuation.section.embedded.end.php | #98AE07de | — |
| punctuation.terminator.java | #F5AF95de | — |
| source.cmake | #A7BDF8de | — |
| source.coffee.embedded | #EB906Fde | — |
| source.cpp | #F28AC9de | — |
| source.css.less | #F598D0de | — |
| source.groovy.embedded | #CBA3F7de | — |
| source.java | #84A0F1de | — |
| source.java-properties | #FD8A60de | — |
| source.json.comments | #B4B4FC6e | — |
| source.makefile | #07D9AFde | — |
| source.powershell | #A9C307de | — |
| source.powershell.variable.other.member | #E98C6Ade | — |
| source.python | #39D4B5de | — |
| storage | #F491CCde | — |
| storage.modifier | #34D2B3de | — |
| storage.modifier.import.java | #9DB409de | — |
| storage.modifier.package.java | #A6BD08de | — |
| storage.type | #F082C4de | — |
| storage.type.annotation.groovy | #36D3B4de | — |
| storage.type.annotation.java | #F38ECBde | — |
| storage.type.boolean.go | #D3B2FAde | — |
| storage.type.byte.go | #F69ED3de | — |
| storage.type.cs | #97B0F5de | — |
| storage.type.error.go | #EF7CC1de | — |
| storage.type.generic.cs | #0AC9A2de | — |
| storage.type.generic.groovy | #F69AD2de | — |
| storage.type.generic.java | #A6BCF8de | — |
| storage.type.groovy | #F28AC9de | — |
| storage.type.java | #09DF09de | — |
| storage.type.modifier.cs | #09CAA3de | — |
| storage.type.numeric.go | #8AA6F2de | — |
| storage.type.object.array.groovy | #F7A0D4de | — |
| storage.type.object.array.java | #EC9473de | — |
| storage.type.parameters.groovy | #F79FD4de | — |
| storage.type.primitive.array.groovy | #83A0F1de | — |
| storage.type.primitive.array.java | #ED9576de | — |
| storage.type.primitive.groovy | #09D709de | — |
| storage.type.primitive.java | #8EA9F3de | — |
| storage.type.rune.go | #09CE09de | — |
| storage.type.string.go | #09CF09de | — |
| storage.type.token.java | #3AD53Ade | — |
| storage.type.uintptr.go | #89A5F2de | — |
| storage.type.variable.cs | #98B1F5de | — |
| string | #A9BEF8de | — |
| string.quoted.docstring.multi.python | #B6B6FB6e | — |
| string.regexp | #08D5ABde | — |
| string.tag | #39D439de | — |
| string.value | #8EA9F3de | — |
| strong | #C89FF7de | — |
| support.class | #09D709de | — |
| support.constant.color | #BC8CF3de | — |
| support.constant.dom | #98AE0Ade | — |
| support.constant.font-name | #F491CDde | — |
| support.constant.handlebars | #A6BD08de | — |
| support.constant.json | #08C59Fde | — |
| support.constant.math | #EB906Fde | — |
| support.constant.media | #E98C6Ade | — |
| support.constant.media-type | #C59BF6de | — |
| support.constant.property-value | #C79EF6de | — |
| support.function | #83A0F1de | — |
| support.function.git-rebase | #FEA07Ede | — |
| support.other.parenthesis.regexp | #C9A1F7de | — |
| support.type | #8AA6F2de | — |
| support.type.property-name | #CFABF9de | — |
| support.type.vendored.property-name | #CDA8F8de | — |
| support.variable | #A6BF07de | — |
| token.debug-token | #C295F5de | — |
| token.error-token | #ED9576de | — |
| token.info-token | #EF7CC1de | — |
| token.warn-token | #EB906Fde | — |
| variable | #08D908de | — |
| variable.css | #F69ED3de | — |
| variable.language | #07B793de | — |
| variable.language.wildcard.java | #09BF9Bde | — |
| variable.other.constant | #07BB07de | — |
| variable.other.definition.java | #C093F4de | — |
| variable.other.enummember | #BE8EF3de | — |
| variable.other.less | #9CB4F6de | — |
| variable.other.object.java | #2FC4A6de | — |
| variable.other.object.property.java | #9FB60Ade | — |
| variable.parameter.c | #F8A7D7de | — |
| variable.parameter.function.language.python | #EB906Fde | — |
| variable.parameter.java | #87A3F2de | — |
| variable.scss | #E98C6Ade | — |
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}!`;
}