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 | #422A126e | — |
| comment.block.html | #402A146e | — |
| comment.block.java | #3E2B136e | — |
| comment.block.javadoc.java | #402A146e | — |
| comment.block.powershell | #3E2B136e | — |
| comment.block.xml | #3E2B136e | — |
| comment.line.double-slash.c | #422A126e | — |
| comment.line.double-slash.cpp | #422A126e | — |
| comment.line.double-slash.java | #402A146e | — |
| comment.line.double-slash.js | #3E2B136e | — |
| comment.line.number-sign.makefile | #402A146e | — |
| comment.line.number-sign.python | #3E2B136e | — |
| comment.line.number-sign.yaml | #412A136e | — |
| comment.line.percentage.erlang | #422A126e | — |
| comment.line.powershell | #402A146e | — |
| comment.source.cmake | #412A136e | — |
| comment.source.cmakecache | #402A146e | — |
| constant.character | #5B2638de | — |
| constant.character.character-class.regexp | #143437de | — |
| constant.character.escape | #3E2B17de | — |
| constant.character.set.regexp | #0F3435de | — |
| constant.language | #133619de | — |
| constant.numeric | #0E5119de | — |
| constant.numeric.dec.python | #14361Bde | — |
| constant.other.caps.python | #1F276Fde | — |
| constant.other.character-class.regexp | #29341Ade | — |
| constant.other.character-class.set.regexp | #3F2B14de | — |
| constant.other.color.rgb-value | #441F52de | — |
| constant.other.placeholder | #292F69de | — |
| constant.other.rgb-value | #69293Fde | — |
| constant.regexp | #263313de | — |
| constant.sha.git-rebase | #412A13de | — |
| emphasis | #492705de | — |
| entity.name.class | #1C3A21de | — |
| entity.name.function | #023538de | — |
| entity.name.function.preprocessor | #32401Ede | — |
| entity.name.function.python | #25295Fde | — |
| entity.name.label | #344D13de | — |
| entity.name.namespace | #5E0F23de | — |
| entity.name.operator | #282D62de | — |
| entity.name.operator.custom-literal | #3F2B14de | — |
| entity.name.scope-resolution | #1C3A21de | — |
| entity.name.tag | #314D0Bde | — |
| entity.name.tag.css | #0C1698de | — |
| entity.name.type | #43234Ede | bold |
| entity.name.variable | #14361Bde | — |
| entity.other.attribute | #592969de | — |
| entity.other.attribute-name | #50046Bde | — |
| entity.other.attribute-name.class.css | #314D0Bde | — |
| entity.other.attribute-name.class.mixin.css | #441F52de | — |
| entity.other.attribute-name.id | #344D13de | — |
| entity.other.attribute-name.id.css | #114D52de | — |
| entity.other.attribute-name.parent-selector.css | #234A4Ede | — |
| entity.other.attribute-name.pseudo-class.css | #344D13de | — |
| entity.other.attribute-name.pseudo-element.css | #214727de | — |
| entity.other.attribute-name.scss | #05370Dde | — |
| entity.other.document.begin.yaml | #412A136e | — |
| entity.other.inherited-class | #253410de | — |
| header | #472706de | — |
| invalid | #263314de | — |
| keyword | #452050de | bold |
| keyword.codetag.notation.python | #143437de | bold |
| keyword.control | #3D2B1Ade | bold |
| keyword.control.anchor.regexp | #5F2B71de | bold |
| keyword.control.import.python | #4F105Fde | bold |
| keyword.operator | #69293Fde | bold |
| keyword.operator.alignas | #412A13de | bold |
| keyword.operator.alignof | #5B2638de | bold |
| keyword.operator.cast | #143437de | bold |
| keyword.operator.delete | #43234Ede | bold |
| keyword.operator.documentation.powershell | #422A126e | bold |
| keyword.operator.expression | #472706de | bold |
| keyword.operator.instanceof | #542434de | bold |
| keyword.operator.logical.python | #324D0Dde | bold |
| keyword.operator.minus.exponent | #134D53de | bold |
| keyword.operator.negation.regexp | #143437de | bold |
| keyword.operator.new | #2E3A1Cde | bold |
| keyword.operator.noexcept | #491A57de | bold |
| keyword.operator.or.regexp | #023538de | bold |
| keyword.operator.plus.exponent | #491A57de | bold |
| keyword.operator.quantifier.regexp | #25295Fde | bold |
| keyword.operator.sizeof | #1C3A21de | bold |
| keyword.operator.typeid | #262B5Bde | bold |
| keyword.operator.wordlike | #05370Dde | bold |
| keyword.other.operator | #58162Cde | bold |
| keyword.other.package.java | #1C373Ade | bold |
| keyword.other.unit | #14361Bde | bold |
| keyword.other.using | #212769de | bold |
| markup.bold | #472706de | — |
| markup.changed | #492705de | — |
| markup.deleted | #412A13de | — |
| markup.fenced_code.block.markdown | #501E2Fde | — |
| markup.heading | #69293Fde | — |
| markup.inline.raw | #5F2B71de | — |
| markup.inserted | #114D52de | — |
| markup.italic | #412A13de | — |
| markup.raw.block.markdown | #472706de | — |
| markup.strikethrough | #3D2B1Ade | — |
| markup.underline | #1E4024de | — |
| meta.block.c | #13511Dde | — |
| meta.block.c | #3E2B17de | — |
| meta.class.java | #461D56de | — |
| meta.definition.variable.name | #05370Dde | — |
| meta.diff.header | #14361Bde | — |
| meta.embedded | #292F69de | — |
| meta.embedded.assembly | #252A5Ede | — |
| meta.function-call.arguments.python | #543C24de | — |
| meta.function-call.python | #5C1029de | — |
| meta.member.access.python | #1E3D40de | — |
| meta.method.java | #5E0F29de | — |
| meta.object-literal.key | #1C373Ade | — |
| meta.paragraph.markdown | #5E0F23de | — |
| meta.preprocessor | #69293Fde | — |
| meta.preprocessor.numeric | #282865de | — |
| meta.preprocessor.string | #50046Bde | — |
| meta.scope.prerequisites.makefile | #412A13de | — |
| meta.structure.dictionary.json.comments | #3E2B136e | — |
| meta.structure.dictionary.key.python | #234A4Ede | — |
| meta.structure.dictionary.value.json.comments | #402A146e | — |
| meta.template.expression | #374721de | — |
| meta.type.cast.expr | #542862de | bold |
| meta.type.new.expr | #4E2030de | bold |
| parameter | #252A5Ede | — |
| punctuation.character.set.begin.regexp | #4E265Bde | — |
| punctuation.character.set.end.regexp | #1C3A21de | — |
| punctuation.definition.array.begin.json | #242B57de | — |
| punctuation.definition.character-class.regexp | #491A57de | — |
| punctuation.definition.comment | #3E2B136e | — |
| punctuation.definition.comment.json.comments | #402A146e | — |
| punctuation.definition.comment.python | #3E2B136e | — |
| punctuation.definition.dictionary.begin.json | #482454de | — |
| punctuation.definition.dictionary.end.json | #143437de | — |
| punctuation.definition.group.assertion.regexp | #412A13de | — |
| punctuation.definition.group.regexp | #0F3435de | — |
| punctuation.definition.list.begin.json | #242960de | — |
| punctuation.definition.list.begin.markdown | #18351Cde | — |
| punctuation.definition.list.begin.python | #441F52de | — |
| punctuation.definition.list.end.json | #412A13de | — |
| punctuation.definition.list.end.markdown | #543C24de | — |
| punctuation.definition.list.end.python | #214727de | — |
| punctuation.definition.parameters.begin.python | #10511Ade | — |
| punctuation.definition.parameters.end.bracket.round.java | #18351Cde | — |
| punctuation.definition.quote.begin.markdown | #133619de | — |
| punctuation.definition.tag | #412A13de | — |
| punctuation.definition.template-expression.begin | #0C1698de | — |
| punctuation.definition.template-expression.end | #693A0Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #69293Fde | — |
| punctuation.section.embedded | #473421de | — |
| punctuation.section.embedded.begin.php | #693A0Cde | — |
| punctuation.section.embedded.end.php | #0C1698de | — |
| punctuation.terminator.java | #023538de | — |
| source.cmake | #4F105Fde | — |
| source.coffee.embedded | #1A227Cde | — |
| source.cpp | #0F3435de | — |
| source.css.less | #491A57de | — |
| source.groovy.embedded | #13511Dde | — |
| source.java | #214727de | — |
| source.java-properties | #374721de | — |
| source.json.comments | #422A126e | — |
| source.makefile | #542434de | — |
| source.powershell | #4E2030de | — |
| source.powershell.variable.other.member | #4F105Fde | — |
| source.python | #121890de | — |
| storage | #3E2B17de | — |
| storage.modifier | #060F9Dde | — |
| storage.modifier.import.java | #114D52de | — |
| storage.modifier.package.java | #354D12de | — |
| storage.type | #234E2Ade | bold |
| storage.type.annotation.groovy | #14361Bde | bold |
| storage.type.annotation.java | #541A2Ede | bold |
| storage.type.boolean.go | #104D53de | bold |
| storage.type.byte.go | #104D53de | bold |
| storage.type.cs | #25295Fde | bold |
| storage.type.error.go | #412A13de | bold |
| storage.type.generic.cs | #133619de | bold |
| storage.type.generic.groovy | #501E2Fde | bold |
| storage.type.generic.java | #5B2638de | bold |
| storage.type.groovy | #542434de | bold |
| storage.type.java | #6A3A0Ade | bold |
| storage.type.modifier.cs | #133437de | bold |
| storage.type.numeric.go | #334D0Fde | bold |
| storage.type.object.array.groovy | #693A0Cde | bold |
| storage.type.object.array.java | #263313de | bold |
| storage.type.parameters.groovy | #0C1698de | bold |
| storage.type.primitive.array.groovy | #212769de | bold |
| storage.type.primitive.array.java | #0D3713de | bold |
| storage.type.primitive.groovy | #234E2Ade | bold |
| storage.type.primitive.java | #2E3A1Cde | bold |
| storage.type.rune.go | #121890de | bold |
| storage.type.string.go | #143437de | bold |
| storage.type.token.java | #492705de | bold |
| storage.type.uintptr.go | #252A5Ede | bold |
| storage.type.variable.cs | #13511Dde | bold |
| string | #5C1029de | — |
| string.quoted.docstring.multi.python | #412A136e | — |
| string.regexp | #592969de | — |
| string.tag | #592969de | — |
| string.value | #501E2Fde | — |
| strong | #334D0Fde | — |
| support.class | #272B5Dde | — |
| support.constant.color | #492705de | — |
| support.constant.dom | #263314de | — |
| support.constant.font-name | #25295Fde | — |
| support.constant.handlebars | #203505de | — |
| support.constant.json | #292F69de | — |
| support.constant.math | #511D2Dde | — |
| support.constant.media | #05370Dde | — |
| support.constant.media-type | #3E2B17de | bold |
| support.constant.property-value | #134D53de | — |
| support.function | #214447de | — |
| support.function.git-rebase | #412A13de | — |
| support.other.parenthesis.regexp | #4E3823de | — |
| support.type | #374721de | bold |
| support.type.property-name | #354D12de | bold |
| support.type.vendored.property-name | #4E2030de | bold |
| support.variable | #114D52de | — |
| token.debug-token | #4F105Fde | — |
| token.error-token | #133619de | — |
| token.info-token | #1E4024de | — |
| token.warn-token | #133619de | — |
| variable | #62283Bde | — |
| variable.css | #541A2Ede | — |
| variable.language | #542434de | — |
| variable.language.wildcard.java | #134D53de | — |
| variable.other.constant | #4E265Bde | — |
| variable.other.definition.java | #104D53de | — |
| variable.other.enummember | #4E2331de | — |
| variable.other.less | #50046Bde | — |
| variable.other.object.java | #354D12de | — |
| variable.other.object.property.java | #314D0Bde | — |
| variable.parameter.c | #62283Bde | — |
| variable.parameter.function.language.python | #0B4D53de | — |
| variable.parameter.java | #441F52de | — |
| variable.scss | #1C373Ade | — |
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}!`;
}