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 | #E7BD946e | — |
| comment.block.html | #E2BF8A6e | — |
| comment.block.java | #EBBC8E6e | — |
| comment.block.javadoc.java | #EBBC8E6e | — |
| comment.block.powershell | #E7BD946e | — |
| comment.block.xml | #E2BF8A6e | — |
| comment.line.double-slash.c | #E2BF8A6e | — |
| comment.line.double-slash.cpp | #E7BD946e | — |
| comment.line.double-slash.java | #EBBC8E6e | — |
| comment.line.double-slash.js | #EBBC8E6e | — |
| comment.line.number-sign.makefile | #EBBC8E6e | — |
| comment.line.number-sign.python | #EBBC8E6e | — |
| comment.line.number-sign.yaml | #E7BD946e | — |
| comment.line.percentage.erlang | #EBBC8E6e | — |
| comment.line.powershell | #EBBC8E6e | — |
| comment.source.cmake | #E7BD946e | — |
| comment.source.cmakecache | #E7BD946e | — |
| constant.character | #F79F9Fde | — |
| constant.character.character-class.regexp | #ECC010de | — |
| constant.character.escape | #11E181de | — |
| constant.character.set.regexp | #0EE17Ede | — |
| constant.language | #CDBBFEde | — |
| constant.numeric | #8FCAFEde | — |
| constant.numeric.dec.python | #43E208de | — |
| constant.other.caps.python | #66ABE7de | — |
| constant.other.character-class.regexp | #08DF78de | — |
| constant.other.character-class.set.regexp | #F49191de | — |
| constant.other.color.rgb-value | #FEA3ECde | — |
| constant.other.placeholder | #ECBF0Dde | — |
| constant.other.rgb-value | #11E180de | — |
| constant.regexp | #0FE17Fde | — |
| constant.sha.git-rebase | #98CAF5de | — |
| emphasis | #66ABE7de | — |
| entity.name.class | #48E010de | — |
| entity.name.function | #ED7ED6de | — |
| entity.name.function.preprocessor | #ECC010de | — |
| entity.name.function.python | #48E111de | — |
| entity.name.label | #F183DBde | — |
| entity.name.namespace | #EC7FD6de | — |
| entity.name.operator | #AF97F2de | — |
| entity.name.operator.custom-literal | #EE8888de | — |
| entity.name.scope-resolution | #8AC2F2de | — |
| entity.name.tag | #83BEF1de | — |
| entity.name.tag.css | #F49191de | — |
| entity.name.type | #47E011de | — |
| entity.name.variable | #48E010de | — |
| entity.other.attribute | #AF97F0de | — |
| entity.other.attribute-name | #ED8989de | — |
| entity.other.attribute-name.class.css | #46E10Ede | — |
| entity.other.attribute-name.class.mixin.css | #11E17Fde | — |
| entity.other.attribute-name.id | #F79FE5de | — |
| entity.other.attribute-name.id.css | #47E011de | — |
| entity.other.attribute-name.parent-selector.css | #FEA8EDde | — |
| entity.other.attribute-name.pseudo-class.css | #91CAFDde | — |
| entity.other.attribute-name.pseudo-element.css | #ECC00Ede | — |
| entity.other.attribute-name.scss | #BCA7F8de | — |
| entity.other.document.begin.yaml | #E7BD946e | — |
| entity.other.inherited-class | #43E208de | — |
| header | #BCA7F8de | — |
| invalid | #F598E3de | — |
| keyword | #45E10Dde | — |
| keyword.codetag.notation.python | #11E181de | — |
| keyword.control | #AF97F0de | — |
| keyword.control.anchor.regexp | #10E180de | — |
| keyword.control.import.python | #FEACACde | — |
| keyword.operator | #F491E0de | — |
| keyword.operator.alignas | #FEA9EEde | — |
| keyword.operator.alignof | #ECBE0Ede | — |
| keyword.operator.cast | #EFBF08de | — |
| keyword.operator.delete | #76B5EDde | — |
| keyword.operator.documentation.powershell | #E7BD946e | — |
| keyword.operator.expression | #90CAFEde | — |
| keyword.operator.instanceof | #7CB9EFde | — |
| keyword.operator.logical.python | #ECC010de | — |
| keyword.operator.minus.exponent | #10E080de | — |
| keyword.operator.negation.regexp | #F28A8Ade | — |
| keyword.operator.new | #F8A7A7de | — |
| keyword.operator.noexcept | #8AC2F2de | — |
| keyword.operator.or.regexp | #7CB9EFde | — |
| keyword.operator.plus.exponent | #49E011de | — |
| keyword.operator.quantifier.regexp | #90CAFEde | — |
| keyword.operator.sizeof | #CDBBFEde | — |
| keyword.operator.typeid | #91CAFDde | — |
| keyword.operator.wordlike | #0EE17Ede | — |
| keyword.other.operator | #ED7ED6de | — |
| keyword.other.package.java | #0EE17Ede | — |
| keyword.other.unit | #6FB1EBde | — |
| keyword.other.using | #BCA7F8de | — |
| markup.bold | #B198F5de | — |
| markup.changed | #F49191de | — |
| markup.deleted | #B198F5de | — |
| markup.fenced_code.block.markdown | #10E080de | — |
| markup.heading | #0FE17Fde | — |
| markup.inline.raw | #FEB0B0de | — |
| markup.inserted | #ECBF10de | — |
| markup.italic | #ECBE0Ede | — |
| markup.raw.block.markdown | #46E00Cde | — |
| markup.strikethrough | #46E00Cde | — |
| markup.underline | #C9B4FEde | — |
| meta.block.c | #F08787de | — |
| meta.block.c | #0AE07Bde | — |
| meta.class.java | #6FB1EBde | — |
| meta.definition.variable.name | #FEACACde | — |
| meta.diff.header | #FEB0B0de | — |
| meta.embedded | #AF98F1de | — |
| meta.embedded.assembly | #0FE17Fde | — |
| meta.function-call.arguments.python | #F598E3de | — |
| meta.function-call.python | #CDBBFEde | — |
| meta.member.access.python | #FEB0B0de | — |
| meta.method.java | #B098F3de | — |
| meta.object-literal.key | #B097F4de | — |
| meta.paragraph.markdown | #ECC010de | — |
| meta.preprocessor | #B098F3de | — |
| meta.preprocessor.numeric | #98CAF5de | — |
| meta.preprocessor.string | #EFBF08de | — |
| meta.scope.prerequisites.makefile | #EE8888de | — |
| meta.structure.dictionary.json.comments | #EBBC8E6e | — |
| meta.structure.dictionary.key.python | #49E011de | — |
| meta.structure.dictionary.value.json.comments | #EBBC8E6e | — |
| meta.template.expression | #0FE17Fde | — |
| meta.type.cast.expr | #ED8989de | — |
| meta.type.new.expr | #F28ADDde | — |
| parameter | #90CAFDde | — |
| punctuation.character.set.begin.regexp | #EC7FD6de | — |
| punctuation.character.set.end.regexp | #11E17Fde | — |
| punctuation.definition.array.begin.json | #CDBBFEde | — |
| punctuation.definition.character-class.regexp | #FEACACde | — |
| punctuation.definition.comment | #EDBB956e | — |
| punctuation.definition.comment.json.comments | #E2BF8A6e | — |
| punctuation.definition.comment.python | #E2BF8A6e | — |
| punctuation.definition.dictionary.begin.json | #EFBF08de | — |
| punctuation.definition.dictionary.end.json | #45E10Dde | — |
| punctuation.definition.group.assertion.regexp | #ED7ED6de | — |
| punctuation.definition.group.regexp | #10E180de | — |
| punctuation.definition.list.begin.json | #B097F4de | — |
| punctuation.definition.list.begin.markdown | #F28A8Ade | — |
| punctuation.definition.list.begin.python | #90CAFDde | — |
| punctuation.definition.list.end.json | #0EE17Ede | — |
| punctuation.definition.list.end.markdown | #BCA7F8de | — |
| punctuation.definition.list.end.python | #FEB0B0de | — |
| punctuation.definition.parameters.begin.python | #C9B4FEde | — |
| punctuation.definition.parameters.end.bracket.round.java | #B098F3de | — |
| punctuation.definition.quote.begin.markdown | #11E07Fde | — |
| punctuation.definition.tag | #49E011de | — |
| punctuation.definition.template-expression.begin | #45E10Dde | — |
| punctuation.definition.template-expression.end | #F28ADDde | — |
| punctuation.section.class.begin.bracket.curly.java | #45E10Ede | — |
| punctuation.section.embedded | #FEA9EDde | — |
| punctuation.section.embedded.begin.php | #F8A7A7de | — |
| punctuation.section.embedded.end.php | #49E011de | — |
| punctuation.terminator.java | #46E00Cde | — |
| source.cmake | #91CAFDde | — |
| source.coffee.embedded | #46E10Ede | — |
| source.cpp | #F9AEAEde | — |
| source.css.less | #48E111de | — |
| source.groovy.embedded | #FEA9EDde | — |
| source.java | #B097F4de | — |
| source.java-properties | #EDC00Ade | — |
| source.json.comments | #E7BD946e | — |
| source.makefile | #83BEF1de | — |
| source.powershell | #ECC010de | — |
| source.powershell.variable.other.member | #B198F5de | — |
| source.python | #AF97F2de | — |
| storage | #F8A7A7de | — |
| storage.modifier | #11E07Fde | — |
| storage.modifier.import.java | #F28A8Ade | — |
| storage.modifier.package.java | #F08787de | — |
| storage.type | #EF7CD8de | — |
| storage.type.annotation.groovy | #C9B4FEde | — |
| storage.type.annotation.java | #EE7ED7de | — |
| storage.type.boolean.go | #69ADE9de | — |
| storage.type.byte.go | #F08787de | — |
| storage.type.cs | #EB7FD5de | — |
| storage.type.error.go | #48E111de | — |
| storage.type.generic.cs | #F9AEAEde | — |
| storage.type.generic.groovy | #11E181de | — |
| storage.type.generic.java | #48E111de | — |
| storage.type.groovy | #F28ADDde | — |
| storage.type.java | #CDBBFEde | — |
| storage.type.modifier.cs | #46E10Ede | — |
| storage.type.numeric.go | #49E111de | — |
| storage.type.object.array.groovy | #76B5EDde | — |
| storage.type.object.array.java | #F28A8Ade | — |
| storage.type.parameters.groovy | #08DF78de | — |
| storage.type.primitive.array.groovy | #EBC00Cde | — |
| storage.type.primitive.array.java | #11E07Fde | — |
| storage.type.primitive.groovy | #91C6F4de | — |
| storage.type.primitive.java | #8AC2F2de | — |
| storage.type.rune.go | #FEB0B0de | — |
| storage.type.string.go | #F79F9Fde | — |
| storage.type.token.java | #0DE17Dde | — |
| storage.type.uintptr.go | #45E10Ede | — |
| storage.type.variable.cs | #EDC00Ade | — |
| string | #AF97F2de | — |
| string.quoted.docstring.multi.python | #EBBC8E6e | — |
| string.regexp | #EF8989de | — |
| string.tag | #FEA3ECde | — |
| string.value | #B098F0de | — |
| strong | #11E181de | — |
| support.class | #11E181de | — |
| support.constant.color | #66ABE7de | — |
| support.constant.dom | #F598E3de | — |
| support.constant.font-name | #EE8888de | — |
| support.constant.handlebars | #C9B4FEde | — |
| support.constant.json | #0EE17Ede | — |
| support.constant.math | #EBC00Cde | — |
| support.constant.media | #11E07Fde | — |
| support.constant.media-type | #83BEF1de | — |
| support.constant.property-value | #FEB0B0de | — |
| support.function | #91CAFDde | — |
| support.function.git-rebase | #FEA8EDde | — |
| support.other.parenthesis.regexp | #F28ADDde | — |
| support.type | #48E010de | — |
| support.type.property-name | #46E10Ede | — |
| support.type.vendored.property-name | #F183DBde | — |
| support.variable | #F28A8Ade | — |
| token.debug-token | #11E17Fde | — |
| token.error-token | #49E111de | — |
| token.info-token | #FEB0B0de | — |
| token.warn-token | #11E181de | — |
| variable | #EBBF10de | — |
| variable.css | #45E10Dde | — |
| variable.language | #ECBF0Dde | — |
| variable.language.wildcard.java | #F8A7A7de | — |
| variable.other.constant | #46E00Cde | — |
| variable.other.definition.java | #F8A7E8de | — |
| variable.other.enummember | #08DF78de | — |
| variable.other.less | #FEA9EDde | — |
| variable.other.object.java | #C2AEF9de | — |
| variable.other.object.property.java | #FEA8EDde | — |
| variable.parameter.c | #AF98F1de | — |
| variable.parameter.function.language.python | #0DE17Dde | — |
| variable.parameter.java | #EE8888de | — |
| variable.scss | #49E111de | — |
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}!`;
}