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 | #7C34346e | — |
| comment.block.html | #7C32326e | — |
| comment.block.java | #7F32326e | — |
| comment.block.javadoc.java | #7D31316e | — |
| comment.block.powershell | #7D31316e | — |
| comment.block.xml | #7C34346e | — |
| comment.line.double-slash.c | #7C32326e | — |
| comment.line.double-slash.cpp | #7C34346e | — |
| comment.line.double-slash.java | #7C32326e | — |
| comment.line.double-slash.js | #7D31316e | — |
| comment.line.number-sign.makefile | #7C32326e | — |
| comment.line.number-sign.python | #7D31316e | — |
| comment.line.number-sign.yaml | #7F32326e | — |
| comment.line.percentage.erlang | #7D31316e | — |
| comment.line.powershell | #7F32326e | — |
| comment.source.cmake | #7C32326e | — |
| comment.source.cmakecache | #7C32326e | — |
| constant.character | #6A2D90de | — |
| constant.character.character-class.regexp | #7207B5de | — |
| constant.character.escape | #0B5811de | — |
| constant.character.set.regexp | #0921A5de | — |
| constant.language | #803404de | — |
| constant.numeric | #960649de | — |
| constant.numeric.dec.python | #694027de | — |
| constant.other.caps.python | #2E40A0de | — |
| constant.other.character-class.regexp | #313A1Bde | — |
| constant.other.character-class.set.regexp | #0A544Ede | — |
| constant.other.color.rgb-value | #214E4Bde | — |
| constant.other.placeholder | #1D413Ede | — |
| constant.other.rgb-value | #6A2746de | — |
| constant.regexp | #2A3679de | — |
| constant.sha.git-rebase | #36411Dde | — |
| emphasis | #0820A5de | — |
| entity.name.class | #09520Ede | — |
| entity.name.function | #812B54de | — |
| entity.name.function.preprocessor | #7B360Cde | — |
| entity.name.function.python | #3C5209de | — |
| entity.name.label | #2D3C90de | — |
| entity.name.namespace | #3B500Bde | — |
| entity.name.operator | #235526de | — |
| entity.name.operator.custom-literal | #6B2C90de | — |
| entity.name.scope-resolution | #3C520Ade | — |
| entity.name.tag | #0B5711de | — |
| entity.name.tag.css | #7203B7de | — |
| entity.name.type | #214E4Bde | bold |
| entity.name.variable | #0A534Dde | — |
| entity.other.attribute | #812B52de | — |
| entity.other.attribute-name | #0B229Fde | — |
| entity.other.attribute-name.class.css | #3B520Bde | — |
| entity.other.attribute-name.class.mixin.css | #5C3A24de | — |
| entity.other.attribute-name.id | #3C5209de | — |
| entity.other.attribute-name.id.css | #7105B5de | — |
| entity.other.attribute-name.parent-selector.css | #6A4127de | — |
| entity.other.attribute-name.pseudo-class.css | #0A5810de | — |
| entity.other.attribute-name.pseudo-element.css | #09520Ede | — |
| entity.other.attribute-name.scss | #692D90de | — |
| entity.other.document.begin.yaml | #7C32326e | — |
| entity.other.inherited-class | #0B5711de | bold |
| header | #3C520Ade | — |
| invalid | #3B481Fde | — |
| keyword | #7C3509de | bold |
| keyword.codetag.notation.python | #6C2C93de | bold |
| keyword.control | #7E3608de | bold |
| keyword.control.anchor.regexp | #940748de | bold |
| keyword.control.import.python | #94094Ade | bold |
| keyword.operator | #2E40A6de | bold |
| keyword.operator.alignas | #6C2C93de | bold |
| keyword.operator.alignof | #3C520Ade | bold |
| keyword.operator.cast | #215325de | bold |
| keyword.operator.delete | #3B5108de | bold |
| keyword.operator.documentation.powershell | #7C34346e | bold |
| keyword.operator.expression | #51276Ade | bold |
| keyword.operator.instanceof | #0B5711de | bold |
| keyword.operator.logical.python | #3B510Bde | bold |
| keyword.operator.minus.exponent | #7207B5de | bold |
| keyword.operator.negation.regexp | #3B500Bde | bold |
| keyword.operator.new | #792A4Ede | bold |
| keyword.operator.noexcept | #692D90de | bold |
| keyword.operator.or.regexp | #7B360Bde | bold |
| keyword.operator.plus.exponent | #0B5711de | bold |
| keyword.operator.quantifier.regexp | #3B5206de | bold |
| keyword.operator.sizeof | #0A5710de | bold |
| keyword.operator.typeid | #3B5108de | bold |
| keyword.operator.wordlike | #0B5711de | bold |
| keyword.other.operator | #084C0Ede | bold |
| keyword.other.package.java | #0B544Fde | bold |
| keyword.other.unit | #225425de | bold |
| keyword.other.using | #2E40A4de | bold |
| markup.bold | #0A22A4de | — |
| markup.changed | #694027de | — |
| markup.deleted | #6B2D91de | — |
| markup.fenced_code.block.markdown | #920B49de | — |
| markup.heading | #652C88de | — |
| markup.inline.raw | #2E40A0de | — |
| markup.inserted | #2E40A6de | — |
| markup.italic | #7C360Ade | — |
| markup.raw.block.markdown | #3C510Bde | — |
| markup.strikethrough | #633D26de | — |
| markup.underline | #36411Dde | — |
| meta.block.c | #7E3608de | — |
| meta.block.c | #562972de | — |
| meta.class.java | #3C520Ade | — |
| meta.definition.variable.name | #812B54de | — |
| meta.diff.header | #1D4120de | — |
| meta.embedded | #1D413Ede | — |
| meta.embedded.assembly | #2E3E98de | — |
| meta.function-call.arguments.python | #6B2D91de | — |
| meta.function-call.python | #720AB4de | — |
| meta.member.access.python | #1F4844de | — |
| meta.method.java | #2E3E98de | — |
| meta.object-literal.key | #0B544Fde | — |
| meta.paragraph.markdown | #404E21de | — |
| meta.preprocessor | #2F3FA6de | — |
| meta.preprocessor.numeric | #960649de | — |
| meta.preprocessor.string | #7C370Cde | — |
| meta.scope.prerequisites.makefile | #2E40A0de | — |
| meta.structure.dictionary.json.comments | #7C32326e | — |
| meta.structure.dictionary.key.python | #0B22A8de | — |
| meta.structure.dictionary.value.json.comments | #7F32326e | — |
| meta.template.expression | #0B23AAde | — |
| meta.type.cast.expr | #720AB4de | — |
| meta.type.new.expr | #0B5711de | — |
| parameter | #0A544Ede | — |
| punctuation.character.set.begin.regexp | #084C0Ede | — |
| punctuation.character.set.end.regexp | #692D90de | — |
| punctuation.definition.array.begin.json | #822B53de | — |
| punctuation.definition.character-class.regexp | #812B53de | — |
| punctuation.definition.comment | #7F32326e | — |
| punctuation.definition.comment.json.comments | #7C32326e | — |
| punctuation.definition.comment.python | #7F32326e | — |
| punctuation.definition.dictionary.begin.json | #3C510Bde | — |
| punctuation.definition.dictionary.end.json | #1B3A38de | — |
| punctuation.definition.group.assertion.regexp | #0B5711de | — |
| punctuation.definition.group.regexp | #2E40A6de | — |
| punctuation.definition.list.begin.json | #3C5209de | — |
| punctuation.definition.list.begin.markdown | #081F9Fde | — |
| punctuation.definition.list.begin.python | #5B2A79de | — |
| punctuation.definition.list.end.json | #0B544Fde | — |
| punctuation.definition.list.end.markdown | #960649de | — |
| punctuation.definition.list.end.python | #0B5811de | — |
| punctuation.definition.parameters.begin.python | #3B5206de | — |
| punctuation.definition.parameters.end.bracket.round.java | #562972de | — |
| punctuation.definition.quote.begin.markdown | #1B3A38de | — |
| punctuation.definition.tag | #3A5109de | — |
| punctuation.definition.template-expression.begin | #684027de | — |
| punctuation.definition.template-expression.end | #7A360Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #7206B5de | — |
| punctuation.section.embedded | #1D4120de | — |
| punctuation.section.embedded.begin.php | #094A0Ede | — |
| punctuation.section.embedded.end.php | #633D26de | — |
| punctuation.terminator.java | #0B534Dde | — |
| source.cmake | #2D3C90de | — |
| source.coffee.embedded | #235526de | — |
| source.cpp | #7C370Bde | — |
| source.css.less | #940748de | — |
| source.groovy.embedded | #7F2B52de | — |
| source.java | #7F3406de | — |
| source.java-properties | #940B4Ade | — |
| source.json.comments | #7D31316e | — |
| source.makefile | #3C5209de | — |
| source.powershell | #7D360Ade | — |
| source.powershell.variable.other.member | #3B510Bde | — |
| source.python | #3C520Ade | — |
| storage | #0A5810de | — |
| storage.modifier | #940B4Ade | — |
| storage.modifier.import.java | #3C5209de | — |
| storage.modifier.package.java | #0B534Dde | — |
| storage.type | #633D26de | bold |
| storage.type.annotation.groovy | #7203B7de | bold |
| storage.type.annotation.java | #0B534Dde | bold |
| storage.type.boolean.go | #940A4Ade | bold |
| storage.type.byte.go | #940B4Ade | bold |
| storage.type.cs | #0A5710de | bold |
| storage.type.error.go | #08443Fde | bold |
| storage.type.generic.cs | #09524Cde | bold |
| storage.type.generic.groovy | #930949de | bold |
| storage.type.generic.java | #7C370Bde | bold |
| storage.type.groovy | #7F3406de | bold |
| storage.type.java | #3C5209de | bold |
| storage.type.modifier.cs | #6A2D93de | bold |
| storage.type.numeric.go | #3A500Ade | bold |
| storage.type.object.array.groovy | #09520Ede | bold |
| storage.type.object.array.java | #0B534Ede | bold |
| storage.type.parameters.groovy | #3B520Ade | bold |
| storage.type.primitive.array.groovy | #6C2C93de | bold |
| storage.type.primitive.array.java | #602B81de | bold |
| storage.type.primitive.groovy | #2E41A5de | bold |
| storage.type.primitive.java | #7109B3de | bold |
| storage.type.rune.go | #7206B5de | bold |
| storage.type.string.go | #235526de | bold |
| storage.type.token.java | #0A544Ede | bold |
| storage.type.uintptr.go | #404E21de | bold |
| storage.type.variable.cs | #3C510Bde | bold |
| string | #792A4Ede | — |
| string.quoted.docstring.multi.python | #7C34346e | — |
| string.regexp | #3C5209de | — |
| string.tag | #0A5810de | — |
| string.value | #3C520Ade | — |
| strong | #084C0Ede | — |
| support.class | #684027de | — |
| support.constant.color | #930A49de | — |
| support.constant.dom | #602B81de | — |
| support.constant.font-name | #36411Dde | — |
| support.constant.handlebars | #0B5711de | — |
| support.constant.json | #235526de | — |
| support.constant.math | #940849de | — |
| support.constant.media | #2F3FA7de | — |
| support.constant.media-type | #5C3A24de | — |
| support.constant.property-value | #7C3509de | — |
| support.function | #0B5811de | — |
| support.function.git-rebase | #2E41A1de | — |
| support.other.parenthesis.regexp | #4E3221de | — |
| support.type | #2E3E98de | bold |
| support.type.property-name | #3C5209de | bold |
| support.type.vendored.property-name | #0B229Fde | bold |
| support.variable | #7F2B52de | — |
| token.debug-token | #803404de | — |
| token.error-token | #0B23AAde | — |
| token.info-token | #2E3E98de | — |
| token.warn-token | #694027de | — |
| variable | #5B2A79de | — |
| variable.css | #2E40A0de | — |
| variable.language | #0820A5de | — |
| variable.language.wildcard.java | #0B544Ede | — |
| variable.other.constant | #0921A5de | — |
| variable.other.definition.java | #3A5109de | — |
| variable.other.enummember | #940B4Ade | — |
| variable.other.less | #7A360Bde | — |
| variable.other.object.java | #2E40A0de | — |
| variable.other.object.property.java | #7B360Bde | — |
| variable.parameter.c | #2E41A1de | — |
| variable.parameter.function.language.python | #094A46de | — |
| variable.parameter.java | #51276Ade | — |
| variable.scss | #7E3608de | — |
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}!`;
}