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 | #F9A8A86e | — |
| comment.block.html | #F8A3A36e | — |
| comment.block.java | #FAAFAF6e | — |
| comment.block.javadoc.java | #F590906e | — |
| comment.block.powershell | #F68B8B6e | — |
| comment.block.xml | #F388886e | — |
| comment.line.double-slash.c | #F38F8F6e | — |
| comment.line.double-slash.cpp | #F899996e | — |
| comment.line.double-slash.java | #F89F9F6e | — |
| comment.line.double-slash.js | #FBA6A66e | — |
| comment.line.number-sign.makefile | #F79C9C6e | — |
| comment.line.number-sign.python | #F8A3A36e | — |
| comment.line.number-sign.yaml | #F79C9C6e | — |
| comment.line.percentage.erlang | #FBA9A96e | — |
| comment.line.powershell | #FAA2A26e | — |
| comment.source.cmake | #F48A8A6e | — |
| comment.source.cmakecache | #FBA6A66e | — |
| constant.character | #B2B2B2de | — |
| constant.character.character-class.regexp | #F382A5de | — |
| constant.character.escape | #E79DF8de | — |
| constant.character.set.regexp | #B0B0B0de | — |
| constant.language | #F281A3de | — |
| constant.numeric | #29BACFde | — |
| constant.numeric.dec.python | #EBACFAde | — |
| constant.other.caps.python | #F9991Ede | — |
| constant.other.character-class.regexp | #08DF3Dde | — |
| constant.other.character-class.set.regexp | #E5A450de | — |
| constant.other.color.rgb-value | #6FC008de | — |
| constant.other.placeholder | #F88E08de | — |
| constant.other.rgb-value | #E9A5F9de | — |
| constant.regexp | #F9A9C2de | — |
| constant.sha.git-rebase | #89D428de | — |
| emphasis | #E18BF4de | — |
| entity.name.class | #F385A7de | — |
| entity.name.function | #50D2E5de | — |
| entity.name.function.preprocessor | #32D95Bde | — |
| entity.name.function.python | #E28EF5de | — |
| entity.name.label | #29D655de | — |
| entity.name.namespace | #86CF29de | — |
| entity.name.operator | #A9A9A9de | — |
| entity.name.operator.custom-literal | #B3B3B3de | — |
| entity.name.scope-resolution | #F693B2de | — |
| entity.name.tag | #07CDEAde | — |
| entity.name.tag.css | #76CC08de | — |
| entity.name.type | #29CD51de | — |
| entity.name.variable | #E28EF5de | — |
| entity.other.attribute | #E392F6de | — |
| entity.other.attribute-name | #C3C3C3de | — |
| entity.other.attribute-name.class.css | #DE983Cde | — |
| entity.other.attribute-name.class.mixin.css | #FBA73Bde | — |
| entity.other.attribute-name.id | #08C5DFde | — |
| entity.other.attribute-name.id.css | #DD80F2de | — |
| entity.other.attribute-name.parent-selector.css | #75C808de | — |
| entity.other.attribute-name.pseudo-class.css | #7AD208de | — |
| entity.other.attribute-name.pseudo-element.css | #EDB46Bde | — |
| entity.other.attribute-name.scss | #4CD1E4de | — |
| entity.other.document.begin.yaml | #F9A8A86e | — |
| entity.other.inherited-class | #2BD656de | — |
| header | #F383A6de | — |
| invalid | #3DDE65de | — |
| keyword | #F696B5de | — |
| keyword.codetag.notation.python | #F89DB9de | — |
| keyword.control | #7DBE29de | — |
| keyword.control.anchor.regexp | #37C7DBde | — |
| keyword.control.import.python | #29CF52de | — |
| keyword.operator | #71C308de | — |
| keyword.operator.alignas | #AEAEAEde | — |
| keyword.operator.alignof | #C0C0C0de | — |
| keyword.operator.cast | #A8A8A8de | — |
| keyword.operator.delete | #F9A6C0de | — |
| keyword.operator.documentation.powershell | #F99A9A6e | — |
| keyword.operator.expression | #38C8DDde | — |
| keyword.operator.instanceof | #08C338de | — |
| keyword.operator.logical.python | #72C508de | — |
| keyword.operator.minus.exponent | #E28DF5de | — |
| keyword.operator.negation.regexp | #E3A14Bde | — |
| keyword.operator.new | #07E23Ede | — |
| keyword.operator.noexcept | #DE82F2de | — |
| keyword.operator.or.regexp | #F280A4de | — |
| keyword.operator.plus.exponent | #E9A4F8de | — |
| keyword.operator.quantifier.regexp | #07D93Cde | — |
| keyword.operator.sizeof | #07B4CDde | — |
| keyword.operator.typeid | #75CC07de | — |
| keyword.operator.wordlike | #E08AF4de | — |
| keyword.other.operator | #86CF29de | — |
| keyword.other.package.java | #E8A957de | — |
| keyword.other.unit | #7DBE29de | — |
| keyword.other.using | #7AD407de | — |
| markup.bold | #ADADADde | — |
| markup.changed | #07DC3Cde | — |
| markup.deleted | #ABABABde | — |
| markup.fenced_code.block.markdown | #07BAD4de | — |
| markup.heading | #06D1F0de | — |
| markup.inline.raw | #F9A6C0de | — |
| markup.inserted | #F79BB8de | — |
| markup.italic | #07D53Ade | — |
| markup.raw.block.markdown | #31C4D9de | — |
| markup.strikethrough | #DF86F3de | — |
| markup.underline | #BFBFBFde | — |
| meta.block.c | #E79EF8de | — |
| meta.block.c | #EDB36Ade | — |
| meta.class.java | #E3A049de | — |
| meta.definition.variable.name | #07C9E4de | — |
| meta.diff.header | #B2B2B2de | — |
| meta.embedded | #E9AB5Cde | — |
| meta.embedded.assembly | #31D95Bde | — |
| meta.function-call.arguments.python | #06D6F3de | — |
| meta.function-call.python | #F798B5de | — |
| meta.member.access.python | #6EBC09de | — |
| meta.method.java | #E79DF8de | — |
| meta.object-literal.key | #E18EF5de | — |
| meta.paragraph.markdown | #78CF08de | — |
| meta.preprocessor | #07D0ECde | — |
| meta.preprocessor.numeric | #37DB60de | — |
| meta.preprocessor.string | #E598F7de | — |
| meta.scope.prerequisites.makefile | #ACACACde | — |
| meta.structure.dictionary.json.comments | #F896966e | — |
| meta.structure.dictionary.key.python | #29BACFde | — |
| meta.structure.dictionary.value.json.comments | #F590906e | — |
| meta.template.expression | #6EBC09de | — |
| meta.type.cast.expr | #F696B4de | — |
| meta.type.new.expr | #FBA73Bde | — |
| parameter | #F487A9de | — |
| punctuation.character.set.begin.regexp | #E79DF8de | — |
| punctuation.character.set.end.regexp | #F8A2BDde | — |
| punctuation.definition.array.begin.json | #F9981Bde | — |
| punctuation.definition.character-class.regexp | #3DCADEde | — |
| punctuation.definition.comment | #F99A9A6e | — |
| punctuation.definition.comment.json.comments | #F79C9C6e | — |
| punctuation.definition.comment.python | #F68B8B6e | — |
| punctuation.definition.dictionary.begin.json | #08C237de | — |
| punctuation.definition.dictionary.end.json | #2BD757de | — |
| punctuation.definition.group.assertion.regexp | #06D5F4de | — |
| punctuation.definition.group.regexp | #EDB46Bde | — |
| punctuation.definition.list.begin.json | #F89DB9de | — |
| punctuation.definition.list.begin.markdown | #B3B3B3de | — |
| punctuation.definition.list.begin.python | #BFBFBFde | — |
| punctuation.definition.list.end.json | #E09C43de | — |
| punctuation.definition.list.end.markdown | #09C037de | — |
| punctuation.definition.list.end.python | #08D53Cde | — |
| punctuation.definition.parameters.begin.python | #EDB46Bde | — |
| punctuation.definition.parameters.end.bracket.round.java | #DD963Bde | — |
| punctuation.definition.quote.begin.markdown | #7CD608de | — |
| punctuation.definition.tag | #C2C2C2de | — |
| punctuation.definition.template-expression.begin | #E28EF5de | — |
| punctuation.definition.template-expression.end | #E09C43de | — |
| punctuation.section.class.begin.bracket.curly.java | #7DD908de | — |
| punctuation.section.embedded | #29B5C8de | — |
| punctuation.section.embedded.begin.php | #EAA8F9de | — |
| punctuation.section.embedded.end.php | #50D2E5de | — |
| punctuation.terminator.java | #3DCADEde | — |
| source.cmake | #E7A856de | — |
| source.coffee.embedded | #75CA08de | — |
| source.cpp | #B1B1B1de | — |
| source.css.less | #07D03Ade | — |
| source.groovy.embedded | #6FBF08de | — |
| source.java | #F696B4de | — |
| source.java-properties | #76CE06de | — |
| source.json.comments | #FBA6A66e | — |
| source.makefile | #29BE4Ede | — |
| source.powershell | #E495F6de | — |
| source.powershell.variable.other.member | #E79DF8de | — |
| source.python | #F78E07de | — |
| storage | #E79DF8de | — |
| storage.modifier | #08C839de | — |
| storage.modifier.import.java | #A7A7A7de | — |
| storage.modifier.package.java | #F99515de | — |
| storage.type | #29B4C8de | — |
| storage.type.annotation.groovy | #E69BF7de | — |
| storage.type.annotation.java | #DD80F2de | — |
| storage.type.boolean.go | #F797B4de | — |
| storage.type.byte.go | #F9A3BEde | — |
| storage.type.cs | #A5A5A5de | — |
| storage.type.error.go | #3DCADEde | — |
| storage.type.generic.cs | #A9A9A9de | — |
| storage.type.generic.groovy | #EDB46Bde | — |
| storage.type.generic.java | #70C008de | — |
| storage.type.groovy | #E7A856de | — |
| storage.type.java | #E496F6de | — |
| storage.type.modifier.cs | #29BACEde | — |
| storage.type.numeric.go | #7DBF28de | — |
| storage.type.object.array.groovy | #F797B5de | — |
| storage.type.object.array.java | #EFB871de | — |
| storage.type.parameters.groovy | #BDBDBDde | — |
| storage.type.primitive.array.groovy | #F48AABde | — |
| storage.type.primitive.array.java | #F9A6C0de | — |
| storage.type.primitive.groovy | #BABABAde | — |
| storage.type.primitive.java | #49CFE3de | — |
| storage.type.rune.go | #E9AC5Dde | — |
| storage.type.string.go | #A9A9A9de | — |
| storage.type.token.java | #B6B6B6de | — |
| storage.type.uintptr.go | #28CB52de | — |
| storage.type.variable.cs | #28C34Fde | — |
| string | #70C207de | — |
| string.quoted.docstring.multi.python | #F9ABAB6e | — |
| string.regexp | #F9A5BFde | — |
| string.tag | #F9ABC3de | — |
| string.value | #F487A9de | — |
| strong | #78B528de | — |
| support.class | #A8A8A8de | — |
| support.constant.color | #29BFD5de | — |
| support.constant.dom | #EBACFAde | — |
| support.constant.font-name | #F798B6de | — |
| support.constant.handlebars | #06BFDCde | — |
| support.constant.json | #31C4D9de | — |
| support.constant.math | #F591B0de | — |
| support.constant.media | #B8B8B8de | — |
| support.constant.media-type | #08C6E1de | — |
| support.constant.property-value | #6DBA09de | — |
| support.function | #49CFE3de | — |
| support.function.git-rebase | #B7B7B7de | — |
| support.other.parenthesis.regexp | #B6B6B6de | — |
| support.type | #49CFE3de | — |
| support.type.property-name | #07DF3Dde | — |
| support.type.vendored.property-name | #FA991Dde | — |
| support.variable | #08CA39de | — |
| token.debug-token | #EBB064de | — |
| token.error-token | #E7A653de | — |
| token.info-token | #E28EF5de | — |
| token.warn-token | #EDB46Bde | — |
| variable | #49CFE3de | — |
| variable.css | #A5A5A5de | — |
| variable.language | #E3A049de | — |
| variable.language.wildcard.java | #45CFE1de | — |
| variable.other.constant | #F591B0de | — |
| variable.other.definition.java | #07DC3Cde | — |
| variable.other.enummember | #7DD908de | — |
| variable.other.less | #78B528de | — |
| variable.other.object.java | #78D207de | — |
| variable.other.object.property.java | #BFBFBFde | — |
| variable.parameter.c | #B2B2B2de | — |
| variable.parameter.function.language.python | #7DBE29de | — |
| variable.parameter.java | #B6B6B6de | — |
| variable.scss | #E393F6de | — |
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}!`;
}