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 | #BABAF86e | — |
| comment.block.html | #BABAF86e | — |
| comment.block.java | #BABAFC6e | — |
| comment.block.javadoc.java | #B9B9FA6e | — |
| comment.block.powershell | #BABAFC6e | — |
| comment.block.xml | #BABAF86e | — |
| comment.line.double-slash.c | #BABAFC6e | — |
| comment.line.double-slash.cpp | #BABAFC6e | — |
| comment.line.double-slash.java | #BABAF86e | — |
| comment.line.double-slash.js | #B9B9FA6e | — |
| comment.line.number-sign.makefile | #BABAFC6e | — |
| comment.line.number-sign.python | #BABAF86e | — |
| comment.line.number-sign.yaml | #BABAF96e | — |
| comment.line.percentage.erlang | #BABAF86e | — |
| comment.line.powershell | #BABAF86e | — |
| comment.source.cmake | #BABAF96e | — |
| comment.source.cmakecache | #BABAFC6e | — |
| constant.character | #32DD0Ede | — |
| constant.character.character-class.regexp | #35DD13de | — |
| constant.character.escape | #E1BD0Fde | — |
| constant.character.set.regexp | #F4A3E7de | — |
| constant.language | #A597ECde | — |
| constant.numeric | #DEBE16de | — |
| constant.numeric.dec.python | #F6AAAAde | — |
| constant.other.caps.python | #8EC5FDde | — |
| constant.other.character-class.regexp | #8EC5FDde | — |
| constant.other.character-class.set.regexp | #ED89DCde | — |
| constant.other.color.rgb-value | #ED89DCde | — |
| constant.other.placeholder | #E88787de | — |
| constant.other.rgb-value | #E0BD10de | — |
| constant.regexp | #8AC5FEde | — |
| constant.sha.git-rebase | #E58787de | — |
| emphasis | #EA8484de | — |
| entity.name.class | #A597EAde | — |
| entity.name.function | #E88787de | — |
| entity.name.function.preprocessor | #37DC14de | — |
| entity.name.function.python | #17DC7Bde | — |
| entity.name.label | #6CA6E0de | — |
| entity.name.namespace | #E1BD0Ede | — |
| entity.name.operator | #BDB1F8de | — |
| entity.name.operator.custom-literal | #89BBEDde | — |
| entity.name.scope-resolution | #DEBD15de | — |
| entity.name.tag | #FE9DEEde | — |
| entity.name.tag.css | #36DC15de | — |
| entity.name.type | #FEAAAAde | — |
| entity.name.variable | #EA83D9de | — |
| entity.other.attribute | #A495EFde | — |
| entity.other.attribute-name | #E0BD11de | — |
| entity.other.attribute-name.class.css | #11DC75de | — |
| entity.other.attribute-name.class.mixin.css | #A496EAde | — |
| entity.other.attribute-name.id | #E87DD6de | — |
| entity.other.attribute-name.id.css | #ED89DCde | — |
| entity.other.attribute-name.parent-selector.css | #FDA0EDde | — |
| entity.other.attribute-name.pseudo-class.css | #E0BD11de | — |
| entity.other.attribute-name.pseudo-element.css | #8DC5FDde | — |
| entity.other.attribute-name.scss | #36DC15de | — |
| entity.other.document.begin.yaml | #BABAF86e | — |
| entity.other.inherited-class | #E1BD0Fde | — |
| header | #8EC5FDde | — |
| invalid | #F39C9Cde | — |
| keyword | #16DB79de | — |
| keyword.codetag.notation.python | #A597EAde | — |
| keyword.control | #13DA77de | — |
| keyword.control.anchor.regexp | #83B7EAde | — |
| keyword.control.import.python | #77AEE5de | — |
| keyword.operator | #E88787de | — |
| keyword.operator.alignas | #0EDB74de | — |
| keyword.operator.alignof | #35DD13de | — |
| keyword.operator.cast | #A597EAde | — |
| keyword.operator.delete | #E1BD0Fde | — |
| keyword.operator.documentation.powershell | #BABAF96e | — |
| keyword.operator.expression | #10DC74de | — |
| keyword.operator.instanceof | #DEBD17de | — |
| keyword.operator.logical.python | #F4A3E7de | — |
| keyword.operator.minus.exponent | #DEBD15de | — |
| keyword.operator.negation.regexp | #DEBD17de | — |
| keyword.operator.new | #E78686de | — |
| keyword.operator.noexcept | #F4A3E7de | — |
| keyword.operator.or.regexp | #E88787de | — |
| keyword.operator.plus.exponent | #DEBD17de | — |
| keyword.operator.quantifier.regexp | #E0BD11de | — |
| keyword.operator.sizeof | #37DC17de | — |
| keyword.operator.typeid | #EA83D9de | — |
| keyword.operator.wordlike | #35DD13de | — |
| keyword.other.operator | #FEA1EEde | — |
| keyword.other.package.java | #14DC79de | — |
| keyword.other.unit | #13DA77de | — |
| keyword.other.using | #17DB79de | — |
| markup.bold | #0FDC78de | — |
| markup.changed | #EA83D9de | — |
| markup.deleted | #A496EAde | — |
| markup.fenced_code.block.markdown | #8AC5FEde | — |
| markup.heading | #38DC17de | — |
| markup.inline.raw | #FEA9A9de | — |
| markup.inserted | #E57BD4de | — |
| markup.italic | #EA8484de | — |
| markup.raw.block.markdown | #F6AAAAde | — |
| markup.strikethrough | #15DC77de | — |
| markup.underline | #35DD13de | — |
| meta.block.c | #15DC77de | — |
| meta.block.c | #8AC5FEde | — |
| meta.class.java | #DFBE16de | — |
| meta.definition.variable.name | #EF8F8Fde | — |
| meta.diff.header | #A496E8de | — |
| meta.embedded | #16DB79de | — |
| meta.embedded.assembly | #FEA1EEde | — |
| meta.function-call.arguments.python | #EA8484de | — |
| meta.function-call.python | #17DC78de | — |
| meta.member.access.python | #37DC17de | — |
| meta.method.java | #ED8989de | — |
| meta.object-literal.key | #E58787de | — |
| meta.paragraph.markdown | #FEA0EEde | — |
| meta.preprocessor | #E1BD0Ede | — |
| meta.preprocessor.numeric | #A595EEde | — |
| meta.preprocessor.string | #ED89DCde | — |
| meta.scope.prerequisites.makefile | #A495EDde | — |
| meta.structure.dictionary.json.comments | #BABAF96e | — |
| meta.structure.dictionary.key.python | #AB9CF3de | — |
| meta.structure.dictionary.value.json.comments | #BABAF96e | — |
| meta.template.expression | #ED89DCde | — |
| meta.type.cast.expr | #33DC10de | — |
| meta.type.new.expr | #C4B7FEde | — |
| parameter | #E0BE16de | — |
| punctuation.character.set.begin.regexp | #E0BD10de | — |
| punctuation.character.set.end.regexp | #FEA5A5de | — |
| punctuation.definition.array.begin.json | #17DC7Bde | — |
| punctuation.definition.character-class.regexp | #37DC17de | — |
| punctuation.definition.comment | #BABAF86e | — |
| punctuation.definition.comment.json.comments | #BABAF96e | — |
| punctuation.definition.comment.python | #BABAF96e | — |
| punctuation.definition.dictionary.begin.json | #EF8FDFde | — |
| punctuation.definition.dictionary.end.json | #ED89DCde | — |
| punctuation.definition.group.assertion.regexp | #10DC74de | — |
| punctuation.definition.group.regexp | #E0BE16de | — |
| punctuation.definition.list.begin.json | #C4B7FEde | — |
| punctuation.definition.list.begin.markdown | #E78686de | — |
| punctuation.definition.list.begin.python | #F39C9Cde | — |
| punctuation.definition.list.end.json | #38DC17de | — |
| punctuation.definition.list.end.markdown | #FEAAAAde | — |
| punctuation.definition.list.end.python | #32DC0Fde | — |
| punctuation.definition.parameters.begin.python | #17DB79de | — |
| punctuation.definition.parameters.end.bracket.round.java | #8AC5FEde | — |
| punctuation.definition.quote.begin.markdown | #F4A3A3de | — |
| punctuation.definition.tag | #A596F1de | — |
| punctuation.definition.template-expression.begin | #32DC0Fde | — |
| punctuation.definition.template-expression.end | #39DD17de | — |
| punctuation.section.class.begin.bracket.curly.java | #17DB79de | — |
| punctuation.section.embedded | #A597EAde | — |
| punctuation.section.embedded.begin.php | #37DD14de | — |
| punctuation.section.embedded.end.php | #DEBD17de | — |
| punctuation.terminator.java | #FEA5A5de | — |
| source.cmake | #35DD13de | — |
| source.coffee.embedded | #F6AAAAde | — |
| source.cpp | #8AC5FEde | — |
| source.css.less | #E0BD11de | — |
| source.groovy.embedded | #33DC10de | — |
| source.java | #E78686de | — |
| source.java-properties | #39DD17de | — |
| source.json.comments | #BABAF86e | — |
| source.makefile | #EA8484de | — |
| source.powershell | #F196E2de | — |
| source.powershell.variable.other.member | #8DC5FDde | — |
| source.python | #7DB2E8de | — |
| storage | #DEBE16de | — |
| storage.modifier | #FEA0EEde | — |
| storage.modifier.import.java | #14DB79de | — |
| storage.modifier.package.java | #E37DD2de | — |
| storage.type | #8AC5FEde | — |
| storage.type.annotation.groovy | #38DC17de | — |
| storage.type.annotation.java | #33DC11de | — |
| storage.type.boolean.go | #8DC4FDde | — |
| storage.type.byte.go | #36DC15de | — |
| storage.type.cs | #17DC78de | — |
| storage.type.error.go | #E1BD0Fde | — |
| storage.type.generic.cs | #96C3F1de | — |
| storage.type.generic.groovy | #A595EEde | — |
| storage.type.generic.java | #33DC10de | — |
| storage.type.groovy | #17DB79de | — |
| storage.type.java | #A495EFde | — |
| storage.type.modifier.cs | #E87DD6de | — |
| storage.type.numeric.go | #37DC17de | — |
| storage.type.object.array.groovy | #71AAE3de | — |
| storage.type.object.array.java | #16DB78de | — |
| storage.type.parameters.groovy | #FE9DEEde | — |
| storage.type.primitive.array.groovy | #17DC78de | — |
| storage.type.primitive.array.java | #37DC14de | — |
| storage.type.primitive.groovy | #F4A3E7de | — |
| storage.type.primitive.java | #37DD15de | — |
| storage.type.rune.go | #FEA1EEde | — |
| storage.type.string.go | #A596F1de | — |
| storage.type.token.java | #E57CD3de | — |
| storage.type.uintptr.go | #FEA9A9de | — |
| storage.type.variable.cs | #FEA5A5de | — |
| string | #FEA1EEde | — |
| string.quoted.docstring.multi.python | #B9B9FA6e | — |
| string.regexp | #DEBD14de | — |
| string.tag | #39DD17de | — |
| string.value | #A596F1de | — |
| strong | #15DC77de | — |
| support.class | #33DC11de | — |
| support.constant.color | #B7AAF6de | — |
| support.constant.dom | #C4B7FEde | — |
| support.constant.font-name | #77AEE5de | — |
| support.constant.handlebars | #10DC74de | — |
| support.constant.json | #11DC75de | — |
| support.constant.math | #16DB78de | — |
| support.constant.media | #38DC17de | — |
| support.constant.media-type | #37DC14de | — |
| support.constant.property-value | #0FDC78de | — |
| support.function | #8DC5FDde | — |
| support.function.git-rebase | #16DB79de | — |
| support.other.parenthesis.regexp | #0FDC78de | — |
| support.type | #E0BD16de | — |
| support.type.property-name | #0EDB74de | — |
| support.type.vendored.property-name | #8AC5FEde | — |
| support.variable | #B7AAF6de | — |
| token.debug-token | #DEBD14de | — |
| token.error-token | #C4B7FEde | — |
| token.info-token | #A597EAde | — |
| token.warn-token | #7DB2E8de | — |
| variable | #DFBE16de | — |
| variable.css | #E98484de | — |
| variable.language | #F4A3A3de | — |
| variable.language.wildcard.java | #14DC79de | — |
| variable.other.constant | #38DC17de | — |
| variable.other.definition.java | #A495EDde | — |
| variable.other.enummember | #16DB79de | — |
| variable.other.less | #FEA5A5de | — |
| variable.other.object.java | #A496EAde | — |
| variable.other.object.property.java | #37DC14de | — |
| variable.parameter.c | #38DC17de | — |
| variable.parameter.function.language.python | #14DC79de | — |
| variable.parameter.java | #8DC5FDde | — |
| variable.scss | #C3B8F9de | — |
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}!`;
}