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 | #1835186e | — |
| comment.block.html | #1735176e | — |
| comment.block.java | #1635166e | — |
| comment.block.javadoc.java | #1635166e | — |
| comment.block.powershell | #1835186e | — |
| comment.block.xml | #1536156e | — |
| comment.line.double-slash.c | #1635166e | — |
| comment.line.double-slash.cpp | #1635166e | — |
| comment.line.double-slash.java | #1735176e | — |
| comment.line.double-slash.js | #1635166e | — |
| comment.line.number-sign.makefile | #1735176e | — |
| comment.line.number-sign.python | #1536156e | — |
| comment.line.number-sign.yaml | #1635166e | — |
| comment.line.percentage.erlang | #1835186e | — |
| comment.line.powershell | #1536156e | — |
| comment.source.cmake | #1735176e | — |
| comment.source.cmakecache | #1735176e | — |
| constant.character | #4F2E27de | — |
| constant.character.character-class.regexp | #511F14de | — |
| constant.character.escape | #5C2B46de | — |
| constant.character.set.regexp | #861E09de | — |
| constant.language | #134E43de | — |
| constant.numeric | #16342Fde | — |
| constant.numeric.dec.python | #03362Ede | — |
| constant.other.caps.python | #404A14de | — |
| constant.other.character-class.regexp | #581238de | — |
| constant.other.character-class.set.regexp | #422923de | — |
| constant.other.color.rgb-value | #1E3631de | — |
| constant.other.placeholder | #213C21de | — |
| constant.other.rgb-value | #2C311Ade | — |
| constant.regexp | #5C342Bde | — |
| constant.sha.git-rebase | #0C2871de | — |
| emphasis | #105110de | — |
| entity.name.class | #46027Bde | — |
| entity.name.function | #2A3204de | — |
| entity.name.function.preprocessor | #304171de | — |
| entity.name.function.python | #163516de | — |
| entity.name.label | #013801de | — |
| entity.name.namespace | #511F14de | — |
| entity.name.operator | #422822de | — |
| entity.name.operator.custom-literal | #861E09de | — |
| entity.name.scope-resolution | #5B1604de | — |
| entity.name.tag | #552941de | — |
| entity.name.tag.css | #581238de | — |
| entity.name.type | #404A15de | bold |
| entity.name.variable | #422923de | — |
| entity.other.attribute | #871D05de | — |
| entity.other.attribute-name | #4B241Cde | — |
| entity.other.attribute-name.class.css | #553129de | — |
| entity.other.attribute-name.class.mixin.css | #482538de | — |
| entity.other.attribute-name.id | #404A16de | — |
| entity.other.attribute-name.id.css | #553129de | — |
| entity.other.attribute-name.parent-selector.css | #511B38de | — |
| entity.other.attribute-name.pseudo-class.css | #553129de | — |
| entity.other.attribute-name.pseudo-element.css | #5B1604de | — |
| entity.other.attribute-name.scss | #5B1604de | — |
| entity.other.document.begin.yaml | #1735176e | — |
| entity.other.inherited-class | #145114de | — |
| header | #4B241Cde | — |
| invalid | #553129de | — |
| keyword | #3C2452de | bold |
| keyword.codetag.notation.python | #373C21de | bold |
| keyword.control | #242E4Ade | bold |
| keyword.control.anchor.regexp | #254825de | bold |
| keyword.control.import.python | #1B2D57de | bold |
| keyword.operator | #861E09de | bold |
| keyword.operator.alignas | #4F2E6Ade | bold |
| keyword.operator.alignof | #27324Fde | bold |
| keyword.operator.cast | #17342Ede | bold |
| keyword.operator.delete | #1E361Ede | bold |
| keyword.operator.documentation.powershell | #1635166e | bold |
| keyword.operator.expression | #632D4Ade | bold |
| keyword.operator.instanceof | #404A12de | bold |
| keyword.operator.logical.python | #373C21de | bold |
| keyword.operator.minus.exponent | #3C4223de | bold |
| keyword.operator.negation.regexp | #552941de | bold |
| keyword.operator.new | #3B264Dde | bold |
| keyword.operator.noexcept | #04362Dde | bold |
| keyword.operator.or.regexp | #422822de | bold |
| keyword.operator.plus.exponent | #2C3116de | bold |
| keyword.operator.quantifier.regexp | #462B5Cde | bold |
| keyword.operator.sizeof | #4C1F38de | bold |
| keyword.operator.typeid | #553129de | bold |
| keyword.operator.wordlike | #145114de | bold |
| keyword.other.operator | #31361Ede | bold |
| keyword.other.package.java | #45136Bde | bold |
| keyword.other.unit | #02267Ade | bold |
| keyword.other.using | #013801de | bold |
| markup.bold | #632D4Ade | — |
| markup.changed | #145114de | — |
| markup.deleted | #3F1F5Ade | — |
| markup.fenced_code.block.markdown | #142B63de | — |
| markup.heading | #482538de | — |
| markup.inline.raw | #533071de | — |
| markup.inserted | #581238de | — |
| markup.italic | #0C352Ede | — |
| markup.raw.block.markdown | #23423Cde | — |
| markup.strikethrough | #3F4A10de | — |
| markup.underline | #46027Bde | — |
| meta.block.c | #293555de | — |
| meta.block.c | #1E361Ede | — |
| meta.class.java | #404A14de | — |
| meta.definition.variable.name | #252F48de | — |
| meta.diff.header | #4A2D63de | — |
| meta.embedded | #232E4Bde | — |
| meta.embedded.assembly | #3C2452de | — |
| meta.function-call.arguments.python | #5B1604de | — |
| meta.function-call.python | #482C25de | — |
| meta.member.access.python | #013801de | — |
| meta.method.java | #23423Cde | — |
| meta.object-literal.key | #254825de | — |
| meta.paragraph.markdown | #5C342Bde | — |
| meta.preprocessor | #4C2318de | — |
| meta.preprocessor.numeric | #412955de | — |
| meta.preprocessor.string | #411A65de | — |
| meta.scope.prerequisites.makefile | #163516de | — |
| meta.structure.dictionary.json.comments | #1635166e | — |
| meta.structure.dictionary.key.python | #163516de | — |
| meta.structure.dictionary.value.json.comments | #1735176e | — |
| meta.template.expression | #412955de | — |
| meta.type.cast.expr | #1E361Ede | bold |
| meta.type.new.expr | #6A2E4Fde | bold |
| parameter | #252F48de | — |
| punctuation.character.set.begin.regexp | #552941de | — |
| punctuation.character.set.end.regexp | #2C3116de | — |
| punctuation.definition.array.begin.json | #4F273Dde | — |
| punctuation.definition.character-class.regexp | #412955de | — |
| punctuation.definition.comment | #1835186e | — |
| punctuation.definition.comment.json.comments | #1536156e | — |
| punctuation.definition.comment.python | #1635166e | — |
| punctuation.definition.dictionary.begin.json | #212E4Dde | — |
| punctuation.definition.dictionary.end.json | #2A3204de | — |
| punctuation.definition.group.assertion.regexp | #27324Fde | — |
| punctuation.definition.group.regexp | #4C2318de | — |
| punctuation.definition.list.begin.json | #4C2318de | — |
| punctuation.definition.list.begin.markdown | #54173Ade | — |
| punctuation.definition.list.begin.python | #163516de | — |
| punctuation.definition.list.end.json | #164E44de | — |
| punctuation.definition.list.end.markdown | #2C3207de | — |
| punctuation.definition.list.end.python | #2A3204de | — |
| punctuation.definition.parameters.begin.python | #254825de | — |
| punctuation.definition.parameters.end.bracket.round.java | #252F48de | — |
| punctuation.definition.quote.begin.markdown | #3C2452de | — |
| punctuation.definition.tag | #5F0437de | — |
| punctuation.definition.template-expression.begin | #3C4223de | — |
| punctuation.definition.template-expression.end | #2B385Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #5F0437de | — |
| punctuation.section.embedded | #552941de | — |
| punctuation.section.embedded.begin.php | #4F273Dde | — |
| punctuation.section.embedded.end.php | #46027Bde | — |
| punctuation.terminator.java | #254825de | — |
| source.cmake | #03362Ede | — |
| source.coffee.embedded | #163516de | — |
| source.cpp | #04362Dde | — |
| source.css.less | #31361Ede | — |
| source.groovy.embedded | #5E0636de | — |
| source.java | #533071de | — |
| source.java-properties | #304171de | — |
| source.json.comments | #1536156e | — |
| source.makefile | #511F14de | — |
| source.powershell | #1B2D57de | — |
| source.powershell.variable.other.member | #254842de | — |
| source.python | #581238de | — |
| storage | #31361Ede | — |
| storage.modifier | #1B2D57de | — |
| storage.modifier.import.java | #2C3207de | — |
| storage.modifier.package.java | #482538de | — |
| storage.type | #54173Ade | bold |
| storage.type.annotation.groovy | #4C2318de | bold |
| storage.type.annotation.java | #404A16de | bold |
| storage.type.boolean.go | #164E44de | bold |
| storage.type.byte.go | #3E2157de | bold |
| storage.type.cs | #581238de | bold |
| storage.type.error.go | #03362Ede | bold |
| storage.type.generic.cs | #125112de | bold |
| storage.type.generic.groovy | #213C21de | bold |
| storage.type.generic.java | #422822de | bold |
| storage.type.groovy | #03362Ede | bold |
| storage.type.java | #2C3207de | bold |
| storage.type.modifier.cs | #0E510Ede | bold |
| storage.type.numeric.go | #553129de | bold |
| storage.type.object.array.groovy | #1B2D57de | bold |
| storage.type.object.array.java | #45136Bde | bold |
| storage.type.parameters.groovy | #1E361Ede | bold |
| storage.type.primitive.array.groovy | #2C3207de | bold |
| storage.type.primitive.array.java | #422923de | bold |
| storage.type.primitive.groovy | #0C2871de | bold |
| storage.type.primitive.java | #5C2B46de | bold |
| storage.type.rune.go | #16342Fde | bold |
| storage.type.string.go | #553129de | bold |
| storage.type.token.java | #4B241Cde | bold |
| storage.type.uintptr.go | #412955de | bold |
| storage.type.variable.cs | #0C510Cde | bold |
| string | #163516de | — |
| string.quoted.docstring.multi.python | #1735176e | — |
| string.regexp | #3B254Dde | — |
| string.tag | #5B1604de | — |
| string.value | #232E4Bde | — |
| strong | #2E3E6Ade | — |
| support.class | #293555de | — |
| support.constant.color | #411A65de | — |
| support.constant.dom | #3F1F5Ade | — |
| support.constant.font-name | #6A2E4Fde | — |
| support.constant.handlebars | #632D4Ade | — |
| support.constant.json | #404A14de | — |
| support.constant.math | #2B385Cde | — |
| support.constant.media | #511B38de | — |
| support.constant.media-type | #482538de | bold |
| support.constant.property-value | #4C1F38de | — |
| support.function | #2E3E6Ade | — |
| support.function.git-rebase | #3C4223de | — |
| support.other.parenthesis.regexp | #02267Ade | — |
| support.type | #3F4A0Ede | bold |
| support.type.property-name | #6A2E4Fde | bold |
| support.type.vendored.property-name | #63362Dde | bold |
| support.variable | #252F48de | — |
| token.debug-token | #2C3207de | — |
| token.error-token | #4F2E27de | — |
| token.info-token | #142B63de | — |
| token.warn-token | #404A14de | — |
| variable | #871D05de | — |
| variable.css | #3F4A10de | — |
| variable.language | #462B5Cde | — |
| variable.language.wildcard.java | #46027Bde | — |
| variable.other.constant | #46027Bde | — |
| variable.other.definition.java | #482336de | — |
| variable.other.enummember | #482C25de | — |
| variable.other.less | #46027Bde | — |
| variable.other.object.java | #02267Ade | — |
| variable.other.object.property.java | #871D05de | — |
| variable.parameter.c | #48251Fde | — |
| variable.parameter.function.language.python | #16342Fde | — |
| variable.parameter.java | #404A12de | — |
| variable.scss | #0E510Ede | — |
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}!`;
}