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 | #3030306e | — |
| comment.block.html | #3030306e | — |
| comment.block.java | #3030306e | — |
| comment.block.javadoc.java | #3030306e | — |
| comment.block.powershell | #3030306e | — |
| comment.block.xml | #3030306e | — |
| comment.line.double-slash.c | #3030306e | — |
| comment.line.double-slash.cpp | #3030306e | — |
| comment.line.double-slash.java | #3030306e | — |
| comment.line.double-slash.js | #3030306e | — |
| comment.line.number-sign.makefile | #3030306e | — |
| comment.line.number-sign.python | #3030306e | — |
| comment.line.number-sign.yaml | #3030306e | — |
| comment.line.percentage.erlang | #3030306e | — |
| comment.line.powershell | #3030306e | — |
| comment.source.cmake | #3030306e | — |
| comment.source.cmakecache | #3030306e | — |
| constant.character | #1D3711de | — |
| constant.character.character-class.regexp | #2C0997de | — |
| constant.character.escape | #592052de | — |
| constant.character.set.regexp | #113726de | — |
| constant.language | #303030de | — |
| constant.numeric | #1E3B52de | — |
| constant.numeric.dec.python | #2C0997de | — |
| constant.other.caps.python | #033822de | — |
| constant.other.character-class.regexp | #521E4Bde | — |
| constant.other.character-class.set.regexp | #1B4432de | — |
| constant.other.color.rgb-value | #5D0152de | — |
| constant.other.placeholder | #56134Ede | — |
| constant.other.rgb-value | #54174Dde | — |
| constant.regexp | #1B4432de | — |
| constant.sha.git-rebase | #28441Bde | — |
| emphasis | #033822de | — |
| entity.name.class | #303030de | — |
| entity.name.function | #590E50de | — |
| entity.name.function.preprocessor | #37216Bde | — |
| entity.name.function.python | #0B3824de | — |
| entity.name.label | #303030de | — |
| entity.name.namespace | #1D370Fde | — |
| entity.name.operator | #67235Fde | — |
| entity.name.operator.custom-literal | #393002de | — |
| entity.name.scope-resolution | #343434de | — |
| entity.name.tag | #0F5134de | — |
| entity.name.tag.css | #373011de | — |
| entity.name.type | #0E5133de | bold |
| entity.name.variable | #033821de | — |
| entity.other.attribute | #592052de | — |
| entity.other.attribute-name | #21510Bde | — |
| entity.other.attribute-name.class.css | #67235Fde | — |
| entity.other.attribute-name.class.mixin.css | #153803de | — |
| entity.other.attribute-name.id | #303030de | — |
| entity.other.attribute-name.id.css | #204059de | — |
| entity.other.attribute-name.parent-selector.css | #204059de | — |
| entity.other.attribute-name.pseudo-class.css | #53460Fde | — |
| entity.other.attribute-name.pseudo-element.css | #3B3003de | — |
| entity.other.attribute-name.scss | #193347de | — |
| entity.other.document.begin.yaml | #3030306e | — |
| entity.other.inherited-class | #54460Ade | — |
| header | #303030de | — |
| invalid | #4B421Cde | — |
| keyword | #24510Fde | bold |
| keyword.codetag.notation.python | #303030de | bold |
| keyword.control | #0F5134de | bold |
| keyword.control.anchor.regexp | #243D19de | bold |
| keyword.control.import.python | #590E50de | bold |
| keyword.operator | #53460Fde | bold |
| keyword.operator.alignas | #113726de | bold |
| keyword.operator.alignof | #21510Bde | bold |
| keyword.operator.cast | #303030de | bold |
| keyword.operator.delete | #341E77de | bold |
| keyword.operator.documentation.powershell | #3030306e | bold |
| keyword.operator.expression | #303030de | bold |
| keyword.operator.instanceof | #321784de | bold |
| keyword.operator.logical.python | #1B4432de | bold |
| keyword.operator.minus.exponent | #38300Bde | bold |
| keyword.operator.negation.regexp | #373117de | bold |
| keyword.operator.new | #34226Cde | bold |
| keyword.operator.noexcept | #234967de | bold |
| keyword.operator.or.regexp | #53460Ede | bold |
| keyword.operator.plus.exponent | #602158de | bold |
| keyword.operator.quantifier.regexp | #54174Dde | bold |
| keyword.operator.sizeof | #22510Cde | bold |
| keyword.operator.typeid | #1F5208de | bold |
| keyword.operator.wordlike | #501B4Ade | bold |
| keyword.other.operator | #592052de | bold |
| keyword.other.package.java | #1D370Fde | bold |
| keyword.other.unit | #54460Cde | bold |
| keyword.other.using | #23510Ede | bold |
| markup.bold | #373117de | — |
| markup.changed | #342170de | — |
| markup.deleted | #0F334Ede | — |
| markup.fenced_code.block.markdown | #21510Bde | — |
| markup.heading | #35236Bde | — |
| markup.inline.raw | #0F3727de | — |
| markup.inserted | #0B3824de | — |
| markup.italic | #590F4Ede | — |
| markup.raw.block.markdown | #373117de | — |
| markup.strikethrough | #373117de | — |
| markup.underline | #54460Cde | — |
| meta.block.c | #204059de | — |
| meta.block.c | #554608de | — |
| meta.class.java | #0C5234de | — |
| meta.definition.variable.name | #1D3711de | — |
| meta.diff.header | #143803de | — |
| meta.embedded | #342170de | — |
| meta.embedded.assembly | #1E3B52de | — |
| meta.function-call.arguments.python | #303030de | — |
| meta.function-call.python | #351F74de | — |
| meta.member.access.python | #103726de | — |
| meta.method.java | #37216Bde | — |
| meta.object-literal.key | #56134Ede | — |
| meta.paragraph.markdown | #143349de | — |
| meta.preprocessor | #443C1Bde | — |
| meta.preprocessor.numeric | #6F2465de | — |
| meta.preprocessor.string | #5D0152de | — |
| meta.scope.prerequisites.makefile | #153803de | — |
| meta.structure.dictionary.json.comments | #3030306e | — |
| meta.structure.dictionary.key.python | #033821de | — |
| meta.structure.dictionary.value.json.comments | #3030306e | — |
| meta.template.expression | #033822de | — |
| meta.type.cast.expr | #1E3B52de | bold |
| meta.type.new.expr | #303030de | bold |
| parameter | #0B5233de | — |
| punctuation.character.set.begin.regexp | #554608de | — |
| punctuation.character.set.end.regexp | #393002de | — |
| punctuation.definition.array.begin.json | #303030de | — |
| punctuation.definition.character-class.regexp | #0F3727de | — |
| punctuation.definition.comment | #3030306e | — |
| punctuation.definition.comment.json.comments | #3030306e | — |
| punctuation.definition.comment.python | #3030306e | — |
| punctuation.definition.dictionary.begin.json | #0E5133de | — |
| punctuation.definition.dictionary.end.json | #383010de | — |
| punctuation.definition.group.assertion.regexp | #602158de | — |
| punctuation.definition.group.regexp | #303030de | — |
| punctuation.definition.list.begin.json | #1F5208de | — |
| punctuation.definition.list.begin.markdown | #321784de | — |
| punctuation.definition.list.begin.python | #53460Fde | — |
| punctuation.definition.list.end.json | #2D0F94de | — |
| punctuation.definition.list.end.markdown | #303030de | — |
| punctuation.definition.list.end.python | #303030de | — |
| punctuation.definition.parameters.begin.python | #2C0997de | — |
| punctuation.definition.parameters.end.bracket.round.java | #19370Cde | — |
| punctuation.definition.quote.begin.markdown | #2B0799de | — |
| punctuation.definition.tag | #373117de | — |
| punctuation.definition.template-expression.begin | #383838de | — |
| punctuation.definition.template-expression.end | #521E4Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #0E5133de | — |
| punctuation.section.embedded | #53460Fde | — |
| punctuation.section.embedded.begin.php | #0B3824de | — |
| punctuation.section.embedded.end.php | #342170de | — |
| punctuation.terminator.java | #303030de | — |
| source.cmake | #54460Ade | — |
| source.coffee.embedded | #234967de | — |
| source.cpp | #351F74de | — |
| source.css.less | #21510Bde | — |
| source.groovy.embedded | #54460Cde | — |
| source.java | #143349de | — |
| source.java-properties | #373117de | — |
| source.json.comments | #3030306e | — |
| source.makefile | #0F334Cde | — |
| source.powershell | #343434de | — |
| source.powershell.variable.other.member | #234967de | — |
| source.python | #37216Bde | — |
| storage | #153803de | — |
| storage.modifier | #343434de | — |
| storage.modifier.import.java | #54460Ade | — |
| storage.modifier.package.java | #21510Bde | — |
| storage.type | #214560de | bold |
| storage.type.annotation.groovy | #341E77de | bold |
| storage.type.annotation.java | #35236Ade | bold |
| storage.type.boolean.go | #303030de | bold |
| storage.type.byte.go | #303030de | bold |
| storage.type.cs | #1A3347de | bold |
| storage.type.error.go | #1E3B52de | bold |
| storage.type.generic.cs | #67235Fde | bold |
| storage.type.generic.groovy | #0C5234de | bold |
| storage.type.generic.java | #2D0F94de | bold |
| storage.type.groovy | #1C4B37de | bold |
| storage.type.java | #1B4432de | bold |
| storage.type.modifier.cs | #1B4432de | bold |
| storage.type.numeric.go | #143349de | bold |
| storage.type.object.array.groovy | #22510Cde | bold |
| storage.type.object.array.java | #0C5234de | bold |
| storage.type.parameters.groovy | #153803de | bold |
| storage.type.primitive.array.groovy | #592052de | bold |
| storage.type.primitive.array.java | #5D0152de | bold |
| storage.type.primitive.groovy | #37300Fde | bold |
| storage.type.primitive.java | #67235Fde | bold |
| storage.type.rune.go | #303030de | bold |
| storage.type.string.go | #2C0997de | bold |
| storage.type.token.java | #0F5134de | bold |
| storage.type.uintptr.go | #213717de | bold |
| storage.type.variable.cs | #1F5208de | bold |
| string | #303030de | — |
| string.quoted.docstring.multi.python | #3030306e | — |
| string.regexp | #303030de | — |
| string.tag | #5D0352de | — |
| string.value | #53460Fde | — |
| strong | #0C5234de | — |
| support.class | #351F74de | — |
| support.constant.color | #213717de | — |
| support.constant.dom | #143349de | — |
| support.constant.font-name | #06497Ede | — |
| support.constant.handlebars | #554608de | — |
| support.constant.json | #53460Fde | — |
| support.constant.math | #35236Bde | — |
| support.constant.media | #393002de | — |
| support.constant.media-type | #213717de | bold |
| support.constant.property-value | #53460Fde | — |
| support.function | #54174Dde | — |
| support.function.git-rebase | #204059de | — |
| support.other.parenthesis.regexp | #085231de | — |
| support.type | #393002de | bold |
| support.type.property-name | #501B4Ade | bold |
| support.type.vendored.property-name | #033256de | bold |
| support.variable | #373011de | — |
| token.debug-token | #085231de | — |
| token.error-token | #0C5234de | — |
| token.info-token | #37246Fde | — |
| token.warn-token | #580E50de | — |
| variable | #12334Cde | — |
| variable.css | #303030de | — |
| variable.language | #213717de | — |
| variable.language.wildcard.java | #303030de | — |
| variable.other.constant | #35226Dde | — |
| variable.other.definition.java | #373011de | — |
| variable.other.enummember | #3D3D3Dde | — |
| variable.other.less | #38300Bde | — |
| variable.other.object.java | #303030de | — |
| variable.other.object.property.java | #1D370Fde | — |
| variable.parameter.c | #12334Cde | — |
| variable.parameter.function.language.python | #033821de | — |
| variable.parameter.java | #602158de | — |
| variable.scss | #37246Fde | — |
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}!`;
}