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 | #BFBFBF6e | — |
| comment.block.html | #BFBFBF6e | — |
| comment.block.java | #BEBEBE6e | — |
| comment.block.javadoc.java | #BFBFBF6e | — |
| comment.block.powershell | #BFBFBF6e | — |
| comment.block.xml | #BFBFBF6e | — |
| comment.line.double-slash.c | #BFBFBF6e | — |
| comment.line.double-slash.cpp | #BFBFBF6e | — |
| comment.line.double-slash.java | #BFBFBF6e | — |
| comment.line.double-slash.js | #BFBFBF6e | — |
| comment.line.number-sign.makefile | #BFBFBF6e | — |
| comment.line.number-sign.python | #BFBFBF6e | — |
| comment.line.number-sign.yaml | #BFBFBF6e | — |
| comment.line.percentage.erlang | #BFBFBF6e | — |
| comment.line.powershell | #BFBFBF6e | — |
| comment.source.cmake | #BFBFBF6e | — |
| comment.source.cmakecache | #BEBEBE6e | — |
| constant.character | #A6B0F8de | — |
| constant.character.character-class.regexp | #9FCF11de | — |
| constant.character.escape | #EEA274de | — |
| constant.character.set.regexp | #F79EC5de | — |
| constant.language | #0DDE19de | — |
| constant.numeric | #10DE1Cde | — |
| constant.numeric.dec.python | #10DD1Ede | — |
| constant.other.caps.python | #EEA274de | — |
| constant.other.character-class.regexp | #9ECE0Ede | — |
| constant.other.character-class.set.regexp | #A0CF0Ede | — |
| constant.other.color.rgb-value | #9EA9F7de | — |
| constant.other.placeholder | #8F9BF2de | — |
| constant.other.rgb-value | #CD84EFde | — |
| constant.regexp | #FEAD7Cde | — |
| constant.sha.git-rebase | #F07AAEde | — |
| emphasis | #FDAD80de | — |
| entity.name.class | #FEA5CCde | — |
| entity.name.function | #E4A9FEde | — |
| entity.name.function.preprocessor | #CE83EFde | — |
| entity.name.function.python | #0ED3D3de | — |
| entity.name.label | #D897F6de | — |
| entity.name.namespace | #CE83EFde | — |
| entity.name.operator | #ED7CAEde | — |
| entity.name.operator.custom-literal | #0DD5D5de | — |
| entity.name.scope-resolution | #FEA2CCde | — |
| entity.name.tag | #9ECE0Ede | — |
| entity.name.tag.css | #9ECF0Fde | — |
| entity.name.type | #10DD1Ede | — |
| entity.name.variable | #0DDE19de | — |
| entity.other.attribute | #CD84EFde | — |
| entity.other.attribute-name | #F8A6CAde | — |
| entity.other.attribute-name.class.css | #10D4D4de | — |
| entity.other.attribute-name.class.mixin.css | #10D3D3de | — |
| entity.other.attribute-name.id | #E4A9FEde | — |
| entity.other.attribute-name.id.css | #0BDD16de | — |
| entity.other.attribute-name.parent-selector.css | #FEA5CCde | — |
| entity.other.attribute-name.pseudo-class.css | #8F9BEEde | — |
| entity.other.attribute-name.pseudo-element.css | #9FCF0Fde | — |
| entity.other.attribute-name.scss | #97A3F6de | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #9FCE11de | — |
| header | #A0CF0Ede | — |
| invalid | #EA9866de | — |
| keyword | #EF7CAEde | — |
| keyword.codetag.notation.python | #10DD1Dde | — |
| keyword.control | #DFA6F8de | — |
| keyword.control.anchor.regexp | #F8A6CAde | — |
| keyword.control.import.python | #10D3D3de | — |
| keyword.operator | #CC84EDde | — |
| keyword.operator.alignas | #10DD1Dde | — |
| keyword.operator.alignof | #0FD5D5de | — |
| keyword.operator.cast | #10D4D4de | — |
| keyword.operator.delete | #E4A9FEde | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #E3A2FEde | — |
| keyword.operator.instanceof | #EEA274de | — |
| keyword.operator.logical.python | #FDAD80de | — |
| keyword.operator.minus.exponent | #9FCF11de | — |
| keyword.operator.negation.regexp | #A6B0F8de | — |
| keyword.operator.new | #10DD1Cde | — |
| keyword.operator.noexcept | #909CF5de | — |
| keyword.operator.or.regexp | #ADB7F9de | — |
| keyword.operator.plus.exponent | #9DD007de | — |
| keyword.operator.quantifier.regexp | #E3A2FEde | — |
| keyword.operator.sizeof | #CD84EEde | — |
| keyword.operator.typeid | #10D4D4de | — |
| keyword.operator.wordlike | #D590F5de | — |
| keyword.other.operator | #8F9BF1de | — |
| keyword.other.package.java | #F697C0de | — |
| keyword.other.unit | #FEA5CCde | — |
| keyword.other.using | #9FCF0Fde | — |
| markup.bold | #E4A9FEde | — |
| markup.changed | #F697C0de | — |
| markup.deleted | #9EA9F7de | — |
| markup.fenced_code.block.markdown | #0CD5D5de | — |
| markup.heading | #0BD4D4de | — |
| markup.inline.raw | #E4A9FEde | — |
| markup.inserted | #9FCE11de | — |
| markup.italic | #0DDE19de | — |
| markup.raw.block.markdown | #B0BAFEde | — |
| markup.strikethrough | #EC7EADde | — |
| markup.underline | #EEA274de | — |
| meta.block.c | #0EDD1Bde | — |
| meta.block.c | #ABB6FEde | — |
| meta.class.java | #D897F6de | — |
| meta.definition.variable.name | #FDAC7Bde | — |
| meta.diff.header | #909CF0de | — |
| meta.embedded | #10D4D4de | — |
| meta.embedded.assembly | #A0CF0Ede | — |
| meta.function-call.arguments.python | #0DDE19de | — |
| meta.function-call.python | #9FCE0Dde | — |
| meta.member.access.python | #0EDD1Cde | — |
| meta.method.java | #0CD5D5de | — |
| meta.object-literal.key | #9FCE0Dde | — |
| meta.paragraph.markdown | #FEAD7Cde | — |
| meta.preprocessor | #9FCF11de | — |
| meta.preprocessor.numeric | #B0BAFEde | — |
| meta.preprocessor.string | #10DE1Dde | — |
| meta.scope.prerequisites.makefile | #A0CF0Ede | — |
| meta.structure.dictionary.json.comments | #BFBFBF6e | — |
| meta.structure.dictionary.key.python | #F1AB81de | — |
| meta.structure.dictionary.value.json.comments | #BFBFBF6e | — |
| meta.template.expression | #EE7DAEde | — |
| meta.type.cast.expr | #8F9BEFde | — |
| meta.type.new.expr | #10DE1Cde | — |
| parameter | #EEA274de | — |
| punctuation.character.set.begin.regexp | #9FCF11de | — |
| punctuation.character.set.end.regexp | #FCAD7Fde | — |
| punctuation.definition.array.begin.json | #EE7DAEde | — |
| punctuation.definition.character-class.regexp | #FEA2CCde | — |
| punctuation.definition.comment | #BFBFBF6e | — |
| punctuation.definition.comment.json.comments | #BFBFBF6e | — |
| punctuation.definition.comment.python | #BFBFBF6e | — |
| punctuation.definition.dictionary.begin.json | #A6B0F8de | — |
| punctuation.definition.dictionary.end.json | #10DD1Dde | — |
| punctuation.definition.group.assertion.regexp | #0EDD1Cde | — |
| punctuation.definition.group.regexp | #FDAD7Dde | — |
| punctuation.definition.list.begin.json | #9ECE11de | — |
| punctuation.definition.list.begin.markdown | #9FCE0Cde | — |
| punctuation.definition.list.begin.python | #10D3D3de | — |
| punctuation.definition.list.end.json | #9ECE0Ede | — |
| punctuation.definition.list.end.markdown | #FEA5CCde | — |
| punctuation.definition.list.end.python | #FCAD7Fde | — |
| punctuation.definition.parameters.begin.python | #9FCE11de | — |
| punctuation.definition.parameters.end.bracket.round.java | #FEA5CCde | — |
| punctuation.definition.quote.begin.markdown | #9ECE10de | — |
| punctuation.definition.tag | #FEA5CCde | — |
| punctuation.definition.template-expression.begin | #FEA2CCde | — |
| punctuation.definition.template-expression.end | #ABB6FEde | — |
| punctuation.section.class.begin.bracket.curly.java | #0FD5D5de | — |
| punctuation.section.embedded | #9FCE11de | — |
| punctuation.section.embedded.begin.php | #E89360de | — |
| punctuation.section.embedded.end.php | #9ECE10de | — |
| punctuation.terminator.java | #9ECE10de | — |
| source.cmake | #CD84EEde | — |
| source.coffee.embedded | #CE82F1de | — |
| source.cpp | #DFA6F8de | — |
| source.css.less | #FEAD7Ede | — |
| source.groovy.embedded | #9DD007de | — |
| source.java | #0FDD1Cde | — |
| source.java-properties | #CE82F1de | — |
| source.json.comments | #BFBFBF6e | — |
| source.makefile | #FEA5CCde | — |
| source.powershell | #9ECE11de | — |
| source.powershell.variable.other.member | #FEA5CCde | — |
| source.python | #8F9BF1de | — |
| storage | #FEAD7Cde | — |
| storage.modifier | #FEAD7Cde | — |
| storage.modifier.import.java | #97A3F6de | — |
| storage.modifier.package.java | #9FCE0Dde | — |
| storage.type | #EEA274de | — |
| storage.type.annotation.groovy | #CD84EFde | — |
| storage.type.annotation.java | #9FCE11de | — |
| storage.type.boolean.go | #97A3F6de | — |
| storage.type.byte.go | #F697C0de | — |
| storage.type.cs | #0ED3D3de | — |
| storage.type.error.go | #B0BAFEde | — |
| storage.type.generic.cs | #F3B088de | — |
| storage.type.generic.groovy | #9FCE0Dde | — |
| storage.type.generic.java | #0EDE1Bde | — |
| storage.type.groovy | #10DD1Dde | — |
| storage.type.java | #FEAD7Ede | — |
| storage.type.modifier.cs | #DB9EF7de | — |
| storage.type.numeric.go | #0FD5D5de | — |
| storage.type.object.array.groovy | #EE7DAEde | — |
| storage.type.object.array.java | #9ECE11de | — |
| storage.type.parameters.groovy | #10DD1Ede | — |
| storage.type.primitive.array.groovy | #9FCE11de | — |
| storage.type.primitive.array.java | #10D3D3de | — |
| storage.type.primitive.groovy | #0CD5D5de | — |
| storage.type.primitive.java | #CE82F1de | — |
| storage.type.rune.go | #D288F3de | — |
| storage.type.string.go | #F388B7de | — |
| storage.type.token.java | #FEA5CCde | — |
| storage.type.uintptr.go | #CC84EDde | — |
| storage.type.variable.cs | #0CDE19de | — |
| string | #F1AB81de | — |
| string.quoted.docstring.multi.python | #BEBEBE6e | — |
| string.regexp | #10D4D4de | — |
| string.tag | #F181B2de | — |
| string.value | #FEAD7Ede | — |
| strong | #10DD1Ede | — |
| support.class | #0CDE19de | — |
| support.constant.color | #F07AAEde | — |
| support.constant.dom | #10D4D4de | — |
| support.constant.font-name | #9FCF11de | — |
| support.constant.handlebars | #CC84EDde | — |
| support.constant.json | #0FD5D5de | — |
| support.constant.math | #9ECE0Ede | — |
| support.constant.media | #9FCE11de | — |
| support.constant.media-type | #10D4D4de | — |
| support.constant.property-value | #CC84EDde | — |
| support.function | #D288F3de | — |
| support.function.git-rebase | #F590BCde | — |
| support.other.parenthesis.regexp | #CC84EDde | — |
| support.type | #DFA6F8de | — |
| support.type.property-name | #EEA274de | — |
| support.type.vendored.property-name | #0BDD16de | — |
| support.variable | #10D4D4de | — |
| token.debug-token | #F590BCde | — |
| token.error-token | #9ECE11de | — |
| token.info-token | #0FD5D5de | — |
| token.warn-token | #9ECE0Ede | — |
| variable | #10DE1Dde | — |
| variable.css | #9ECF0Fde | — |
| variable.language | #8F9BEFde | — |
| variable.language.wildcard.java | #F590BCde | — |
| variable.other.constant | #E3A2FEde | — |
| variable.other.definition.java | #0FD5D5de | — |
| variable.other.enummember | #0CDE19de | — |
| variable.other.less | #ED7CAEde | — |
| variable.other.object.java | #CE83EFde | — |
| variable.other.object.property.java | #909CF0de | — |
| variable.parameter.c | #EEA274de | — |
| variable.parameter.function.language.python | #E4A9FEde | — |
| variable.parameter.java | #10D4D4de | — |
| variable.scss | #8F9BEEde | — |
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}!`;
}