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 | #C6C6C66e | — |
| comment.block.html | #F6ADF66e | — |
| comment.block.java | #C6C6C66e | — |
| comment.block.javadoc.java | #C6C6C66e | — |
| comment.block.powershell | #F4AFF46e | — |
| comment.block.xml | #C6C6C66e | — |
| comment.line.double-slash.c | #C6C6C66e | — |
| comment.line.double-slash.cpp | #F6ADF66e | — |
| comment.line.double-slash.java | #C6C6C66e | — |
| comment.line.double-slash.js | #C6C6C66e | — |
| comment.line.number-sign.makefile | #F6ADF66e | — |
| comment.line.number-sign.python | #F6ADF66e | — |
| comment.line.number-sign.yaml | #C6C6C66e | — |
| comment.line.percentage.erlang | #F4AFF46e | — |
| comment.line.powershell | #C6C6C66e | — |
| comment.source.cmake | #F4AFF46e | — |
| comment.source.cmakecache | #C6C6C66e | — |
| constant.character | #0EDAF3de | — |
| constant.character.character-class.regexp | #84DC0Dde | — |
| constant.character.escape | #E083F1de | — |
| constant.character.set.regexp | #EEACFAde | — |
| constant.language | #F68EAFde | — |
| constant.numeric | #E387F4de | — |
| constant.numeric.dec.python | #F384A7de | — |
| constant.other.caps.python | #FCB96Dde | — |
| constant.other.character-class.regexp | #10DAF3de | — |
| constant.other.character-class.set.regexp | #0DDAF2de | — |
| constant.other.color.rgb-value | #FDB96Dde | — |
| constant.other.placeholder | #E083F0de | — |
| constant.other.rgb-value | #F186A8de | — |
| constant.regexp | #9F9FF3de | — |
| constant.sha.git-rebase | #B5B5FBde | — |
| emphasis | #FCB96Dde | — |
| entity.name.class | #F186A8de | — |
| entity.name.function | #0DE546de | — |
| entity.name.function.preprocessor | #F186A8de | — |
| entity.name.function.python | #9E9EF6de | — |
| entity.name.label | #FDB96Dde | — |
| entity.name.namespace | #FDB96Dde | — |
| entity.name.operator | #9E9EF7de | — |
| entity.name.operator.custom-literal | #E182F3de | — |
| entity.name.scope-resolution | #9F9FF3de | — |
| entity.name.tag | #F286A8de | — |
| entity.name.tag.css | #F1AFFEde | — |
| entity.name.type | #0EE447de | — |
| entity.name.variable | #FCB96Fde | — |
| entity.other.attribute | #11DAF2de | — |
| entity.other.attribute-name | #F2B878de | — |
| entity.other.attribute-name.class.css | #FCB96Dde | — |
| entity.other.attribute-name.class.mixin.css | #F68EAFde | — |
| entity.other.attribute-name.id | #9F9FF4de | — |
| entity.other.attribute-name.id.css | #BCBCFEde | — |
| entity.other.attribute-name.parent-selector.css | #FDB96Dde | — |
| entity.other.attribute-name.pseudo-class.css | #F3BC80de | — |
| entity.other.attribute-name.pseudo-element.css | #84DD0Bde | — |
| entity.other.attribute-name.scss | #9E9EF7de | — |
| entity.other.document.begin.yaml | #F4AFF46e | — |
| entity.other.inherited-class | #E083F0de | — |
| header | #EDAC63de | — |
| invalid | #F9A5BFde | — |
| keyword | #85DD0Ede | — |
| keyword.codetag.notation.python | #FDB96Bde | — |
| keyword.control | #84DC0Ede | — |
| keyword.control.anchor.regexp | #9F9FF3de | — |
| keyword.control.import.python | #0CE445de | — |
| keyword.operator | #12DAF2de | — |
| keyword.operator.alignas | #BCBCFEde | — |
| keyword.operator.alignof | #F384A7de | — |
| keyword.operator.cast | #F3BC80de | — |
| keyword.operator.delete | #9F9FF5de | — |
| keyword.operator.documentation.powershell | #F6ADF66e | — |
| keyword.operator.expression | #86DC0Ede | — |
| keyword.operator.instanceof | #F384A7de | — |
| keyword.operator.logical.python | #0CDAF4de | — |
| keyword.operator.minus.exponent | #83DC0Ade | — |
| keyword.operator.negation.regexp | #0DE547de | — |
| keyword.operator.new | #F286A8de | — |
| keyword.operator.noexcept | #0CE546de | — |
| keyword.operator.or.regexp | #85DD0Ede | — |
| keyword.operator.plus.exponent | #0EE447de | — |
| keyword.operator.quantifier.regexp | #EEACFAde | — |
| keyword.operator.sizeof | #84DC0Ede | — |
| keyword.operator.typeid | #09D9F2de | — |
| keyword.operator.wordlike | #BCBCFBde | — |
| keyword.other.operator | #F487A9de | — |
| keyword.other.package.java | #F2B878de | — |
| keyword.other.unit | #FCB96Fde | — |
| keyword.other.using | #BCBCFBde | — |
| markup.bold | #F2B878de | — |
| markup.changed | #86DD0Ade | — |
| markup.deleted | #83DC09de | — |
| markup.fenced_code.block.markdown | #FAACC5de | — |
| markup.heading | #A0A0F2de | — |
| markup.inline.raw | #08E543de | — |
| markup.inserted | #0EDAF3de | — |
| markup.italic | #9E9EF8de | — |
| markup.raw.block.markdown | #F186A8de | — |
| markup.strikethrough | #0ADAF3de | — |
| markup.underline | #0FDAF1de | — |
| meta.block.c | #84DC0Dde | — |
| meta.block.c | #10DAF2de | — |
| meta.class.java | #08E543de | — |
| meta.definition.variable.name | #EA9DF8de | — |
| meta.diff.header | #84DC0Dde | — |
| meta.embedded | #10DAF3de | — |
| meta.embedded.assembly | #F384A7de | — |
| meta.function-call.arguments.python | #0EE447de | — |
| meta.function-call.python | #0DE444de | — |
| meta.member.access.python | #EEB06Ade | — |
| meta.method.java | #FCB96Fde | — |
| meta.object-literal.key | #83DC09de | — |
| meta.paragraph.markdown | #FCB96Dde | — |
| meta.preprocessor | #BCBCFEde | — |
| meta.preprocessor.numeric | #FCB96Fde | — |
| meta.preprocessor.string | #0DE445de | — |
| meta.scope.prerequisites.makefile | #F2AEFEde | — |
| meta.structure.dictionary.json.comments | #C6C6C66e | — |
| meta.structure.dictionary.key.python | #EEB06Ade | — |
| meta.structure.dictionary.value.json.comments | #C6C6C66e | — |
| meta.template.expression | #FDB96Dde | — |
| meta.type.cast.expr | #A5A5F9de | — |
| meta.type.new.expr | #0DE547de | — |
| parameter | #EA9DF8de | — |
| punctuation.character.set.begin.regexp | #9E9EF6de | — |
| punctuation.character.set.end.regexp | #0CDAF4de | — |
| punctuation.definition.array.begin.json | #FCB96Dde | — |
| punctuation.definition.character-class.regexp | #10DAF2de | — |
| punctuation.definition.comment | #C6C6C66e | — |
| punctuation.definition.comment.json.comments | #F4AFF46e | — |
| punctuation.definition.comment.python | #F6ADF66e | — |
| punctuation.definition.dictionary.begin.json | #0EE446de | — |
| punctuation.definition.dictionary.end.json | #84DD0Bde | — |
| punctuation.definition.group.assertion.regexp | #F384A7de | — |
| punctuation.definition.group.regexp | #83DC0Ade | — |
| punctuation.definition.list.begin.json | #E083F0de | — |
| punctuation.definition.list.begin.markdown | #0DDAF2de | — |
| punctuation.definition.list.begin.python | #FAACC5de | — |
| punctuation.definition.list.end.json | #85DB0Dde | — |
| punctuation.definition.list.end.markdown | #BCBCFEde | — |
| punctuation.definition.list.end.python | #ECA5F9de | — |
| punctuation.definition.parameters.begin.python | #11DAF2de | — |
| punctuation.definition.parameters.end.bracket.round.java | #F384A7de | — |
| punctuation.definition.quote.begin.markdown | #13DAF3de | — |
| punctuation.definition.tag | #13DAF3de | — |
| punctuation.definition.template-expression.begin | #0CDAF4de | — |
| punctuation.definition.template-expression.end | #FCB96Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #0DE445de | — |
| punctuation.section.embedded | #13DAF3de | — |
| punctuation.section.embedded.begin.php | #0CE546de | — |
| punctuation.section.embedded.end.php | #0EE446de | — |
| punctuation.terminator.java | #BCBCFEde | — |
| source.cmake | #BCBCFBde | — |
| source.coffee.embedded | #08E543de | — |
| source.cpp | #84DC0Ede | — |
| source.css.less | #0DE546de | — |
| source.groovy.embedded | #FCB96Dde | — |
| source.java | #F3BC80de | — |
| source.java-properties | #0AE444de | — |
| source.json.comments | #F4AFF46e | — |
| source.makefile | #F286A8de | — |
| source.powershell | #11DAF2de | — |
| source.powershell.variable.other.member | #E58EF6de | — |
| source.python | #0CDAF4de | — |
| storage | #12DAF2de | — |
| storage.modifier | #86DC0Ede | — |
| storage.modifier.import.java | #08E543de | — |
| storage.modifier.package.java | #85DB0Dde | — |
| storage.type | #FCB96Dde | — |
| storage.type.annotation.groovy | #85DC0Ede | — |
| storage.type.annotation.java | #11DAF2de | — |
| storage.type.boolean.go | #DF85F0de | — |
| storage.type.byte.go | #85DC0Ede | — |
| storage.type.cs | #83DC0Ade | — |
| storage.type.error.go | #0DE444de | — |
| storage.type.generic.cs | #08E543de | — |
| storage.type.generic.groovy | #F68EAFde | — |
| storage.type.generic.java | #E083F0de | — |
| storage.type.groovy | #F2AEFEde | — |
| storage.type.java | #0EE446de | — |
| storage.type.modifier.cs | #0DE445de | — |
| storage.type.numeric.go | #11DAF2de | — |
| storage.type.object.array.groovy | #9E9EF6de | — |
| storage.type.object.array.java | #0CE445de | — |
| storage.type.parameters.groovy | #0DE546de | — |
| storage.type.primitive.array.groovy | #EDAC63de | — |
| storage.type.primitive.array.java | #08E543de | — |
| storage.type.primitive.groovy | #E896F7de | — |
| storage.type.primitive.java | #0EE447de | — |
| storage.type.rune.go | #0BE345de | — |
| storage.type.string.go | #F796B4de | — |
| storage.type.token.java | #0EE447de | — |
| storage.type.uintptr.go | #F1AFFEde | — |
| storage.type.variable.cs | #85DD0Ede | — |
| string | #F385A7de | — |
| string.quoted.docstring.multi.python | #C6C6C66e | — |
| string.regexp | #F1AFFEde | — |
| string.tag | #10DAF3de | — |
| string.value | #FEB1CAde | — |
| strong | #08E543de | — |
| support.class | #0EDAF1de | — |
| support.constant.color | #FCB96Fde | — |
| support.constant.dom | #0CDAF4de | — |
| support.constant.font-name | #0EE547de | — |
| support.constant.handlebars | #FAACC5de | — |
| support.constant.json | #9E9EF7de | — |
| support.constant.math | #0DE444de | — |
| support.constant.media | #BCBCFBde | — |
| support.constant.media-type | #84DC0Ede | — |
| support.constant.property-value | #85DC0Cde | — |
| support.function | #A0A0F2de | — |
| support.function.git-rebase | #85DC0Ede | — |
| support.other.parenthesis.regexp | #85DC0Ede | — |
| support.type | #9E9EF8de | — |
| support.type.property-name | #10DAF2de | — |
| support.type.vendored.property-name | #9E9EF7de | — |
| support.variable | #F2ABFEde | — |
| token.debug-token | #85DC0Ede | — |
| token.error-token | #11DAF2de | — |
| token.info-token | #FCB96Cde | — |
| token.warn-token | #9F9FF4de | — |
| variable | #0DE546de | — |
| variable.css | #10DAF3de | — |
| variable.language | #9E9EF6de | — |
| variable.language.wildcard.java | #84DD0Bde | — |
| variable.other.constant | #9F9FF3de | — |
| variable.other.definition.java | #09E543de | — |
| variable.other.enummember | #0DE445de | — |
| variable.other.less | #85DC0Ede | — |
| variable.other.object.java | #0FDAF1de | — |
| variable.other.object.property.java | #0DE445de | — |
| variable.parameter.c | #9E9EF6de | — |
| variable.parameter.function.language.python | #F186A8de | — |
| variable.parameter.java | #E182F3de | — |
| variable.scss | #BCBCFEde | — |
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}!`;
}