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 | #7FD4D46e | — |
| comment.block.html | #7DD5D56e | — |
| comment.block.java | #7FD4D46e | — |
| comment.block.javadoc.java | #7DD5D56e | — |
| comment.block.powershell | #78D4D46e | — |
| comment.block.xml | #7FD4D46e | — |
| comment.line.double-slash.c | #7FD4D46e | — |
| comment.line.double-slash.cpp | #7DD5D56e | — |
| comment.line.double-slash.java | #77D6D66e | — |
| comment.line.double-slash.js | #7DD5D56e | — |
| comment.line.number-sign.makefile | #7FD4D46e | — |
| comment.line.number-sign.python | #7DD5D56e | — |
| comment.line.number-sign.yaml | #7DD5D56e | — |
| comment.line.percentage.erlang | #7FD4D46e | — |
| comment.line.powershell | #7FD4D46e | — |
| comment.source.cmake | #7FD4D46e | — |
| comment.source.cmakecache | #7DD5D56e | — |
| constant.character | #48E415de | — |
| constant.character.character-class.regexp | #F3C029de | — |
| constant.character.escape | #14E37Ade | — |
| constant.character.set.regexp | #C8B8F9de | — |
| constant.language | #C6C6C6de | — |
| constant.numeric | #48E315de | — |
| constant.numeric.dec.python | #A7A7A7de | — |
| constant.other.caps.python | #C5C5C5de | — |
| constant.other.character-class.regexp | #97CBFDde | — |
| constant.other.character-class.set.regexp | #C6C6C6de | — |
| constant.other.color.rgb-value | #F3C027de | — |
| constant.other.placeholder | #C6C6C6de | — |
| constant.other.rgb-value | #B09BEFde | — |
| constant.regexp | #4AE315de | — |
| constant.sha.git-rebase | #8FBFF0de | — |
| emphasis | #FEA5F3de | — |
| entity.name.class | #F08FE3de | — |
| entity.name.function | #48E315de | — |
| entity.name.function.preprocessor | #47E314de | — |
| entity.name.function.python | #13E37Bde | — |
| entity.name.label | #99CBFDde | — |
| entity.name.namespace | #F1C02Ede | — |
| entity.name.operator | #C2B1F8de | — |
| entity.name.operator.custom-literal | #F3C029de | — |
| entity.name.scope-resolution | #F2C030de | — |
| entity.name.tag | #13E37Bde | — |
| entity.name.tag.css | #BBBBBBde | — |
| entity.name.type | #E883DBde | — |
| entity.name.variable | #F3C02Bde | — |
| entity.other.attribute | #13E27Bde | — |
| entity.other.attribute-name | #AF9BEEde | — |
| entity.other.attribute-name.class.css | #F08FE3de | — |
| entity.other.attribute-name.class.mixin.css | #11E278de | — |
| entity.other.attribute-name.id | #C8B8F9de | — |
| entity.other.attribute-name.id.css | #B09CECde | — |
| entity.other.attribute-name.parent-selector.css | #F6AAEDde | — |
| entity.other.attribute-name.pseudo-class.css | #48E314de | — |
| entity.other.attribute-name.pseudo-element.css | #AF9AF1de | — |
| entity.other.attribute-name.scss | #C6C6C6de | — |
| entity.other.document.begin.yaml | #7FD4D46e | — |
| entity.other.inherited-class | #BDAAF6de | — |
| header | #9CC8F3de | — |
| invalid | #14E27Cde | — |
| keyword | #10E278de | — |
| keyword.codetag.notation.python | #99CBFEde | — |
| keyword.control | #F08FE3de | — |
| keyword.control.anchor.regexp | #14E37Ade | — |
| keyword.control.import.python | #F2C02Ade | — |
| keyword.operator | #8FBFF0de | — |
| keyword.operator.alignas | #C4C4C4de | — |
| keyword.operator.alignof | #C5C5C5de | — |
| keyword.operator.cast | #0FE37Bde | — |
| keyword.operator.delete | #F3C027de | — |
| keyword.operator.documentation.powershell | #7FD4D46e | — |
| keyword.operator.expression | #14E37Ade | — |
| keyword.operator.instanceof | #EA82DCde | — |
| keyword.operator.logical.python | #C6C6C6de | — |
| keyword.operator.minus.exponent | #AF9BEAde | — |
| keyword.operator.negation.regexp | #F2C030de | — |
| keyword.operator.new | #CDBCFEde | — |
| keyword.operator.noexcept | #C6C6C6de | — |
| keyword.operator.or.regexp | #F1C02Cde | — |
| keyword.operator.plus.exponent | #48E314de | — |
| keyword.operator.quantifier.regexp | #14E37Ade | — |
| keyword.operator.sizeof | #B09BEFde | — |
| keyword.operator.typeid | #8FBFF0de | — |
| keyword.operator.wordlike | #F3C027de | — |
| keyword.other.operator | #48E414de | — |
| keyword.other.package.java | #F1C02Cde | — |
| keyword.other.unit | #F1C02Dde | — |
| keyword.other.using | #4AE315de | — |
| markup.bold | #15E27Cde | — |
| markup.changed | #B09AF1de | — |
| markup.deleted | #13E27Bde | — |
| markup.fenced_code.block.markdown | #74ACE4de | — |
| markup.heading | #15E37Dde | — |
| markup.inline.raw | #97CBFDde | — |
| markup.inserted | #8FBFF0de | — |
| markup.italic | #99CBFDde | — |
| markup.raw.block.markdown | #44E40Ede | — |
| markup.strikethrough | #E685DAde | — |
| markup.underline | #48E215de | — |
| meta.block.c | #9CC8F3de | — |
| meta.block.c | #F195E6de | — |
| meta.class.java | #14E37Ade | — |
| meta.definition.variable.name | #C2B1F8de | — |
| meta.diff.header | #9CC8F3de | — |
| meta.embedded | #F3C02Bde | — |
| meta.embedded.assembly | #44E210de | — |
| meta.function-call.arguments.python | #F3C02Bde | — |
| meta.function-call.python | #ED88E1de | — |
| meta.member.access.python | #48E414de | — |
| meta.method.java | #44E210de | — |
| meta.object-literal.key | #C5C5C5de | — |
| meta.paragraph.markdown | #99CBFEde | — |
| meta.preprocessor | #C6C6C6de | — |
| meta.preprocessor.numeric | #8FBFF0de | — |
| meta.preprocessor.string | #F195E6de | — |
| meta.scope.prerequisites.makefile | #CDBCFEde | — |
| meta.structure.dictionary.json.comments | #77D6D66e | — |
| meta.structure.dictionary.key.python | #4AE315de | — |
| meta.structure.dictionary.value.json.comments | #7FD4D46e | — |
| meta.template.expression | #7CB2E9de | — |
| meta.type.cast.expr | #48E215de | — |
| meta.type.new.expr | #47E314de | — |
| parameter | #C8B5FEde | — |
| punctuation.character.set.begin.regexp | #B2B2B2de | — |
| punctuation.character.set.end.regexp | #48E415de | — |
| punctuation.definition.array.begin.json | #AF9AEEde | — |
| punctuation.definition.character-class.regexp | #C6C6C6de | — |
| punctuation.definition.comment | #78D4D46e | — |
| punctuation.definition.comment.json.comments | #78D4D46e | — |
| punctuation.definition.comment.python | #77D6D66e | — |
| punctuation.definition.dictionary.begin.json | #B09AF1de | — |
| punctuation.definition.dictionary.end.json | #C4C4C4de | — |
| punctuation.definition.group.assertion.regexp | #15E27Bde | — |
| punctuation.definition.group.regexp | #14E37Cde | — |
| punctuation.definition.list.begin.json | #C8B5FEde | — |
| punctuation.definition.list.begin.markdown | #F1C02Ede | — |
| punctuation.definition.list.begin.python | #F195E6de | — |
| punctuation.definition.list.end.json | #9CC8F3de | — |
| punctuation.definition.list.end.markdown | #45E30Fde | — |
| punctuation.definition.list.end.python | #13E37Bde | — |
| punctuation.definition.parameters.begin.python | #FEAAF4de | — |
| punctuation.definition.parameters.end.bracket.round.java | #A7A7A7de | — |
| punctuation.definition.quote.begin.markdown | #14E37Cde | — |
| punctuation.definition.tag | #48E314de | — |
| punctuation.definition.template-expression.begin | #15E27Cde | — |
| punctuation.definition.template-expression.end | #95C9FEde | — |
| punctuation.section.class.begin.bracket.curly.java | #95C3F1de | — |
| punctuation.section.embedded | #48E314de | — |
| punctuation.section.embedded.begin.php | #97CBFDde | — |
| punctuation.section.embedded.end.php | #ED88E1de | — |
| punctuation.terminator.java | #7CB2E9de | — |
| source.cmake | #82B7EBde | — |
| source.coffee.embedded | #FEABF4de | — |
| source.cpp | #13E37Bde | — |
| source.css.less | #76AEE6de | — |
| source.groovy.embedded | #9ACBFEde | — |
| source.java | #15E17Cde | — |
| source.java-properties | #14E37Ade | — |
| source.json.comments | #7FD4D46e | — |
| source.makefile | #15E17Cde | — |
| source.powershell | #B7A3F5de | — |
| source.powershell.variable.other.member | #B09AF1de | — |
| source.python | #EA82DCde | — |
| storage | #EA82DCde | — |
| storage.modifier | #47E313de | — |
| storage.modifier.import.java | #AF9BEAde | — |
| storage.modifier.package.java | #4AE315de | — |
| storage.type | #AF9BEAde | — |
| storage.type.annotation.groovy | #F2C027de | — |
| storage.type.annotation.java | #F08FE3de | — |
| storage.type.boolean.go | #14E37Cde | — |
| storage.type.byte.go | #B7B7B7de | — |
| storage.type.cs | #F1C02Cde | — |
| storage.type.error.go | #E784DAde | — |
| storage.type.generic.cs | #F3C027de | — |
| storage.type.generic.groovy | #F1C02Dde | — |
| storage.type.generic.java | #47E313de | — |
| storage.type.groovy | #95C3F1de | — |
| storage.type.java | #C6C6C6de | — |
| storage.type.modifier.cs | #44E40Ede | — |
| storage.type.numeric.go | #47E314de | — |
| storage.type.object.array.groovy | #C6C6C6de | — |
| storage.type.object.array.java | #76AEE6de | — |
| storage.type.parameters.groovy | #9CC8F3de | — |
| storage.type.primitive.array.groovy | #48E315de | — |
| storage.type.primitive.array.java | #F2C02Fde | — |
| storage.type.primitive.groovy | #F1C02Dde | — |
| storage.type.primitive.java | #F5A3EBde | — |
| storage.type.rune.go | #F3C027de | — |
| storage.type.string.go | #14E37Cde | — |
| storage.type.token.java | #C8B5FEde | — |
| storage.type.uintptr.go | #47E314de | — |
| storage.type.variable.cs | #F3C028de | — |
| string | #F1C02Cde | — |
| string.quoted.docstring.multi.python | #77D6D66e | — |
| string.regexp | #AF9BEEde | — |
| string.tag | #A9A9A9de | — |
| string.value | #F195E6de | — |
| strong | #F3C029de | — |
| support.class | #AF9AF1de | — |
| support.constant.color | #47E314de | — |
| support.constant.dom | #45E30Fde | — |
| support.constant.font-name | #F1C02Ede | — |
| support.constant.handlebars | #B09BEFde | — |
| support.constant.json | #14E37Cde | — |
| support.constant.math | #F2C027de | — |
| support.constant.media | #47E313de | — |
| support.constant.media-type | #48E415de | — |
| support.constant.property-value | #76AEE6de | — |
| support.function | #F1C02Cde | — |
| support.function.git-rebase | #14E37Cde | — |
| support.other.parenthesis.regexp | #13E37Bde | — |
| support.type | #4AE315de | — |
| support.type.property-name | #48E314de | — |
| support.type.vendored.property-name | #F2C02Ade | — |
| support.variable | #75ACE3de | — |
| token.debug-token | #F195E6de | — |
| token.error-token | #95C9FEde | — |
| token.info-token | #AEAEAEde | — |
| token.warn-token | #C4C4C4de | — |
| variable | #EB82DEde | — |
| variable.css | #FEAAF4de | — |
| variable.language | #AF9AF1de | — |
| variable.language.wildcard.java | #B09CECde | — |
| variable.other.constant | #B09CECde | — |
| variable.other.definition.java | #AF9AEEde | — |
| variable.other.enummember | #48E315de | — |
| variable.other.less | #14E37Cde | — |
| variable.other.object.java | #F2C030de | — |
| variable.other.object.property.java | #9ACBFEde | — |
| variable.parameter.c | #C6C6C6de | — |
| variable.parameter.function.language.python | #48E414de | — |
| variable.parameter.java | #9CC8F3de | — |
| variable.scss | #48E414de | — |
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}!`;
}