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 | #F79E9E6e | — |
| comment.block.html | #FAABAB6e | — |
| comment.block.java | #FAAEAE6e | — |
| comment.block.javadoc.java | #F596966e | — |
| comment.block.powershell | #F482826e | — |
| comment.block.xml | #F898986e | — |
| comment.line.double-slash.c | #F894946e | — |
| comment.line.double-slash.cpp | #F284846e | — |
| comment.line.double-slash.java | #F58F8F6e | — |
| comment.line.double-slash.js | #F9A0A06e | — |
| comment.line.number-sign.makefile | #F689896e | — |
| comment.line.number-sign.python | #F482826e | — |
| comment.line.number-sign.yaml | #FAABAB6e | — |
| comment.line.percentage.erlang | #F58F8F6e | — |
| comment.line.powershell | #F482826e | — |
| comment.source.cmake | #F381816e | — |
| comment.source.cmakecache | #F9AAAA6e | — |
| constant.character | #0BC577de | — |
| constant.character.character-class.regexp | #F5A2F5de | — |
| constant.character.escape | #64AADEde | — |
| constant.character.set.regexp | #BAA2F5de | — |
| constant.language | #EB82EBde | — |
| constant.numeric | #72CF4Cde | — |
| constant.numeric.dec.python | #B9A1F5de | — |
| constant.other.caps.python | #CBAF0Cde | — |
| constant.other.character-class.regexp | #67C541de | — |
| constant.other.character-class.set.regexp | #B5B5B5de | — |
| constant.other.color.rgb-value | #B6B6B6de | — |
| constant.other.placeholder | #ABABABde | — |
| constant.other.rgb-value | #0CCC7Ade | — |
| constant.regexp | #B3B3B3de | — |
| constant.sha.git-rebase | #68ACDFde | — |
| emphasis | #E87BE8de | — |
| entity.name.class | #76B6E6de | — |
| entity.name.function | #BDA309de | — |
| entity.name.function.preprocessor | #86C1EDde | — |
| entity.name.function.python | #C9B5F9de | — |
| entity.name.label | #44C88Ede | — |
| entity.name.namespace | #44D20Bde | — |
| entity.name.operator | #AFAFAFde | — |
| entity.name.operator.custom-literal | #BAA2F5de | — |
| entity.name.scope-resolution | #44D60Bde | — |
| entity.name.tag | #46C991de | — |
| entity.name.tag.css | #44D10Cde | — |
| entity.name.type | #5AD7A1de | — |
| entity.name.variable | #B9B9B9de | — |
| entity.other.attribute | #0BC979de | — |
| entity.other.attribute-name | #41C58Dde | — |
| entity.other.attribute-name.class.css | #F49FF4de | — |
| entity.other.attribute-name.class.mixin.css | #8BC3EEde | — |
| entity.other.attribute-name.id | #BAA2F5de | — |
| entity.other.attribute-name.id.css | #AFAFAFde | — |
| entity.other.attribute-name.parent-selector.css | #72B2E4de | — |
| entity.other.attribute-name.pseudo-class.css | #EE8AEEde | — |
| entity.other.attribute-name.pseudo-element.css | #B399F3de | — |
| entity.other.attribute-name.scss | #8DC5EFde | — |
| entity.other.document.begin.yaml | #FBA8A86e | — |
| entity.other.inherited-class | #86C1ECde | — |
| header | #B59CF3de | — |
| invalid | #A9A9A9de | — |
| keyword | #C9B646de | — |
| keyword.codetag.notation.python | #D3B60Bde | — |
| keyword.control | #0CC576de | — |
| keyword.control.anchor.regexp | #F49FF4de | — |
| keyword.control.import.python | #D9BB0Bde | — |
| keyword.operator | #4FD199de | — |
| keyword.operator.alignas | #C9B646de | — |
| keyword.operator.alignof | #C0C0C0de | — |
| keyword.operator.cast | #E97EE9de | — |
| keyword.operator.delete | #C1ACF7de | — |
| keyword.operator.documentation.powershell | #FCACAC6e | — |
| keyword.operator.expression | #6CC0FDde | — |
| keyword.operator.instanceof | #BFBFBFde | — |
| keyword.operator.logical.python | #B197F2de | — |
| keyword.operator.minus.exponent | #F4A0F4de | — |
| keyword.operator.negation.regexp | #C8AE0Cde | — |
| keyword.operator.new | #09C574de | — |
| keyword.operator.noexcept | #77B6E7de | — |
| keyword.operator.or.regexp | #CDBA4Ade | — |
| keyword.operator.plus.exponent | #0CD37Ede | — |
| keyword.operator.quantifier.regexp | #BCBCBCde | — |
| keyword.operator.sizeof | #B6B6B6de | — |
| keyword.operator.typeid | #0BC777de | — |
| keyword.operator.wordlike | #CDB10Bde | — |
| keyword.other.operator | #E87BE8de | — |
| keyword.other.package.java | #ED88EDde | — |
| keyword.other.unit | #B59CF3de | — |
| keyword.other.using | #C6B1F8de | — |
| markup.bold | #AF94F1de | — |
| markup.changed | #41C58Dde | — |
| markup.deleted | #F299F2de | — |
| markup.fenced_code.block.markdown | #41C30Cde | — |
| markup.heading | #D1B50Cde | — |
| markup.inline.raw | #A6A6A6de | — |
| markup.inserted | #4BCE96de | — |
| markup.italic | #7BB9E9de | — |
| markup.raw.block.markdown | #75D14Fde | — |
| markup.strikethrough | #43CE0Cde | — |
| markup.underline | #C8B4F8de | — |
| meta.block.c | #41ACFAde | — |
| meta.block.c | #AFAFAFde | — |
| meta.class.java | #C8B5F9de | — |
| meta.definition.variable.name | #B4B4B4de | — |
| meta.diff.header | #E97DE9de | — |
| meta.embedded | #B298F2de | — |
| meta.embedded.assembly | #EB81EBde | — |
| meta.function-call.arguments.python | #69C843de | — |
| meta.function-call.python | #C9B6F9de | — |
| meta.member.access.python | #F5A6F5de | — |
| meta.method.java | #BDA6F5de | — |
| meta.object-literal.key | #BDA6F5de | — |
| meta.paragraph.markdown | #B1B1B1de | — |
| meta.preprocessor | #F39DF3de | — |
| meta.preprocessor.numeric | #AF95F1de | — |
| meta.preprocessor.string | #B0B0B0de | — |
| meta.scope.prerequisites.makefile | #F08FF0de | — |
| meta.structure.dictionary.json.comments | #FCACAC6e | — |
| meta.structure.dictionary.key.python | #DFC10Ade | — |
| meta.structure.dictionary.value.json.comments | #FAABAB6e | — |
| meta.template.expression | #86C1ECde | — |
| meta.type.cast.expr | #0CCF7Cde | — |
| meta.type.new.expr | #75B5E6de | — |
| parameter | #B79EF4de | — |
| punctuation.character.set.begin.regexp | #C7B4F8de | — |
| punctuation.character.set.end.regexp | #BCBCBCde | — |
| punctuation.definition.array.begin.json | #BFA9F6de | — |
| punctuation.definition.character-class.regexp | #C6B2F8de | — |
| punctuation.definition.comment | #FAA4A46e | — |
| punctuation.definition.comment.json.comments | #F89B9B6e | — |
| punctuation.definition.comment.python | #F388886e | — |
| punctuation.definition.dictionary.begin.json | #E87AE8de | — |
| punctuation.definition.dictionary.end.json | #CDBA4Ade | — |
| punctuation.definition.group.assertion.regexp | #8FC6EFde | — |
| punctuation.definition.group.regexp | #70B2E3de | — |
| punctuation.definition.list.begin.json | #7BD657de | — |
| punctuation.definition.list.begin.markdown | #EE8CEEde | — |
| punctuation.definition.list.begin.python | #ED88EDde | — |
| punctuation.definition.list.end.json | #70CD4Ade | — |
| punctuation.definition.list.end.markdown | #46C991de | — |
| punctuation.definition.list.end.python | #0BD07Cde | — |
| punctuation.definition.parameters.begin.python | #78C4FDde | — |
| punctuation.definition.parameters.end.bracket.round.java | #70B2E3de | — |
| punctuation.definition.quote.begin.markdown | #CEB10Cde | — |
| punctuation.definition.tag | #BBAA3Dde | — |
| punctuation.definition.template-expression.begin | #64AADEde | — |
| punctuation.definition.template-expression.end | #5AD8A1de | — |
| punctuation.section.class.begin.bracket.curly.java | #BCA5F5de | — |
| punctuation.section.embedded | #EF8FEFde | — |
| punctuation.section.embedded.begin.php | #AF95F1de | — |
| punctuation.section.embedded.end.php | #C5B0F7de | — |
| punctuation.terminator.java | #AF95F1de | — |
| source.cmake | #D9BB0Bde | — |
| source.coffee.embedded | #74B6E6de | — |
| source.cpp | #CCBA49de | — |
| source.css.less | #BEBEBEde | — |
| source.groovy.embedded | #AF95F1de | — |
| source.java | #C4AFF8de | — |
| source.java-properties | #0DC174de | — |
| source.json.comments | #FAA4A46e | — |
| source.makefile | #BFA9F6de | — |
| source.powershell | #3FBD0Dde | — |
| source.powershell.variable.other.member | #74B4E5de | — |
| source.python | #43C78Ede | — |
| storage | #8EC6EFde | — |
| storage.modifier | #B3B3B3de | — |
| storage.modifier.import.java | #46C991de | — |
| storage.modifier.package.java | #EB83EBde | — |
| storage.type | #BCA30Cde | — |
| storage.type.annotation.groovy | #B9B9B9de | — |
| storage.type.annotation.java | #CFBB4Cde | — |
| storage.type.boolean.go | #AEAEAEde | — |
| storage.type.byte.go | #B9B9B9de | — |
| storage.type.cs | #B59DF3de | — |
| storage.type.error.go | #46C991de | — |
| storage.type.generic.cs | #47DC0Bde | — |
| storage.type.generic.groovy | #C8B442de | — |
| storage.type.generic.java | #B3B3B3de | — |
| storage.type.groovy | #B197F2de | — |
| storage.type.java | #B9A73Dde | — |
| storage.type.modifier.cs | #76B6E6de | — |
| storage.type.numeric.go | #AF94F1de | — |
| storage.type.object.array.groovy | #B2B2B2de | — |
| storage.type.object.array.java | #70CD4Ade | — |
| storage.type.parameters.groovy | #AFAFAFde | — |
| storage.type.primitive.array.groovy | #3CB882de | — |
| storage.type.primitive.array.java | #ABABABde | — |
| storage.type.primitive.groovy | #7ED75Ade | — |
| storage.type.primitive.java | #AAAAAAde | — |
| storage.type.rune.go | #BFA9F6de | — |
| storage.type.string.go | #B096F1de | — |
| storage.type.token.java | #ADADADde | — |
| storage.type.uintptr.go | #91C7F0de | — |
| storage.type.variable.cs | #70CD4Ade | — |
| string | #CBB8F9de | — |
| string.quoted.docstring.multi.python | #F596966e | — |
| string.regexp | #4FD199de | — |
| string.tag | #8EC6EFde | — |
| string.value | #ED88EDde | — |
| strong | #C1ABF6de | — |
| support.class | #3DC188de | — |
| support.constant.color | #82BEEBde | — |
| support.constant.dom | #70CD4Ade | — |
| support.constant.font-name | #C2ADF7de | — |
| support.constant.handlebars | #0CC476de | — |
| support.constant.json | #46D30Cde | — |
| support.constant.math | #EF8FEFde | — |
| support.constant.media | #47DC0Bde | — |
| support.constant.media-type | #41C58Dde | — |
| support.constant.property-value | #B9B9B9de | — |
| support.function | #C8B5F8de | — |
| support.function.git-rebase | #C7AC0Cde | — |
| support.other.parenthesis.regexp | #B096F2de | — |
| support.type | #0CD57Ede | — |
| support.type.property-name | #88C2EDde | — |
| support.type.vendored.property-name | #C5AA0Cde | — |
| support.variable | #70B2E3de | — |
| token.debug-token | #CAAF0Cde | — |
| token.error-token | #C4AA0Ade | — |
| token.info-token | #44D30Bde | — |
| token.warn-token | #86C0ECde | — |
| variable | #69BEFDde | — |
| variable.css | #B196F2de | — |
| variable.language | #C9B5F9de | — |
| variable.language.wildcard.java | #ED86EDde | — |
| variable.other.constant | #B79FF4de | — |
| variable.other.definition.java | #0CCB79de | — |
| variable.other.enummember | #B1B1B1de | — |
| variable.other.less | #F4A0F4de | — |
| variable.other.object.java | #8FC6EFde | — |
| variable.other.object.property.java | #C5B241de | — |
| variable.parameter.c | #0BDB83de | — |
| variable.parameter.function.language.python | #C9B6F9de | — |
| variable.parameter.java | #C6B1F8de | — |
| variable.scss | #50D29Bde | — |
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}!`;
}