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 | #FBAAFB6e | — |
| comment.block.html | #C5C5C56e | — |
| comment.block.java | #F89BF86e | — |
| comment.block.javadoc.java | #F797F76e | — |
| comment.block.powershell | #F281F26e | — |
| comment.block.xml | #AEAEAE6e | — |
| comment.line.double-slash.c | #B4B4B46e | — |
| comment.line.double-slash.cpp | #C6C6C66e | — |
| comment.line.double-slash.java | #C5C5C56e | — |
| comment.line.double-slash.js | #F793F76e | — |
| comment.line.number-sign.makefile | #EF7CEF6e | — |
| comment.line.number-sign.python | #B0B0B06e | — |
| comment.line.number-sign.yaml | #F696F66e | — |
| comment.line.percentage.erlang | #B3B3B36e | — |
| comment.line.powershell | #B0B0B06e | — |
| comment.source.cmake | #B0B0B06e | — |
| comment.source.cmakecache | #F797F76e | — |
| constant.character | #EDB0FAde | — |
| constant.character.character-class.regexp | #06CC34de | — |
| constant.character.escape | #F98C13de | — |
| constant.character.set.regexp | #AFAFFAde | — |
| constant.language | #7FD208de | — |
| constant.numeric | #71BB09de | — |
| constant.numeric.dec.python | #51D4E5de | — |
| constant.other.caps.python | #90D62Cde | — |
| constant.other.character-class.regexp | #07C9E3de | — |
| constant.other.character-class.set.regexp | #EAAA61de | — |
| constant.other.color.rgb-value | #3ECBDEde | — |
| constant.other.placeholder | #2ED756de | — |
| constant.other.rgb-value | #06C3DDde | — |
| constant.regexp | #08BED5de | — |
| constant.sha.git-rebase | #FAAFC4de | — |
| emphasis | #F387A7de | — |
| entity.name.class | #EFB573de | — |
| entity.name.function | #E6A052de | — |
| entity.name.function.preprocessor | #07BED6de | — |
| entity.name.function.python | #90D62Cde | — |
| entity.name.label | #A5A5F9de | — |
| entity.name.namespace | #FB9B32de | — |
| entity.name.operator | #FAB2C7de | — |
| entity.name.operator.custom-literal | #B4B4FBde | — |
| entity.name.scope-resolution | #F489A9de | — |
| entity.name.tag | #ABABF9de | — |
| entity.name.tag.css | #2CD654de | — |
| entity.name.type | #F694B1de | — |
| entity.name.variable | #45CEE0de | — |
| entity.other.attribute | #E59F51de | — |
| entity.other.attribute-name | #F8A0BAde | — |
| entity.other.attribute-name.class.css | #E39B4Bde | — |
| entity.other.attribute-name.class.mixin.css | #B7B7FBde | — |
| entity.other.attribute-name.id | #FB992Ede | — |
| entity.other.attribute-name.id.css | #F89FB9de | — |
| entity.other.attribute-name.parent-selector.css | #31D959de | — |
| entity.other.attribute-name.pseudo-class.css | #A3A3F8de | — |
| entity.other.attribute-name.pseudo-element.css | #86C729de | — |
| entity.other.attribute-name.scss | #F9AAC2de | — |
| entity.other.document.begin.yaml | #BCBCBC6e | — |
| entity.other.inherited-class | #EBA9F9de | — |
| header | #78C708de | — |
| invalid | #94D932de | — |
| keyword | #E39B4Bde | — |
| keyword.codetag.notation.python | #B7B7FBde | — |
| keyword.control | #BBBBFBde | — |
| keyword.control.anchor.regexp | #E9A85Ede | — |
| keyword.control.import.python | #08D037de | — |
| keyword.operator | #08C434de | — |
| keyword.operator.alignas | #32C5D9de | — |
| keyword.operator.alignof | #B8B8FBde | — |
| keyword.operator.cast | #F489A9de | — |
| keyword.operator.delete | #06D6F2de | — |
| keyword.operator.documentation.powershell | #ABABAB6e | — |
| keyword.operator.expression | #F9ABC2de | — |
| keyword.operator.instanceof | #81D508de | — |
| keyword.operator.logical.python | #F58FADde | — |
| keyword.operator.minus.exponent | #07DAF6de | — |
| keyword.operator.negation.regexp | #A1A1F8de | — |
| keyword.operator.new | #EAA5F8de | — |
| keyword.operator.noexcept | #F1B879de | — |
| keyword.operator.or.regexp | #3EDE64de | — |
| keyword.operator.plus.exponent | #08B9D0de | — |
| keyword.operator.quantifier.regexp | #EBAC65de | — |
| keyword.operator.sizeof | #E492F6de | — |
| keyword.operator.typeid | #3DCBDDde | — |
| keyword.operator.wordlike | #42E068de | — |
| keyword.other.operator | #08B9D0de | — |
| keyword.other.package.java | #3EDE64de | — |
| keyword.other.unit | #F694B0de | — |
| keyword.other.using | #FAB2C7de | — |
| markup.bold | #07CD36de | — |
| markup.changed | #E19846de | — |
| markup.deleted | #07C3DCde | — |
| markup.fenced_code.block.markdown | #E390F5de | — |
| markup.heading | #EFB473de | — |
| markup.inline.raw | #F694B1de | — |
| markup.inserted | #08C8E1de | — |
| markup.italic | #08CCE5de | — |
| markup.raw.block.markdown | #7FD207de | — |
| markup.strikethrough | #EEB3FAde | — |
| markup.underline | #ADADFAde | — |
| meta.block.c | #50D4E4de | — |
| meta.block.c | #E6A152de | — |
| meta.class.java | #B4B4FAde | — |
| meta.definition.variable.name | #E39C4Bde | — |
| meta.diff.header | #E493F6de | — |
| meta.embedded | #7FD207de | — |
| meta.embedded.assembly | #E49F4Fde | — |
| meta.function-call.arguments.python | #FCA442de | — |
| meta.function-call.python | #7CCD08de | — |
| meta.member.access.python | #F9A3BDde | — |
| meta.method.java | #A2A2F8de | — |
| meta.object-literal.key | #94D932de | — |
| meta.paragraph.markdown | #E596F6de | — |
| meta.preprocessor | #E188F4de | — |
| meta.preprocessor.numeric | #2AD051de | — |
| meta.preprocessor.string | #7DD007de | — |
| meta.scope.prerequisites.makefile | #FCA748de | — |
| meta.structure.dictionary.json.comments | #F793F76e | — |
| meta.structure.dictionary.key.python | #76C408de | — |
| meta.structure.dictionary.value.json.comments | #AEAEAE6e | — |
| meta.template.expression | #EBAC65de | — |
| meta.type.cast.expr | #08C2DBde | — |
| meta.type.new.expr | #07E039de | — |
| parameter | #74C108de | — |
| punctuation.character.set.begin.regexp | #F9A7BEde | — |
| punctuation.character.set.end.regexp | #92D82Fde | — |
| punctuation.definition.array.begin.json | #E38FF5de | — |
| punctuation.definition.character-class.regexp | #47E26Cde | — |
| punctuation.definition.comment | #B5B5B56e | — |
| punctuation.definition.comment.json.comments | #F592F56e | — |
| punctuation.definition.comment.python | #C6C6C66e | — |
| punctuation.definition.dictionary.begin.json | #E38FF5de | — |
| punctuation.definition.dictionary.end.json | #B9B9FBde | — |
| punctuation.definition.group.assertion.regexp | #FAB3C8de | — |
| punctuation.definition.group.regexp | #E8A55Ade | — |
| punctuation.definition.list.begin.json | #F696B2de | — |
| punctuation.definition.list.begin.markdown | #86C729de | — |
| punctuation.definition.list.begin.python | #EDB1FAde | — |
| punctuation.definition.list.end.json | #06CC35de | — |
| punctuation.definition.list.end.markdown | #08D037de | — |
| punctuation.definition.list.end.python | #F79CB7de | — |
| punctuation.definition.parameters.begin.python | #F696B3de | — |
| punctuation.definition.parameters.end.bracket.round.java | #09C534de | — |
| punctuation.definition.quote.begin.markdown | #F89EB8de | — |
| punctuation.definition.tag | #BCBCFBde | — |
| punctuation.definition.template-expression.begin | #39DC5Fde | — |
| punctuation.definition.template-expression.end | #E492F6de | — |
| punctuation.section.class.begin.bracket.curly.java | #E595F6de | — |
| punctuation.section.embedded | #7FD208de | — |
| punctuation.section.embedded.begin.php | #3CDD62de | — |
| punctuation.section.embedded.end.php | #FAB3C8de | — |
| punctuation.terminator.java | #09C234de | — |
| source.cmake | #F48CAAde | — |
| source.coffee.embedded | #30D858de | — |
| source.cpp | #ECAE68de | — |
| source.css.less | #FAAFC5de | — |
| source.groovy.embedded | #EBAC65de | — |
| source.java | #E188F4de | — |
| source.java-properties | #2CC2D6de | — |
| source.json.comments | #F17EF16e | — |
| source.makefile | #E69AF7de | — |
| source.powershell | #FA9422de | — |
| source.powershell.variable.other.member | #FCA94Cde | — |
| source.python | #E18AF4de | — |
| storage | #F9ACC3de | — |
| storage.modifier | #E28CF4de | — |
| storage.modifier.import.java | #E698F6de | — |
| storage.modifier.package.java | #E39B4Ade | — |
| storage.type | #E79AF7de | — |
| storage.type.annotation.groovy | #F488A7de | — |
| storage.type.annotation.java | #58D6E7de | — |
| storage.type.boolean.go | #E085F3de | — |
| storage.type.byte.go | #B1B1FAde | — |
| storage.type.cs | #E29B4Bde | — |
| storage.type.error.go | #AAAAF9de | — |
| storage.type.generic.cs | #74C108de | — |
| storage.type.generic.groovy | #E28DF5de | — |
| storage.type.generic.java | #86C729de | — |
| storage.type.groovy | #F697B3de | — |
| storage.type.java | #FDB25Fde | — |
| storage.type.modifier.cs | #E89EF8de | — |
| storage.type.numeric.go | #51D4E5de | — |
| storage.type.object.array.groovy | #07D3EEde | — |
| storage.type.object.array.java | #FAB4C9de | — |
| storage.type.parameters.groovy | #94DA33de | — |
| storage.type.primitive.array.groovy | #E188F4de | — |
| storage.type.primitive.array.java | #EDAFFAde | — |
| storage.type.primitive.groovy | #E9A3F8de | — |
| storage.type.primitive.java | #E39B4Bde | — |
| storage.type.rune.go | #F798B4de | — |
| storage.type.string.go | #F0B777de | — |
| storage.type.token.java | #06D837de | — |
| storage.type.uintptr.go | #E391F5de | — |
| storage.type.variable.cs | #A2A2F8de | — |
| string | #E38CF5de | — |
| string.quoted.docstring.multi.python | #F080F06e | — |
| string.regexp | #AFAFFAde | — |
| string.tag | #45CEE0de | — |
| string.value | #73BE09de | — |
| strong | #F48AA9de | — |
| support.class | #86C729de | — |
| support.constant.color | #EBAD66de | — |
| support.constant.dom | #B9B9FBde | — |
| support.constant.font-name | #84DC06de | — |
| support.constant.handlebars | #EBA9F9de | — |
| support.constant.json | #98DB38de | — |
| support.constant.math | #F1B879de | — |
| support.constant.media | #E39C4Cde | — |
| support.constant.media-type | #E596F6de | — |
| support.constant.property-value | #C3C3FCde | — |
| support.function | #BDBDFCde | — |
| support.function.git-rebase | #E188F4de | — |
| support.other.parenthesis.regexp | #C3C3FCde | — |
| support.type | #F9ABC2de | — |
| support.type.property-name | #58D6E7de | — |
| support.type.vendored.property-name | #32D959de | — |
| support.variable | #F58DABde | — |
| token.debug-token | #07BED6de | — |
| token.error-token | #90D62Cde | — |
| token.info-token | #F488A7de | — |
| token.warn-token | #E59F51de | — |
| variable | #F9A9C1de | — |
| variable.css | #F799B4de | — |
| variable.language | #E6A052de | — |
| variable.language.wildcard.java | #81BF29de | — |
| variable.other.constant | #BDBDFBde | — |
| variable.other.definition.java | #07C635de | — |
| variable.other.enummember | #9F9FF8de | — |
| variable.other.less | #3ECBDEde | — |
| variable.other.object.java | #83DC07de | — |
| variable.other.object.property.java | #38DB5Fde | — |
| variable.parameter.c | #94D931de | — |
| variable.parameter.function.language.python | #E7A458de | — |
| variable.parameter.java | #B7B7FBde | — |
| variable.scss | #B1B1FAde | — |
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}!`;
}