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 | #5415546e | — |
| comment.block.html | #5415546e | — |
| comment.block.java | #5415546e | — |
| comment.block.javadoc.java | #5614566e | — |
| comment.block.powershell | #5614566e | — |
| comment.block.xml | #5415546e | — |
| comment.line.double-slash.c | #5415546e | — |
| comment.line.double-slash.cpp | #5415546e | — |
| comment.line.double-slash.java | #5415546e | — |
| comment.line.double-slash.js | #5614566e | — |
| comment.line.number-sign.makefile | #5415546e | — |
| comment.line.number-sign.python | #5614566e | — |
| comment.line.number-sign.yaml | #3131316e | — |
| comment.line.percentage.erlang | #3131316e | — |
| comment.line.powershell | #3131316e | — |
| comment.source.cmake | #5415546e | — |
| comment.source.cmakecache | #5415546e | — |
| constant.character | #53231Cde | — |
| constant.character.character-class.regexp | #562119de | — |
| constant.character.escape | #133256de | — |
| constant.character.set.regexp | #581E17de | — |
| constant.language | #1B530Ede | — |
| constant.numeric | #4A4A0Ede | — |
| constant.numeric.dec.python | #0C3063de | — |
| constant.other.caps.python | #602150de | — |
| constant.other.character-class.regexp | #1D3717de | — |
| constant.other.character-class.set.regexp | #13390Ade | — |
| constant.other.color.rgb-value | #4A4A10de | — |
| constant.other.placeholder | #254B1Cde | — |
| constant.other.rgb-value | #173910de | — |
| constant.regexp | #672356de | — |
| constant.sha.git-rebase | #602921de | — |
| emphasis | #3D206Cde | — |
| entity.name.class | #3C1E71de | — |
| entity.name.function | #0E3A03de | — |
| entity.name.function.preprocessor | #0D3A01de | — |
| entity.name.function.python | #023929de | — |
| entity.name.label | #17372Dde | — |
| entity.name.namespace | #1D3717de | — |
| entity.name.operator | #5C0F49de | — |
| entity.name.operator.custom-literal | #193D32de | — |
| entity.name.scope-resolution | #3C1E71de | — |
| entity.name.tag | #133256de | — |
| entity.name.tag.css | #193251de | — |
| entity.name.type | #254B1Cde | bold |
| entity.name.variable | #0E523Dde | — |
| entity.other.attribute | #1B324Fde | — |
| entity.other.attribute-name | #173254de | — |
| entity.other.attribute-name.class.css | #53231Cde | — |
| entity.other.attribute-name.class.mixin.css | #175308de | — |
| entity.other.attribute-name.id | #333312de | — |
| entity.other.attribute-name.id.css | #3D1F6Ede | — |
| entity.other.attribute-name.parent-selector.css | #17530Ade | — |
| entity.other.attribute-name.pseudo-class.css | #5F0748de | — |
| entity.other.attribute-name.pseudo-element.css | #4A4A10de | — |
| entity.other.attribute-name.scss | #640F03de | — |
| entity.other.document.begin.yaml | #5415546e | — |
| entity.other.inherited-class | #640F03de | — |
| header | #234167de | — |
| invalid | #5C0E48de | — |
| keyword | #254B1Cde | bold |
| keyword.codetag.notation.python | #3D1285de | bold |
| keyword.control | #672B23de | bold |
| keyword.control.anchor.regexp | #1C324Ede | bold |
| keyword.control.import.python | #5A1C13de | bold |
| keyword.operator | #363618de | bold |
| keyword.operator.alignas | #3D0191de | bold |
| keyword.operator.alignof | #11382Dde | bold |
| keyword.operator.cast | #640F02de | bold |
| keyword.operator.delete | #640F03de | bold |
| keyword.operator.documentation.powershell | #3131316e | bold |
| keyword.operator.expression | #60160Ede | bold |
| keyword.operator.instanceof | #333312de | bold |
| keyword.operator.logical.python | #1B530Ede | bold |
| keyword.operator.minus.exponent | #0F523Dde | bold |
| keyword.operator.negation.regexp | #175308de | bold |
| keyword.operator.new | #183810de | bold |
| keyword.operator.noexcept | #3C2367de | bold |
| keyword.operator.or.regexp | #53231Cde | bold |
| keyword.operator.plus.exponent | #13390Ade | bold |
| keyword.operator.quantifier.regexp | #0D3A01de | bold |
| keyword.operator.sizeof | #6F2D24de | bold |
| keyword.operator.typeid | #0E523Dde | bold |
| keyword.operator.wordlike | #5A1C13de | bold |
| keyword.other.operator | #602921de | bold |
| keyword.other.package.java | #313310de | bold |
| keyword.other.unit | #0F523Dde | bold |
| keyword.other.using | #333303de | bold |
| markup.bold | #133256de | — |
| markup.changed | #5C0E48de | — |
| markup.deleted | #033A29de | — |
| markup.fenced_code.block.markdown | #53231Cde | — |
| markup.heading | #22441Bde | — |
| markup.inline.raw | #521E45de | — |
| markup.inserted | #3D1F6Ede | — |
| markup.italic | #1B530Ede | — |
| markup.raw.block.markdown | #313310de | — |
| markup.strikethrough | #254B1Cde | — |
| markup.underline | #333303de | — |
| meta.block.c | #6F2D24de | — |
| meta.block.c | #3D0191de | — |
| meta.class.java | #4A4A0Bde | — |
| meta.definition.variable.name | #561947de | — |
| meta.diff.header | #023929de | — |
| meta.embedded | #0F523Dde | — |
| meta.embedded.assembly | #333300de | — |
| meta.function-call.arguments.python | #3C1E71de | — |
| meta.function-call.python | #0B523Bde | — |
| meta.member.access.python | #0B523Bde | — |
| meta.method.java | #023929de | — |
| meta.object-literal.key | #592720de | — |
| meta.paragraph.markdown | #1B324Fde | — |
| meta.preprocessor | #0C3063de | — |
| meta.preprocessor.numeric | #173910de | — |
| meta.preprocessor.string | #3B0A8Dde | — |
| meta.scope.prerequisites.makefile | #3C2367de | — |
| meta.structure.dictionary.json.comments | #5415546e | — |
| meta.structure.dictionary.key.python | #4A4A10de | — |
| meta.structure.dictionary.value.json.comments | #5415546e | — |
| meta.template.expression | #0B523Bde | — |
| meta.type.cast.expr | #333312de | bold |
| meta.type.new.expr | #3C0992de | bold |
| parameter | #4A4A10de | — |
| punctuation.character.set.begin.regexp | #213D60de | — |
| punctuation.character.set.end.regexp | #1C324Ede | — |
| punctuation.definition.array.begin.json | #213D60de | — |
| punctuation.definition.character-class.regexp | #333311de | — |
| punctuation.definition.comment | #5415546e | — |
| punctuation.definition.comment.json.comments | #5415546e | — |
| punctuation.definition.comment.python | #5415546e | — |
| punctuation.definition.dictionary.begin.json | #6F245Cde | — |
| punctuation.definition.dictionary.end.json | #592720de | — |
| punctuation.definition.group.assertion.regexp | #3C0992de | — |
| punctuation.definition.group.regexp | #5C0E48de | — |
| punctuation.definition.list.begin.json | #0B382Bde | — |
| punctuation.definition.list.begin.markdown | #3C1B76de | — |
| punctuation.definition.list.begin.python | #333300de | — |
| punctuation.definition.list.end.json | #672B23de | — |
| punctuation.definition.list.end.markdown | #602150de | — |
| punctuation.definition.list.end.python | #1B4437de | — |
| punctuation.definition.parameters.begin.python | #0B382Bde | — |
| punctuation.definition.parameters.end.bracket.round.java | #60170Dde | — |
| punctuation.definition.quote.begin.markdown | #1B324Fde | — |
| punctuation.definition.tag | #54211Bde | — |
| punctuation.definition.template-expression.begin | #5C0F49de | — |
| punctuation.definition.template-expression.end | #033A29de | — |
| punctuation.section.class.begin.bracket.curly.java | #0F523Dde | — |
| punctuation.section.embedded | #53231Cde | — |
| punctuation.section.embedded.begin.php | #0B382Bde | — |
| punctuation.section.embedded.end.php | #1C4B3Cde | — |
| punctuation.terminator.java | #1C4B3Cde | — |
| source.cmake | #4A4A0Bde | — |
| source.coffee.embedded | #333308de | — |
| source.cpp | #672356de | — |
| source.css.less | #133256de | — |
| source.groovy.embedded | #60160Ede | — |
| source.java | #52251Ede | — |
| source.java-properties | #203D19de | — |
| source.json.comments | #3131316e | — |
| source.makefile | #60160Cde | — |
| source.powershell | #173254de | — |
| source.powershell.variable.other.member | #3C1B76de | — |
| source.python | #60160Cde | — |
| storage | #234167de | — |
| storage.modifier | #1B4437de | — |
| storage.modifier.import.java | #17530Ade | — |
| storage.modifier.package.java | #3C2367de | — |
| storage.type | #10382Bde | bold |
| storage.type.annotation.groovy | #183810de | bold |
| storage.type.annotation.java | #203959de | bold |
| storage.type.boolean.go | #3C2266de | bold |
| storage.type.byte.go | #4A4A0Ede | bold |
| storage.type.cs | #4A4A10de | bold |
| storage.type.error.go | #5A1C13de | bold |
| storage.type.generic.cs | #17530Ade | bold |
| storage.type.generic.groovy | #581E17de | bold |
| storage.type.generic.java | #60170Dde | bold |
| storage.type.groovy | #0B523Bde | bold |
| storage.type.java | #213D60de | bold |
| storage.type.modifier.cs | #22441Bde | bold |
| storage.type.numeric.go | #60170Dde | bold |
| storage.type.object.array.groovy | #52251Ede | bold |
| storage.type.object.array.java | #3D187Cde | bold |
| storage.type.parameters.groovy | #4A4A11de | bold |
| storage.type.primitive.array.groovy | #3D2269de | bold |
| storage.type.primitive.array.java | #672356de | bold |
| storage.type.primitive.groovy | #3D187Cde | bold |
| storage.type.primitive.java | #5A1C13de | bold |
| storage.type.rune.go | #1C324Ede | bold |
| storage.type.string.go | #193251de | bold |
| storage.type.token.java | #0F523Dde | bold |
| storage.type.uintptr.go | #0B523Bde | bold |
| storage.type.variable.cs | #53231Cde | bold |
| string | #4A4A0Bde | — |
| string.quoted.docstring.multi.python | #5415546e | — |
| string.regexp | #173254de | — |
| string.tag | #0B382Bde | — |
| string.value | #234167de | — |
| strong | #17372Dde | — |
| support.class | #13390Ade | — |
| support.constant.color | #4A4A0Bde | — |
| support.constant.dom | #581747de | — |
| support.constant.font-name | #3D1F6Ede | — |
| support.constant.handlebars | #3C0992de | — |
| support.constant.json | #5E0D46de | — |
| support.constant.math | #203D19de | — |
| support.constant.media | #0D3A01de | — |
| support.constant.media-type | #1D3717de | bold |
| support.constant.property-value | #5A1348de | — |
| support.function | #333311de | — |
| support.function.git-rebase | #133256de | — |
| support.other.parenthesis.regexp | #59204Bde | — |
| support.type | #531C45de | bold |
| support.type.property-name | #3D1285de | bold |
| support.type.vendored.property-name | #672B23de | bold |
| support.variable | #6F245Cde | — |
| token.debug-token | #1C530Fde | — |
| token.error-token | #3C226Ade | — |
| token.info-token | #333308de | — |
| token.warn-token | #53231Cde | — |
| variable | #1B324Fde | — |
| variable.css | #6F2D24de | — |
| variable.language | #033A29de | — |
| variable.language.wildcard.java | #0E523Dde | — |
| variable.other.constant | #54211Bde | — |
| variable.other.definition.java | #60170Dde | — |
| variable.other.enummember | #0C3063de | — |
| variable.other.less | #531C45de | — |
| variable.other.object.java | #1C324Ede | — |
| variable.other.object.property.java | #333308de | — |
| variable.parameter.c | #193811de | — |
| variable.parameter.function.language.python | #5A1C13de | — |
| variable.parameter.java | #023929de | — |
| variable.scss | #3D0191de | — |
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}!`;
}