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 | #C1C1FC6e | — |
| comment.block.html | #BABAFC6e | — |
| comment.block.java | #B8B8FD6e | — |
| comment.block.javadoc.java | #AEAEFC6e | — |
| comment.block.powershell | #BABAFC6e | — |
| comment.block.xml | #C0C0FE6e | — |
| comment.line.double-slash.c | #B1B1FB6e | — |
| comment.line.double-slash.cpp | #AAAAFB6e | — |
| comment.line.double-slash.java | #A2A2FA6e | — |
| comment.line.double-slash.js | #BFBFFD6e | — |
| comment.line.number-sign.makefile | #ADADFB6e | — |
| comment.line.number-sign.python | #ADADFB6e | — |
| comment.line.number-sign.yaml | #BFBFFD6e | — |
| comment.line.percentage.erlang | #9F9FFA6e | — |
| comment.line.powershell | #BBBBFD6e | — |
| comment.source.cmake | #BEBEFD6e | — |
| comment.source.cmakecache | #C0C0FE6e | — |
| constant.character | #74C60Ade | — |
| constant.character.character-class.regexp | #08D53Cde | — |
| constant.character.escape | #EAAAF9de | — |
| constant.character.set.regexp | #50E174de | — |
| constant.language | #07D33Ade | — |
| constant.numeric | #7FBD2Ede | — |
| constant.numeric.dec.python | #09E23Fde | — |
| constant.other.caps.python | #AEAEF9de | — |
| constant.other.character-class.regexp | #33BED2de | — |
| constant.other.character-class.set.regexp | #C1C1FBde | — |
| constant.other.color.rgb-value | #76CA09de | — |
| constant.other.placeholder | #F9B0C3de | — |
| constant.other.rgb-value | #E59CF6de | — |
| constant.regexp | #F491AAde | — |
| constant.sha.git-rebase | #09C8E3de | — |
| emphasis | #09CA3Ade | — |
| entity.name.class | #36D55Ede | — |
| entity.name.function | #F8A6BBde | — |
| entity.name.function.preprocessor | #F492ABde | — |
| entity.name.function.python | #E69FF7de | — |
| entity.name.label | #EBAC6Dde | — |
| entity.name.namespace | #56D1E3de | — |
| entity.name.operator | #41C7DAde | — |
| entity.name.operator.custom-literal | #30D258de | — |
| entity.name.scope-resolution | #07D6F4de | — |
| entity.name.tag | #7BD409de | — |
| entity.name.tag.css | #E39C56de | — |
| entity.name.type | #EBAD6Fde | — |
| entity.name.variable | #E8A4F8de | — |
| entity.other.attribute | #F79EB4de | — |
| entity.other.attribute-name | #08E53Fde | — |
| entity.other.attribute-name.class.css | #7FDB08de | — |
| entity.other.attribute-name.class.mixin.css | #80DF08de | — |
| entity.other.attribute-name.id | #E19B54de | — |
| entity.other.attribute-name.id.css | #B6B6FAde | — |
| entity.other.attribute-name.parent-selector.css | #EAA968de | — |
| entity.other.attribute-name.pseudo-class.css | #3ED865de | — |
| entity.other.attribute-name.pseudo-element.css | #50E174de | — |
| entity.other.attribute-name.scss | #75C90Ade | — |
| entity.other.document.begin.yaml | #BCBCFD6e | — |
| entity.other.inherited-class | #07D63Cde | — |
| header | #08D9F7de | — |
| invalid | #BABAFBde | — |
| keyword | #F48EA7de | — |
| keyword.codetag.notation.python | #AEAEF9de | — |
| keyword.control | #E292F4de | — |
| keyword.control.anchor.regexp | #E69FF7de | — |
| keyword.control.import.python | #2EC153de | — |
| keyword.operator | #FA9229de | — |
| keyword.operator.alignas | #E69DF7de | — |
| keyword.operator.alignof | #E59F5Bde | — |
| keyword.operator.cast | #E69FF7de | — |
| keyword.operator.delete | #E191F4de | — |
| keyword.operator.documentation.powershell | #C0C0FE6e | — |
| keyword.operator.expression | #BABAFBde | — |
| keyword.operator.instanceof | #88CE2Ede | — |
| keyword.operator.logical.python | #09CF3Ade | — |
| keyword.operator.minus.exponent | #7EDB08de | — |
| keyword.operator.negation.regexp | #82DF09de | — |
| keyword.operator.new | #7AD207de | — |
| keyword.operator.noexcept | #DF8AF3de | — |
| keyword.operator.or.regexp | #A1A1F7de | — |
| keyword.operator.plus.exponent | #76CA09de | — |
| keyword.operator.quantifier.regexp | #F596AEde | — |
| keyword.operator.sizeof | #E498F5de | — |
| keyword.operator.typeid | #91D538de | — |
| keyword.operator.wordlike | #DF8AF2de | — |
| keyword.other.operator | #ECB0F9de | — |
| keyword.other.package.java | #FEB873de | — |
| keyword.other.unit | #2DBACFde | — |
| keyword.other.using | #09DAF6de | — |
| markup.bold | #E7A562de | — |
| markup.changed | #F7A1B6de | — |
| markup.deleted | #C2C2FCde | — |
| markup.fenced_code.block.markdown | #F596AEde | — |
| markup.heading | #E292F5de | — |
| markup.inline.raw | #E39D56de | — |
| markup.inserted | #F598AFde | — |
| markup.italic | #E396F5de | — |
| markup.raw.block.markdown | #F8A8BCde | — |
| markup.strikethrough | #2EC554de | — |
| markup.underline | #ABABF9de | — |
| meta.block.c | #A5A5F8de | — |
| meta.block.c | #E59DF6de | — |
| meta.class.java | #2EBACEde | — |
| meta.definition.variable.name | #08BFD9de | — |
| meta.diff.header | #F38EA7de | — |
| meta.embedded | #86CC2Dde | — |
| meta.embedded.assembly | #F79FB5de | — |
| meta.function-call.arguments.python | #EBADF9de | — |
| meta.function-call.python | #09D23Cde | — |
| meta.member.access.python | #80DB07de | — |
| meta.method.java | #09E33Fde | — |
| meta.object-literal.key | #EBAD6Fde | — |
| meta.paragraph.markdown | #F595AEde | — |
| meta.preprocessor | #F289A4de | — |
| meta.preprocessor.numeric | #E39E59de | — |
| meta.preprocessor.string | #F69BB2de | — |
| meta.scope.prerequisites.makefile | #08C838de | — |
| meta.structure.dictionary.json.comments | #BCBCFD6e | — |
| meta.structure.dictionary.key.python | #F599B1de | — |
| meta.structure.dictionary.value.json.comments | #C1C1FC6e | — |
| meta.template.expression | #2ECE56de | — |
| meta.type.cast.expr | #F9ABBEde | — |
| meta.type.new.expr | #A8A8F8de | — |
| parameter | #F289A4de | — |
| punctuation.character.set.begin.regexp | #7DD709de | — |
| punctuation.character.set.end.regexp | #7BD209de | — |
| punctuation.definition.array.begin.json | #FAB2C4de | — |
| punctuation.definition.character-class.regexp | #E498F6de | — |
| punctuation.definition.comment | #A2A2FA6e | — |
| punctuation.definition.comment.json.comments | #C0C0FE6e | — |
| punctuation.definition.comment.python | #BABAFC6e | — |
| punctuation.definition.dictionary.begin.json | #ECAF72de | — |
| punctuation.definition.dictionary.end.json | #F491AAde | — |
| punctuation.definition.group.assertion.regexp | #FCA248de | — |
| punctuation.definition.group.regexp | #08E73Fde | — |
| punctuation.definition.list.begin.json | #4ADD6Fde | — |
| punctuation.definition.list.begin.markdown | #44DB6Ade | — |
| punctuation.definition.list.begin.python | #F9AEC1de | — |
| punctuation.definition.list.end.json | #E294F4de | — |
| punctuation.definition.list.end.markdown | #F698B0de | — |
| punctuation.definition.list.end.python | #A2A2F7de | — |
| punctuation.definition.parameters.begin.python | #79CF07de | — |
| punctuation.definition.parameters.end.bracket.round.java | #ECB1FAde | — |
| punctuation.definition.quote.begin.markdown | #FAB5C7de | — |
| punctuation.definition.tag | #32D25Ade | — |
| punctuation.definition.template-expression.begin | #7BD409de | — |
| punctuation.definition.template-expression.end | #FCA955de | — |
| punctuation.section.class.begin.bracket.curly.java | #E08FF4de | — |
| punctuation.section.embedded | #F598AFde | — |
| punctuation.section.embedded.begin.php | #FAB5C6de | — |
| punctuation.section.embedded.end.php | #08B8D1de | — |
| punctuation.terminator.java | #E7A663de | — |
| source.cmake | #E7A0F7de | — |
| source.coffee.embedded | #08E03Fde | — |
| source.cpp | #F48EA7de | — |
| source.css.less | #7DD709de | — |
| source.groovy.embedded | #F38EA8de | — |
| source.java | #5CD4E5de | — |
| source.java-properties | #7FDB08de | — |
| source.json.comments | #A7A7FB6e | — |
| source.makefile | #73C509de | — |
| source.powershell | #34D45Dde | — |
| source.powershell.variable.other.member | #09D63Dde | — |
| source.python | #E7A0F7de | — |
| storage | #E69DF7de | — |
| storage.modifier | #E498F6de | — |
| storage.modifier.import.java | #9F9FF7de | — |
| storage.modifier.package.java | #AAAAF9de | — |
| storage.type | #71C207de | — |
| storage.type.annotation.groovy | #E59BF6de | — |
| storage.type.annotation.java | #4CDF70de | — |
| storage.type.boolean.go | #4ADD6Fde | — |
| storage.type.byte.go | #85C92Dde | — |
| storage.type.cs | #4ADD6Fde | — |
| storage.type.error.go | #44DB6Ade | — |
| storage.type.generic.cs | #F7A1B7de | — |
| storage.type.generic.groovy | #B4B4FAde | — |
| storage.type.generic.java | #F7A4B9de | — |
| storage.type.groovy | #2EBED1de | — |
| storage.type.java | #6FBF07de | — |
| storage.type.modifier.cs | #DE89F2de | — |
| storage.type.numeric.go | #3CD763de | — |
| storage.type.object.array.groovy | #EDB3FAde | — |
| storage.type.object.array.java | #33D25Bde | — |
| storage.type.parameters.groovy | #E09851de | — |
| storage.type.primitive.array.groovy | #AAAAF8de | — |
| storage.type.primitive.array.java | #33D25Bde | — |
| storage.type.primitive.groovy | #B5B5FAde | — |
| storage.type.primitive.java | #71C108de | — |
| storage.type.rune.go | #FAB2C4de | — |
| storage.type.string.go | #48DD6Dde | — |
| storage.type.token.java | #9F9FF7de | — |
| storage.type.uintptr.go | #77CC09de | — |
| storage.type.variable.cs | #9F9FF7de | — |
| string | #F9AABEde | — |
| string.quoted.docstring.multi.python | #B8B8FD6e | — |
| string.regexp | #B9B9FBde | — |
| string.tag | #E39C56de | — |
| string.value | #F7A1B7de | — |
| strong | #F8A5BAde | — |
| support.class | #EDB176de | — |
| support.constant.color | #DE88F2de | — |
| support.constant.dom | #F48EA8de | — |
| support.constant.font-name | #F7A2B8de | — |
| support.constant.handlebars | #E59BF6de | — |
| support.constant.json | #E396F5de | — |
| support.constant.math | #09CB3Ade | — |
| support.constant.media | #EBAD6Fde | — |
| support.constant.media-type | #B8B8FBde | — |
| support.constant.property-value | #74C709de | — |
| support.function | #50E074de | — |
| support.function.git-rebase | #B8B8FAde | — |
| support.other.parenthesis.regexp | #07C7E3de | — |
| support.type | #41DA68de | — |
| support.type.property-name | #E498F6de | — |
| support.type.vendored.property-name | #EDB176de | — |
| support.variable | #F28CA5de | — |
| token.debug-token | #E59BF6de | — |
| token.error-token | #A5A5F8de | — |
| token.info-token | #E49E57de | — |
| token.warn-token | #F38DA7de | — |
| variable | #F595ADde | — |
| variable.css | #F0B67Dde | — |
| variable.language | #33BFD3de | — |
| variable.language.wildcard.java | #E59DF6de | — |
| variable.other.constant | #C1C1FCde | — |
| variable.other.definition.java | #E69FF7de | — |
| variable.other.enummember | #82C32Dde | — |
| variable.other.less | #44DB6Ade | — |
| variable.other.object.java | #38D560de | — |
| variable.other.object.property.java | #B1B1F9de | — |
| variable.parameter.c | #BFBFFBde | — |
| variable.parameter.function.language.python | #E498F5de | — |
| variable.parameter.java | #B3B3FAde | — |
| variable.scss | #F69BB1de | — |
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}!`;
}