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 | #ABC2FB6e | — |
| comment.block.html | #AFC5FC6e | — |
| comment.block.java | #C3D6FC6e | — |
| comment.block.javadoc.java | #C4D5FE6e | — |
| comment.block.powershell | #B1CAFB6e | — |
| comment.block.xml | #CDE1FE6e | — |
| comment.line.double-slash.c | #D0DFFD6e | — |
| comment.line.double-slash.cpp | #D5E2FE6e | — |
| comment.line.double-slash.java | #D0DFFD6e | — |
| comment.line.double-slash.js | #ADC7FB6e | — |
| comment.line.number-sign.makefile | #ADC7FA6e | — |
| comment.line.number-sign.python | #B6CDFB6e | — |
| comment.line.number-sign.yaml | #D0DFFD6e | — |
| comment.line.percentage.erlang | #BED3FD6e | — |
| comment.line.powershell | #D2E3FE6e | — |
| comment.source.cmake | #C0D8FD6e | — |
| comment.source.cmakecache | #AFC5FC6e | — |
| constant.character | #FCC8F6de | — |
| constant.character.character-class.regexp | #CECECEde | — |
| constant.character.escape | #CEC0FBde | — |
| constant.character.set.regexp | #F8D010de | — |
| constant.language | #B2DDFAde | — |
| constant.numeric | #CBCBCBde | — |
| constant.numeric.dec.python | #CEC0FBde | — |
| constant.other.caps.python | #EAD365de | — |
| constant.other.character-class.regexp | #A3F282de | — |
| constant.other.character-class.set.regexp | #C4E5FCde | — |
| constant.other.color.rgb-value | #90F5C5de | — |
| constant.other.placeholder | #54E4A0de | — |
| constant.other.rgb-value | #B2DCFAde | — |
| constant.regexp | #ACDAF9de | — |
| constant.sha.git-rebase | #CBBCFBde | — |
| emphasis | #4BEC07de | — |
| entity.name.class | #61E8A8de | — |
| entity.name.function | #E5DDFEde | — |
| entity.name.function.preprocessor | #AEF590de | — |
| entity.name.function.python | #8FCBF4de | — |
| entity.name.label | #64E9AAde | — |
| entity.name.namespace | #FBBEF4de | — |
| entity.name.operator | #4EE19Cde | — |
| entity.name.operator.custom-literal | #E8D061de | — |
| entity.name.scope-resolution | #FBBCF4de | — |
| entity.name.tag | #A7D7F8de | — |
| entity.name.tag.css | #D8D8D8de | — |
| entity.name.type | #AEF590de | — |
| entity.name.variable | #CDE9FDde | — |
| entity.other.attribute | #A9D8F9de | — |
| entity.other.attribute-name | #54E4A0de | — |
| entity.other.attribute-name.class.css | #9DD2F7de | — |
| entity.other.attribute-name.class.mixin.css | #FDD5F9de | — |
| entity.other.attribute-name.id | #81E557de | — |
| entity.other.attribute-name.id.css | #98CFF6de | — |
| entity.other.attribute-name.parent-selector.css | #90F5C5de | — |
| entity.other.attribute-name.pseudo-class.css | #F5E494de | — |
| entity.other.attribute-name.pseudo-element.css | #99EE75de | — |
| entity.other.attribute-name.scss | #5DE7A6de | — |
| entity.other.document.begin.yaml | #CBDCFE6e | — |
| entity.other.inherited-class | #E0E0E0de | — |
| header | #9ED3F7de | — |
| invalid | #E5E5E5de | — |
| keyword | #9BD1F7de | — |
| keyword.codetag.notation.python | #C8C8C8de | — |
| keyword.control | #9FF7CEde | — |
| keyword.control.anchor.regexp | #9DF07Ade | — |
| keyword.control.import.python | #A8F389de | — |
| keyword.operator | #82F2BDde | — |
| keyword.operator.alignas | #A2D4F8de | — |
| keyword.operator.alignof | #D6CAFCde | — |
| keyword.operator.cast | #F6E598de | — |
| keyword.operator.delete | #EDD770de | — |
| keyword.operator.documentation.powershell | #A6C8F96e | — |
| keyword.operator.expression | #F3E089de | — |
| keyword.operator.instanceof | #81F1BCde | — |
| keyword.operator.logical.python | #89F3C1de | — |
| keyword.operator.minus.exponent | #C6C6C6de | — |
| keyword.operator.negation.regexp | #CCBDFBde | — |
| keyword.operator.new | #6FDC42de | — |
| keyword.operator.noexcept | #E9D263de | — |
| keyword.operator.or.regexp | #FBBAF3de | — |
| keyword.operator.plus.exponent | #4EE19Cde | — |
| keyword.operator.quantifier.regexp | #CEBFFBde | — |
| keyword.operator.sizeof | #EDD771de | — |
| keyword.operator.typeid | #93EC6Ede | — |
| keyword.operator.wordlike | #C1E4FCde | — |
| keyword.other.operator | #E2D9FDde | — |
| keyword.other.package.java | #AEF590de | — |
| keyword.other.unit | #D7CBFDde | — |
| keyword.other.using | #FBBAF3de | — |
| markup.bold | #DBDBDBde | — |
| markup.changed | #C9C9C9de | — |
| markup.deleted | #E4E4E4de | — |
| markup.fenced_code.block.markdown | #ABD9F9de | — |
| markup.heading | #E8CF5Fde | — |
| markup.inline.raw | #7EE454de | — |
| markup.inserted | #E0E0E0de | — |
| markup.italic | #FCC6F6de | — |
| markup.raw.block.markdown | #F9ACF0de | — |
| markup.strikethrough | #8DEA67de | — |
| markup.underline | #BCE1FBde | — |
| meta.block.c | #DED4FDde | — |
| meta.block.c | #B6DEFAde | — |
| meta.class.java | #90F5C5de | — |
| meta.definition.variable.name | #90CBF4de | — |
| meta.diff.header | #DCD2FDde | — |
| meta.embedded | #F9D523de | — |
| meta.embedded.assembly | #F5E390de | — |
| meta.function-call.arguments.python | #66EAACde | — |
| meta.function-call.python | #FAB2F1de | — |
| meta.member.access.python | #E4CA54de | — |
| meta.method.java | #6FDC42de | — |
| meta.object-literal.key | #B3F698de | — |
| meta.paragraph.markdown | #E5DEFEde | — |
| meta.preprocessor | #DEC343de | — |
| meta.preprocessor.numeric | #A0D4F7de | — |
| meta.preprocessor.string | #E8D061de | — |
| meta.scope.prerequisites.makefile | #C9BAFBde | — |
| meta.structure.dictionary.json.comments | #C7D9FE6e | — |
| meta.structure.dictionary.key.python | #CDE9FDde | — |
| meta.structure.dictionary.value.json.comments | #B3D0FB6e | — |
| meta.template.expression | #8ECAF4de | — |
| meta.type.cast.expr | #E7E0FEde | — |
| meta.type.new.expr | #E0D7FDde | — |
| parameter | #97CFF6de | — |
| punctuation.character.set.begin.regexp | #4BE09Ade | — |
| punctuation.character.set.end.regexp | #D4D4D4de | — |
| punctuation.definition.array.begin.json | #72DF45de | — |
| punctuation.definition.character-class.regexp | #F9AFF1de | — |
| punctuation.definition.comment | #C7D9FE6e | — |
| punctuation.definition.comment.json.comments | #C9D8FE6e | — |
| punctuation.definition.comment.python | #C9DEFD6e | — |
| punctuation.definition.dictionary.begin.json | #CEC0FCde | — |
| punctuation.definition.dictionary.end.json | #E0D7FDde | — |
| punctuation.definition.group.assertion.regexp | #E4DCFEde | — |
| punctuation.definition.group.regexp | #C4C4C4de | — |
| punctuation.definition.list.begin.json | #FAB3F2de | — |
| punctuation.definition.list.begin.markdown | #D7D7D7de | — |
| punctuation.definition.list.begin.python | #D1D1D1de | — |
| punctuation.definition.list.end.json | #E5E5E5de | — |
| punctuation.definition.list.end.markdown | #CBBCFBde | — |
| punctuation.definition.list.end.python | #D5C9FCde | — |
| punctuation.definition.parameters.begin.python | #F6E598de | — |
| punctuation.definition.parameters.end.bracket.round.java | #E4DCFEde | — |
| punctuation.definition.quote.begin.markdown | #DFC448de | — |
| punctuation.definition.tag | #52E4A0de | — |
| punctuation.definition.template-expression.begin | #98EE75de | — |
| punctuation.definition.template-expression.end | #DCD2FDde | — |
| punctuation.section.class.begin.bracket.curly.java | #EAD367de | — |
| punctuation.section.embedded | #FCCBF7de | — |
| punctuation.section.embedded.begin.php | #90F5C5de | — |
| punctuation.section.embedded.end.php | #D9D9D9de | — |
| punctuation.terminator.java | #48DF98de | — |
| source.cmake | #C7C7C7de | — |
| source.coffee.embedded | #54F80Fde | — |
| source.cpp | #9EF07Bde | — |
| source.css.less | #74DF48de | — |
| source.groovy.embedded | #D0D0D0de | — |
| source.java | #C5E6FCde | — |
| source.java-properties | #E0E0E0de | — |
| source.json.comments | #CDDBFE6e | — |
| source.makefile | #E4CA54de | — |
| source.powershell | #FDD2F8de | — |
| source.powershell.variable.other.member | #D7D7D7de | — |
| source.python | #54E4A0de | — |
| storage | #E5DDFEde | — |
| storage.modifier | #CBCBCBde | — |
| storage.modifier.import.java | #7BE351de | — |
| storage.modifier.package.java | #74DF48de | — |
| storage.type | #D2C5FCde | — |
| storage.type.annotation.groovy | #F9A7EFde | — |
| storage.type.annotation.java | #D7CCFDde | — |
| storage.type.boolean.go | #FCC8F6de | — |
| storage.type.byte.go | #DFD5FDde | — |
| storage.type.cs | #4EE19Cde | — |
| storage.type.error.go | #DBDBDBde | — |
| storage.type.generic.cs | #CEBFFCde | — |
| storage.type.generic.groovy | #B3F698de | — |
| storage.type.generic.java | #FCC7F6de | — |
| storage.type.groovy | #D8D8D8de | — |
| storage.type.java | #9BD1F6de | — |
| storage.type.modifier.cs | #98F6CAde | — |
| storage.type.numeric.go | #88E860de | — |
| storage.type.object.array.groovy | #F1DD7Ede | — |
| storage.type.object.array.java | #F3E088de | — |
| storage.type.parameters.groovy | #CACACAde | — |
| storage.type.primitive.array.groovy | #9DF7CDde | — |
| storage.type.primitive.array.java | #CFCFCFde | — |
| storage.type.primitive.groovy | #8EEA67de | — |
| storage.type.primitive.java | #E1C74Ede | — |
| storage.type.rune.go | #E2C850de | — |
| storage.type.string.go | #D7D7D7de | — |
| storage.type.token.java | #CBBDFBde | — |
| storage.type.uintptr.go | #EED975de | — |
| storage.type.variable.cs | #FAB4F2de | — |
| string | #B3F698de | — |
| string.quoted.docstring.multi.python | #D4E2FE6e | — |
| string.regexp | #9FD3F7de | — |
| string.tag | #FDCCF7de | — |
| string.value | #E0E0E0de | — |
| strong | #48DF98de | — |
| support.class | #43DE96de | — |
| support.constant.color | #CDCDCDde | — |
| support.constant.dom | #D2C5FCde | — |
| support.constant.font-name | #A0D4F7de | — |
| support.constant.handlebars | #F9AAF0de | — |
| support.constant.json | #48DF98de | — |
| support.constant.math | #F3E088de | — |
| support.constant.media | #84F2BEde | — |
| support.constant.media-type | #E4CA54de | — |
| support.constant.property-value | #FCC5F5de | — |
| support.function | #F9D522de | — |
| support.function.git-rebase | #90F5C5de | — |
| support.other.parenthesis.regexp | #E2C84Ede | — |
| support.type | #AEF590de | — |
| support.type.property-name | #82F2BDde | — |
| support.type.vendored.property-name | #CDCDCDde | — |
| support.variable | #F6E598de | — |
| token.debug-token | #98CFF6de | — |
| token.error-token | #90F5C5de | — |
| token.info-token | #E4CA54de | — |
| token.warn-token | #F0DB7Cde | — |
| variable | #CDE9FDde | — |
| variable.css | #9EF07Bde | — |
| variable.language | #FBBFF4de | — |
| variable.language.wildcard.java | #E4CB56de | — |
| variable.other.constant | #86E75Dde | — |
| variable.other.definition.java | #9FD3F7de | — |
| variable.other.enummember | #74DF48de | — |
| variable.other.less | #CFCFCFde | — |
| variable.other.object.java | #48DF98de | — |
| variable.other.object.property.java | #9EF07Bde | — |
| variable.parameter.c | #93EC6Ede | — |
| variable.parameter.function.language.python | #67EAADde | — |
| variable.parameter.java | #8CC9F4de | — |
| variable.scss | #90CBF4de | — |
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}!`;
}