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 | #4AD7D76e | — |
| comment.block.html | #47D5D56e | — |
| comment.block.java | #4CD9D96e | — |
| comment.block.javadoc.java | #37BABA6e | — |
| comment.block.powershell | #3ECFCF6e | — |
| comment.block.xml | #4AD7D76e | — |
| comment.line.double-slash.c | #47DADA6e | — |
| comment.line.double-slash.cpp | #4BD6D66e | — |
| comment.line.double-slash.java | #51DADA6e | — |
| comment.line.double-slash.js | #34CCCC6e | — |
| comment.line.number-sign.makefile | #39D0D06e | — |
| comment.line.number-sign.python | #46D2D26e | — |
| comment.line.number-sign.yaml | #36C1C16e | — |
| comment.line.percentage.erlang | #33C4C46e | — |
| comment.line.powershell | #36BBBB6e | — |
| comment.source.cmake | #33BBBB6e | — |
| comment.source.cmakecache | #47DADA6e | — |
| constant.character | #CAAF3Fde | — |
| constant.character.character-class.regexp | #F08EE6de | — |
| constant.character.escape | #EE87E4de | — |
| constant.character.set.regexp | #34DA09de | — |
| constant.language | #53D895de | — |
| constant.numeric | #F295E9de | — |
| constant.numeric.dec.python | #B5B5B5de | — |
| constant.other.caps.python | #F08EE6de | — |
| constant.other.character-class.regexp | #0BCD6Cde | — |
| constant.other.character-class.set.regexp | #B7A7F7de | — |
| constant.other.color.rgb-value | #AD9BF4de | — |
| constant.other.placeholder | #F397E9de | — |
| constant.other.rgb-value | #F7ACF0de | — |
| constant.regexp | #DAB20Ade | — |
| constant.sha.git-rebase | #B1B1B1de | — |
| emphasis | #D0B549de | — |
| entity.name.class | #33D20Ade | — |
| entity.name.function | #B1A0F5de | — |
| entity.name.function.preprocessor | #D0A80Bde | — |
| entity.name.function.python | #D8AE0Ade | — |
| entity.name.label | #30C30Bde | — |
| entity.name.namespace | #36E209de | — |
| entity.name.operator | #B8B8B8de | — |
| entity.name.operator.custom-literal | #D7BC53de | — |
| entity.name.scope-resolution | #A7A7A7de | — |
| entity.name.tag | #BCAEF8de | — |
| entity.name.tag.css | #31C909de | — |
| entity.name.type | #81C1ECde | — |
| entity.name.variable | #EE86E4de | — |
| entity.other.attribute | #DDC35Ede | — |
| entity.other.attribute-name | #C1B3F9de | — |
| entity.other.attribute-name.class.css | #F6A6EEde | — |
| entity.other.attribute-name.class.mixin.css | #0BDC74de | — |
| entity.other.attribute-name.id | #BCBCBCde | — |
| entity.other.attribute-name.id.css | #3BC580de | — |
| entity.other.attribute-name.parent-selector.css | #CCB142de | — |
| entity.other.attribute-name.pseudo-class.css | #66B0E0de | — |
| entity.other.attribute-name.pseudo-element.css | #B4B4B4de | — |
| entity.other.attribute-name.scss | #39C57Fde | — |
| entity.other.document.begin.yaml | #3ED0D06e | — |
| entity.other.inherited-class | #F49BEBde | — |
| header | #F8AFF0de | — |
| invalid | #6FB5E5de | — |
| keyword | #AD9CF4de | — |
| keyword.codetag.notation.python | #88C5EEde | — |
| keyword.control | #A8A8A8de | — |
| keyword.control.anchor.regexp | #59C93Dde | — |
| keyword.control.import.python | #66D24Bde | — |
| keyword.operator | #E3B70Ade | — |
| keyword.operator.alignas | #51B8FBde | — |
| keyword.operator.alignof | #ED84E2de | — |
| keyword.operator.cast | #75BAE8de | — |
| keyword.operator.delete | #32D109de | — |
| keyword.operator.documentation.powershell | #41D2D26e | — |
| keyword.operator.expression | #C7AB3Dde | — |
| keyword.operator.instanceof | #57C73Bde | — |
| keyword.operator.logical.python | #F190E7de | — |
| keyword.operator.minus.exponent | #C5B8F9de | — |
| keyword.operator.negation.regexp | #64AFE0de | — |
| keyword.operator.new | #65D14Ade | — |
| keyword.operator.noexcept | #F295E9de | — |
| keyword.operator.or.regexp | #BEB0F8de | — |
| keyword.operator.plus.exponent | #53D795de | — |
| keyword.operator.quantifier.regexp | #5EDD9Dde | — |
| keyword.operator.sizeof | #CCB143de | — |
| keyword.operator.typeid | #B3A2F5de | — |
| keyword.operator.wordlike | #3ABE7Cde | — |
| keyword.other.operator | #F5A2EDde | — |
| keyword.other.package.java | #6DD753de | — |
| keyword.other.unit | #C5C5C5de | — |
| keyword.other.using | #72DA59de | — |
| markup.bold | #C0B2F8de | — |
| markup.changed | #8EC9F0de | — |
| markup.deleted | #ACACACde | — |
| markup.fenced_code.block.markdown | #BDBDBDde | — |
| markup.heading | #B5A5F6de | — |
| markup.inline.raw | #B3A2F5de | — |
| markup.inserted | #96CEF3de | — |
| markup.italic | #54C139de | — |
| markup.raw.block.markdown | #BCBCBCde | — |
| markup.strikethrough | #BEBEBEde | — |
| markup.underline | #56C53Bde | — |
| meta.block.c | #F49CEBde | — |
| meta.block.c | #7DBFEAde | — |
| meta.class.java | #95CDF2de | — |
| meta.definition.variable.name | #B8B8B8de | — |
| meta.diff.header | #F397E9de | — |
| meta.embedded | #8EC9F0de | — |
| meta.embedded.assembly | #C5A93Bde | — |
| meta.function-call.arguments.python | #B8A8F6de | — |
| meta.function-call.python | #EE88E4de | — |
| meta.member.access.python | #EE88E4de | — |
| meta.method.java | #0BCE6Cde | — |
| meta.object-literal.key | #C1C1C1de | — |
| meta.paragraph.markdown | #6FB6E5de | — |
| meta.preprocessor | #09DA73de | — |
| meta.preprocessor.numeric | #0BC969de | — |
| meta.preprocessor.string | #75BAE8de | — |
| meta.scope.prerequisites.makefile | #EE88E4de | — |
| meta.structure.dictionary.json.comments | #3ED4D46e | — |
| meta.structure.dictionary.key.python | #6FB6E5de | — |
| meta.structure.dictionary.value.json.comments | #33C4C46e | — |
| meta.template.expression | #AAAAAAde | — |
| meta.type.cast.expr | #94CCF2de | — |
| meta.type.new.expr | #8EC9F0de | — |
| parameter | #BFBFBFde | — |
| punctuation.character.set.begin.regexp | #3ABE7Cde | — |
| punctuation.character.set.end.regexp | #84C3EDde | — |
| punctuation.definition.array.begin.json | #35DA0Bde | — |
| punctuation.definition.character-class.regexp | #F293E8de | — |
| punctuation.definition.comment | #44D3D36e | — |
| punctuation.definition.comment.json.comments | #38C8C86e | — |
| punctuation.definition.comment.python | #4CD9D96e | — |
| punctuation.definition.dictionary.begin.json | #32CA0Bde | — |
| punctuation.definition.dictionary.end.json | #8EC9F0de | — |
| punctuation.definition.group.assertion.regexp | #C9BDFAde | — |
| punctuation.definition.group.regexp | #DBC259de | — |
| punctuation.definition.list.begin.json | #6DB4E4de | — |
| punctuation.definition.list.begin.markdown | #84C3EDde | — |
| punctuation.definition.list.begin.python | #BCAEF8de | — |
| punctuation.definition.list.end.json | #B6A6F6de | — |
| punctuation.definition.list.end.markdown | #F08EE6de | — |
| punctuation.definition.list.end.python | #AE9DF4de | — |
| punctuation.definition.parameters.begin.python | #B1A0F5de | — |
| punctuation.definition.parameters.end.bracket.round.java | #69B2E2de | — |
| punctuation.definition.quote.begin.markdown | #6AB2E3de | — |
| punctuation.definition.tag | #3ABE7Cde | — |
| punctuation.definition.template-expression.begin | #B7B7B7de | — |
| punctuation.definition.template-expression.end | #0BCD6Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #F18FE6de | — |
| punctuation.section.embedded | #D3B94Ede | — |
| punctuation.section.embedded.begin.php | #BDAEF8de | — |
| punctuation.section.embedded.end.php | #EF8BE5de | — |
| punctuation.terminator.java | #5BC93Fde | — |
| source.cmake | #35DA0Bde | — |
| source.coffee.embedded | #4CD390de | — |
| source.cpp | #3BC580de | — |
| source.css.less | #B3A2F5de | — |
| source.groovy.embedded | #2FC509de | — |
| source.java | #09C568de | — |
| source.java-properties | #53D795de | — |
| source.json.comments | #36C1C16e | — |
| source.makefile | #F192E8de | — |
| source.powershell | #CAAF3Fde | — |
| source.powershell.variable.other.member | #0AE476de | — |
| source.python | #3FC984de | — |
| storage | #C1C1C1de | — |
| storage.modifier | #DCB20Bde | — |
| storage.modifier.import.java | #68B1E2de | — |
| storage.modifier.package.java | #F5A2EDde | — |
| storage.type | #67B0E2de | — |
| storage.type.annotation.groovy | #5ECC43de | — |
| storage.type.annotation.java | #B2B2B2de | — |
| storage.type.boolean.go | #B8B8B8de | — |
| storage.type.byte.go | #09D16Ede | — |
| storage.type.cs | #76DC5Dde | — |
| storage.type.error.go | #EF8AE5de | — |
| storage.type.generic.cs | #44CD88de | — |
| storage.type.generic.groovy | #CCA40Ade | — |
| storage.type.generic.java | #D7BC53de | — |
| storage.type.groovy | #DBC259de | — |
| storage.type.java | #33D90Bde | — |
| storage.type.modifier.cs | #BABABAde | — |
| storage.type.numeric.go | #AAAAAAde | — |
| storage.type.object.array.groovy | #F08EE6de | — |
| storage.type.object.array.java | #F191E7de | — |
| storage.type.parameters.groovy | #BCBCBCde | — |
| storage.type.primitive.array.groovy | #77DD5Ede | — |
| storage.type.primitive.array.java | #B4A4F6de | — |
| storage.type.primitive.groovy | #5BC93Fde | — |
| storage.type.primitive.java | #D5AD0Bde | — |
| storage.type.rune.go | #ABABABde | — |
| storage.type.string.go | #5BC93Fde | — |
| storage.type.token.java | #F6A7EEde | — |
| storage.type.uintptr.go | #34E50Ade | — |
| storage.type.variable.cs | #0BD16Ede | — |
| string | #EC80E1de | — |
| string.quoted.docstring.multi.python | #38C8C86e | — |
| string.regexp | #80C1ECde | — |
| string.tag | #0BC568de | — |
| string.value | #53D795de | — |
| strong | #3CC781de | — |
| support.class | #6FB6E5de | — |
| support.constant.color | #C7BBFAde | — |
| support.constant.dom | #60CE44de | — |
| support.constant.font-name | #D3AB0Bde | — |
| support.constant.handlebars | #F399EAde | — |
| support.constant.json | #72DA59de | — |
| support.constant.math | #7EBFEBde | — |
| support.constant.media | #D0B549de | — |
| support.constant.media-type | #66B0E0de | — |
| support.constant.property-value | #0BD470de | — |
| support.function | #70B7E6de | — |
| support.function.git-rebase | #C3B6F9de | — |
| support.other.parenthesis.regexp | #73DB59de | — |
| support.type | #55C539de | — |
| support.type.property-name | #C5C5C5de | — |
| support.type.vendored.property-name | #AD9BF4de | — |
| support.variable | #AEAEAEde | — |
| token.debug-token | #67B1E2de | — |
| token.error-token | #D7BC53de | — |
| token.info-token | #BEBEBEde | — |
| token.warn-token | #B0B0B0de | — |
| variable | #69B1E2de | — |
| variable.css | #F296E9de | — |
| variable.language | #F7A9EFde | — |
| variable.language.wildcard.java | #67B0E2de | — |
| variable.other.constant | #55D997de | — |
| variable.other.definition.java | #73B8E7de | — |
| variable.other.enummember | #41CB87de | — |
| variable.other.less | #B8B8B8de | — |
| variable.other.object.java | #7BBEEAde | — |
| variable.other.object.property.java | #62CF46de | — |
| variable.parameter.c | #B6B6B6de | — |
| variable.parameter.function.language.python | #54BE3Ade | — |
| variable.parameter.java | #8EC9F0de | — |
| variable.scss | #BFB1F8de | — |
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}!`;
}