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 | #1833336e | — |
| comment.block.html | #1634346e | — |
| comment.block.java | #1735356e | — |
| comment.block.javadoc.java | #1735356e | — |
| comment.block.powershell | #1735356e | — |
| comment.block.xml | #1634346e | — |
| comment.line.double-slash.c | #1833336e | — |
| comment.line.double-slash.cpp | #1833336e | — |
| comment.line.double-slash.java | #1534346e | — |
| comment.line.double-slash.js | #1735356e | — |
| comment.line.number-sign.makefile | #1735356e | — |
| comment.line.number-sign.python | #1833336e | — |
| comment.line.number-sign.yaml | #1534346e | — |
| comment.line.percentage.erlang | #1534346e | — |
| comment.line.powershell | #1735356e | — |
| comment.source.cmake | #1634346e | — |
| comment.source.cmakecache | #1534346e | — |
| constant.character | #0E5113de | — |
| constant.character.character-class.regexp | #1B4646de | — |
| constant.character.escape | #2A3215de | — |
| constant.character.set.regexp | #0E4E4Ede | — |
| constant.language | #3A4C11de | — |
| constant.numeric | #452819de | — |
| constant.numeric.dec.python | #3A4C0Ede | — |
| constant.other.caps.python | #77310Ade | — |
| constant.other.character-class.regexp | #490E6Ede | — |
| constant.other.character-class.set.regexp | #113434de | — |
| constant.other.color.rgb-value | #0D5111de | — |
| constant.other.placeholder | #77310Ade | — |
| constant.other.rgb-value | #5B3521de | — |
| constant.regexp | #0C4E4Ede | — |
| constant.sha.git-rebase | #033806de | — |
| emphasis | #39461Bde | — |
| entity.name.class | #462A1Bde | — |
| entity.name.function | #62223Cde | — |
| entity.name.function.preprocessor | #46215Bde | — |
| entity.name.function.python | #2F3918de | — |
| entity.name.label | #62032Ade | — |
| entity.name.namespace | #104E4Ede | — |
| entity.name.operator | #14227Fde | — |
| entity.name.operator.custom-literal | #263402de | — |
| entity.name.scope-resolution | #451C5Bde | — |
| entity.name.tag | #0E4E4Ede | — |
| entity.name.tag.css | #253403de | — |
| entity.name.type | #792F05de | bold |
| entity.name.variable | #502369de | — |
| entity.other.attribute | #123614de | — |
| entity.other.attribute-name | #104E4Ede | — |
| entity.other.attribute-name.class.css | #5B2678de | — |
| entity.other.attribute-name.class.mixin.css | #462A1Bde | — |
| entity.other.attribute-name.id | #562570de | — |
| entity.other.attribute-name.id.css | #692340de | — |
| entity.other.attribute-name.parent-selector.css | #1A3F1Cde | — |
| entity.other.attribute-name.pseudo-class.css | #394C0Dde | — |
| entity.other.attribute-name.pseudo-element.css | #1B4646de | — |
| entity.other.attribute-name.scss | #183919de | — |
| entity.other.document.begin.yaml | #1833336e | — |
| entity.other.inherited-class | #571731de | — |
| header | #792F05de | — |
| invalid | #4B0B6Ede | — |
| keyword | #571731de | bold |
| keyword.codetag.notation.python | #1B461Ede | bold |
| keyword.control | #28330Bde | bold |
| keyword.control.anchor.regexp | #0C1C8Cde | bold |
| keyword.control.import.python | #123614de | bold |
| keyword.operator | #441D58de | bold |
| keyword.operator.alignas | #293311de | bold |
| keyword.operator.alignof | #792F08de | bold |
| keyword.operator.cast | #033535de | bold |
| keyword.operator.delete | #4A2510de | bold |
| keyword.operator.documentation.powershell | #1634346e | bold |
| keyword.operator.expression | #2F3918de | bold |
| keyword.operator.instanceof | #39461Bde | bold |
| keyword.operator.logical.python | #451C5Bde | bold |
| keyword.operator.minus.exponent | #123614de | bold |
| keyword.operator.negation.regexp | #511C32de | bold |
| keyword.operator.new | #591430de | bold |
| keyword.operator.noexcept | #09520Dde | bold |
| keyword.operator.or.regexp | #0C1C8Cde | bold |
| keyword.operator.plus.exponent | #2A3215de | bold |
| keyword.operator.quantifier.regexp | #104E4Ede | bold |
| keyword.operator.sizeof | #263402de | bold |
| keyword.operator.typeid | #384C0Bde | bold |
| keyword.operator.wordlike | #4B0B6Ede | bold |
| keyword.other.operator | #5D0E2Ede | bold |
| keyword.other.package.java | #1A3F1Cde | bold |
| keyword.other.unit | #0C1C8Cde | bold |
| keyword.other.using | #431E58de | bold |
| markup.bold | #4B0B6Ede | — |
| markup.changed | #1A3F1Cde | — |
| markup.deleted | #462A1Bde | — |
| markup.fenced_code.block.markdown | #0F3711de | — |
| markup.heading | #5B2138de | — |
| markup.inline.raw | #471761de | — |
| markup.inserted | #502107de | — |
| markup.italic | #490E6Ede | — |
| markup.raw.block.markdown | #033535de | — |
| markup.strikethrough | #46215Bde | — |
| markup.underline | #591430de | — |
| meta.block.c | #451A5Ede | — |
| meta.block.c | #0D5111de | — |
| meta.class.java | #511C32de | — |
| meta.definition.variable.name | #3A4C0Fde | — |
| meta.diff.header | #62032Ade | — |
| meta.embedded | #1B461Ede | — |
| meta.embedded.assembly | #01109Ede | — |
| meta.function-call.arguments.python | #792F05de | — |
| meta.function-call.python | #212966de | — |
| meta.member.access.python | #5B3521de | — |
| meta.method.java | #105114de | — |
| meta.object-literal.key | #4D2E1Dde | — |
| meta.paragraph.markdown | #253403de | — |
| meta.preprocessor | #431F57de | — |
| meta.preprocessor.numeric | #511C32de | — |
| meta.preprocessor.string | #0D5111de | — |
| meta.scope.prerequisites.makefile | #5D0E2Ade | — |
| meta.structure.dictionary.json.comments | #1634346e | — |
| meta.structure.dictionary.key.python | #2F3918de | — |
| meta.structure.dictionary.value.json.comments | #1534346e | — |
| meta.template.expression | #0D5111de | — |
| meta.type.cast.expr | #1E276Dde | bold |
| meta.type.new.expr | #222965de | bold |
| parameter | #123614de | — |
| punctuation.character.set.begin.regexp | #5B3521de | — |
| punctuation.character.set.end.regexp | #4D2E1Dde | — |
| punctuation.definition.array.begin.json | #252E70de | — |
| punctuation.definition.character-class.regexp | #4A2512de | — |
| punctuation.definition.comment | #1735356e | — |
| punctuation.definition.comment.json.comments | #1735356e | — |
| punctuation.definition.comment.python | #1833336e | — |
| punctuation.definition.dictionary.begin.json | #54321Fde | — |
| punctuation.definition.dictionary.end.json | #3A4C11de | — |
| punctuation.definition.group.assertion.regexp | #252E70de | — |
| punctuation.definition.group.regexp | #692340de | — |
| punctuation.definition.list.begin.json | #1B461Ede | — |
| punctuation.definition.list.begin.markdown | #452817de | — |
| punctuation.definition.list.begin.python | #104E4Ede | — |
| punctuation.definition.list.end.json | #0C1C8Cde | — |
| punctuation.definition.list.end.markdown | #081994de | — |
| punctuation.definition.list.end.python | #212966de | — |
| punctuation.definition.parameters.begin.python | #19227Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #462A1Bde | — |
| punctuation.definition.quote.begin.markdown | #113613de | — |
| punctuation.definition.tag | #394C0Dde | — |
| punctuation.definition.template-expression.begin | #0A4E4Ede | — |
| punctuation.definition.template-expression.end | #14227Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #1D4D4Dde | — |
| punctuation.section.embedded | #384C0Bde | — |
| punctuation.section.embedded.begin.php | #253403de | — |
| punctuation.section.embedded.end.php | #212966de | — |
| punctuation.terminator.java | #263402de | — |
| source.cmake | #441D58de | — |
| source.coffee.embedded | #394C0Dde | — |
| source.cpp | #113613de | — |
| source.css.less | #14227Fde | — |
| source.groovy.embedded | #431F57de | — |
| source.java | #452817de | — |
| source.java-properties | #5B3521de | — |
| source.json.comments | #1833336e | — |
| source.makefile | #0B520Fde | — |
| source.powershell | #183939de | — |
| source.powershell.variable.other.member | #343F1Ade | — |
| source.python | #28330Bde | — |
| storage | #0E5113de | — |
| storage.modifier | #39461Bde | — |
| storage.modifier.import.java | #792F05de | — |
| storage.modifier.package.java | #384C0Bde | — |
| storage.type | #451A5Ede | bold |
| storage.type.annotation.groovy | #462A1Bde | bold |
| storage.type.annotation.java | #1A3F3Fde | bold |
| storage.type.boolean.go | #24286Bde | bold |
| storage.type.byte.go | #4B2262de | bold |
| storage.type.cs | #0E5113de | bold |
| storage.type.error.go | #490E6Ede | bold |
| storage.type.generic.cs | #2A3215de | bold |
| storage.type.generic.groovy | #591430de | bold |
| storage.type.generic.java | #123614de | bold |
| storage.type.groovy | #113434de | bold |
| storage.type.java | #623922de | bold |
| storage.type.modifier.cs | #451C5Bde | bold |
| storage.type.numeric.go | #123614de | bold |
| storage.type.object.array.groovy | #591430de | bold |
| storage.type.object.array.java | #481366de | bold |
| storage.type.parameters.groovy | #384C08de | bold |
| storage.type.primitive.array.groovy | #183939de | bold |
| storage.type.primitive.array.java | #5B2138de | bold |
| storage.type.primitive.groovy | #1E276Dde | bold |
| storage.type.primitive.java | #5D0E2Ade | bold |
| storage.type.rune.go | #104E4Ede | bold |
| storage.type.string.go | #19227Dde | bold |
| storage.type.token.java | #113434de | bold |
| storage.type.uintptr.go | #5B2678de | bold |
| storage.type.variable.cs | #3B4C12de | bold |
| string | #4A2510de | — |
| string.quoted.docstring.multi.python | #1833336e | — |
| string.regexp | #541A31de | — |
| string.tag | #541F35de | — |
| string.value | #2F3918de | — |
| strong | #692340de | — |
| support.class | #562570de | — |
| support.constant.color | #451C5Bde | — |
| support.constant.dom | #113613de | — |
| support.constant.font-name | #1A3F1Cde | — |
| support.constant.handlebars | #07370Bde | — |
| support.constant.json | #702544de | — |
| support.constant.math | #0A4E4Ede | — |
| support.constant.media | #5B3521de | — |
| support.constant.media-type | #623922de | bold |
| support.constant.property-value | #343F1Ade | — |
| support.function | #033806de | — |
| support.function.git-rebase | #431F57de | — |
| support.other.parenthesis.regexp | #115115de | — |
| support.type | #541A31de | bold |
| support.type.property-name | #692340de | bold |
| support.type.vendored.property-name | #1B4646de | bold |
| support.variable | #623922de | — |
| token.debug-token | #472715de | — |
| token.error-token | #5B2138de | — |
| token.info-token | #2F3918de | — |
| token.warn-token | #4A2512de | — |
| variable | #1B461Ede | — |
| variable.css | #293311de | — |
| variable.language | #451C5Bde | — |
| variable.language.wildcard.java | #541A31de | — |
| variable.other.constant | #792F08de | — |
| variable.other.definition.java | #511C32de | — |
| variable.other.enummember | #5B2138de | — |
| variable.other.less | #14227Fde | — |
| variable.other.object.java | #1D4D20de | — |
| variable.other.object.property.java | #452819de | — |
| variable.parameter.c | #502107de | — |
| variable.parameter.function.language.python | #252E70de | — |
| variable.parameter.java | #481366de | — |
| variable.scss | #4B2262de | — |
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}!`;
}