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 | #3232136e | — |
| comment.block.html | #3232166e | — |
| comment.block.java | #3232166e | — |
| comment.block.javadoc.java | #3232166e | — |
| comment.block.powershell | #3232166e | — |
| comment.block.xml | #3232146e | — |
| comment.line.double-slash.c | #3232136e | — |
| comment.line.double-slash.cpp | #3232146e | — |
| comment.line.double-slash.java | #3232146e | — |
| comment.line.double-slash.js | #3232166e | — |
| comment.line.number-sign.makefile | #3232166e | — |
| comment.line.number-sign.python | #3232146e | — |
| comment.line.number-sign.yaml | #3232136e | — |
| comment.line.percentage.erlang | #3232166e | — |
| comment.line.powershell | #3232146e | — |
| comment.source.cmake | #3232146e | — |
| comment.source.cmakecache | #3232166e | — |
| constant.character | #0F3728de | — |
| constant.character.character-class.regexp | #19314Cde | — |
| constant.character.escape | #0B5137de | — |
| constant.character.set.regexp | #143152de | — |
| constant.language | #204318de | — |
| constant.numeric | #1B3552de | — |
| constant.numeric.dec.python | #0E5138de | — |
| constant.other.caps.python | #39078Dde | — |
| constant.other.character-class.regexp | #5D1610de | — |
| constant.other.character-class.set.regexp | #0D3804de | — |
| constant.other.color.rgb-value | #234A1Ade | — |
| constant.other.placeholder | #0D305Dde | — |
| constant.other.rgb-value | #591A16de | — |
| constant.regexp | #103727de | — |
| constant.sha.git-rebase | #5A0D4Bde | — |
| emphasis | #4A471Ade | — |
| entity.name.class | #434018de | — |
| entity.name.function | #1D395Ade | — |
| entity.name.function.preprocessor | #60120Cde | — |
| entity.name.function.python | #5D1610de | — |
| entity.name.label | #0D305Dde | — |
| entity.name.namespace | #155207de | — |
| entity.name.operator | #591A16de | — |
| entity.name.operator.custom-literal | #183710de | — |
| entity.name.scope-resolution | #204318de | — |
| entity.name.tag | #18520Bde | — |
| entity.name.tag.css | #0F382Ade | — |
| entity.name.type | #434018de | bold |
| entity.name.variable | #3C1A74de | — |
| entity.other.attribute | #591A16de | — |
| entity.other.attribute-name | #113729de | — |
| entity.other.attribute-name.class.css | #204318de | — |
| entity.other.attribute-name.class.mixin.css | #3E216Ede | — |
| entity.other.attribute-name.id | #163150de | — |
| entity.other.attribute-name.id.css | #33310Cde | — |
| entity.other.attribute-name.parent-selector.css | #561D18de | — |
| entity.other.attribute-name.pseudo-class.css | #67205Ade | — |
| entity.other.attribute-name.pseudo-element.css | #0B5137de | — |
| entity.other.attribute-name.scss | #5A0D4Ade | — |
| entity.other.document.begin.yaml | #3232166e | — |
| entity.other.inherited-class | #4C480Fde | — |
| header | #113729de | — |
| invalid | #085135de | — |
| keyword | #1B3614de | bold |
| keyword.codetag.notation.python | #1B520Ede | bold |
| keyword.control | #1B520Ede | bold |
| keyword.control.anchor.regexp | #5B1813de | bold |
| keyword.control.import.python | #4B480Ade | bold |
| keyword.operator | #4C480Fde | bold |
| keyword.operator.alignas | #1D395Ade | bold |
| keyword.operator.alignof | #660603de | bold |
| keyword.operator.cast | #18520Bde | bold |
| keyword.operator.delete | #0E3157de | bold |
| keyword.operator.documentation.powershell | #3232136e | bold |
| keyword.operator.expression | #1D3C16de | bold |
| keyword.operator.instanceof | #155207de | bold |
| keyword.operator.logical.python | #5D1610de | bold |
| keyword.operator.minus.exponent | #434018de | bold |
| keyword.operator.negation.regexp | #581D4Dde | bold |
| keyword.operator.new | #551648de | bold |
| keyword.operator.noexcept | #143629de | bold |
| keyword.operator.or.regexp | #155207de | bold |
| keyword.operator.plus.exponent | #531848de | bold |
| keyword.operator.quantifier.regexp | #551648de | bold |
| keyword.operator.sizeof | #1B3552de | bold |
| keyword.operator.typeid | #3C1E6Cde | bold |
| keyword.operator.wordlike | #3B2067de | bold |
| keyword.other.operator | #163150de | bold |
| keyword.other.package.java | #17380Fde | bold |
| keyword.other.unit | #672420de | bold |
| keyword.other.using | #0D305Dde | bold |
| markup.bold | #113154de | — |
| markup.changed | #184333de | — |
| markup.deleted | #183710de | — |
| markup.fenced_code.block.markdown | #380094de | — |
| markup.heading | #3C3A16de | — |
| markup.inline.raw | #1A4A38de | — |
| markup.inserted | #113807de | — |
| markup.italic | #3C1E6Cde | — |
| markup.raw.block.markdown | #363314de | — |
| markup.strikethrough | #5B1813de | — |
| markup.underline | #1B3614de | — |
| meta.block.c | #113729de | — |
| meta.block.c | #380193de | — |
| meta.class.java | #143152de | — |
| meta.definition.variable.name | #62110Cde | — |
| meta.diff.header | #113807de | — |
| meta.embedded | #3C3A16de | — |
| meta.embedded.assembly | #6E2160de | — |
| meta.function-call.arguments.python | #33310Cde | — |
| meta.function-call.python | #095136de | — |
| meta.member.access.python | #0D3159de | — |
| meta.method.java | #581D4Dde | — |
| meta.object-literal.key | #3B2067de | — |
| meta.paragraph.markdown | #3B1D6Ede | — |
| meta.preprocessor | #67205Ade | — |
| meta.preprocessor.numeric | #5B1813de | — |
| meta.preprocessor.string | #4C480Dde | — |
| meta.scope.prerequisites.makefile | #113154de | — |
| meta.structure.dictionary.json.comments | #3232166e | — |
| meta.structure.dictionary.key.python | #6E2621de | — |
| meta.structure.dictionary.value.json.comments | #3232146e | — |
| meta.template.expression | #4A471Ade | — |
| meta.type.cast.expr | #1B520Ede | bold |
| meta.type.new.expr | #5A0D4Ade | bold |
| parameter | #163C2Ede | — |
| punctuation.character.set.begin.regexp | #3D1777de | — |
| punctuation.character.set.end.regexp | #193711de | — |
| punctuation.definition.array.begin.json | #660603de | — |
| punctuation.definition.character-class.regexp | #214670de | — |
| punctuation.definition.comment | #3232166e | — |
| punctuation.definition.comment.json.comments | #3232136e | — |
| punctuation.definition.comment.python | #3232136e | — |
| punctuation.definition.dictionary.begin.json | #5F231Fde | — |
| punctuation.definition.dictionary.end.json | #113154de | — |
| punctuation.definition.group.assertion.regexp | #61100Bde | — |
| punctuation.definition.group.regexp | #4B480Ade | — |
| punctuation.definition.list.begin.json | #511C47de | — |
| punctuation.definition.list.begin.markdown | #1D3C16de | — |
| punctuation.definition.list.begin.python | #4C480Dde | — |
| punctuation.definition.list.end.json | #67205Ade | — |
| punctuation.definition.list.end.markdown | #5F1F53de | — |
| punctuation.definition.list.end.python | #0D305Dde | — |
| punctuation.definition.parameters.begin.python | #163C2Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #660603de | — |
| punctuation.definition.quote.begin.markdown | #0E5138de | — |
| punctuation.definition.tag | #5A0D4Bde | — |
| punctuation.definition.template-expression.begin | #61100Bde | — |
| punctuation.definition.template-expression.end | #17370Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #531948de | — |
| punctuation.section.embedded | #6E2160de | — |
| punctuation.section.embedded.begin.php | #67205Ade | — |
| punctuation.section.embedded.end.php | #0F3728de | — |
| punctuation.terminator.java | #5E034Bde | — |
| source.cmake | #113154de | — |
| source.coffee.embedded | #3B0E86de | — |
| source.cpp | #343203de | — |
| source.css.less | #61110Cde | — |
| source.groovy.embedded | #0F382Ade | — |
| source.java | #0E3157de | — |
| source.java-properties | #5B084Cde | — |
| source.json.comments | #3232136e | — |
| source.makefile | #0D5137de | — |
| source.powershell | #5E034Bde | — |
| source.powershell.variable.other.member | #60120Cde | — |
| source.python | #434018de | — |
| storage | #1A4A38de | — |
| storage.modifier | #083725de | — |
| storage.modifier.import.java | #551648de | — |
| storage.modifier.package.java | #1D3C16de | — |
| storage.type | #380193de | bold |
| storage.type.annotation.groovy | #183710de | bold |
| storage.type.annotation.java | #0E5138de | bold |
| storage.type.boolean.go | #1D395Ade | bold |
| storage.type.byte.go | #3A0290de | bold |
| storage.type.cs | #184333de | bold |
| storage.type.error.go | #1B3552de | bold |
| storage.type.generic.cs | #333110de | bold |
| storage.type.generic.groovy | #0E3157de | bold |
| storage.type.generic.java | #67205Ade | bold |
| storage.type.groovy | #61100Bde | bold |
| storage.type.java | #3C1A74de | bold |
| storage.type.modifier.cs | #61110Cde | bold |
| storage.type.numeric.go | #5B1813de | bold |
| storage.type.object.array.groovy | #043824de | bold |
| storage.type.object.array.java | #3D1777de | bold |
| storage.type.parameters.groovy | #085135de | bold |
| storage.type.primitive.array.groovy | #043824de | bold |
| storage.type.primitive.array.java | #380193de | bold |
| storage.type.primitive.groovy | #113729de | bold |
| storage.type.primitive.java | #18520Bde | bold |
| storage.type.rune.go | #103727de | bold |
| storage.type.string.go | #5A0D4Ade | bold |
| storage.type.token.java | #1B3614de | bold |
| storage.type.uintptr.go | #113729de | bold |
| storage.type.variable.cs | #3B0E86de | bold |
| string | #08305Bde | — |
| string.quoted.docstring.multi.python | #3232136e | — |
| string.regexp | #340096de | — |
| string.tag | #183710de | — |
| string.value | #3C1A74de | — |
| strong | #62110Cde | — |
| support.class | #0D3159de | — |
| support.constant.color | #561D18de | — |
| support.constant.dom | #1A4A38de | — |
| support.constant.font-name | #3A0290de | — |
| support.constant.handlebars | #4A471Ade | — |
| support.constant.json | #3A0290de | — |
| support.constant.math | #3C3A16de | — |
| support.constant.media | #67205Ade | — |
| support.constant.media-type | #18520Bde | bold |
| support.constant.property-value | #0F382Ade | — |
| support.function | #0D305Dde | — |
| support.function.git-rebase | #561F1Bde | — |
| support.other.parenthesis.regexp | #083725de | — |
| support.type | #193711de | bold |
| support.type.property-name | #1B3614de | bold |
| support.type.vendored.property-name | #561D18de | bold |
| support.variable | #163150de | — |
| token.debug-token | #0B5137de | — |
| token.error-token | #5E034Bde | — |
| token.info-token | #5B0D4Bde | — |
| token.warn-token | #18520Bde | — |
| variable | #0E3157de | — |
| variable.css | #58104Cde | — |
| variable.language | #0F382Ade | — |
| variable.language.wildcard.java | #5D1610de | — |
| variable.other.constant | #113729de | — |
| variable.other.definition.java | #5B1813de | — |
| variable.other.enummember | #4B480Ade | — |
| variable.other.less | #193711de | — |
| variable.other.object.java | #333110de | — |
| variable.other.object.property.java | #3C1E6Cde | — |
| variable.parameter.c | #4B480Ade | — |
| variable.parameter.function.language.python | #085135de | — |
| variable.parameter.java | #3D1777de | — |
| variable.scss | #0F382Ade | — |
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}!`;
}