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 | #7FD4D46e | — |
| comment.block.html | #79D6D66e | — |
| comment.block.java | #79D6D66e | — |
| comment.block.javadoc.java | #7FD4D46e | — |
| comment.block.powershell | #7FD4D46e | — |
| comment.block.xml | #77D6D66e | — |
| comment.line.double-slash.c | #77D6D66e | — |
| comment.line.double-slash.cpp | #77D6D66e | — |
| comment.line.double-slash.java | #77D6D66e | — |
| comment.line.double-slash.js | #7FD4D46e | — |
| comment.line.number-sign.makefile | #7ED6D66e | — |
| comment.line.number-sign.python | #7FD4D46e | — |
| comment.line.number-sign.yaml | #7ED6D66e | — |
| comment.line.percentage.erlang | #77D6D66e | — |
| comment.line.powershell | #77D6D66e | — |
| comment.source.cmake | #7ED6D66e | — |
| comment.source.cmakecache | #79D6D66e | — |
| constant.character | #F293E7de | — |
| constant.character.character-class.regexp | #59E213de | — |
| constant.character.escape | #F49AEAde | — |
| constant.character.set.regexp | #B799EFde | — |
| constant.language | #EA8F8Fde | — |
| constant.numeric | #F0C222de | — |
| constant.numeric.dec.python | #55E210de | — |
| constant.other.caps.python | #F8AFF0de | — |
| constant.other.character-class.regexp | #12E487de | — |
| constant.other.character-class.set.regexp | #F1C221de | — |
| constant.other.color.rgb-value | #55E210de | — |
| constant.other.placeholder | #86C0EEde | — |
| constant.other.rgb-value | #0FE387de | — |
| constant.regexp | #F7A8EEde | — |
| constant.sha.git-rebase | #B69BEDde | — |
| emphasis | #14E488de | — |
| entity.name.class | #F5A1A1de | — |
| entity.name.function | #56E20Ede | — |
| entity.name.function.preprocessor | #EC8D8Dde | — |
| entity.name.function.python | #C2A8F7de | — |
| entity.name.label | #6DAFE5de | — |
| entity.name.namespace | #FEACF6de | — |
| entity.name.operator | #10E386de | — |
| entity.name.operator.custom-literal | #EB82DFde | — |
| entity.name.scope-resolution | #12E487de | — |
| entity.name.tag | #91CEFEde | — |
| entity.name.tag.css | #F1C221de | — |
| entity.name.type | #FEB4B4de | — |
| entity.name.variable | #E88F8Fde | — |
| entity.other.attribute | #FEABF5de | — |
| entity.other.attribute-name | #10E487de | — |
| entity.other.attribute-name.class.css | #FEACF6de | — |
| entity.other.attribute-name.class.mixin.css | #F9B7B7de | — |
| entity.other.attribute-name.id | #F293E7de | — |
| entity.other.attribute-name.id.css | #F0C222de | — |
| entity.other.attribute-name.parent-selector.css | #0FE387de | — |
| entity.other.attribute-name.pseudo-class.css | #56E30Fde | — |
| entity.other.attribute-name.pseudo-element.css | #94CDFDde | — |
| entity.other.attribute-name.scss | #F0C222de | — |
| entity.other.document.begin.yaml | #7ED6D66e | — |
| entity.other.inherited-class | #59E214de | — |
| header | #93C8F2de | — |
| invalid | #13E486de | — |
| keyword | #73B4E7de | — |
| keyword.codetag.notation.python | #EE8D8Dde | — |
| keyword.control | #0FE387de | — |
| keyword.control.anchor.regexp | #B698F2de | — |
| keyword.control.import.python | #FEACF6de | — |
| keyword.operator | #F2C10Ede | — |
| keyword.operator.alignas | #B699F0de | — |
| keyword.operator.alignof | #92CEFEde | — |
| keyword.operator.cast | #F1C21Dde | — |
| keyword.operator.delete | #12E386de | — |
| keyword.operator.documentation.powershell | #79D6D66e | — |
| keyword.operator.expression | #59E214de | — |
| keyword.operator.instanceof | #F8AFF0de | — |
| keyword.operator.logical.python | #F7A8A8de | — |
| keyword.operator.minus.exponent | #F0C221de | — |
| keyword.operator.negation.regexp | #56E30Fde | — |
| keyword.operator.new | #14E488de | — |
| keyword.operator.noexcept | #EC8D8Dde | — |
| keyword.operator.or.regexp | #FEACF6de | — |
| keyword.operator.plus.exponent | #EE8D8Dde | — |
| keyword.operator.quantifier.regexp | #FEABF5de | — |
| keyword.operator.sizeof | #56E210de | — |
| keyword.operator.typeid | #E984DDde | — |
| keyword.operator.wordlike | #14E488de | — |
| keyword.other.operator | #F0C222de | — |
| keyword.other.package.java | #56E310de | — |
| keyword.other.unit | #EC8D8Dde | — |
| keyword.other.using | #B799EFde | — |
| markup.bold | #EB8E8Ede | — |
| markup.changed | #F49AEAde | — |
| markup.deleted | #56E310de | — |
| markup.fenced_code.block.markdown | #0EE483de | — |
| markup.heading | #14E488de | — |
| markup.inline.raw | #D2BEFAde | — |
| markup.inserted | #D3BCFEde | — |
| markup.italic | #EC8D8Dde | — |
| markup.raw.block.markdown | #F0C221de | — |
| markup.strikethrough | #59E214de | — |
| markup.underline | #14E488de | — |
| meta.block.c | #F1C221de | — |
| meta.block.c | #91CEFEde | — |
| meta.class.java | #10E386de | — |
| meta.definition.variable.name | #F0C221de | — |
| meta.diff.header | #F1C221de | — |
| meta.embedded | #FEB4B4de | — |
| meta.embedded.assembly | #F2C10Ede | — |
| meta.function-call.arguments.python | #F8B0B0de | — |
| meta.function-call.python | #10E487de | — |
| meta.member.access.python | #F1C21Ade | — |
| meta.method.java | #56E310de | — |
| meta.object-literal.key | #D2BEFAde | — |
| meta.paragraph.markdown | #E983DEde | — |
| meta.preprocessor | #79B8EAde | — |
| meta.preprocessor.numeric | #10E286de | — |
| meta.preprocessor.string | #59E214de | — |
| meta.scope.prerequisites.makefile | #F7A8A8de | — |
| meta.structure.dictionary.json.comments | #7ED6D66e | — |
| meta.structure.dictionary.key.python | #F0C222de | — |
| meta.structure.dictionary.value.json.comments | #79D6D66e | — |
| meta.template.expression | #EC81E0de | — |
| meta.type.cast.expr | #B698F2de | — |
| meta.type.new.expr | #F5A1A1de | — |
| parameter | #E785DCde | — |
| punctuation.character.set.begin.regexp | #F0C221de | — |
| punctuation.character.set.end.regexp | #E984DDde | — |
| punctuation.definition.array.begin.json | #F9B7B7de | — |
| punctuation.definition.character-class.regexp | #F7A8A8de | — |
| punctuation.definition.comment | #77D6D66e | — |
| punctuation.definition.comment.json.comments | #77D6D66e | — |
| punctuation.definition.comment.python | #7ED6D66e | — |
| punctuation.definition.dictionary.begin.json | #13E488de | — |
| punctuation.definition.dictionary.end.json | #56E30Fde | — |
| punctuation.definition.group.assertion.regexp | #EB82DFde | — |
| punctuation.definition.group.regexp | #F1C21Ade | — |
| punctuation.definition.list.begin.json | #F49AEAde | — |
| punctuation.definition.list.begin.markdown | #F7A8A8de | — |
| punctuation.definition.list.begin.python | #C2A8F7de | — |
| punctuation.definition.list.end.json | #EB82DFde | — |
| punctuation.definition.list.end.markdown | #F39A9Ade | — |
| punctuation.definition.list.end.python | #F1C21Dde | — |
| punctuation.definition.parameters.begin.python | #90CEFDde | — |
| punctuation.definition.parameters.end.bracket.round.java | #59E214de | — |
| punctuation.definition.quote.begin.markdown | #F29494de | — |
| punctuation.definition.tag | #BDA1F5de | — |
| punctuation.definition.template-expression.begin | #93C8F2de | — |
| punctuation.definition.template-expression.end | #D3BCFEde | — |
| punctuation.section.class.begin.bracket.curly.java | #FEB4B4de | — |
| punctuation.section.embedded | #CDB7F9de | — |
| punctuation.section.embedded.begin.php | #B699F0de | — |
| punctuation.section.embedded.end.php | #56E310de | — |
| punctuation.terminator.java | #58E312de | — |
| source.cmake | #91CEFDde | — |
| source.coffee.embedded | #E88F8Fde | — |
| source.cpp | #E984DDde | — |
| source.css.less | #91CEFDde | — |
| source.groovy.embedded | #86C0EEde | — |
| source.java | #9ACCF4de | — |
| source.java-properties | #EC8D8Dde | — |
| source.json.comments | #7FD4D46e | — |
| source.makefile | #12E386de | — |
| source.powershell | #14E488de | — |
| source.powershell.variable.other.member | #91CEFEde | — |
| source.python | #EFC222de | — |
| storage | #0FE387de | — |
| storage.modifier | #E984DDde | — |
| storage.modifier.import.java | #EFC31Fde | — |
| storage.modifier.package.java | #8CC4F0de | — |
| storage.type | #14E488de | — |
| storage.type.annotation.groovy | #10E286de | — |
| storage.type.annotation.java | #F293E7de | — |
| storage.type.boolean.go | #14E488de | — |
| storage.type.byte.go | #13E486de | — |
| storage.type.cs | #58E312de | — |
| storage.type.error.go | #F5A1A1de | — |
| storage.type.generic.cs | #F0C222de | — |
| storage.type.generic.groovy | #10E386de | — |
| storage.type.generic.java | #59E214de | — |
| storage.type.groovy | #B799EFde | — |
| storage.type.java | #F8AFF0de | — |
| storage.type.modifier.cs | #B89AF4de | — |
| storage.type.numeric.go | #55E210de | — |
| storage.type.object.array.groovy | #10E386de | — |
| storage.type.object.array.java | #D3BDFEde | — |
| storage.type.parameters.groovy | #F08D8Dde | — |
| storage.type.primitive.array.groovy | #58E312de | — |
| storage.type.primitive.array.java | #F08CE5de | — |
| storage.type.primitive.groovy | #CDB7F9de | — |
| storage.type.primitive.java | #86C0EEde | — |
| storage.type.rune.go | #0CE383de | — |
| storage.type.string.go | #EE86E2de | — |
| storage.type.token.java | #92CEFEde | — |
| storage.type.uintptr.go | #59E214de | — |
| storage.type.variable.cs | #EC81E0de | — |
| string | #E984DDde | — |
| string.quoted.docstring.multi.python | #77D6D66e | — |
| string.regexp | #FEACF6de | — |
| string.tag | #12E386de | — |
| string.value | #0EE483de | — |
| strong | #14E488de | — |
| support.class | #EA8F8Fde | — |
| support.constant.color | #F293E7de | — |
| support.constant.dom | #90CEFDde | — |
| support.constant.font-name | #F1C221de | — |
| support.constant.handlebars | #8CC4F0de | — |
| support.constant.json | #0CE383de | — |
| support.constant.math | #D3BCFEde | — |
| support.constant.media | #FEACF6de | — |
| support.constant.media-type | #59E214de | — |
| support.constant.property-value | #7FBCECde | — |
| support.function | #10E487de | — |
| support.function.git-rebase | #F8B0B0de | — |
| support.other.parenthesis.regexp | #F9B7B7de | — |
| support.type | #B699EDde | — |
| support.type.property-name | #B699EFde | — |
| support.type.vendored.property-name | #B799EFde | — |
| support.variable | #CDB7F9de | — |
| token.debug-token | #EC81E0de | — |
| token.error-token | #EB82DFde | — |
| token.info-token | #0EE483de | — |
| token.warn-token | #92CEFEde | — |
| variable | #D3BCFEde | — |
| variable.css | #BDA1F5de | — |
| variable.language | #92CEFEde | — |
| variable.language.wildcard.java | #E88F8Fde | — |
| variable.other.constant | #E984DDde | — |
| variable.other.definition.java | #EB82DFde | — |
| variable.other.enummember | #B89AF4de | — |
| variable.other.less | #C2A8F7de | — |
| variable.other.object.java | #FEB4B4de | — |
| variable.other.object.property.java | #F1C221de | — |
| variable.parameter.c | #56E210de | — |
| variable.parameter.function.language.python | #6DAFE5de | — |
| variable.parameter.java | #B699F0de | — |
| variable.scss | #F0C221de | — |
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}!`;
}