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 | #4327136e | — |
| comment.block.html | #4924126e | — |
| comment.block.java | #4924116e | — |
| comment.block.javadoc.java | #4327136e | — |
| comment.block.powershell | #4924126e | — |
| comment.block.xml | #4327136e | — |
| comment.line.double-slash.c | #4526136e | — |
| comment.line.double-slash.cpp | #4924116e | — |
| comment.line.double-slash.java | #4924116e | — |
| comment.line.double-slash.js | #4924126e | — |
| comment.line.number-sign.makefile | #4924126e | — |
| comment.line.number-sign.python | #4526136e | — |
| comment.line.number-sign.yaml | #4924116e | — |
| comment.line.percentage.erlang | #4526136e | — |
| comment.line.powershell | #4924126e | — |
| comment.source.cmake | #4526136e | — |
| comment.source.cmakecache | #4924116e | — |
| constant.character | #52114Ade | — |
| constant.character.character-class.regexp | #143627de | — |
| constant.character.escape | #5D0F0Fde | — |
| constant.character.set.regexp | #352E03de | — |
| constant.language | #672020de | — |
| constant.numeric | #163C2Cde | — |
| constant.numeric.dec.python | #04361Fde | — |
| constant.other.caps.python | #6E2165de | — |
| constant.other.character-class.regexp | #153049de | — |
| constant.other.character-class.set.regexp | #0F3425de | — |
| constant.other.color.rgb-value | #103604de | — |
| constant.other.placeholder | #361E68de | — |
| constant.other.rgb-value | #2D0193de | — |
| constant.regexp | #1D3D5Ade | — |
| constant.sha.git-rebase | #511C4Ade | — |
| emphasis | #0E3601de | — |
| entity.name.class | #35147Cde | — |
| entity.name.function | #11304Cde | — |
| entity.name.function.preprocessor | #18350Fde | — |
| entity.name.function.python | #332E10de | — |
| entity.name.label | #1E4F0Dde | — |
| entity.name.namespace | #59014Ede | — |
| entity.name.operator | #143627de | — |
| entity.name.operator.custom-literal | #6E2121de | — |
| entity.name.scope-resolution | #351E6Ade | — |
| entity.name.tag | #351E6Ade | — |
| entity.name.tag.css | #18350Fde | — |
| entity.name.type | #044582de | bold |
| entity.name.variable | #1A4A35de | — |
| entity.other.attribute | #59044Dde | — |
| entity.other.attribute-name | #332F0Fde | — |
| entity.other.attribute-name.class.css | #4F1647de | — |
| entity.other.attribute-name.class.mixin.css | #59044Dde | — |
| entity.other.attribute-name.id | #5F1F1Fde | — |
| entity.other.attribute-name.id.css | #361777de | — |
| entity.other.attribute-name.parent-selector.css | #59044Dde | — |
| entity.other.attribute-name.pseudo-class.css | #15350Ade | — |
| entity.other.attribute-name.pseudo-element.css | #103604de | — |
| entity.other.attribute-name.scss | #1A5008de | — |
| entity.other.document.begin.yaml | #4526136e | — |
| entity.other.inherited-class | #1B4F0Ade | — |
| header | #5A1313de | — |
| invalid | #173046de | — |
| keyword | #4D450Ade | bold |
| keyword.codetag.notation.python | #1E4F0Ede | bold |
| keyword.control | #67205Ede | bold |
| keyword.control.anchor.regexp | #540E4Bde | bold |
| keyword.control.import.python | #581D51de | bold |
| keyword.operator | #0C4F31de | bold |
| keyword.operator.alignas | #1C4F0Cde | bold |
| keyword.operator.alignof | #363114de | bold |
| keyword.operator.cast | #511C4Ade | bold |
| keyword.operator.delete | #0F3425de | bold |
| keyword.operator.documentation.powershell | #4924116e | bold |
| keyword.operator.expression | #042F55de | bold |
| keyword.operator.instanceof | #15350Ade | bold |
| keyword.operator.logical.python | #0C4F31de | bold |
| keyword.operator.minus.exponent | #361A70de | bold |
| keyword.operator.negation.regexp | #0E304Ede | bold |
| keyword.operator.new | #541B1Bde | bold |
| keyword.operator.noexcept | #521449de | bold |
| keyword.operator.or.regexp | #352E03de | bold |
| keyword.operator.plus.exponent | #1B4F0Ade | bold |
| keyword.operator.quantifier.regexp | #264A1Ade | bold |
| keyword.operator.sizeof | #581616de | bold |
| keyword.operator.typeid | #1F4668de | bold |
| keyword.operator.wordlike | #550E4Ade | bold |
| keyword.other.operator | #5D0F0Fde | bold |
| keyword.other.package.java | #312F0Fde | bold |
| keyword.other.unit | #234318de | bold |
| keyword.other.using | #600C0Cde | bold |
| markup.bold | #19344Bde | — |
| markup.changed | #1D3D5Ade | — |
| markup.deleted | #163C2Cde | — |
| markup.fenced_code.block.markdown | #103604de | — |
| markup.heading | #540E4Bde | — |
| markup.inline.raw | #153049de | — |
| markup.inserted | #19344Bde | — |
| markup.italic | #330E86de | — |
| markup.raw.block.markdown | #04361Fde | — |
| markup.strikethrough | #332E10de | — |
| markup.underline | #153049de | — |
| meta.block.c | #0E3601de | — |
| meta.block.c | #1D3D5Ade | — |
| meta.class.java | #19344Bde | — |
| meta.definition.variable.name | #5A1313de | — |
| meta.diff.header | #4C450Fde | — |
| meta.embedded | #362067de | — |
| meta.embedded.assembly | #4D450Ade | — |
| meta.function-call.arguments.python | #59014Ede | — |
| meta.function-call.python | #4D450Ade | — |
| meta.member.access.python | #3C3816de | — |
| meta.method.java | #193410de | — |
| meta.object-literal.key | #312F0Fde | — |
| meta.paragraph.markdown | #0E2F50de | — |
| meta.preprocessor | #33078Ade | — |
| meta.preprocessor.numeric | #342E03de | — |
| meta.preprocessor.string | #521449de | — |
| meta.scope.prerequisites.makefile | #52114Ade | — |
| meta.structure.dictionary.json.comments | #4924126e | — |
| meta.structure.dictionary.key.python | #1A4A35de | — |
| meta.structure.dictionary.value.json.comments | #4924126e | — |
| meta.template.expression | #352E03de | — |
| meta.type.cast.expr | #18350Fde | bold |
| meta.type.new.expr | #163C2Cde | bold |
| parameter | #103604de | — |
| punctuation.character.set.begin.regexp | #15350Ade | — |
| punctuation.character.set.end.regexp | #0D4F32de | — |
| punctuation.definition.array.begin.json | #5F1F57de | — |
| punctuation.definition.character-class.regexp | #0F3424de | — |
| punctuation.definition.comment | #4327136e | — |
| punctuation.definition.comment.json.comments | #4327136e | — |
| punctuation.definition.comment.python | #4924116e | — |
| punctuation.definition.dictionary.begin.json | #33078Ade | — |
| punctuation.definition.dictionary.end.json | #561818de | — |
| punctuation.definition.group.assertion.regexp | #362067de | — |
| punctuation.definition.group.regexp | #530E4Ede | — |
| punctuation.definition.list.begin.json | #0A2F51de | — |
| punctuation.definition.list.begin.markdown | #153049de | — |
| punctuation.definition.list.begin.python | #581D1Dde | — |
| punctuation.definition.list.end.json | #1E4F0Dde | — |
| punctuation.definition.list.end.markdown | #042F55de | — |
| punctuation.definition.list.end.python | #35147Cde | — |
| punctuation.definition.parameters.begin.python | #330E86de | — |
| punctuation.definition.parameters.end.bracket.round.java | #52114Ade | — |
| punctuation.definition.quote.begin.markdown | #362067de | — |
| punctuation.definition.tag | #330E86de | — |
| punctuation.definition.template-expression.begin | #0E4F33de | — |
| punctuation.definition.template-expression.end | #0D4F32de | — |
| punctuation.section.class.begin.bracket.curly.java | #52114Ade | — |
| punctuation.section.embedded | #351E6Ade | — |
| punctuation.section.embedded.begin.php | #351E6Ade | — |
| punctuation.section.embedded.end.php | #52114Ade | — |
| punctuation.terminator.java | #193410de | — |
| source.cmake | #361E68de | — |
| source.coffee.embedded | #35147Cde | — |
| source.cpp | #103424de | — |
| source.css.less | #1C4F0Cde | — |
| source.groovy.embedded | #4D450Cde | — |
| source.java | #541B1Bde | — |
| source.java-properties | #39216Ede | — |
| source.json.comments | #4526136e | — |
| source.makefile | #52114Ade | — |
| source.powershell | #581D51de | — |
| source.powershell.variable.other.member | #6E2121de | — |
| source.python | #672020de | — |
| storage | #362067de | — |
| storage.modifier | #264A1Ade | — |
| storage.modifier.import.java | #153049de | — |
| storage.modifier.package.java | #521449de | — |
| storage.type | #1E4F0Dde | bold |
| storage.type.annotation.groovy | #361E68de | bold |
| storage.type.annotation.java | #11304Cde | bold |
| storage.type.boolean.go | #044582de | bold |
| storage.type.byte.go | #361777de | bold |
| storage.type.cs | #0E2F50de | bold |
| storage.type.error.go | #0A3522de | bold |
| storage.type.generic.cs | #52114Ade | bold |
| storage.type.generic.groovy | #042F55de | bold |
| storage.type.generic.java | #163C2Cde | bold |
| storage.type.groovy | #550E4Ade | bold |
| storage.type.java | #312F0Fde | bold |
| storage.type.modifier.cs | #39216Ede | bold |
| storage.type.numeric.go | #521449de | bold |
| storage.type.object.array.groovy | #1D3614de | bold |
| storage.type.object.array.java | #153049de | bold |
| storage.type.parameters.groovy | #351E6Ade | bold |
| storage.type.primitive.array.groovy | #581D1Dde | bold |
| storage.type.primitive.array.java | #044582de | bold |
| storage.type.primitive.groovy | #084F30de | bold |
| storage.type.primitive.java | #332E0Dde | bold |
| storage.type.rune.go | #521449de | bold |
| storage.type.string.go | #33078Ade | bold |
| storage.type.token.java | #59014Ede | bold |
| storage.type.uintptr.go | #184330de | bold |
| storage.type.variable.cs | #59014Ede | bold |
| string | #1F4668de | — |
| string.quoted.docstring.multi.python | #4327136e | — |
| string.regexp | #0E3601de | — |
| string.tag | #5D1010de | — |
| string.value | #67205Ede | — |
| strong | #351E6Ade | — |
| support.class | #541A1Ade | — |
| support.constant.color | #332F0Fde | — |
| support.constant.dom | #2E0193de | — |
| support.constant.font-name | #0C4F31de | — |
| support.constant.handlebars | #1D3D5Ade | — |
| support.constant.json | #1E4F0Ede | — |
| support.constant.math | #3C3816de | — |
| support.constant.media | #18350Fde | — |
| support.constant.media-type | #4D450Ade | bold |
| support.constant.property-value | #332E10de | — |
| support.function | #363114de | — |
| support.function.git-rebase | #4C450Fde | — |
| support.other.parenthesis.regexp | #530E4Ede | — |
| support.type | #15350Ade | bold |
| support.type.property-name | #1D3614de | bold |
| support.type.vendored.property-name | #0F3425de | bold |
| support.variable | #1A4A35de | — |
| token.debug-token | #4D450Dde | — |
| token.error-token | #59014Ede | — |
| token.info-token | #1B3852de | — |
| token.warn-token | #332E0Dde | — |
| variable | #4C450Fde | — |
| variable.css | #4A441Ade | — |
| variable.language | #184330de | — |
| variable.language.wildcard.java | #362067de | — |
| variable.other.constant | #600C0Cde | — |
| variable.other.definition.java | #4D450Cde | — |
| variable.other.enummember | #342E03de | — |
| variable.other.less | #5F1F1Fde | — |
| variable.other.object.java | #5F1F57de | — |
| variable.other.object.property.java | #600C0Cde | — |
| variable.parameter.c | #4F1849de | — |
| variable.parameter.function.language.python | #59044Dde | — |
| variable.parameter.java | #6E2121de | — |
| variable.scss | #351E6Ade | — |
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}!`;
}