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 | #B8B8B86e | — |
| comment.block.html | #BCBCBC6e | — |
| comment.block.java | #BCBCBC6e | — |
| comment.block.javadoc.java | #BABABA6e | — |
| comment.block.powershell | #BDBDBD6e | — |
| comment.block.xml | #BABABA6e | — |
| comment.line.double-slash.c | #CCCCCC6e | — |
| comment.line.double-slash.cpp | #C7C7C76e | — |
| comment.line.double-slash.java | #BFBFBF6e | — |
| comment.line.double-slash.js | #B4B4B46e | — |
| comment.line.number-sign.makefile | #BABABA6e | — |
| comment.line.number-sign.python | #BEBEBE6e | — |
| comment.line.number-sign.yaml | #B8B8B86e | — |
| comment.line.percentage.erlang | #CBCBCB6e | — |
| comment.line.powershell | #BFBFBF6e | — |
| comment.source.cmake | #B6B6B66e | — |
| comment.source.cmakecache | #CDCDCD6e | — |
| constant.character | #83E762de | — |
| constant.character.character-class.regexp | #64D83Cde | — |
| constant.character.escape | #3DDA09de | — |
| constant.character.set.regexp | #74E050de | — |
| constant.language | #E0C44Ede | — |
| constant.numeric | #FAB2B2de | — |
| constant.numeric.dec.python | #42F108de | — |
| constant.other.caps.python | #6BDC45de | — |
| constant.other.character-class.regexp | #A1D1F7de | — |
| constant.other.character-class.set.regexp | #F9AFF0de | — |
| constant.other.color.rgb-value | #96CCF5de | — |
| constant.other.placeholder | #77BBEEde | — |
| constant.other.rgb-value | #98CDF6de | — |
| constant.regexp | #3FE209de | — |
| constant.sha.git-rebase | #FAB5F1de | — |
| emphasis | #44DB8Fde | — |
| entity.name.class | #08DC73de | — |
| entity.name.function | #98CDF6de | — |
| entity.name.function.preprocessor | #78BAEEde | — |
| entity.name.function.python | #40EB08de | — |
| entity.name.label | #F69898de | — |
| entity.name.namespace | #09D26Dde | — |
| entity.name.operator | #D2B433de | — |
| entity.name.operator.custom-literal | #BEAAF9de | — |
| entity.name.scope-resolution | #C0ADF9de | — |
| entity.name.tag | #81E75Fde | — |
| entity.name.tag.css | #FCC3C3de | — |
| entity.name.type | #F698EAde | — |
| entity.name.variable | #95CBF5de | — |
| entity.other.attribute | #F8CC12de | — |
| entity.other.attribute-name | #07E375de | — |
| entity.other.attribute-name.class.css | #F7A2A2de | — |
| entity.other.attribute-name.class.mixin.css | #44DB8Fde | — |
| entity.other.attribute-name.id | #69E9A9de | — |
| entity.other.attribute-name.id.css | #CEBFFBde | — |
| entity.other.attribute-name.parent-selector.css | #CEB02Ede | — |
| entity.other.attribute-name.pseudo-class.css | #F69D9Dde | — |
| entity.other.attribute-name.pseudo-element.css | #F7A0ECde | — |
| entity.other.attribute-name.scss | #FAB1B1de | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #4ADD94de | — |
| header | #D2B433de | — |
| invalid | #E2BB08de | — |
| keyword | #D8BB3Ede | — |
| keyword.codetag.notation.python | #09CB6Bde | — |
| keyword.control | #F8A5A5de | — |
| keyword.control.anchor.regexp | #C9B8FAde | — |
| keyword.control.import.python | #6ADB44de | — |
| keyword.operator | #F7A0A0de | — |
| keyword.operator.alignas | #C9B8FBde | — |
| keyword.operator.alignof | #FAB6B6de | — |
| keyword.operator.cast | #F9ADEFde | — |
| keyword.operator.delete | #D1C3FCde | — |
| keyword.operator.documentation.powershell | #B3B3B36e | — |
| keyword.operator.expression | #F0C307de | — |
| keyword.operator.instanceof | #5BD233de | — |
| keyword.operator.logical.python | #65D83Ede | — |
| keyword.operator.minus.exponent | #ACD7F9de | — |
| keyword.operator.negation.regexp | #B9A5F8de | — |
| keyword.operator.new | #D5C8FCde | — |
| keyword.operator.noexcept | #85C2F1de | — |
| keyword.operator.or.regexp | #FAB7F2de | — |
| keyword.operator.plus.exponent | #89C5F3de | — |
| keyword.operator.quantifier.regexp | #7CBDEFde | — |
| keyword.operator.sizeof | #08E075de | — |
| keyword.operator.typeid | #74E050de | — |
| keyword.operator.wordlike | #5BE5A1de | — |
| keyword.other.operator | #83C1F1de | — |
| keyword.other.package.java | #81E760de | — |
| keyword.other.unit | #F9AFAFde | — |
| keyword.other.using | #DDC24Ade | — |
| markup.bold | #F79FECde | — |
| markup.changed | #F9ADADde | — |
| markup.deleted | #F596E9de | — |
| markup.fenced_code.block.markdown | #F8A4A4de | — |
| markup.heading | #BBA7F8de | — |
| markup.inline.raw | #F7A3ECde | — |
| markup.inserted | #7EE55Cde | — |
| markup.italic | #69E9A9de | — |
| markup.raw.block.markdown | #83E762de | — |
| markup.strikethrough | #07CE6Bde | — |
| markup.underline | #DDC24Ade | — |
| meta.block.c | #41EE08de | — |
| meta.block.c | #32D281de | — |
| meta.class.java | #E3C856de | — |
| meta.definition.variable.name | #41DB8Ede | — |
| meta.diff.header | #3BD108de | — |
| meta.embedded | #56CE2Ede | — |
| meta.embedded.assembly | #F9B0B0de | — |
| meta.function-call.arguments.python | #3EDD09de | — |
| meta.function-call.python | #8AC5F3de | — |
| meta.member.access.python | #F69898de | — |
| meta.method.java | #33D282de | — |
| meta.object-literal.key | #D8BB3Ede | — |
| meta.paragraph.markdown | #F8A7EEde | — |
| meta.preprocessor | #08D06Bde | — |
| meta.preprocessor.numeric | #98CDF6de | — |
| meta.preprocessor.string | #6BDC45de | — |
| meta.scope.prerequisites.makefile | #C9B8FAde | — |
| meta.structure.dictionary.json.comments | #C7C7C76e | — |
| meta.structure.dictionary.key.python | #F69BEBde | — |
| meta.structure.dictionary.value.json.comments | #CBCBCB6e | — |
| meta.template.expression | #E9D169de | — |
| meta.type.cast.expr | #CAB9FBde | — |
| meta.type.new.expr | #4DDF97de | — |
| parameter | #7CBDEFde | — |
| punctuation.character.set.begin.regexp | #F69BEBde | — |
| punctuation.character.set.end.regexp | #FBC0C0de | — |
| punctuation.definition.array.begin.json | #77E252de | — |
| punctuation.definition.character-class.regexp | #F492E8de | — |
| punctuation.definition.comment | #BCBCBC6e | — |
| punctuation.definition.comment.json.comments | #BFBFBF6e | — |
| punctuation.definition.comment.python | #D1D1D16e | — |
| punctuation.definition.dictionary.begin.json | #3DDA09de | — |
| punctuation.definition.dictionary.end.json | #DDC24Ade | — |
| punctuation.definition.group.assertion.regexp | #F7A0A0de | — |
| punctuation.definition.group.regexp | #99CDF6de | — |
| punctuation.definition.list.begin.json | #87C3F1de | — |
| punctuation.definition.list.begin.markdown | #07EC79de | — |
| punctuation.definition.list.begin.python | #F69BEBde | — |
| punctuation.definition.list.end.json | #38CB07de | — |
| punctuation.definition.list.end.markdown | #44DB8Fde | — |
| punctuation.definition.list.end.python | #D6C9FCde | — |
| punctuation.definition.parameters.begin.python | #7DBDEFde | — |
| punctuation.definition.parameters.end.bracket.round.java | #33D282de | — |
| punctuation.definition.quote.begin.markdown | #F491E7de | — |
| punctuation.definition.tag | #C9B8FBde | — |
| punctuation.definition.template-expression.begin | #7FBFF0de | — |
| punctuation.definition.template-expression.end | #81C0F1de | — |
| punctuation.section.class.begin.bracket.curly.java | #D2C5FCde | — |
| punctuation.section.embedded | #C0ADF9de | — |
| punctuation.section.embedded.begin.php | #F7A1EDde | — |
| punctuation.section.embedded.end.php | #F7A1A1de | — |
| punctuation.terminator.java | #79E356de | — |
| source.cmake | #74E050de | — |
| source.coffee.embedded | #CBBAFBde | — |
| source.cpp | #52E29Bde | — |
| source.css.less | #FBBAF3de | — |
| source.groovy.embedded | #F8CA0Bde | — |
| source.java | #D9BD3Fde | — |
| source.java-properties | #CABAFBde | — |
| source.json.comments | #C9C9C96e | — |
| source.makefile | #6FDD4Ade | — |
| source.powershell | #FAB7F2de | — |
| source.powershell.variable.other.member | #7CBDEFde | — |
| source.python | #E9D169de | — |
| storage | #07D66Fde | — |
| storage.modifier | #F8CA0Bde | — |
| storage.modifier.import.java | #F79FECde | — |
| storage.modifier.package.java | #38D587de | — |
| storage.type | #BAA5F8de | — |
| storage.type.annotation.groovy | #74E050de | — |
| storage.type.annotation.java | #FAB4B4de | — |
| storage.type.boolean.go | #D1C3FCde | — |
| storage.type.byte.go | #62E7A5de | — |
| storage.type.cs | #3FD98Bde | — |
| storage.type.error.go | #83E762de | — |
| storage.type.generic.cs | #DCB608de | — |
| storage.type.generic.groovy | #FBBABAde | — |
| storage.type.generic.java | #80BFF1de | — |
| storage.type.groovy | #CDBDFBde | — |
| storage.type.java | #D2B433de | — |
| storage.type.modifier.cs | #F7A2A2de | — |
| storage.type.numeric.go | #66D940de | — |
| storage.type.object.array.groovy | #82E760de | — |
| storage.type.object.array.java | #D5C8FCde | — |
| storage.type.parameters.groovy | #FAB4B4de | — |
| storage.type.primitive.array.groovy | #E3C856de | — |
| storage.type.primitive.array.java | #FBBBF3de | — |
| storage.type.primitive.groovy | #FBBABAde | — |
| storage.type.primitive.java | #09E477de | — |
| storage.type.rune.go | #E2BB08de | — |
| storage.type.string.go | #F9AAAAde | — |
| storage.type.token.java | #F7A0A0de | — |
| storage.type.uintptr.go | #7CBDEFde | — |
| storage.type.variable.cs | #BFABF9de | — |
| string | #C3B0F9de | — |
| string.quoted.docstring.multi.python | #B4B4B46e | — |
| string.regexp | #98CDF6de | — |
| string.tag | #BAA5F8de | — |
| string.value | #54E39Cde | — |
| strong | #5EE6A3de | — |
| support.class | #F9ACACde | — |
| support.constant.color | #9DCFF6de | — |
| support.constant.dom | #DDC24Ade | — |
| support.constant.font-name | #79BBEFde | — |
| support.constant.handlebars | #CEB02Ede | — |
| support.constant.json | #91C9F4de | — |
| support.constant.math | #83C1F1de | — |
| support.constant.media | #FBBDF3de | — |
| support.constant.media-type | #98CDF6de | — |
| support.constant.property-value | #D5B736de | — |
| support.function | #F8CD12de | — |
| support.function.git-rebase | #F9B1F0de | — |
| support.other.parenthesis.regexp | #F598EAde | — |
| support.type | #E9D067de | — |
| support.type.property-name | #09D46Fde | — |
| support.type.vendored.property-name | #62E7A5de | — |
| support.variable | #DDC24Ade | — |
| token.debug-token | #BFACF9de | — |
| token.error-token | #7EE55Cde | — |
| token.info-token | #F79F9Fde | — |
| token.warn-token | #F79D9Dde | — |
| variable | #8EC7F4de | — |
| variable.css | #D2B433de | — |
| variable.language | #89C5F3de | — |
| variable.language.wildcard.java | #F69898de | — |
| variable.other.constant | #F9ACACde | — |
| variable.other.definition.java | #FAB5F2de | — |
| variable.other.enummember | #7CBDEFde | — |
| variable.other.less | #DCB608de | — |
| variable.other.object.java | #7BBCEFde | — |
| variable.other.object.property.java | #D6AE09de | — |
| variable.parameter.c | #F69CEBde | — |
| variable.parameter.function.language.python | #A2D2F7de | — |
| variable.parameter.java | #D3AE09de | — |
| variable.scss | #FBBABAde | — |
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}!`;
}