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 | #B7B7FB6e | — |
| comment.block.html | #A7A7FA6e | — |
| comment.block.java | #B2B2FB6e | — |
| comment.block.javadoc.java | #B7B7FB6e | — |
| comment.block.powershell | #9999F86e | — |
| comment.block.xml | #9999F96e | — |
| comment.line.double-slash.c | #AEAEFA6e | — |
| comment.line.double-slash.cpp | #A9A9FB6e | — |
| comment.line.double-slash.java | #B2B2FB6e | — |
| comment.line.double-slash.js | #A2A2F86e | — |
| comment.line.number-sign.makefile | #A5A5FA6e | — |
| comment.line.number-sign.python | #A2A2F86e | — |
| comment.line.number-sign.yaml | #ABABFA6e | — |
| comment.line.percentage.erlang | #A5A5FA6e | — |
| comment.line.powershell | #9F9FF86e | — |
| comment.source.cmake | #ADADFB6e | — |
| comment.source.cmakecache | #B0B0FB6e | — |
| constant.character | #F384A6de | — |
| constant.character.character-class.regexp | #86BE29de | — |
| constant.character.escape | #08CBD9de | — |
| constant.character.set.regexp | #F799B6de | — |
| constant.language | #80C808de | — |
| constant.numeric | #7CC309de | — |
| constant.numeric.dec.python | #F590AFde | — |
| constant.other.caps.python | #29CCD6de | — |
| constant.other.character-class.regexp | #31CED9de | — |
| constant.other.character-class.set.regexp | #87D308de | — |
| constant.other.color.rgb-value | #E88EF5de | — |
| constant.other.placeholder | #E37FF2de | — |
| constant.other.rgb-value | #92D128de | — |
| constant.regexp | #FBA02Cde | — |
| constant.sha.git-rebase | #E689F4de | — |
| emphasis | #E582F3de | — |
| entity.name.class | #A0A0F8de | — |
| entity.name.function | #F58EAEde | — |
| entity.name.function.preprocessor | #07CFDCde | — |
| entity.name.function.python | #E5A34Ede | — |
| entity.name.label | #29C5CFde | — |
| entity.name.namespace | #E7A856de | — |
| entity.name.operator | #31CED9de | — |
| entity.name.operator.custom-literal | #F386A8de | — |
| entity.name.scope-resolution | #F9A4BEde | — |
| entity.name.tag | #80C808de | — |
| entity.name.tag.css | #75B706de | — |
| entity.name.type | #83CD08de | — |
| entity.name.variable | #9C9CF7de | — |
| entity.other.attribute | #EA95F6de | — |
| entity.other.attribute-name | #E88EF5de | — |
| entity.other.attribute-name.class.css | #F9981Bde | — |
| entity.other.attribute-name.class.mixin.css | #EB99F7de | — |
| entity.other.attribute-name.id | #08C637de | — |
| entity.other.attribute-name.id.css | #7ABF06de | — |
| entity.other.attribute-name.parent-selector.css | #B4B4FBde | — |
| entity.other.attribute-name.pseudo-class.css | #F692B1de | — |
| entity.other.attribute-name.pseudo-element.css | #80C906de | — |
| entity.other.attribute-name.scss | #A5A5F9de | — |
| entity.other.document.begin.yaml | #B1B1FC6e | — |
| entity.other.inherited-class | #E991F6de | — |
| header | #F8A0BBde | — |
| invalid | #86BE29de | — |
| keyword | #29CF52de | — |
| keyword.codetag.notation.python | #F8A0BCde | — |
| keyword.control | #07C136de | — |
| keyword.control.anchor.regexp | #A0A0F8de | — |
| keyword.control.import.python | #F384A6de | — |
| keyword.operator | #EBB064de | — |
| keyword.operator.alignas | #07C8D6de | — |
| keyword.operator.alignof | #F590AFde | — |
| keyword.operator.cast | #07D2DFde | — |
| keyword.operator.delete | #07D0DEde | — |
| keyword.operator.documentation.powershell | #B7B7FB6e | — |
| keyword.operator.expression | #DD9539de | — |
| keyword.operator.instanceof | #86BD28de | — |
| keyword.operator.logical.python | #7CC207de | — |
| keyword.operator.minus.exponent | #F8A0BCde | — |
| keyword.operator.negation.regexp | #F58EAEde | — |
| keyword.operator.new | #BCBCFCde | — |
| keyword.operator.noexcept | #B2B2FAde | — |
| keyword.operator.or.regexp | #07C5D2de | — |
| keyword.operator.plus.exponent | #07CCDAde | — |
| keyword.operator.quantifier.regexp | #E98FF5de | — |
| keyword.operator.sizeof | #9D9DF8de | — |
| keyword.operator.typeid | #07BAC5de | — |
| keyword.operator.wordlike | #7BBF08de | — |
| keyword.other.operator | #E7A856de | — |
| keyword.other.package.java | #E582F3de | — |
| keyword.other.unit | #29C650de | — |
| keyword.other.using | #08B9C5de | — |
| markup.bold | #FCA537de | — |
| markup.changed | #F281A4de | — |
| markup.deleted | #E3A04Bde | — |
| markup.fenced_code.block.markdown | #F590AFde | — |
| markup.heading | #07D2DFde | — |
| markup.inline.raw | #DE983Ede | — |
| markup.inserted | #76B709de | — |
| markup.italic | #B9B9FBde | — |
| markup.raw.block.markdown | #BBBBFBde | — |
| markup.strikethrough | #86BD28de | — |
| markup.underline | #E990F6de | — |
| meta.block.c | #08C738de | — |
| meta.block.c | #88D508de | — |
| meta.class.java | #E4A14Cde | — |
| meta.definition.variable.name | #E88EF5de | — |
| meta.diff.header | #28C650de | — |
| meta.embedded | #07D1DFde | — |
| meta.embedded.assembly | #A3A3F9de | — |
| meta.function-call.arguments.python | #B2B2FAde | — |
| meta.function-call.python | #08C938de | — |
| meta.member.access.python | #ECB166de | — |
| meta.method.java | #A3A3F8de | — |
| meta.object-literal.key | #9E9EF8de | — |
| meta.paragraph.markdown | #07D4E2de | — |
| meta.preprocessor | #07DF3Dde | — |
| meta.preprocessor.numeric | #B5B5FBde | — |
| meta.preprocessor.string | #DE973Dde | — |
| meta.scope.prerequisites.makefile | #AEAEFAde | — |
| meta.structure.dictionary.json.comments | #A9A9FB6e | — |
| meta.structure.dictionary.key.python | #77BA08de | — |
| meta.structure.dictionary.value.json.comments | #A1A1F96e | — |
| meta.template.expression | #EC9DF8de | — |
| meta.type.cast.expr | #E687F4de | — |
| meta.type.new.expr | #F8A0BBde | — |
| parameter | #82CC08de | — |
| punctuation.character.set.begin.regexp | #79BE07de | — |
| punctuation.character.set.end.regexp | #EEB66Fde | — |
| punctuation.definition.array.begin.json | #EEA3F8de | — |
| punctuation.definition.character-class.regexp | #A3A3F9de | — |
| punctuation.definition.comment | #AAAAF96e | — |
| punctuation.definition.comment.json.comments | #A3A3F96e | — |
| punctuation.definition.comment.python | #B5B5FC6e | — |
| punctuation.definition.dictionary.begin.json | #38DD62de | — |
| punctuation.definition.dictionary.end.json | #B0B0FAde | — |
| punctuation.definition.group.assertion.regexp | #EFA7F9de | — |
| punctuation.definition.group.regexp | #F89EBAde | — |
| punctuation.definition.list.begin.json | #E88CF5de | — |
| punctuation.definition.list.begin.markdown | #77BA08de | — |
| punctuation.definition.list.begin.python | #F489AAde | — |
| punctuation.definition.list.end.json | #08B9C5de | — |
| punctuation.definition.list.end.markdown | #9D9DF8de | — |
| punctuation.definition.list.end.python | #EC9DF7de | — |
| punctuation.definition.parameters.begin.python | #E7A856de | — |
| punctuation.definition.parameters.end.bracket.round.java | #F48BABde | — |
| punctuation.definition.quote.begin.markdown | #F591B1de | — |
| punctuation.definition.tag | #F280A3de | — |
| punctuation.definition.template-expression.begin | #29BCC6de | — |
| punctuation.definition.template-expression.end | #B7B7FBde | — |
| punctuation.section.class.begin.bracket.curly.java | #09BBC6de | — |
| punctuation.section.embedded | #8BC629de | — |
| punctuation.section.embedded.begin.php | #F280A3de | — |
| punctuation.section.embedded.end.php | #F89DB9de | — |
| punctuation.terminator.java | #E88EF5de | — |
| source.cmake | #06CF39de | — |
| source.coffee.embedded | #08C5D2de | — |
| source.cpp | #7FC609de | — |
| source.css.less | #F280A3de | — |
| source.groovy.embedded | #E09C43de | — |
| source.java | #08BAC6de | — |
| source.java-properties | #33D0DBde | — |
| source.json.comments | #B5B5FC6e | — |
| source.makefile | #08C9D6de | — |
| source.powershell | #29C5CFde | — |
| source.powershell.variable.other.member | #E78AF4de | — |
| source.python | #F280A3de | — |
| storage | #F27EA2de | — |
| storage.modifier | #84CE08de | — |
| storage.modifier.import.java | #A3A3F9de | — |
| storage.modifier.package.java | #F79BB8de | — |
| storage.type | #28B6C0de | — |
| storage.type.annotation.groovy | #8BC629de | — |
| storage.type.annotation.java | #08C939de | — |
| storage.type.boolean.go | #FBA537de | — |
| storage.type.byte.go | #08D33Ade | — |
| storage.type.cs | #07D03Ade | — |
| storage.type.error.go | #F17EA2de | — |
| storage.type.generic.cs | #76B907de | — |
| storage.type.generic.groovy | #ABABFAde | — |
| storage.type.generic.java | #E7A856de | — |
| storage.type.groovy | #E37FF2de | — |
| storage.type.java | #E480F2de | — |
| storage.type.modifier.cs | #73B408de | — |
| storage.type.numeric.go | #F79CB8de | — |
| storage.type.object.array.groovy | #F280A3de | — |
| storage.type.object.array.java | #EA96F6de | — |
| storage.type.parameters.groovy | #07DF3Dde | — |
| storage.type.primitive.array.groovy | #08BFCBde | — |
| storage.type.primitive.array.java | #EC9DF8de | — |
| storage.type.primitive.groovy | #EA93F6de | — |
| storage.type.primitive.java | #08BCC9de | — |
| storage.type.rune.go | #ADADFAde | — |
| storage.type.string.go | #FCAB44de | — |
| storage.type.token.java | #F9A6C0de | — |
| storage.type.uintptr.go | #83CE07de | — |
| storage.type.variable.cs | #ADADFAde | — |
| string | #08C938de | — |
| string.quoted.docstring.multi.python | #B4B4FC6e | — |
| string.regexp | #31D95Bde | — |
| string.tag | #E4A24Ede | — |
| string.value | #B7B7FBde | — |
| strong | #F280A4de | — |
| support.class | #08C838de | — |
| support.constant.color | #9B9BF8de | — |
| support.constant.dom | #F487A9de | — |
| support.constant.font-name | #29BE4Ede | — |
| support.constant.handlebars | #91CF29de | — |
| support.constant.json | #E687F4de | — |
| support.constant.math | #06B7C3de | — |
| support.constant.media | #E480F2de | — |
| support.constant.media-type | #F79CB8de | — |
| support.constant.property-value | #7EB228de | — |
| support.function | #E9AC5Dde | — |
| support.function.git-rebase | #29B5BEde | — |
| support.other.parenthesis.regexp | #AEAEFAde | — |
| support.type | #82B728de | — |
| support.type.property-name | #A2A2F8de | — |
| support.type.vendored.property-name | #9F9FF8de | — |
| support.variable | #29B5BEde | — |
| token.debug-token | #07D0DCde | — |
| token.error-token | #82CB06de | — |
| token.info-token | #84CE08de | — |
| token.warn-token | #A2A2F9de | — |
| variable | #F89EBAde | — |
| variable.css | #2BCBD6de | — |
| variable.language | #8BC629de | — |
| variable.language.wildcard.java | #90CE28de | — |
| variable.other.constant | #F58EAFde | — |
| variable.other.definition.java | #30D859de | — |
| variable.other.enummember | #08C6D3de | — |
| variable.other.less | #31D0DAde | — |
| variable.other.object.java | #37D1DBde | — |
| variable.other.object.property.java | #07DF3Ede | — |
| variable.parameter.c | #94D428de | — |
| variable.parameter.function.language.python | #84BA28de | — |
| variable.parameter.java | #84CE08de | — |
| variable.scss | #F8A2BDde | — |
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}!`;
}