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 | #F8AFF86e | — |
| comment.block.html | #F8AFF86e | — |
| comment.block.java | #C8C8C86e | — |
| comment.block.javadoc.java | #F7B1F76e | — |
| comment.block.powershell | #C8C8C86e | — |
| comment.block.xml | #C7C7C76e | — |
| comment.line.double-slash.c | #C7C7C76e | — |
| comment.line.double-slash.cpp | #F8AFF86e | — |
| comment.line.double-slash.java | #F8AFF86e | — |
| comment.line.double-slash.js | #C7C7C76e | — |
| comment.line.number-sign.makefile | #C8C8C86e | — |
| comment.line.number-sign.python | #F8AFF86e | — |
| comment.line.number-sign.yaml | #F7B1F76e | — |
| comment.line.percentage.erlang | #F8AFF86e | — |
| comment.line.powershell | #C8C8C86e | — |
| comment.source.cmake | #C8C8C86e | — |
| comment.source.cmakecache | #F8AFF86e | — |
| constant.character | #EBAE81de | — |
| constant.character.character-class.regexp | #F6A9CAde | — |
| constant.character.escape | #BDC5FEde | — |
| constant.character.set.regexp | #14E814de | — |
| constant.language | #A3DA15de | — |
| constant.numeric | #A3DA15de | — |
| constant.numeric.dec.python | #10E810de | — |
| constant.other.caps.python | #F1BC94de | — |
| constant.other.character-class.regexp | #14DDDDde | — |
| constant.other.character-class.set.regexp | #0DE70Dde | — |
| constant.other.color.rgb-value | #FEBA87de | — |
| constant.other.placeholder | #FEB3D3de | — |
| constant.other.rgb-value | #A1D914de | — |
| constant.regexp | #A0DA0Fde | — |
| constant.sha.git-rebase | #0FE80Fde | — |
| emphasis | #A1DA13de | — |
| entity.name.class | #0DE70Dde | — |
| entity.name.function | #F39BC1de | — |
| entity.name.function.preprocessor | #12DEDEde | — |
| entity.name.function.python | #A0D90Ede | — |
| entity.name.label | #A1D914de | — |
| entity.name.namespace | #14E714de | — |
| entity.name.operator | #14DDDDde | — |
| entity.name.operator.custom-literal | #A3DA15de | — |
| entity.name.scope-resolution | #B0BAF8de | — |
| entity.name.tag | #A0D916de | — |
| entity.name.tag.css | #15DDDDde | — |
| entity.name.type | #FEB3D3de | — |
| entity.name.variable | #9BA8F3de | — |
| entity.other.attribute | #10DDDDde | — |
| entity.other.attribute-name | #A0D90Ede | — |
| entity.other.attribute-name.class.css | #FEBA87de | — |
| entity.other.attribute-name.class.mixin.css | #12E712de | — |
| entity.other.attribute-name.id | #EAB6FEde | — |
| entity.other.attribute-name.id.css | #0FDCDCde | — |
| entity.other.attribute-name.parent-selector.css | #EAB6FEde | — |
| entity.other.attribute-name.pseudo-class.css | #10DEDEde | — |
| entity.other.attribute-name.pseudo-element.css | #13E813de | — |
| entity.other.attribute-name.scss | #F1BC94de | — |
| entity.other.document.begin.yaml | #C8C8C86e | — |
| entity.other.inherited-class | #FEACCFde | — |
| header | #A1D914de | — |
| invalid | #A2DA16de | — |
| keyword | #FDBA89de | — |
| keyword.codetag.notation.python | #EBAE81de | — |
| keyword.control | #E9B5FEde | — |
| keyword.control.anchor.regexp | #D090E9de | — |
| keyword.control.import.python | #ED8AB5de | — |
| keyword.operator | #12DEDEde | — |
| keyword.operator.alignas | #15DDDDde | — |
| keyword.operator.alignof | #14E714de | — |
| keyword.operator.cast | #EC8BB4de | — |
| keyword.operator.delete | #A0D913de | — |
| keyword.operator.documentation.powershell | #C7C7C76e | — |
| keyword.operator.expression | #FEACCFde | — |
| keyword.operator.instanceof | #15E715de | — |
| keyword.operator.logical.python | #F194BCde | — |
| keyword.operator.minus.exponent | #13DDDDde | — |
| keyword.operator.negation.regexp | #98A5EEde | — |
| keyword.operator.new | #14E714de | — |
| keyword.operator.noexcept | #10E810de | — |
| keyword.operator.or.regexp | #D190EAde | — |
| keyword.operator.plus.exponent | #FEBA88de | — |
| keyword.operator.quantifier.regexp | #10E710de | — |
| keyword.operator.sizeof | #A3DA15de | — |
| keyword.operator.typeid | #12DEDEde | — |
| keyword.operator.wordlike | #E88DB4de | — |
| keyword.other.operator | #D190EAde | — |
| keyword.other.package.java | #E88DB4de | — |
| keyword.other.unit | #9FD90Dde | — |
| keyword.other.using | #9AA6EBde | — |
| markup.bold | #15DDDDde | — |
| markup.changed | #E88DB4de | — |
| markup.deleted | #A2D916de | — |
| markup.fenced_code.block.markdown | #A9B4F6de | — |
| markup.heading | #14E814de | — |
| markup.inline.raw | #9BA8F3de | — |
| markup.inserted | #10DEDEde | — |
| markup.italic | #10E710de | — |
| markup.raw.block.markdown | #DA9BF3de | — |
| markup.strikethrough | #B7C1F9de | — |
| markup.underline | #D190ECde | — |
| meta.block.c | #EAB6FEde | — |
| meta.block.c | #FEB3D3de | — |
| meta.class.java | #E6A575de | — |
| meta.definition.variable.name | #B0BAF8de | — |
| meta.diff.header | #A0DB10de | — |
| meta.embedded | #13DDDDde | — |
| meta.embedded.assembly | #A0D913de | — |
| meta.function-call.arguments.python | #FEBA87de | — |
| meta.function-call.python | #F6A9CAde | — |
| meta.member.access.python | #14E714de | — |
| meta.method.java | #D290EDde | — |
| meta.object-literal.key | #10E710de | — |
| meta.paragraph.markdown | #15DDDDde | — |
| meta.preprocessor | #FDBA88de | — |
| meta.preprocessor.numeric | #B5BFFEde | — |
| meta.preprocessor.string | #A0D913de | — |
| meta.scope.prerequisites.makefile | #A0D913de | — |
| meta.structure.dictionary.json.comments | #C7C7C76e | — |
| meta.structure.dictionary.key.python | #98A4F0de | — |
| meta.structure.dictionary.value.json.comments | #C8C8C86e | — |
| meta.template.expression | #A2AEF5de | — |
| meta.type.cast.expr | #15E715de | — |
| meta.type.new.expr | #EAB6FEde | — |
| parameter | #14E814de | — |
| punctuation.character.set.begin.regexp | #D290EDde | — |
| punctuation.character.set.end.regexp | #BDC5FEde | — |
| punctuation.definition.array.begin.json | #14DDDDde | — |
| punctuation.definition.character-class.regexp | #A1D916de | — |
| punctuation.definition.comment | #C7C7C76e | — |
| punctuation.definition.comment.json.comments | #F8AFF86e | — |
| punctuation.definition.comment.python | #F7B1F76e | — |
| punctuation.definition.dictionary.begin.json | #0EDDDDde | — |
| punctuation.definition.dictionary.end.json | #0EE70Ede | — |
| punctuation.definition.group.assertion.regexp | #EFB88Ede | — |
| punctuation.definition.group.regexp | #EA8CB4de | — |
| punctuation.definition.list.begin.json | #D290EDde | — |
| punctuation.definition.list.begin.markdown | #12E812de | — |
| punctuation.definition.list.begin.python | #DA9BF3de | — |
| punctuation.definition.list.end.json | #FEACCFde | — |
| punctuation.definition.list.end.markdown | #EAB6FEde | — |
| punctuation.definition.list.end.python | #FCBB89de | — |
| punctuation.definition.parameters.begin.python | #15E715de | — |
| punctuation.definition.parameters.end.bracket.round.java | #A1D916de | — |
| punctuation.definition.quote.begin.markdown | #DDA2F5de | — |
| punctuation.definition.tag | #FEACCFde | — |
| punctuation.definition.template-expression.begin | #15DDDDde | — |
| punctuation.definition.template-expression.end | #12DEDEde | — |
| punctuation.section.class.begin.bracket.curly.java | #97A4EFde | — |
| punctuation.section.embedded | #A2AEF5de | — |
| punctuation.section.embedded.begin.php | #A1DA13de | — |
| punctuation.section.embedded.end.php | #EFB88Ede | — |
| punctuation.terminator.java | #FCBB89de | — |
| source.cmake | #DA9BF3de | — |
| source.coffee.embedded | #FEBA87de | — |
| source.cpp | #14E814de | — |
| source.css.less | #14E814de | — |
| source.groovy.embedded | #15DDDDde | — |
| source.java | #E9B5FEde | — |
| source.java-properties | #EF8EB8de | — |
| source.json.comments | #F7B1F76e | — |
| source.makefile | #FCBA88de | — |
| source.powershell | #15DDDDde | — |
| source.powershell.variable.other.member | #EBAE81de | — |
| source.python | #D38EEFde | — |
| storage | #A2DA16de | — |
| storage.modifier | #0EE70Ede | — |
| storage.modifier.import.java | #D290EDde | — |
| storage.modifier.package.java | #14E714de | — |
| storage.type | #EC8BB4de | — |
| storage.type.annotation.groovy | #A0DA0Fde | — |
| storage.type.annotation.java | #15DDDDde | — |
| storage.type.boolean.go | #0DE70Dde | — |
| storage.type.byte.go | #15E715de | — |
| storage.type.cs | #12DEDEde | — |
| storage.type.error.go | #F8B0CFde | — |
| storage.type.generic.cs | #BBC5FEde | — |
| storage.type.generic.groovy | #A2D916de | — |
| storage.type.generic.java | #97A4F1de | — |
| storage.type.groovy | #F6A9CAde | — |
| storage.type.java | #E6B7F9de | — |
| storage.type.modifier.cs | #15DDDDde | — |
| storage.type.numeric.go | #EAB6FEde | — |
| storage.type.object.array.groovy | #A2DA16de | — |
| storage.type.object.array.java | #D090E9de | — |
| storage.type.parameters.groovy | #97A4F1de | — |
| storage.type.primitive.array.groovy | #15DDDDde | — |
| storage.type.primitive.array.java | #A2DA16de | — |
| storage.type.primitive.groovy | #E3B0F8de | — |
| storage.type.primitive.java | #D38EEFde | — |
| storage.type.rune.go | #A1D914de | — |
| storage.type.string.go | #0FDCDCde | — |
| storage.type.token.java | #BDC5FEde | — |
| storage.type.uintptr.go | #F8B0CFde | — |
| storage.type.variable.cs | #FDBA89de | — |
| string | #A0DA0Fde | — |
| string.quoted.docstring.multi.python | #C7C7C76e | — |
| string.regexp | #0EE70Ede | — |
| string.tag | #FDBA88de | — |
| string.value | #A0DA10de | — |
| strong | #FEBA87de | — |
| support.class | #A0D815de | — |
| support.constant.color | #10DDDDde | — |
| support.constant.dom | #F39BC1de | — |
| support.constant.font-name | #12DEDEde | — |
| support.constant.handlebars | #FCBB89de | — |
| support.constant.json | #14E714de | — |
| support.constant.math | #D38FEEde | — |
| support.constant.media | #EBAE81de | — |
| support.constant.media-type | #EAB6FEde | — |
| support.constant.property-value | #0EE70Ede | — |
| support.function | #A2AEF5de | — |
| support.function.git-rebase | #12DEDEde | — |
| support.other.parenthesis.regexp | #10E810de | — |
| support.type | #14DDDDde | — |
| support.type.property-name | #F6A9CAde | — |
| support.type.vendored.property-name | #15DEDEde | — |
| support.variable | #15DDDDde | — |
| token.debug-token | #F8B0CFde | — |
| token.error-token | #12E712de | — |
| token.info-token | #97A4F1de | — |
| token.warn-token | #98A5EEde | — |
| variable | #14E714de | — |
| variable.css | #B7C1F9de | — |
| variable.language | #FEB2D3de | — |
| variable.language.wildcard.java | #E0A9F6de | — |
| variable.other.constant | #BBC5FEde | — |
| variable.other.definition.java | #15DDDDde | — |
| variable.other.enummember | #A0DA0Fde | — |
| variable.other.less | #15DEDEde | — |
| variable.other.object.java | #D290EDde | — |
| variable.other.object.property.java | #98A5EEde | — |
| variable.parameter.c | #D38EEFde | — |
| variable.parameter.function.language.python | #D38EEFde | — |
| variable.parameter.java | #FEBA87de | — |
| variable.scss | #FDBA88de | — |
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}!`;
}