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 | #9B9BF86e | — |
| comment.block.html | #9A9AF76e | — |
| comment.block.java | #A0A0FA6e | — |
| comment.block.javadoc.java | #B7B7FB6e | — |
| comment.block.powershell | #ADADFB6e | — |
| comment.block.xml | #ADADFB6e | — |
| comment.line.double-slash.c | #AAAAFA6e | — |
| comment.line.double-slash.cpp | #B7B7FB6e | — |
| comment.line.double-slash.java | #ADADFC6e | — |
| comment.line.double-slash.js | #A0A0FA6e | — |
| comment.line.number-sign.makefile | #9B9BF86e | — |
| comment.line.number-sign.python | #A5A5FB6e | — |
| comment.line.number-sign.yaml | #AAAAFA6e | — |
| comment.line.percentage.erlang | #B0B0FB6e | — |
| comment.line.powershell | #A2A2F86e | — |
| comment.source.cmake | #A9A9FB6e | — |
| comment.source.cmakecache | #9E9EF76e | — |
| constant.character | #71A8DFde | — |
| constant.character.character-class.regexp | #F68A1Ede | — |
| constant.character.escape | #B3B3B3de | — |
| constant.character.set.regexp | #C498F0de | — |
| constant.language | #71D70Cde | — |
| constant.numeric | #46BB80de | — |
| constant.numeric.dec.python | #7EB1E5de | — |
| constant.other.caps.python | #C1C1C1de | — |
| constant.other.character-class.regexp | #D89F67de | — |
| constant.other.character-class.set.regexp | #C89EF2de | — |
| constant.other.color.rgb-value | #A2A2A2de | — |
| constant.other.placeholder | #6AC60Dde | — |
| constant.other.rgb-value | #70A7DEde | — |
| constant.regexp | #6AC90Cde | — |
| constant.sha.git-rebase | #B7B7B7de | — |
| emphasis | #F19AC5de | — |
| entity.name.class | #8DC852de | — |
| entity.name.function | #95CF5Ade | — |
| entity.name.function.preprocessor | #74AAE0de | — |
| entity.name.function.python | #CDA6F4de | — |
| entity.name.label | #8DC852de | — |
| entity.name.namespace | #67BE0Ede | — |
| entity.name.operator | #F6881Ade | — |
| entity.name.operator.custom-literal | #7AAFE3de | — |
| entity.name.scope-resolution | #C498F0de | — |
| entity.name.tag | #B5B5B5de | — |
| entity.name.tag.css | #B1B1B1de | — |
| entity.name.type | #5EADFCde | — |
| entity.name.variable | #6FA6DDde | — |
| entity.other.attribute | #D99F67de | — |
| entity.other.attribute-name | #AFAFAFde | — |
| entity.other.attribute-name.class.css | #BDBDBDde | — |
| entity.other.attribute-name.class.mixin.css | #E985B7de | — |
| entity.other.attribute-name.id | #A7A7A7de | — |
| entity.other.attribute-name.id.css | #89C44Ede | — |
| entity.other.attribute-name.parent-selector.css | #F098C3de | — |
| entity.other.attribute-name.pseudo-class.css | #D2AEF6de | — |
| entity.other.attribute-name.pseudo-element.css | #C0C0C0de | — |
| entity.other.attribute-name.scss | #65C00Bde | — |
| entity.other.document.begin.yaml | #A9A9FB6e | — |
| entity.other.inherited-class | #EE91BFde | — |
| header | #B8B8B8de | — |
| invalid | #E6B37Fde | — |
| keyword | #4ABF85de | — |
| keyword.codetag.notation.python | #C091EEde | — |
| keyword.control | #AFAFAFde | — |
| keyword.control.anchor.regexp | #85B7E9de | — |
| keyword.control.import.python | #4AC085de | — |
| keyword.operator | #80BB46de | — |
| keyword.operator.alignas | #CDA5F4de | — |
| keyword.operator.alignof | #74AAE0de | — |
| keyword.operator.cast | #7AAFE3de | — |
| keyword.operator.delete | #EE93C0de | — |
| keyword.operator.documentation.powershell | #9A9AF76e | — |
| keyword.operator.expression | #0CC266de | — |
| keyword.operator.instanceof | #FCAD5Fde | — |
| keyword.operator.logical.python | #EC8DBCde | — |
| keyword.operator.minus.exponent | #4FC58Ade | — |
| keyword.operator.negation.regexp | #D5B2F7de | — |
| keyword.operator.new | #E0AA74de | — |
| keyword.operator.noexcept | #AAAAAAde | — |
| keyword.operator.or.regexp | #8EC953de | — |
| keyword.operator.plus.exponent | #7CB445de | — |
| keyword.operator.quantifier.regexp | #F19CC6de | — |
| keyword.operator.sizeof | #A2A2A2de | — |
| keyword.operator.typeid | #46BB80de | — |
| keyword.operator.wordlike | #D1975Dde | — |
| keyword.other.operator | #BABABAde | — |
| keyword.other.package.java | #DAA169de | — |
| keyword.other.unit | #E883B5de | — |
| keyword.other.using | #F4A5CCde | — |
| markup.bold | #F097C3de | — |
| markup.changed | #EC8CBBde | — |
| markup.deleted | #E0A973de | — |
| markup.fenced_code.block.markdown | #89C54Ede | — |
| markup.heading | #92C0EEde | — |
| markup.inline.raw | #C1C1C1de | — |
| markup.inserted | #DDA66Fde | — |
| markup.italic | #6FA6DDde | — |
| markup.raw.block.markdown | #E9B785de | — |
| markup.strikethrough | #D4B1F7de | — |
| markup.underline | #F58718de | — |
| meta.block.c | #57CC91de | — |
| meta.block.c | #0ECE6Ede | — |
| meta.class.java | #BDBDBDde | — |
| meta.definition.variable.name | #52C88Dde | — |
| meta.diff.header | #D79E65de | — |
| meta.embedded | #A2A2A2de | — |
| meta.embedded.assembly | #52C98Dde | — |
| meta.function-call.arguments.python | #50C68Bde | — |
| meta.function-call.python | #C1C1C1de | — |
| meta.member.access.python | #95D05Bde | — |
| meta.method.java | #B3B3B3de | — |
| meta.object-literal.key | #46BB80de | — |
| meta.paragraph.markdown | #91CC57de | — |
| meta.preprocessor | #0ECA6Cde | — |
| meta.preprocessor.numeric | #6DCE0Dde | — |
| meta.preprocessor.string | #F098C4de | — |
| meta.scope.prerequisites.makefile | #75ABE1de | — |
| meta.structure.dictionary.json.comments | #9D9DFA6e | — |
| meta.structure.dictionary.key.python | #CBA4F3de | — |
| meta.structure.dictionary.value.json.comments | #9B9BF86e | — |
| meta.template.expression | #91BFEEde | — |
| meta.type.cast.expr | #7CB445de | — |
| meta.type.new.expr | #B0B0B0de | — |
| parameter | #FDAD5Ede | — |
| punctuation.character.set.begin.regexp | #71D30Dde | — |
| punctuation.character.set.end.regexp | #86B8E9de | — |
| punctuation.definition.array.begin.json | #F097C3de | — |
| punctuation.definition.character-class.regexp | #4EC489de | — |
| punctuation.definition.comment | #B9B9FD6e | — |
| punctuation.definition.comment.json.comments | #A9A9FB6e | — |
| punctuation.definition.comment.python | #9C9CF96e | — |
| punctuation.definition.dictionary.begin.json | #C092EEde | — |
| punctuation.definition.dictionary.end.json | #6DCC0Ede | — |
| punctuation.definition.group.assertion.regexp | #C69AF0de | — |
| punctuation.definition.group.regexp | #F19CC7de | — |
| punctuation.definition.list.begin.json | #0CC266de | — |
| punctuation.definition.list.begin.markdown | #DDA66Fde | — |
| punctuation.definition.list.begin.python | #D79E65de | — |
| punctuation.definition.list.end.json | #DAA26Ade | — |
| punctuation.definition.list.end.markdown | #5FADFCde | — |
| punctuation.definition.list.end.python | #84BE49de | — |
| punctuation.definition.parameters.begin.python | #B3B3B3de | — |
| punctuation.definition.parameters.end.bracket.round.java | #85C14Ade | — |
| punctuation.definition.quote.begin.markdown | #DDA66Fde | — |
| punctuation.definition.tag | #BE90EDde | — |
| punctuation.definition.template-expression.begin | #BD8EEDde | — |
| punctuation.definition.template-expression.end | #C194EFde | — |
| punctuation.section.class.begin.bracket.curly.java | #EC8CBCde | — |
| punctuation.section.embedded | #A3A3A3de | — |
| punctuation.section.embedded.begin.php | #6FA6DDde | — |
| punctuation.section.embedded.end.php | #A9A9A9de | — |
| punctuation.terminator.java | #5BD095de | — |
| source.cmake | #F19BC6de | — |
| source.coffee.embedded | #92C0EEde | — |
| source.cpp | #74AAE0de | — |
| source.css.less | #E9B785de | — |
| source.groovy.embedded | #46BB80de | — |
| source.java | #BF90EDde | — |
| source.java-properties | #FCA650de | — |
| source.json.comments | #A9A9FB6e | — |
| source.makefile | #B5B5B5de | — |
| source.powershell | #C89EF2de | — |
| source.powershell.variable.other.member | #4EC489de | — |
| source.python | #D79E65de | — |
| storage | #87B8EAde | — |
| storage.modifier | #65BF0Cde | — |
| storage.modifier.import.java | #6AC70Dde | — |
| storage.modifier.package.java | #BE8EEDde | — |
| storage.type | #6ECF0Dde | — |
| storage.type.annotation.groovy | #DFA872de | — |
| storage.type.annotation.java | #4ABF85de | — |
| storage.type.boolean.go | #E985B7de | — |
| storage.type.byte.go | #0BD06Dde | — |
| storage.type.cs | #7CB445de | — |
| storage.type.error.go | #C69AF1de | — |
| storage.type.generic.cs | #D1ACF6de | — |
| storage.type.generic.groovy | #C89EF2de | — |
| storage.type.generic.java | #D4B1F7de | — |
| storage.type.groovy | #98C4F0de | — |
| storage.type.java | #C89EF2de | — |
| storage.type.modifier.cs | #E782B4de | — |
| storage.type.numeric.go | #D39A60de | — |
| storage.type.object.array.groovy | #DAA26Ade | — |
| storage.type.object.array.java | #65BD0Ede | — |
| storage.type.parameters.groovy | #C397F0de | — |
| storage.type.primitive.array.groovy | #75ACE1de | — |
| storage.type.primitive.array.java | #63AFFCde | — |
| storage.type.primitive.groovy | #CBA2F3de | — |
| storage.type.primitive.java | #74AAE0de | — |
| storage.type.rune.go | #C599F0de | — |
| storage.type.string.go | #D3AFF6de | — |
| storage.type.token.java | #D59B61de | — |
| storage.type.uintptr.go | #94C1EFde | — |
| storage.type.variable.cs | #53C88Ede | — |
| string | #D59B62de | — |
| string.quoted.docstring.multi.python | #A0A0FA6e | — |
| string.regexp | #0EC269de | — |
| string.tag | #B1B1B1de | — |
| string.value | #CBA3F3de | — |
| strong | #D2985Ede | — |
| support.class | #45B67Dde | — |
| support.constant.color | #7AAFE3de | — |
| support.constant.dom | #CEA7F5de | — |
| support.constant.font-name | #F68A20de | — |
| support.constant.handlebars | #6CCA0Ede | — |
| support.constant.json | #8DC852de | — |
| support.constant.math | #E885B7de | — |
| support.constant.media | #67BF0Ede | — |
| support.constant.media-type | #8DC852de | — |
| support.constant.property-value | #CCA4F4de | — |
| support.function | #4EC489de | — |
| support.function.git-rebase | #B8B8B8de | — |
| support.other.parenthesis.regexp | #D3B1F7de | — |
| support.type | #0CDD74de | — |
| support.type.property-name | #8CC751de | — |
| support.type.vendored.property-name | #91BFEEde | — |
| support.variable | #E7B380de | — |
| token.debug-token | #E3AE79de | — |
| token.error-token | #6ECE0Ede | — |
| token.info-token | #8BBBEBde | — |
| token.warn-token | #8BBBEBde | — |
| variable | #F3A2CAde | — |
| variable.css | #DBA36Bde | — |
| variable.language | #5DD197de | — |
| variable.language.wildcard.java | #81B4E7de | — |
| variable.other.constant | #91BFEEde | — |
| variable.other.definition.java | #6FA6DDde | — |
| variable.other.enummember | #0DD671de | — |
| variable.other.less | #E781B4de | — |
| variable.other.object.java | #F099C4de | — |
| variable.other.object.property.java | #B0B0B0de | — |
| variable.parameter.c | #0ECE6Ede | — |
| variable.parameter.function.language.python | #F2A0C9de | — |
| variable.parameter.java | #EE91BFde | — |
| variable.scss | #8DC852de | — |
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}!`;
}