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 | #BABAFB6e | — |
| comment.block.html | #B9B9F86e | — |
| comment.block.java | #B9B9F86e | — |
| comment.block.javadoc.java | #B9B9FC6e | — |
| comment.block.powershell | #B9B9FC6e | — |
| comment.block.xml | #B9B9FA6e | — |
| comment.line.double-slash.c | #B9B9FC6e | — |
| comment.line.double-slash.cpp | #B9B9FC6e | — |
| comment.line.double-slash.java | #B9B9F86e | — |
| comment.line.double-slash.js | #B9B9FC6e | — |
| comment.line.number-sign.makefile | #B9B9FA6e | — |
| comment.line.number-sign.python | #B9B9FA6e | — |
| comment.line.number-sign.yaml | #B9B9FA6e | — |
| comment.line.percentage.erlang | #B9B9F86e | — |
| comment.line.powershell | #B9B9F86e | — |
| comment.source.cmake | #B9B9F86e | — |
| comment.source.cmakecache | #BABAFB6e | — |
| constant.character | #E07DE0de | — |
| constant.character.character-class.regexp | #E1AB76de | — |
| constant.character.escape | #FAB169de | — |
| constant.character.set.regexp | #E4AF7Bde | — |
| constant.language | #E681E6de | — |
| constant.numeric | #77D719de | — |
| constant.numeric.dec.python | #E383B3de | — |
| constant.other.caps.python | #F29FC8de | — |
| constant.other.character-class.regexp | #FE9EFEde | — |
| constant.other.character-class.set.regexp | #16DC78de | — |
| constant.other.color.rgb-value | #8FC5FDde | — |
| constant.other.placeholder | #8CC5FDde | — |
| constant.other.rgb-value | #86B8E9de | — |
| constant.regexp | #13DC77de | — |
| constant.sha.git-rebase | #E581B2de | — |
| emphasis | #78D619de | — |
| entity.name.class | #78D619de | — |
| entity.name.function | #18DC7Bde | — |
| entity.name.function.preprocessor | #FDB063de | — |
| entity.name.function.python | #C092EEde | — |
| entity.name.label | #FAB16Bde | — |
| entity.name.namespace | #8DC5FDde | — |
| entity.name.operator | #F098C4de | — |
| entity.name.operator.custom-literal | #FEA4D1de | — |
| entity.name.scope-resolution | #FDB063de | — |
| entity.name.tag | #8FC5FDde | — |
| entity.name.tag.css | #E4AF7Bde | — |
| entity.name.type | #8DC5FDde | — |
| entity.name.variable | #70D70Dde | — |
| entity.other.attribute | #18DC7Bde | — |
| entity.other.attribute-name | #BB8EE8de | — |
| entity.other.attribute-name.class.css | #FAB16Bde | — |
| entity.other.attribute-name.class.mixin.css | #75D713de | — |
| entity.other.attribute-name.id | #8EC5FEde | — |
| entity.other.attribute-name.id.css | #D6B0FEde | — |
| entity.other.attribute-name.parent-selector.css | #FE9EFEde | — |
| entity.other.attribute-name.pseudo-class.css | #FCB064de | — |
| entity.other.attribute-name.pseudo-element.css | #13DC77de | — |
| entity.other.attribute-name.scss | #92C0EEde | — |
| entity.other.document.begin.yaml | #B9B9F86e | — |
| entity.other.inherited-class | #15DB79de | — |
| header | #FBB065de | — |
| invalid | #FD9DFDde | — |
| keyword | #FE9ECFde | — |
| keyword.codetag.notation.python | #13DB77de | — |
| keyword.control | #75D713de | — |
| keyword.control.anchor.regexp | #FE97FEde | — |
| keyword.control.import.python | #75D713de | — |
| keyword.operator | #8CBCEBde | — |
| keyword.operator.alignas | #FAB169de | — |
| keyword.operator.alignof | #78D619de | — |
| keyword.operator.cast | #FE97FEde | — |
| keyword.operator.delete | #C89FF2de | — |
| keyword.operator.documentation.powershell | #BABAFB6e | — |
| keyword.operator.expression | #F9B166de | — |
| keyword.operator.instanceof | #E681B4de | — |
| keyword.operator.logical.python | #17DC7Ade | — |
| keyword.operator.minus.exponent | #81B3E6de | — |
| keyword.operator.negation.regexp | #CCA5F4de | — |
| keyword.operator.new | #0FDA73de | — |
| keyword.operator.noexcept | #13DC77de | — |
| keyword.operator.or.regexp | #EB8CBCde | — |
| keyword.operator.plus.exponent | #19DB79de | — |
| keyword.operator.quantifier.regexp | #E6B381de | — |
| keyword.operator.sizeof | #E6B381de | — |
| keyword.operator.typeid | #D6B0FEde | — |
| keyword.operator.wordlike | #10DB74de | — |
| keyword.other.operator | #77D718de | — |
| keyword.other.package.java | #FE9EFEde | — |
| keyword.other.unit | #79D719de | — |
| keyword.other.using | #7BAFE4de | — |
| markup.bold | #FAB16Bde | — |
| markup.changed | #E37CE3de | — |
| markup.deleted | #FD9EFDde | — |
| markup.fenced_code.block.markdown | #19DB79de | — |
| markup.heading | #18DC7Bde | — |
| markup.inline.raw | #77D718de | — |
| markup.inserted | #D1ACF5de | — |
| markup.italic | #8DC5FDde | — |
| markup.raw.block.markdown | #E986B8de | — |
| markup.strikethrough | #FEA5D0de | — |
| markup.underline | #FAB16Bde | — |
| meta.block.c | #E4AF7Bde | — |
| meta.block.c | #FAB16Bde | — |
| meta.class.java | #18DC7Bde | — |
| meta.definition.variable.name | #E1AB76de | — |
| meta.diff.header | #E383B3de | — |
| meta.embedded | #8FC5FDde | — |
| meta.embedded.assembly | #BC8DEBde | — |
| meta.function-call.arguments.python | #10DB74de | — |
| meta.function-call.python | #FE9ECFde | — |
| meta.member.access.python | #71D610de | — |
| meta.method.java | #77D719de | — |
| meta.object-literal.key | #79D719de | — |
| meta.paragraph.markdown | #19DB79de | — |
| meta.preprocessor | #FD9DFDde | — |
| meta.preprocessor.numeric | #13DC77de | — |
| meta.preprocessor.string | #BB8EE8de | — |
| meta.scope.prerequisites.makefile | #17DC7Ade | — |
| meta.structure.dictionary.json.comments | #B9B9F86e | — |
| meta.structure.dictionary.key.python | #E681E6de | — |
| meta.structure.dictionary.value.json.comments | #B9B9FA6e | — |
| meta.template.expression | #8EC5FDde | — |
| meta.type.cast.expr | #FAB169de | — |
| meta.type.new.expr | #D1ACF5de | — |
| parameter | #D6AEFEde | — |
| punctuation.character.set.begin.regexp | #FEA4D1de | — |
| punctuation.character.set.end.regexp | #7BAFE4de | — |
| punctuation.definition.array.begin.json | #E986B8de | — |
| punctuation.definition.character-class.regexp | #75D616de | — |
| punctuation.definition.comment | #B9B9F86e | — |
| punctuation.definition.comment.json.comments | #B9B9FA6e | — |
| punctuation.definition.comment.python | #BABAFB6e | — |
| punctuation.definition.dictionary.begin.json | #F29FC8de | — |
| punctuation.definition.dictionary.end.json | #E4AF7Bde | — |
| punctuation.definition.group.assertion.regexp | #F29FF2de | — |
| punctuation.definition.group.regexp | #75D616de | — |
| punctuation.definition.list.begin.json | #75D616de | — |
| punctuation.definition.list.begin.markdown | #78D619de | — |
| punctuation.definition.list.begin.python | #19DB7Bde | — |
| punctuation.definition.list.end.json | #FE97FEde | — |
| punctuation.definition.list.end.markdown | #D6B0FEde | — |
| punctuation.definition.list.end.python | #7BAFE4de | — |
| punctuation.definition.parameters.begin.python | #76ABE1de | — |
| punctuation.definition.parameters.end.bracket.round.java | #BC8DEBde | — |
| punctuation.definition.quote.begin.markdown | #19DB79de | — |
| punctuation.definition.tag | #EB8DEBde | — |
| punctuation.definition.template-expression.begin | #BB8EE8de | — |
| punctuation.definition.template-expression.end | #78D619de | — |
| punctuation.section.class.begin.bracket.curly.java | #FE9EFEde | — |
| punctuation.section.embedded | #FEA4D1de | — |
| punctuation.section.embedded.begin.php | #EB8DEBde | — |
| punctuation.section.embedded.end.php | #FAB065de | — |
| punctuation.terminator.java | #BB8EE8de | — |
| source.cmake | #8EC5FEde | — |
| source.coffee.embedded | #E07DE0de | — |
| source.cpp | #19DB7Bde | — |
| source.css.less | #8FC5FDde | — |
| source.groovy.embedded | #F29FC8de | — |
| source.java | #86B8E9de | — |
| source.java-properties | #18DB79de | — |
| source.json.comments | #BABAFB6e | — |
| source.makefile | #75D713de | — |
| source.powershell | #76ABE1de | — |
| source.powershell.variable.other.member | #19DB7Bde | — |
| source.python | #17DC7Ade | — |
| storage | #D6B0FEde | — |
| storage.modifier | #FAB16Bde | — |
| storage.modifier.import.java | #FCB064de | — |
| storage.modifier.package.java | #F9B166de | — |
| storage.type | #ED93EDde | — |
| storage.type.annotation.groovy | #8DC5FDde | — |
| storage.type.annotation.java | #78D619de | — |
| storage.type.boolean.go | #FE9EFEde | — |
| storage.type.byte.go | #79D719de | — |
| storage.type.cs | #BB8EE8de | — |
| storage.type.error.go | #75D713de | — |
| storage.type.generic.cs | #BA8FE6de | — |
| storage.type.generic.groovy | #71D80Fde | — |
| storage.type.generic.java | #F099F0de | — |
| storage.type.groovy | #FD9EFDde | — |
| storage.type.java | #92C0EEde | — |
| storage.type.modifier.cs | #F9B169de | — |
| storage.type.numeric.go | #FE97FEde | — |
| storage.type.object.array.groovy | #D6AEFEde | — |
| storage.type.object.array.java | #BA8FE6de | — |
| storage.type.parameters.groovy | #77D719de | — |
| storage.type.primitive.array.groovy | #77D617de | — |
| storage.type.primitive.array.java | #75D713de | — |
| storage.type.primitive.groovy | #BB8EE8de | — |
| storage.type.primitive.java | #76ABE1de | — |
| storage.type.rune.go | #FD9DFDde | — |
| storage.type.string.go | #17DC7Ade | — |
| storage.type.token.java | #71D80Fde | — |
| storage.type.uintptr.go | #98C4F0de | — |
| storage.type.variable.cs | #FAB16Bde | — |
| string | #FCB064de | — |
| string.quoted.docstring.multi.python | #BABAFB6e | — |
| string.regexp | #79D719de | — |
| string.tag | #19DB7Bde | — |
| string.value | #17DB79de | — |
| strong | #FEA4D1de | — |
| support.class | #D6AEFEde | — |
| support.constant.color | #E986B8de | — |
| support.constant.dom | #8EC5FEde | — |
| support.constant.font-name | #8DC5FDde | — |
| support.constant.handlebars | #FDB063de | — |
| support.constant.json | #E581B2de | — |
| support.constant.math | #81B3E6de | — |
| support.constant.media | #F4A5CDde | — |
| support.constant.media-type | #FAB16Bde | — |
| support.constant.property-value | #E986B8de | — |
| support.function | #0FDA73de | — |
| support.function.git-rebase | #77D718de | — |
| support.other.parenthesis.regexp | #BA8EE8de | — |
| support.type | #BA8FE6de | — |
| support.type.property-name | #15DB7Ade | — |
| support.type.vendored.property-name | #E6B381de | — |
| support.variable | #81B3E6de | — |
| token.debug-token | #FD9DFDde | — |
| token.error-token | #13DB77de | — |
| token.info-token | #FBB065de | — |
| token.warn-token | #FAB068de | — |
| variable | #BC8DEBde | — |
| variable.css | #F9B166de | — |
| variable.language | #8FC5FDde | — |
| variable.language.wildcard.java | #15DB79de | — |
| variable.other.constant | #FAB16Ade | — |
| variable.other.definition.java | #FAB16Bde | — |
| variable.other.enummember | #8CBCEBde | — |
| variable.other.less | #FE9EFEde | — |
| variable.other.object.java | #D6B0FEde | — |
| variable.other.object.property.java | #FE9ECFde | — |
| variable.parameter.c | #FEA4D0de | — |
| variable.parameter.function.language.python | #FE9EFEde | — |
| variable.parameter.java | #E4AF7Bde | — |
| variable.scss | #19DB7Bde | — |
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}!`;
}