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 | #2E2E2E6e | — |
| comment.block.html | #2E2E2E6e | — |
| comment.block.java | #2E2E2E6e | — |
| comment.block.javadoc.java | #2E2E2E6e | — |
| comment.block.powershell | #2E2E2E6e | — |
| comment.block.xml | #2E2E2E6e | — |
| comment.line.double-slash.c | #2E2E2E6e | — |
| comment.line.double-slash.cpp | #2E2E2E6e | — |
| comment.line.double-slash.java | #2E2E2E6e | — |
| comment.line.double-slash.js | #2E2E2E6e | — |
| comment.line.number-sign.makefile | #2E2E2E6e | — |
| comment.line.number-sign.python | #2E2E2E6e | — |
| comment.line.number-sign.yaml | #2E2E2E6e | — |
| comment.line.percentage.erlang | #2E2E2E6e | — |
| comment.line.powershell | #2E2E2E6e | — |
| comment.source.cmake | #2E2E2E6e | — |
| comment.source.cmakecache | #2E2E2E6e | — |
| constant.character | #772E0Bde | — |
| constant.character.character-class.regexp | #411F52de | — |
| constant.character.escape | #105017de | — |
| constant.character.set.regexp | #2A2F5Dde | — |
| constant.language | #642C43de | — |
| constant.numeric | #374B10de | — |
| constant.numeric.dec.python | #5D3B2Ade | — |
| constant.other.caps.python | #134C4Cde | — |
| constant.other.character-class.regexp | #063434de | — |
| constant.other.character-class.set.regexp | #0D5012de | — |
| constant.other.color.rgb-value | #573829de | — |
| constant.other.placeholder | #125018de | — |
| constant.other.rgb-value | #501B30de | — |
| constant.regexp | #59112Dde | — |
| constant.sha.git-rebase | #4C1F30de | — |
| emphasis | #4A2534de | — |
| entity.name.class | #3F291Ede | — |
| entity.name.function | #59112Dde | — |
| entity.name.function.preprocessor | #394A15de | — |
| entity.name.function.python | #772E08de | — |
| entity.name.label | #153417de | — |
| entity.name.namespace | #1E3737de | — |
| entity.name.operator | #04360Ade | — |
| entity.name.operator.custom-literal | #501B30de | — |
| entity.name.scope-resolution | #57132Fde | — |
| entity.name.tag | #154C4Cde | — |
| entity.name.tag.css | #573829de | — |
| entity.name.type | #472957de | bold |
| entity.name.variable | #23295Ade | — |
| entity.other.attribute | #481064de | — |
| entity.other.attribute-name | #163232de | — |
| entity.other.attribute-name.class.css | #0B1694de | — |
| entity.other.attribute-name.class.mixin.css | #4A2534de | — |
| entity.other.attribute-name.id | #2A2F5Dde | — |
| entity.other.attribute-name.id.css | #384323de | — |
| entity.other.attribute-name.parent-selector.css | #163232de | — |
| entity.other.attribute-name.pseudo-class.css | #1E3720de | — |
| entity.other.attribute-name.pseudo-element.css | #541B00de | — |
| entity.other.attribute-name.scss | #4C1F30de | — |
| entity.other.document.begin.yaml | #2E2E2E6e | — |
| entity.other.inherited-class | #384323de | — |
| header | #153232de | — |
| invalid | #262A53de | — |
| keyword | #772E08de | bold |
| keyword.codetag.notation.python | #234325de | bold |
| keyword.control | #5D2A40de | bold |
| keyword.control.anchor.regexp | #172277de | bold |
| keyword.control.import.python | #432E23de | bold |
| keyword.operator | #57132Fde | bold |
| keyword.operator.alignas | #254A28de | bold |
| keyword.operator.alignof | #134C4Cde | bold |
| keyword.operator.cast | #272A50de | bold |
| keyword.operator.delete | #243208de | bold |
| keyword.operator.documentation.powershell | #2E2E2E6e | bold |
| keyword.operator.expression | #3D2A20de | bold |
| keyword.operator.instanceof | #384A13de | bold |
| keyword.operator.logical.python | #6B2E47de | bold |
| keyword.operator.minus.exponent | #501B30de | bold |
| keyword.operator.negation.regexp | #481064de | bold |
| keyword.operator.new | #642C43de | bold |
| keyword.operator.noexcept | #063434de | bold |
| keyword.operator.or.regexp | #212766de | bold |
| keyword.operator.plus.exponent | #0D1D85de | bold |
| keyword.operator.quantifier.regexp | #4C2A5Dde | bold |
| keyword.operator.sizeof | #254A28de | bold |
| keyword.operator.typeid | #5D3B2Ade | bold |
| keyword.operator.wordlike | #384323de | bold |
| keyword.other.operator | #3F291Ede | bold |
| keyword.other.package.java | #273111de | bold |
| keyword.other.unit | #3D254Ade | bold |
| keyword.other.using | #254A4Ade | bold |
| markup.bold | #2F371Ede | — |
| markup.changed | #5D3B2Ade | — |
| markup.deleted | #254A28de | — |
| markup.fenced_code.block.markdown | #442718de | — |
| markup.heading | #432E23de | — |
| markup.inline.raw | #333D20de | — |
| markup.inserted | #384B11de | — |
| markup.italic | #23295Ade | — |
| markup.raw.block.markdown | #501B30de | — |
| markup.strikethrough | #23295Ade | — |
| markup.underline | #482414de | — |
| meta.block.c | #0D4D4Dde | — |
| meta.block.c | #422750de | — |
| meta.class.java | #0F3333de | — |
| meta.definition.variable.name | #4C036Ede | — |
| meta.diff.header | #263115de | — |
| meta.embedded | #3E224Cde | — |
| meta.embedded.assembly | #3C2449de | — |
| meta.function-call.arguments.python | #59112Dde | — |
| meta.function-call.python | #5D082Ade | — |
| meta.member.access.python | #481064de | — |
| meta.method.java | #431B57de | — |
| meta.object-literal.key | #2C3164de | — |
| meta.paragraph.markdown | #1C3131de | — |
| meta.preprocessor | #364B0Ede | — |
| meta.preprocessor.numeric | #2E336Bde | — |
| meta.preprocessor.string | #0F3333de | — |
| meta.scope.prerequisites.makefile | #572E6Bde | — |
| meta.structure.dictionary.json.comments | #2E2E2E6e | — |
| meta.structure.dictionary.key.python | #04360Ade | — |
| meta.structure.dictionary.value.json.comments | #2E2E2E6e | — |
| meta.template.expression | #384A13de | — |
| meta.type.cast.expr | #772E08de | bold |
| meta.type.new.expr | #772E08de | bold |
| parameter | #384A13de | — |
| punctuation.character.set.begin.regexp | #2E336Bde | — |
| punctuation.character.set.end.regexp | #2E336Bde | — |
| punctuation.definition.array.begin.json | #134C4Cde | — |
| punctuation.definition.character-class.regexp | #125018de | — |
| punctuation.definition.comment | #2E2E2E6e | — |
| punctuation.definition.comment.json.comments | #2E2E2E6e | — |
| punctuation.definition.comment.python | #2E2E2E6e | — |
| punctuation.definition.dictionary.begin.json | #333D20de | — |
| punctuation.definition.dictionary.end.json | #3D254Ade | — |
| punctuation.definition.group.assertion.regexp | #0D1D85de | — |
| punctuation.definition.group.regexp | #3C2449de | — |
| punctuation.definition.list.begin.json | #212766de | — |
| punctuation.definition.list.begin.markdown | #57132Fde | — |
| punctuation.definition.list.begin.python | #40281Bde | — |
| punctuation.definition.list.end.json | #154C4Cde | — |
| punctuation.definition.list.end.markdown | #3D254Ade | — |
| punctuation.definition.list.end.python | #203D3Dde | — |
| punctuation.definition.parameters.begin.python | #364B0Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #503527de | — |
| punctuation.definition.quote.begin.markdown | #384323de | — |
| punctuation.definition.tag | #0D3512de | — |
| punctuation.definition.template-expression.begin | #3D254Ade | — |
| punctuation.definition.template-expression.end | #2E336Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #59112Dde | — |
| punctuation.section.embedded | #501B30de | — |
| punctuation.section.embedded.begin.php | #2A2F5Dde | — |
| punctuation.section.embedded.end.php | #04360Ade | — |
| punctuation.terminator.java | #1E3737de | — |
| source.cmake | #0F3333de | — |
| source.coffee.embedded | #4A2031de | — |
| source.cpp | #234343de | — |
| source.css.less | #384A13de | — |
| source.groovy.embedded | #262A53de | — |
| source.java | #04360Ade | — |
| source.java-properties | #043434de | — |
| source.json.comments | #2E2E2E6e | — |
| source.makefile | #243208de | — |
| source.powershell | #481064de | — |
| source.powershell.variable.other.member | #481064de | — |
| source.python | #482131de | — |
| storage | #043608de | — |
| storage.modifier | #0D5012de | — |
| storage.modifier.import.java | #153417de | — |
| storage.modifier.package.java | #40281Bde | — |
| storage.type | #134C4Cde | bold |
| storage.type.annotation.groovy | #442718de | bold |
| storage.type.annotation.java | #203D3Dde | bold |
| storage.type.boolean.go | #2A311Cde | bold |
| storage.type.byte.go | #0D4D4Dde | bold |
| storage.type.cs | #0B1694de | bold |
| storage.type.error.go | #490F63de | bold |
| storage.type.generic.cs | #0B1694de | bold |
| storage.type.generic.groovy | #2C3164de | bold |
| storage.type.generic.java | #59112Dde | bold |
| storage.type.groovy | #272A50de | bold |
| storage.type.java | #4C2A5Dde | bold |
| storage.type.modifier.cs | #4A2534de | bold |
| storage.type.numeric.go | #0B1694de | bold |
| storage.type.object.array.groovy | #4A2534de | bold |
| storage.type.object.array.java | #2F371Ede | bold |
| storage.type.parameters.groovy | #1C3131de | bold |
| storage.type.primitive.array.groovy | #153232de | bold |
| storage.type.primitive.array.java | #063434de | bold |
| storage.type.primitive.groovy | #272A51de | bold |
| storage.type.primitive.java | #223300de | bold |
| storage.type.rune.go | #364B0Ede | bold |
| storage.type.string.go | #431B57de | bold |
| storage.type.token.java | #2A311Cde | bold |
| storage.type.uintptr.go | #4A3125de | bold |
| storage.type.variable.cs | #272A51de | bold |
| string | #5F042Bde | — |
| string.quoted.docstring.multi.python | #2E2E2E6e | — |
| string.regexp | #2A311Cde | — |
| string.tag | #0D1D85de | — |
| string.value | #432E23de | — |
| strong | #4C1F30de | — |
| support.class | #1E3720de | — |
| support.constant.color | #481064de | — |
| support.constant.dom | #1E3737de | — |
| support.constant.font-name | #183419de | — |
| support.constant.handlebars | #273111de | — |
| support.constant.json | #40281Bde | — |
| support.constant.math | #3F214Dde | — |
| support.constant.media | #3F214Dde | — |
| support.constant.media-type | #203D3Dde | bold |
| support.constant.property-value | #262A53de | — |
| support.function | #1E3720de | — |
| support.function.git-rebase | #1C2178de | — |
| support.other.parenthesis.regexp | #2E336Bde | — |
| support.type | #0D5012de | bold |
| support.type.property-name | #364B0Ede | bold |
| support.type.vendored.property-name | #0F5013de | bold |
| support.variable | #172277de | — |
| token.debug-token | #472957de | — |
| token.error-token | #272A51de | — |
| token.info-token | #482131de | — |
| token.warn-token | #125018de | — |
| variable | #263115de | — |
| variable.css | #223300de | — |
| variable.language | #172277de | — |
| variable.language.wildcard.java | #254A4Ade | — |
| variable.other.constant | #134C4Cde | — |
| variable.other.definition.java | #40281Bde | — |
| variable.other.enummember | #043608de | — |
| variable.other.less | #153232de | — |
| variable.other.object.java | #501B30de | — |
| variable.other.object.property.java | #374B10de | — |
| variable.parameter.c | #0F5013de | — |
| variable.parameter.function.language.python | #462615de | — |
| variable.parameter.java | #511F04de | — |
| variable.scss | #203D3Dde | — |
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}!`;
}