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 | #2FB9B96e | — |
| comment.block.html | #2ECCCC6e | — |
| comment.block.java | #31BBBB6e | — |
| comment.block.javadoc.java | #2ECCCC6e | — |
| comment.block.powershell | #2ECCCC6e | — |
| comment.block.xml | #2ECCCC6e | — |
| comment.line.double-slash.c | #2FB9B96e | — |
| comment.line.double-slash.cpp | #2ECCCC6e | — |
| comment.line.double-slash.java | #2FB9B96e | — |
| comment.line.double-slash.js | #31BBBB6e | — |
| comment.line.number-sign.makefile | #31BBBB6e | — |
| comment.line.number-sign.python | #2FB9B96e | — |
| comment.line.number-sign.yaml | #2ECCCC6e | — |
| comment.line.percentage.erlang | #2FB9B96e | — |
| comment.line.powershell | #2ECCCC6e | — |
| comment.source.cmake | #2FB9B96e | — |
| comment.source.cmakecache | #2ECCCC6e | — |
| constant.character | #07BF9Dde | — |
| constant.character.character-class.regexp | #08BC9Cde | — |
| constant.character.escape | #F181C2de | — |
| constant.character.set.regexp | #ED8E71de | — |
| constant.language | #86A6F2de | — |
| constant.numeric | #89A8F3de | — |
| constant.numeric.dec.python | #3CDA3Cde | — |
| constant.other.caps.python | #9EB108de | — |
| constant.other.character-class.regexp | #F79FD3de | — |
| constant.other.character-class.set.regexp | #F698CFde | — |
| constant.other.color.rgb-value | #EE9175de | — |
| constant.other.placeholder | #A0B40Ade | — |
| constant.other.rgb-value | #C590F4de | — |
| constant.regexp | #C591F4de | — |
| constant.sha.git-rebase | #CE9FF7de | — |
| emphasis | #EE9175de | — |
| entity.name.class | #9FB307de | — |
| entity.name.function | #2CC22Cde | — |
| entity.name.function.preprocessor | #08DA08de | — |
| entity.name.function.python | #07BF9Fde | — |
| entity.name.label | #2BBCA2de | — |
| entity.name.namespace | #ED8E71de | — |
| entity.name.operator | #86A5F2de | — |
| entity.name.operator.custom-literal | #F389C8de | — |
| entity.name.scope-resolution | #CE9FF7de | — |
| entity.name.tag | #85A5F2de | — |
| entity.name.tag.css | #ED8E71de | — |
| entity.name.type | #B5C72Cde | — |
| entity.name.variable | #ED8E71de | — |
| entity.other.attribute | #C692F5de | — |
| entity.other.attribute-name | #86A5F2de | — |
| entity.other.attribute-name.class.css | #2CCF2Cde | — |
| entity.other.attribute-name.class.mixin.css | #86A5F2de | — |
| entity.other.attribute-name.id | #08D1ADde | — |
| entity.other.attribute-name.id.css | #ED8E71de | — |
| entity.other.attribute-name.parent-selector.css | #42DCC1de | — |
| entity.other.attribute-name.pseudo-class.css | #08D7B2de | — |
| entity.other.attribute-name.pseudo-element.css | #ED8F72de | — |
| entity.other.attribute-name.scss | #08DAB4de | — |
| entity.other.document.begin.yaml | #31BBBB6e | — |
| entity.other.inherited-class | #98B3F6de | — |
| header | #86A6F2de | — |
| invalid | #F181C4de | — |
| keyword | #C690F5de | — |
| keyword.codetag.notation.python | #89A8F3de | — |
| keyword.control | #86A5F2de | — |
| keyword.control.anchor.regexp | #08D1ADde | — |
| keyword.control.import.python | #07C207de | — |
| keyword.operator | #F7B49Fde | — |
| keyword.operator.alignas | #86A6F2de | — |
| keyword.operator.alignof | #08C408de | — |
| keyword.operator.cast | #36D736de | — |
| keyword.operator.delete | #C690F5de | — |
| keyword.operator.documentation.powershell | #2ECCCC6e | — |
| keyword.operator.expression | #F698CFde | — |
| keyword.operator.instanceof | #2CBBA2de | — |
| keyword.operator.logical.python | #F79FD3de | — |
| keyword.operator.minus.exponent | #07BF9Fde | — |
| keyword.operator.negation.regexp | #FD855Ede | — |
| keyword.operator.new | #9CB108de | — |
| keyword.operator.noexcept | #F181C3de | — |
| keyword.operator.or.regexp | #C590F4de | — |
| keyword.operator.plus.exponent | #F181C2de | — |
| keyword.operator.quantifier.regexp | #9EB209de | — |
| keyword.operator.sizeof | #86A6F2de | — |
| keyword.operator.typeid | #C590F4de | — |
| keyword.operator.wordlike | #C691F5de | — |
| keyword.other.operator | #2CCFB3de | — |
| keyword.other.package.java | #C590F4de | — |
| keyword.other.unit | #86A6F2de | — |
| keyword.other.using | #08DAB5de | — |
| markup.bold | #F7B49Fde | — |
| markup.changed | #2CCF2Cde | — |
| markup.deleted | #4EE14Ede | — |
| markup.fenced_code.block.markdown | #08CDA9de | — |
| markup.heading | #F282C3de | — |
| markup.inline.raw | #EC8E70de | — |
| markup.inserted | #9EB209de | — |
| markup.italic | #F0977Bde | — |
| markup.raw.block.markdown | #85A5F2de | — |
| markup.strikethrough | #EC8E70de | — |
| markup.underline | #A0B40Ade | — |
| meta.block.c | #07BF9Fde | — |
| meta.block.c | #30D4B7de | — |
| meta.class.java | #2CBCA3de | — |
| meta.definition.variable.name | #3CDA3Cde | — |
| meta.diff.header | #F8A6D7de | — |
| meta.embedded | #C692F5de | — |
| meta.embedded.assembly | #F79FD3de | — |
| meta.function-call.arguments.python | #85A5F2de | — |
| meta.function-call.python | #ED8E70de | — |
| meta.member.access.python | #2CC22Cde | — |
| meta.method.java | #F79FD3de | — |
| meta.object-literal.key | #C692F5de | — |
| meta.paragraph.markdown | #C591F4de | — |
| meta.preprocessor | #48DF48de | — |
| meta.preprocessor.numeric | #08CD08de | — |
| meta.preprocessor.string | #F181C3de | — |
| meta.scope.prerequisites.makefile | #F590CBde | — |
| meta.structure.dictionary.json.comments | #31BBBB6e | — |
| meta.structure.dictionary.key.python | #07BF9Fde | — |
| meta.structure.dictionary.value.json.comments | #2FB9B96e | — |
| meta.template.expression | #9EB209de | — |
| meta.type.cast.expr | #F590CBde | — |
| meta.type.new.expr | #30D430de | — |
| parameter | #07CA07de | — |
| punctuation.character.set.begin.regexp | #9EB10Ade | — |
| punctuation.character.set.end.regexp | #9EB309de | — |
| punctuation.definition.array.begin.json | #C691F5de | — |
| punctuation.definition.character-class.regexp | #F698CFde | — |
| punctuation.definition.comment | #31BBBB6e | — |
| punctuation.definition.comment.json.comments | #2FB9B96e | — |
| punctuation.definition.comment.python | #2ECCCC6e | — |
| punctuation.definition.dictionary.begin.json | #C590F4de | — |
| punctuation.definition.dictionary.end.json | #ED8F71de | — |
| punctuation.definition.group.assertion.regexp | #B5C72Cde | — |
| punctuation.definition.group.regexp | #9EB208de | — |
| punctuation.definition.list.begin.json | #2CBBA2de | — |
| punctuation.definition.list.begin.markdown | #90AEF5de | — |
| punctuation.definition.list.begin.python | #EE8F71de | — |
| punctuation.definition.list.end.json | #F282C3de | — |
| punctuation.definition.list.end.markdown | #85A5F2de | — |
| punctuation.definition.list.end.python | #07BF9Fde | — |
| punctuation.definition.parameters.begin.python | #C590F4de | — |
| punctuation.definition.parameters.end.bracket.round.java | #86A6F3de | — |
| punctuation.definition.quote.begin.markdown | #F181C3de | — |
| punctuation.definition.tag | #85A5F2de | — |
| punctuation.definition.template-expression.begin | #2CBCA3de | — |
| punctuation.definition.template-expression.end | #9EB208de | — |
| punctuation.section.class.begin.bracket.curly.java | #F181C3de | — |
| punctuation.section.embedded | #ED8E71de | — |
| punctuation.section.embedded.begin.php | #08DA08de | — |
| punctuation.section.embedded.end.php | #90AEF5de | — |
| punctuation.terminator.java | #08DB08de | — |
| source.cmake | #86A5F2de | — |
| source.coffee.embedded | #4EE14Ede | — |
| source.cpp | #86A6F2de | — |
| source.css.less | #C692F5de | — |
| source.groovy.embedded | #ED8F71de | — |
| source.java | #2CC22Cde | — |
| source.java-properties | #07DBB5de | — |
| source.json.comments | #31BBBB6e | — |
| source.makefile | #9FB20Ade | — |
| source.powershell | #C590F5de | — |
| source.powershell.variable.other.member | #A2B12Bde | — |
| source.python | #08DAB5de | — |
| storage | #36D7BAde | — |
| storage.modifier | #F181C3de | — |
| storage.modifier.import.java | #86A6F3de | — |
| storage.modifier.package.java | #F181C3de | — |
| storage.type | #08CD08de | — |
| storage.type.annotation.groovy | #08DCB7de | — |
| storage.type.annotation.java | #2CBBA2de | — |
| storage.type.boolean.go | #08C308de | — |
| storage.type.byte.go | #C691F5de | — |
| storage.type.cs | #07DBB5de | — |
| storage.type.error.go | #08DBB6de | — |
| storage.type.generic.cs | #ED8E71de | — |
| storage.type.generic.groovy | #ED8E71de | — |
| storage.type.generic.java | #C590F5de | — |
| storage.type.groovy | #08DCB7de | — |
| storage.type.java | #ED8E71de | — |
| storage.type.modifier.cs | #9FB307de | — |
| storage.type.numeric.go | #CE9FF7de | — |
| storage.type.object.array.groovy | #F5A890de | — |
| storage.type.object.array.java | #08DA08de | — |
| storage.type.parameters.groovy | #36D736de | — |
| storage.type.primitive.array.groovy | #07BF9Fde | — |
| storage.type.primitive.array.java | #9FB20Ade | — |
| storage.type.primitive.groovy | #08DA08de | — |
| storage.type.primitive.java | #C590F4de | — |
| storage.type.rune.go | #ED8E71de | — |
| storage.type.string.go | #C590F4de | — |
| storage.type.token.java | #85A5F2de | — |
| storage.type.uintptr.go | #C590F4de | — |
| storage.type.variable.cs | #08D708de | — |
| string | #86A7F3de | — |
| string.quoted.docstring.multi.python | #31BBBB6e | — |
| string.regexp | #9EB209de | — |
| string.tag | #F389C8de | — |
| string.value | #C590F4de | — |
| strong | #C590F4de | — |
| support.class | #07BF9Fde | — |
| support.constant.color | #ED8E70de | — |
| support.constant.dom | #2CBBA2de | — |
| support.constant.font-name | #F181C3de | — |
| support.constant.handlebars | #2CC7ACde | — |
| support.constant.json | #08BC9Cde | — |
| support.constant.math | #85A5F2de | — |
| support.constant.media | #07C207de | — |
| support.constant.media-type | #07C207de | — |
| support.constant.property-value | #85A6F2de | — |
| support.function | #F282C3de | — |
| support.function.git-rebase | #C590F4de | — |
| support.other.parenthesis.regexp | #C590F4de | — |
| support.type | #2BBCA2de | — |
| support.type.property-name | #C691F5de | — |
| support.type.vendored.property-name | #ED8E71de | — |
| support.variable | #85A5F2de | — |
| token.debug-token | #C590F4de | — |
| token.error-token | #9FB20Ade | — |
| token.info-token | #C590F4de | — |
| token.warn-token | #F7B49Fde | — |
| variable | #89A8F3de | — |
| variable.css | #C590F5de | — |
| variable.language | #9EB10Ade | — |
| variable.language.wildcard.java | #2CC02Cde | — |
| variable.other.constant | #2CC22Cde | — |
| variable.other.definition.java | #30D430de | — |
| variable.other.enummember | #ED8E71de | — |
| variable.other.less | #2CCF2Cde | — |
| variable.other.object.java | #F181C3de | — |
| variable.other.object.property.java | #08DBB6de | — |
| variable.parameter.c | #07CAA7de | — |
| variable.parameter.function.language.python | #3CDABEde | — |
| variable.parameter.java | #ED8E70de | — |
| variable.scss | #F181C3de | — |
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}!`;
}