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 | #C0C0C06e | — |
| comment.block.html | #C0C0C06e | — |
| comment.block.java | #BFBFBF6e | — |
| comment.block.javadoc.java | #C0C0C06e | — |
| comment.block.powershell | #C0C0C06e | — |
| comment.block.xml | #C0C0C06e | — |
| comment.line.double-slash.c | #C0C0C06e | — |
| comment.line.double-slash.cpp | #C0C0C06e | — |
| comment.line.double-slash.java | #C0C0C06e | — |
| comment.line.double-slash.js | #C0C0C06e | — |
| comment.line.number-sign.makefile | #C0C0C06e | — |
| comment.line.number-sign.python | #C0C0C06e | — |
| comment.line.number-sign.yaml | #C0C0C06e | — |
| comment.line.percentage.erlang | #C0C0C06e | — |
| comment.line.powershell | #C0C0C06e | — |
| comment.source.cmake | #BFBFBF6e | — |
| comment.source.cmakecache | #BFBFBF6e | — |
| constant.character | #75AFEAde | — |
| constant.character.character-class.regexp | #C6C610de | — |
| constant.character.escape | #13DA90de | — |
| constant.character.set.regexp | #10DA8Dde | — |
| constant.language | #E77CCCde | — |
| constant.numeric | #FEA2E7de | — |
| constant.numeric.dec.python | #B291EBde | — |
| constant.other.caps.python | #C6C616de | — |
| constant.other.character-class.regexp | #EA8677de | — |
| constant.other.character-class.set.regexp | #13DB8Fde | — |
| constant.other.color.rgb-value | #C6C610de | — |
| constant.other.placeholder | #FEA69Ade | — |
| constant.other.rgb-value | #14DA90de | — |
| constant.regexp | #90C1F2de | — |
| constant.sha.git-rebase | #82B8EEde | — |
| emphasis | #FEABA0de | — |
| entity.name.class | #CFB2FEde | — |
| entity.name.function | #CEB5F9de | — |
| entity.name.function.preprocessor | #B492ECde | — |
| entity.name.function.python | #E98779de | — |
| entity.name.label | #89BDF0de | — |
| entity.name.namespace | #C5C510de | — |
| entity.name.operator | #FEAB9Fde | — |
| entity.name.operator.custom-literal | #46DB13de | — |
| entity.name.scope-resolution | #14DA8Fde | — |
| entity.name.tag | #F29C90de | — |
| entity.name.tag.css | #8DC5FDde | — |
| entity.name.type | #E78779de | — |
| entity.name.variable | #FEABA0de | — |
| entity.other.attribute | #EE9082de | — |
| entity.other.attribute-name | #8CC5FDde | — |
| entity.other.attribute-name.class.css | #12DA90de | — |
| entity.other.attribute-name.class.mixin.css | #B291EBde | — |
| entity.other.attribute-name.id | #FEA1E7de | — |
| entity.other.attribute-name.id.css | #43DC10de | — |
| entity.other.attribute-name.parent-selector.css | #13DB8Fde | — |
| entity.other.attribute-name.pseudo-class.css | #F4A397de | — |
| entity.other.attribute-name.pseudo-element.css | #E97ACDde | — |
| entity.other.attribute-name.scss | #B390EEde | — |
| entity.other.document.begin.yaml | #C0C0C06e | — |
| entity.other.inherited-class | #13DA8Fde | — |
| header | #FEA69Ade | — |
| invalid | #B590F2de | — |
| keyword | #F497DDde | — |
| keyword.codetag.notation.python | #BA97F4de | — |
| keyword.control | #0FDB90de | — |
| keyword.control.anchor.regexp | #C5C516de | — |
| keyword.control.import.python | #F4A397de | — |
| keyword.operator | #C5C514de | — |
| keyword.operator.alignas | #B490F0de | — |
| keyword.operator.alignof | #C7C709de | — |
| keyword.operator.cast | #C6C616de | — |
| keyword.operator.delete | #C5C516de | — |
| keyword.operator.documentation.powershell | #C0C0C06e | — |
| keyword.operator.expression | #F59EE0de | — |
| keyword.operator.instanceof | #F5A99Ede | — |
| keyword.operator.logical.python | #42DC10de | — |
| keyword.operator.minus.exponent | #75AFEAde | — |
| keyword.operator.negation.regexp | #CFB2FEde | — |
| keyword.operator.new | #FEA1E8de | — |
| keyword.operator.noexcept | #B590F0de | — |
| keyword.operator.or.regexp | #F089D6de | — |
| keyword.operator.plus.exponent | #BA97F4de | — |
| keyword.operator.quantifier.regexp | #8EC5FEde | — |
| keyword.operator.sizeof | #C4A6F7de | — |
| keyword.operator.typeid | #B492ECde | — |
| keyword.operator.wordlike | #89BDF0de | — |
| keyword.other.operator | #45DB13de | — |
| keyword.other.package.java | #13DA8Fde | — |
| keyword.other.unit | #FEA69Ade | — |
| keyword.other.using | #F59EE0de | — |
| markup.bold | #B490EFde | — |
| markup.changed | #42DC10de | — |
| markup.deleted | #FEA69Ade | — |
| markup.fenced_code.block.markdown | #90C1F2de | — |
| markup.heading | #C6C616de | — |
| markup.inline.raw | #B390EEde | — |
| markup.inserted | #45DC12de | — |
| markup.italic | #E98779de | — |
| markup.raw.block.markdown | #BF9EF5de | — |
| markup.strikethrough | #90C1F2de | — |
| markup.underline | #43DD0Fde | — |
| meta.block.c | #C5C514de | — |
| meta.block.c | #FEAB9Fde | — |
| meta.class.java | #EA79CEde | — |
| meta.definition.variable.name | #F089D6de | — |
| meta.diff.header | #B391EDde | — |
| meta.embedded | #8BC5FDde | — |
| meta.embedded.assembly | #B490EFde | — |
| meta.function-call.arguments.python | #B391EDde | — |
| meta.function-call.python | #13DA90de | — |
| meta.member.access.python | #C5C514de | — |
| meta.method.java | #44DC12de | — |
| meta.object-literal.key | #46DB13de | — |
| meta.paragraph.markdown | #8BC5FDde | — |
| meta.preprocessor | #B590F2de | — |
| meta.preprocessor.numeric | #8AC5FEde | — |
| meta.preprocessor.string | #13DB8Fde | — |
| meta.scope.prerequisites.makefile | #C5C514de | — |
| meta.structure.dictionary.json.comments | #C0C0C06e | — |
| meta.structure.dictionary.key.python | #0ED98Fde | — |
| meta.structure.dictionary.value.json.comments | #C0C0C06e | — |
| meta.template.expression | #B490F0de | — |
| meta.type.cast.expr | #B291EBde | — |
| meta.type.new.expr | #FEABA0de | — |
| parameter | #C6C614de | — |
| punctuation.character.set.begin.regexp | #C4A6F7de | — |
| punctuation.character.set.end.regexp | #F4A397de | — |
| punctuation.definition.array.begin.json | #46DB13de | — |
| punctuation.definition.character-class.regexp | #C9ADF8de | — |
| punctuation.definition.comment | #C0C0C06e | — |
| punctuation.definition.comment.json.comments | #C0C0C06e | — |
| punctuation.definition.comment.python | #C0C0C06e | — |
| punctuation.definition.dictionary.begin.json | #EC7CD0de | — |
| punctuation.definition.dictionary.end.json | #B490EFde | — |
| punctuation.definition.group.assertion.regexp | #EA79CEde | — |
| punctuation.definition.group.regexp | #C9ADF8de | — |
| punctuation.definition.list.begin.json | #FEAB9Fde | — |
| punctuation.definition.list.begin.markdown | #E77CCCde | — |
| punctuation.definition.list.begin.python | #75AFEAde | — |
| punctuation.definition.list.end.json | #FEA1E7de | — |
| punctuation.definition.list.end.markdown | #68A7E5de | — |
| punctuation.definition.list.end.python | #C6C610de | — |
| punctuation.definition.parameters.begin.python | #12DA90de | — |
| punctuation.definition.parameters.end.bracket.round.java | #B390EEde | — |
| punctuation.definition.quote.begin.markdown | #E78779de | — |
| punctuation.definition.tag | #0ED98Fde | — |
| punctuation.definition.template-expression.begin | #13DA90de | — |
| punctuation.definition.template-expression.end | #0FDB90de | — |
| punctuation.section.class.begin.bracket.curly.java | #43DC10de | — |
| punctuation.section.embedded | #F7A6E3de | — |
| punctuation.section.embedded.begin.php | #B490F0de | — |
| punctuation.section.embedded.end.php | #EC8A7Cde | — |
| punctuation.terminator.java | #6FABE8de | — |
| source.cmake | #46DC14de | — |
| source.coffee.embedded | #FEA69Ade | — |
| source.cpp | #BF9EF5de | — |
| source.css.less | #8EC5FEde | — |
| source.groovy.embedded | #E78779de | — |
| source.java | #CEB5F9de | — |
| source.java-properties | #14DA8Fde | — |
| source.json.comments | #C0C0C06e | — |
| source.makefile | #B490EFde | — |
| source.powershell | #45DC13de | — |
| source.powershell.variable.other.member | #46DC13de | — |
| source.python | #46DB13de | — |
| storage | #C5C516de | — |
| storage.modifier | #F4A397de | — |
| storage.modifier.import.java | #C5C510de | — |
| storage.modifier.package.java | #F497DDde | — |
| storage.type | #45DC13de | — |
| storage.type.annotation.groovy | #EA79CEde | — |
| storage.type.annotation.java | #0ED98Fde | — |
| storage.type.boolean.go | #13DB8Fde | — |
| storage.type.byte.go | #C5C510de | — |
| storage.type.cs | #E77CCCde | — |
| storage.type.error.go | #8EC5FEde | — |
| storage.type.generic.cs | #90C1F2de | — |
| storage.type.generic.groovy | #C5C510de | — |
| storage.type.generic.java | #11DB8Fde | — |
| storage.type.groovy | #CFB2FEde | — |
| storage.type.java | #EA79CEde | — |
| storage.type.modifier.cs | #C5C516de | — |
| storage.type.numeric.go | #14DA90de | — |
| storage.type.object.array.groovy | #45DB13de | — |
| storage.type.object.array.java | #E77CCCde | — |
| storage.type.parameters.groovy | #13DB90de | — |
| storage.type.primitive.array.groovy | #10DA8Dde | — |
| storage.type.primitive.array.java | #6FABE8de | — |
| storage.type.primitive.groovy | #FEA1E8de | — |
| storage.type.primitive.java | #44DC12de | — |
| storage.type.rune.go | #45DB13de | — |
| storage.type.string.go | #EE82D3de | — |
| storage.type.token.java | #FEA1E7de | — |
| storage.type.uintptr.go | #90C1F2de | — |
| storage.type.variable.cs | #E77CCCde | — |
| string | #8BC5FDde | — |
| string.quoted.docstring.multi.python | #C0C0C06e | — |
| string.regexp | #13DA90de | — |
| string.tag | #C5C515de | — |
| string.value | #90C1F2de | — |
| strong | #C5C516de | — |
| support.class | #44DC0Fde | — |
| support.constant.color | #43DC10de | — |
| support.constant.dom | #FEA2E7de | — |
| support.constant.font-name | #13DA8Fde | — |
| support.constant.handlebars | #B391EDde | — |
| support.constant.json | #E78779de | — |
| support.constant.math | #7CB4ECde | — |
| support.constant.media | #8BC5FDde | — |
| support.constant.media-type | #E8887Ade | — |
| support.constant.property-value | #45DC12de | — |
| support.function | #45DC12de | — |
| support.function.git-rebase | #F29C90de | — |
| support.other.parenthesis.regexp | #EA8677de | — |
| support.type | #B590F0de | — |
| support.type.property-name | #75AFEAde | — |
| support.type.vendored.property-name | #13DA90de | — |
| support.variable | #88C2FEde | — |
| token.debug-token | #46DC14de | — |
| token.error-token | #0FDB90de | — |
| token.info-token | #EA8677de | — |
| token.warn-token | #FEA69Ade | — |
| variable | #46DB13de | — |
| variable.css | #C5C516de | — |
| variable.language | #10DA8Dde | — |
| variable.language.wildcard.java | #BA97F4de | — |
| variable.other.constant | #B590F0de | — |
| variable.other.definition.java | #F59EE0de | — |
| variable.other.enummember | #43DC10de | — |
| variable.other.less | #45DC13de | — |
| variable.other.object.java | #43DC10de | — |
| variable.other.object.property.java | #E97ACDde | — |
| variable.parameter.c | #10DA8Dde | — |
| variable.parameter.function.language.python | #E98779de | — |
| variable.parameter.java | #FEAB9Fde | — |
| variable.scss | #8AC5FEde | — |
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}!`;
}