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 | #C9C9716e | — |
| comment.block.html | #C9C97B6e | — |
| comment.block.java | #C9C97B6e | — |
| comment.block.javadoc.java | #C9C9726e | — |
| comment.block.powershell | #C9C9726e | — |
| comment.block.xml | #C9C9716e | — |
| comment.line.double-slash.c | #C9C97B6e | — |
| comment.line.double-slash.cpp | #C9C9726e | — |
| comment.line.double-slash.java | #C9C97B6e | — |
| comment.line.double-slash.js | #C9C9756e | — |
| comment.line.number-sign.makefile | #C9C9726e | — |
| comment.line.number-sign.python | #C9C9726e | — |
| comment.line.number-sign.yaml | #C9C97B6e | — |
| comment.line.percentage.erlang | #C9C9716e | — |
| comment.line.powershell | #C9C9716e | — |
| comment.source.cmake | #C9C9716e | — |
| comment.source.cmakecache | #C9C97B6e | — |
| constant.character | #0CE328de | — |
| constant.character.character-class.regexp | #EB85B2de | — |
| constant.character.escape | #8DA2EDde | — |
| constant.character.set.regexp | #FCB67Cde | — |
| constant.language | #10E328de | — |
| constant.numeric | #0ED9D9de | — |
| constant.numeric.dec.python | #FCB57Cde | — |
| constant.other.caps.python | #16D9D9de | — |
| constant.other.character-class.regexp | #FCB57Bde | — |
| constant.other.character-class.set.regexp | #14E22Ade | — |
| constant.other.color.rgb-value | #F0B98Cde | — |
| constant.other.placeholder | #11D8D8de | — |
| constant.other.rgb-value | #FCB67Ede | — |
| constant.regexp | #EB85B2de | — |
| constant.sha.git-rebase | #CF8CF0de | — |
| emphasis | #15DADAde | — |
| entity.name.class | #FEB57Bde | — |
| entity.name.function | #A8B9F7de | — |
| entity.name.function.preprocessor | #96D712de | — |
| entity.name.function.python | #0EE226de | — |
| entity.name.label | #CF8CF0de | — |
| entity.name.namespace | #8EA2EAde | — |
| entity.name.operator | #15D9D9de | — |
| entity.name.operator.custom-literal | #CC8EEAde | — |
| entity.name.scope-resolution | #96D615de | — |
| entity.name.tag | #F8AFD0de | — |
| entity.name.tag.css | #CD8BEDde | — |
| entity.name.type | #8DA2EDde | — |
| entity.name.variable | #D293F2de | — |
| entity.other.attribute | #DCA8F7de | — |
| entity.other.attribute-name | #16D9D9de | — |
| entity.other.attribute-name.class.css | #95D80Fde | — |
| entity.other.attribute-name.class.mixin.css | #0FE328de | — |
| entity.other.attribute-name.id | #EB85B2de | — |
| entity.other.attribute-name.id.css | #96D715de | — |
| entity.other.attribute-name.parent-selector.css | #96D710de | — |
| entity.other.attribute-name.pseudo-class.css | #96D615de | — |
| entity.other.attribute-name.pseudo-element.css | #FCB67Fde | — |
| entity.other.attribute-name.scss | #96D813de | — |
| entity.other.document.begin.yaml | #C9C9716e | — |
| entity.other.inherited-class | #FCB67Cde | — |
| header | #FCB67Fde | — |
| invalid | #14D9D9de | — |
| keyword | #DCA8F7de | — |
| keyword.codetag.notation.python | #CC8EEAde | — |
| keyword.control | #D9A1F5de | — |
| keyword.control.anchor.regexp | #15DADAde | — |
| keyword.control.import.python | #14D9D9de | — |
| keyword.operator | #8DA2EBde | — |
| keyword.operator.alignas | #8DA2EEde | — |
| keyword.operator.alignof | #15D9D9de | — |
| keyword.operator.cast | #94D811de | — |
| keyword.operator.delete | #8DA2EEde | — |
| keyword.operator.documentation.powershell | #C9C9726e | — |
| keyword.operator.expression | #EB85B2de | — |
| keyword.operator.instanceof | #13E22Ade | — |
| keyword.operator.logical.python | #FCB67Cde | — |
| keyword.operator.minus.exponent | #14E22Ade | — |
| keyword.operator.negation.regexp | #CC8DEDde | — |
| keyword.operator.new | #CB8DEBde | — |
| keyword.operator.noexcept | #13E22Ade | — |
| keyword.operator.or.regexp | #D293F2de | — |
| keyword.operator.plus.exponent | #12D9D9de | — |
| keyword.operator.quantifier.regexp | #EB85B2de | — |
| keyword.operator.sizeof | #ECB07Fde | — |
| keyword.operator.typeid | #14E22Ade | — |
| keyword.operator.wordlike | #11D8D8de | — |
| keyword.other.operator | #96D715de | — |
| keyword.other.package.java | #E3ACFEde | — |
| keyword.other.unit | #FEABD1de | — |
| keyword.other.using | #FEACD0de | — |
| markup.bold | #FEABD1de | — |
| markup.changed | #F0B98Cde | — |
| markup.deleted | #94D811de | — |
| markup.fenced_code.block.markdown | #F5A1C6de | — |
| markup.heading | #14D9D9de | — |
| markup.inline.raw | #95D80Fde | — |
| markup.inserted | #96D710de | — |
| markup.italic | #11D8D8de | — |
| markup.raw.block.markdown | #95D712de | — |
| markup.strikethrough | #8DA2EDde | — |
| markup.underline | #93D70Ede | — |
| meta.block.c | #EAAB79de | — |
| meta.block.c | #F8AFD0de | — |
| meta.class.java | #96D715de | — |
| meta.definition.variable.name | #12D9D9de | — |
| meta.diff.header | #8DA2EFde | — |
| meta.embedded | #8DA2EBde | — |
| meta.embedded.assembly | #15D9D9de | — |
| meta.function-call.arguments.python | #CD8CEEde | — |
| meta.function-call.python | #14E22Bde | — |
| meta.member.access.python | #EEB486de | — |
| meta.method.java | #14E22Ade | — |
| meta.object-literal.key | #14E22Ade | — |
| meta.paragraph.markdown | #14E22Bde | — |
| meta.preprocessor | #14D9D9de | — |
| meta.preprocessor.numeric | #14E22Ade | — |
| meta.preprocessor.string | #15DADAde | — |
| meta.scope.prerequisites.makefile | #FDB57Cde | — |
| meta.structure.dictionary.json.comments | #C9C9716e | — |
| meta.structure.dictionary.key.python | #FEACD0de | — |
| meta.structure.dictionary.value.json.comments | #C9C97B6e | — |
| meta.template.expression | #95D80Fde | — |
| meta.type.cast.expr | #D9A1F5de | — |
| meta.type.new.expr | #FEACD1de | — |
| parameter | #14E22Ade | — |
| punctuation.character.set.begin.regexp | #10E226de | — |
| punctuation.character.set.end.regexp | #FEACD1de | — |
| punctuation.definition.array.begin.json | #FEACD1de | — |
| punctuation.definition.character-class.regexp | #FEACD1de | — |
| punctuation.definition.comment | #C9C9726e | — |
| punctuation.definition.comment.json.comments | #C9C9716e | — |
| punctuation.definition.comment.python | #C9C9756e | — |
| punctuation.definition.dictionary.begin.json | #15D9D9de | — |
| punctuation.definition.dictionary.end.json | #10E328de | — |
| punctuation.definition.group.assertion.regexp | #FCB67Ede | — |
| punctuation.definition.group.regexp | #8DA2EDde | — |
| punctuation.definition.list.begin.json | #96D815de | — |
| punctuation.definition.list.begin.markdown | #EE86B4de | — |
| punctuation.definition.list.begin.python | #CD8CEEde | — |
| punctuation.definition.list.end.json | #FDB57Cde | — |
| punctuation.definition.list.end.markdown | #15DADAde | — |
| punctuation.definition.list.end.python | #EC84B3de | — |
| punctuation.definition.parameters.begin.python | #FCB67Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #12E329de | — |
| punctuation.definition.quote.begin.markdown | #F8AFD0de | — |
| punctuation.definition.tag | #F49AC2de | — |
| punctuation.definition.template-expression.begin | #EE86B4de | — |
| punctuation.definition.template-expression.end | #FDB57Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #FDB57Cde | — |
| punctuation.section.embedded | #F08CB9de | — |
| punctuation.section.embedded.begin.php | #0FE328de | — |
| punctuation.section.embedded.end.php | #F293BDde | — |
| punctuation.terminator.java | #FCB67Fde | — |
| source.cmake | #D69AF4de | — |
| source.coffee.embedded | #E5A26Dde | — |
| source.cpp | #F8AFD0de | — |
| source.css.less | #E5B2FEde | — |
| source.groovy.embedded | #14E22Ade | — |
| source.java | #95D80Fde | — |
| source.java-properties | #A8B9F7de | — |
| source.json.comments | #C9C9756e | — |
| source.makefile | #E987B2de | — |
| source.powershell | #11D8D8de | — |
| source.powershell.variable.other.member | #10E328de | — |
| source.python | #EC84B3de | — |
| storage | #CB8DEBde | — |
| storage.modifier | #FCB67Dde | — |
| storage.modifier.import.java | #D293F2de | — |
| storage.modifier.package.java | #96D715de | — |
| storage.type | #13E22Bde | — |
| storage.type.annotation.groovy | #ACBEFEde | — |
| storage.type.annotation.java | #96D615de | — |
| storage.type.boolean.go | #14E22Bde | — |
| storage.type.byte.go | #16D9D9de | — |
| storage.type.cs | #8DA2EBde | — |
| storage.type.error.go | #FDB57Cde | — |
| storage.type.generic.cs | #CC8DEDde | — |
| storage.type.generic.groovy | #15D9D9de | — |
| storage.type.generic.java | #B2C3FEde | — |
| storage.type.groovy | #0ED9D9de | — |
| storage.type.java | #10D9D9de | — |
| storage.type.modifier.cs | #CD8CEEde | — |
| storage.type.numeric.go | #96D710de | — |
| storage.type.object.array.groovy | #8DA2EBde | — |
| storage.type.object.array.java | #94D811de | — |
| storage.type.parameters.groovy | #FDB57Cde | — |
| storage.type.primitive.array.groovy | #CC8EEAde | — |
| storage.type.primitive.array.java | #96D615de | — |
| storage.type.primitive.groovy | #F49AC2de | — |
| storage.type.primitive.java | #96D710de | — |
| storage.type.rune.go | #94D811de | — |
| storage.type.string.go | #0EE226de | — |
| storage.type.token.java | #FDB57Cde | — |
| storage.type.uintptr.go | #10E328de | — |
| storage.type.variable.cs | #A8B9F7de | — |
| string | #FDB57Cde | — |
| string.quoted.docstring.multi.python | #C9C9726e | — |
| string.regexp | #FCB67Cde | — |
| string.tag | #96D710de | — |
| string.value | #F8AFD0de | — |
| strong | #CC8EEAde | — |
| support.class | #14D9D9de | — |
| support.constant.color | #0FE328de | — |
| support.constant.dom | #8EA2EAde | — |
| support.constant.font-name | #0FE328de | — |
| support.constant.handlebars | #B2C3FEde | — |
| support.constant.json | #15DADAde | — |
| support.constant.math | #A1B4F5de | — |
| support.constant.media | #EA86B3de | — |
| support.constant.media-type | #14E22Bde | — |
| support.constant.property-value | #93A8F2de | — |
| support.function | #F7A8CBde | — |
| support.function.git-rebase | #10D9D9de | — |
| support.other.parenthesis.regexp | #FEABD1de | — |
| support.type | #F49AC2de | — |
| support.type.property-name | #96D710de | — |
| support.type.vendored.property-name | #EEB486de | — |
| support.variable | #10E226de | — |
| token.debug-token | #14D9D9de | — |
| token.error-token | #B1C3FEde | — |
| token.info-token | #14D9D9de | — |
| token.warn-token | #94D811de | — |
| variable | #15DADAde | — |
| variable.css | #F08CB9de | — |
| variable.language | #15D9D9de | — |
| variable.language.wildcard.java | #FEACD1de | — |
| variable.other.constant | #96D710de | — |
| variable.other.definition.java | #CD8BEDde | — |
| variable.other.enummember | #96D815de | — |
| variable.other.less | #FDB57Cde | — |
| variable.other.object.java | #D69AF4de | — |
| variable.other.object.property.java | #10E226de | — |
| variable.parameter.c | #96D615de | — |
| variable.parameter.function.language.python | #CB8DEBde | — |
| variable.parameter.java | #CC8DEDde | — |
| variable.scss | #E5B1FEde | — |
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}!`;
}