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 | #A2A2A26e | — |
| comment.block.html | #A3A3A36e | — |
| comment.block.java | #BFBFBF6e | — |
| comment.block.javadoc.java | #A7A7A76e | — |
| comment.block.powershell | #B8B8B86e | — |
| comment.block.xml | #B1B1B16e | — |
| comment.line.double-slash.c | #A7A7A76e | — |
| comment.line.double-slash.cpp | #B1B1B16e | — |
| comment.line.double-slash.java | #B4B4B46e | — |
| comment.line.double-slash.js | #BFBFBF6e | — |
| comment.line.number-sign.makefile | #B3B3B36e | — |
| comment.line.number-sign.python | #BDBDBD6e | — |
| comment.line.number-sign.yaml | #A2A2A26e | — |
| comment.line.percentage.erlang | #B5B5B56e | — |
| comment.line.powershell | #AEAEAE6e | — |
| comment.source.cmake | #ABABAB6e | — |
| comment.source.cmakecache | #BFBFBF6e | — |
| constant.character | #EF98EFde | — |
| constant.character.character-class.regexp | #9999F0de | — |
| constant.character.escape | #0BBC0Bde | — |
| constant.character.set.regexp | #67D767de | — |
| constant.language | #5ACD5Ade | — |
| constant.numeric | #0DC40Dde | — |
| constant.numeric.dec.python | #B9B9F8de | — |
| constant.other.caps.python | #F09898de | — |
| constant.other.character-class.regexp | #EF9595de | — |
| constant.other.character-class.set.regexp | #F4A7A7de | — |
| constant.other.color.rgb-value | #0ADE0Ade | — |
| constant.other.placeholder | #0FBE0Fde | — |
| constant.other.rgb-value | #ACACF5de | — |
| constant.regexp | #F29FF2de | — |
| constant.sha.git-rebase | #52C752de | — |
| emphasis | #F19B9Bde | — |
| entity.name.class | #B9B9F8de | — |
| entity.name.function | #B3B3F7de | — |
| entity.name.function.preprocessor | #0CD70Cde | — |
| entity.name.function.python | #E88686de | — |
| entity.name.label | #EA89EAde | — |
| entity.name.namespace | #50C350de | — |
| entity.name.operator | #F5ACACde | — |
| entity.name.operator.custom-literal | #0BD40Bde | — |
| entity.name.scope-resolution | #A3A3F3de | — |
| entity.name.tag | #A7A7F4de | — |
| entity.name.tag.css | #48BA48de | — |
| entity.name.type | #F09A9Ade | — |
| entity.name.variable | #0BC10Bde | — |
| entity.other.attribute | #E98686de | — |
| entity.other.attribute-name | #AFAFF6de | — |
| entity.other.attribute-name.class.css | #EE95EEde | — |
| entity.other.attribute-name.class.mixin.css | #F098F0de | — |
| entity.other.attribute-name.id | #EC8F8Fde | — |
| entity.other.attribute-name.id.css | #F5A9A9de | — |
| entity.other.attribute-name.parent-selector.css | #F098F0de | — |
| entity.other.attribute-name.pseudo-class.css | #4ABD4Ade | — |
| entity.other.attribute-name.pseudo-element.css | #ED9292de | — |
| entity.other.attribute-name.scss | #0BC80Bde | — |
| entity.other.document.begin.yaml | #B1B1B16e | — |
| entity.other.inherited-class | #F4A5F4de | — |
| header | #9E9EF2de | — |
| invalid | #A5A5F4de | — |
| keyword | #E37BE3de | — |
| keyword.codetag.notation.python | #ED9292de | — |
| keyword.control | #A6A6F4de | — |
| keyword.control.anchor.regexp | #F5AAAAde | — |
| keyword.control.import.python | #EA8B8Bde | — |
| keyword.operator | #F5ACACde | — |
| keyword.operator.alignas | #E98686de | — |
| keyword.operator.alignof | #A7A7F4de | — |
| keyword.operator.cast | #E37BE3de | — |
| keyword.operator.delete | #0BDE0Bde | — |
| keyword.operator.documentation.powershell | #A3A3A36e | — |
| keyword.operator.expression | #9F9FF2de | — |
| keyword.operator.instanceof | #A2A2F3de | — |
| keyword.operator.logical.python | #F4A9A9de | — |
| keyword.operator.minus.exponent | #E986E9de | — |
| keyword.operator.negation.regexp | #B3B3F7de | — |
| keyword.operator.new | #F5ABABde | — |
| keyword.operator.noexcept | #E37CE3de | — |
| keyword.operator.or.regexp | #F3A2A2de | — |
| keyword.operator.plus.exponent | #F3A3F3de | — |
| keyword.operator.quantifier.regexp | #E683E6de | — |
| keyword.operator.sizeof | #0DD60Dde | — |
| keyword.operator.typeid | #9D9DF1de | — |
| keyword.operator.wordlike | #EB8CEBde | — |
| keyword.other.operator | #0ED20Ede | — |
| keyword.other.package.java | #4EC14Ede | — |
| keyword.other.unit | #F4A5A5de | — |
| keyword.other.using | #EA8A8Ade | — |
| markup.bold | #B8B8F8de | — |
| markup.changed | #EB8D8Dde | — |
| markup.deleted | #F4A8A8de | — |
| markup.fenced_code.block.markdown | #A5A5F4de | — |
| markup.heading | #B3B3F7de | — |
| markup.inline.raw | #4CBF4Cde | — |
| markup.inserted | #EB8C8Cde | — |
| markup.italic | #0EC80Ede | — |
| markup.raw.block.markdown | #59CC59de | — |
| markup.strikethrough | #F09898de | — |
| markup.underline | #F2A0A0de | — |
| meta.block.c | #E681E6de | — |
| meta.block.c | #ED9292de | — |
| meta.class.java | #50C350de | — |
| meta.definition.variable.name | #0EC50Ede | — |
| meta.diff.header | #0DD50Dde | — |
| meta.embedded | #EB8C8Cde | — |
| meta.embedded.assembly | #4ABE4Ade | — |
| meta.function-call.arguments.python | #AAAAF5de | — |
| meta.function-call.python | #B1B1F7de | — |
| meta.member.access.python | #EE9494de | — |
| meta.method.java | #9A9AF0de | — |
| meta.object-literal.key | #EB8C8Cde | — |
| meta.paragraph.markdown | #62D362de | — |
| meta.preprocessor | #0DD80Dde | — |
| meta.preprocessor.numeric | #A3A3F3de | — |
| meta.preprocessor.string | #0BDF0Bde | — |
| meta.scope.prerequisites.makefile | #50C350de | — |
| meta.structure.dictionary.json.comments | #B5B5B56e | — |
| meta.structure.dictionary.key.python | #E681E6de | — |
| meta.structure.dictionary.value.json.comments | #ACACAC6e | — |
| meta.template.expression | #ED92EDde | — |
| meta.type.cast.expr | #A0A0F2de | — |
| meta.type.new.expr | #B9B9F8de | — |
| parameter | #B1B1F7de | — |
| punctuation.character.set.begin.regexp | #A9A9F4de | — |
| punctuation.character.set.end.regexp | #EB8D8Dde | — |
| punctuation.definition.array.begin.json | #AFAFF6de | — |
| punctuation.definition.character-class.regexp | #58CB58de | — |
| punctuation.definition.comment | #ACACAC6e | — |
| punctuation.definition.comment.json.comments | #BCBCBC6e | — |
| punctuation.definition.comment.python | #A8A8A86e | — |
| punctuation.definition.dictionary.begin.json | #A7A7F4de | — |
| punctuation.definition.dictionary.end.json | #F5ACACde | — |
| punctuation.definition.group.assertion.regexp | #59CB59de | — |
| punctuation.definition.group.regexp | #F09898de | — |
| punctuation.definition.list.begin.json | #EB8CEBde | — |
| punctuation.definition.list.begin.markdown | #0DCE0Dde | — |
| punctuation.definition.list.begin.python | #EA8989de | — |
| punctuation.definition.list.end.json | #F6ADADde | — |
| punctuation.definition.list.end.markdown | #F5ABABde | — |
| punctuation.definition.list.end.python | #0CC70Cde | — |
| punctuation.definition.parameters.begin.python | #4CBF4Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #A6A6F4de | — |
| punctuation.definition.quote.begin.markdown | #EA8989de | — |
| punctuation.definition.tag | #A7A7F4de | — |
| punctuation.definition.template-expression.begin | #E98686de | — |
| punctuation.definition.template-expression.end | #F4A6A6de | — |
| punctuation.section.class.begin.bracket.curly.java | #F5ABABde | — |
| punctuation.section.embedded | #4CBF4Cde | — |
| punctuation.section.embedded.begin.php | #F29FF2de | — |
| punctuation.section.embedded.end.php | #ED92EDde | — |
| punctuation.terminator.java | #0BC10Bde | — |
| source.cmake | #5DCF5Dde | — |
| source.coffee.embedded | #0ECA0Ede | — |
| source.cpp | #EB8CEBde | — |
| source.css.less | #FC5EFCde | — |
| source.groovy.embedded | #4BBE4Bde | — |
| source.java | #47BA47de | — |
| source.java-properties | #0DDE0Dde | — |
| source.json.comments | #ACACAC6e | — |
| source.makefile | #F5A9A9de | — |
| source.powershell | #B1B1F6de | — |
| source.powershell.variable.other.member | #E57FE5de | — |
| source.python | #A6A6F4de | — |
| storage | #F19BF1de | — |
| storage.modifier | #0CDC0Cde | — |
| storage.modifier.import.java | #ED9292de | — |
| storage.modifier.package.java | #E98686de | — |
| storage.type | #54C754de | — |
| storage.type.annotation.groovy | #ED9090de | — |
| storage.type.annotation.java | #EF96EFde | — |
| storage.type.boolean.go | #F09B9Bde | — |
| storage.type.byte.go | #67D667de | — |
| storage.type.cs | #67D667de | — |
| storage.type.error.go | #59CB59de | — |
| storage.type.generic.cs | #AFAFF6de | — |
| storage.type.generic.groovy | #0DC00Dde | — |
| storage.type.generic.java | #50C350de | — |
| storage.type.groovy | #A5A5F4de | — |
| storage.type.java | #A7A7F4de | — |
| storage.type.modifier.cs | #ACACF5de | — |
| storage.type.numeric.go | #E98686de | — |
| storage.type.object.array.groovy | #50C350de | — |
| storage.type.object.array.java | #9999F0de | — |
| storage.type.parameters.groovy | #F09999de | — |
| storage.type.primitive.array.groovy | #EF98EFde | — |
| storage.type.primitive.array.java | #0ED50Ede | — |
| storage.type.primitive.groovy | #F29FF2de | — |
| storage.type.primitive.java | #BABAF9de | — |
| storage.type.rune.go | #A5A5F3de | — |
| storage.type.string.go | #F3A3F3de | — |
| storage.type.token.java | #0CDC0Cde | — |
| storage.type.uintptr.go | #E88787de | — |
| storage.type.variable.cs | #F3A3A3de | — |
| string | #0BC90Bde | — |
| string.quoted.docstring.multi.python | #B8B8B86e | — |
| string.regexp | #E98787de | — |
| string.tag | #E681E6de | — |
| string.value | #BBBBF9de | — |
| strong | #0DDC0Dde | — |
| support.class | #F6AEAEde | — |
| support.constant.color | #ED91EDde | — |
| support.constant.dom | #4CBF4Cde | — |
| support.constant.font-name | #50C350de | — |
| support.constant.handlebars | #67D667de | — |
| support.constant.json | #F3A2A2de | — |
| support.constant.math | #F2A1A1de | — |
| support.constant.media | #9F9FF2de | — |
| support.constant.media-type | #A7A7F4de | — |
| support.constant.property-value | #E987E9de | — |
| support.function | #A5A5F4de | — |
| support.function.git-rebase | #F19CF1de | — |
| support.other.parenthesis.regexp | #F09898de | — |
| support.type | #EC8F8Fde | — |
| support.type.property-name | #0FC10Fde | — |
| support.type.vendored.property-name | #59CB59de | — |
| support.variable | #0BBC0Bde | — |
| token.debug-token | #B3B3F7de | — |
| token.error-token | #4ABE4Ade | — |
| token.info-token | #5DCF5Dde | — |
| token.warn-token | #F3A3A3de | — |
| variable | #50C350de | — |
| variable.css | #F29FF2de | — |
| variable.language | #EA89EAde | — |
| variable.language.wildcard.java | #EE9494de | — |
| variable.other.constant | #F4A5F4de | — |
| variable.other.definition.java | #0ED30Ede | — |
| variable.other.enummember | #9E9EF2de | — |
| variable.other.less | #EA8A8Ade | — |
| variable.other.object.java | #A3A3F3de | — |
| variable.other.object.property.java | #EE9595de | — |
| variable.parameter.c | #0BDE0Bde | — |
| variable.parameter.function.language.python | #4CBF4Cde | — |
| variable.parameter.java | #F6ADADde | — |
| variable.scss | #ED9292de | — |
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}!`;
}