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 | #3030306e | — |
| comment.block.html | #3030306e | — |
| comment.block.java | #3030306e | — |
| comment.block.javadoc.java | #3030306e | — |
| comment.block.powershell | #3030306e | — |
| comment.block.xml | #3030306e | — |
| comment.line.double-slash.c | #3030306e | — |
| comment.line.double-slash.cpp | #3030306e | — |
| comment.line.double-slash.java | #3030306e | — |
| comment.line.double-slash.js | #3030306e | — |
| comment.line.number-sign.makefile | #3030306e | — |
| comment.line.number-sign.python | #3030306e | — |
| comment.line.number-sign.yaml | #3030306e | — |
| comment.line.percentage.erlang | #3030306e | — |
| comment.line.powershell | #3030306e | — |
| comment.source.cmake | #3030306e | — |
| comment.source.cmakecache | #3030306e | — |
| constant.character | #4F3C2Fde | — |
| constant.character.character-class.regexp | #164F4Fde | — |
| constant.character.escape | #23360Cde | — |
| constant.character.set.regexp | #431E60de | — |
| constant.language | #64052Bde | — |
| constant.numeric | #431E60de | — |
| constant.numeric.dec.python | #3E2D49de | — |
| constant.other.caps.python | #364E13de | — |
| constant.other.character-class.regexp | #39432Bde | — |
| constant.other.character-class.set.regexp | #5D1331de | — |
| constant.other.color.rgb-value | #431E60de | — |
| constant.other.placeholder | #093909de | — |
| constant.other.rgb-value | #5C3344de | — |
| constant.regexp | #571A34de | — |
| constant.sha.git-rebase | #164F4Fde | — |
| emphasis | #154F4Fde | — |
| entity.name.class | #3D274Ede | — |
| entity.name.function | #2B432Bde | — |
| entity.name.function.preprocessor | #384E15de | — |
| entity.name.function.python | #49382Dde | — |
| entity.name.label | #153535de | — |
| entity.name.namespace | #473156de | — |
| entity.name.operator | #354E11de | — |
| entity.name.operator.custom-literal | #1D361Dde | — |
| entity.name.scope-resolution | #154F4Fde | — |
| entity.name.tag | #283D28de | — |
| entity.name.tag.css | #723610de | — |
| entity.name.type | #164F4Fde | bold |
| entity.name.variable | #104F4Fde | — |
| entity.other.attribute | #0E0EA1de | — |
| entity.other.attribute-name | #353563de | — |
| entity.other.attribute-name.class.css | #293416de | — |
| entity.other.attribute-name.class.mixin.css | #473156de | — |
| entity.other.attribute-name.id | #384D17de | — |
| entity.other.attribute-name.id.css | #5C3344de | — |
| entity.other.attribute-name.parent-selector.css | #3B2A46de | — |
| entity.other.attribute-name.pseudo-class.css | #193535de | — |
| entity.other.attribute-name.pseudo-element.css | #33335Cde | — |
| entity.other.attribute-name.scss | #2D2D4Dde | — |
| entity.other.document.begin.yaml | #3030306e | — |
| entity.other.inherited-class | #64052Bde | — |
| header | #452A18de | — |
| invalid | #0F0FA2de | — |
| keyword | #0F530Fde | bold |
| keyword.codetag.notation.python | #164F4Fde | bold |
| keyword.control | #353D28de | bold |
| keyword.control.anchor.regexp | #3E492Dde | bold |
| keyword.control.import.python | #431E60de | bold |
| keyword.operator | #23360Cde | bold |
| keyword.operator.alignas | #063906de | bold |
| keyword.operator.alignof | #513563de | bold |
| keyword.operator.cast | #2A2A5Ede | bold |
| keyword.operator.delete | #55376Ade | bold |
| keyword.operator.documentation.powershell | #3030306e | bold |
| keyword.operator.expression | #2D2D4Dde | bold |
| keyword.operator.instanceof | #43342Bde | bold |
| keyword.operator.logical.python | #513563de | bold |
| keyword.operator.minus.exponent | #1F3434de | bold |
| keyword.operator.negation.regexp | #452A18de | bold |
| keyword.operator.new | #452A18de | bold |
| keyword.operator.noexcept | #47166Bde | bold |
| keyword.operator.or.regexp | #4C335Cde | bold |
| keyword.operator.plus.exponent | #2B3320de | bold |
| keyword.operator.quantifier.regexp | #2A2A5Ede | bold |
| keyword.operator.sizeof | #442834de | bold |
| keyword.operator.typeid | #0F0FA2de | bold |
| keyword.operator.wordlike | #75350Cde | bold |
| keyword.other.operator | #213604de | bold |
| keyword.other.package.java | #72350Ade | bold |
| keyword.other.unit | #72350Ade | bold |
| keyword.other.using | #145214de | bold |
| markup.bold | #164F4Fde | — |
| markup.changed | #431E60de | — |
| markup.deleted | #563140de | — |
| markup.fenced_code.block.markdown | #384E19de | — |
| markup.heading | #412C1Dde | — |
| markup.inline.raw | #165216de | — |
| markup.inserted | #64052Bde | — |
| markup.italic | #1A1A90de | — |
| markup.raw.block.markdown | #3D274Ede | — |
| markup.strikethrough | #384D17de | — |
| markup.underline | #4C335Cde | — |
| meta.block.c | #3D2D20de | — |
| meta.block.c | #64052Bde | — |
| meta.class.java | #313156de | — |
| meta.definition.variable.name | #263726de | — |
| meta.diff.header | #431E60de | — |
| meta.embedded | #2A2A5Ede | — |
| meta.embedded.assembly | #4C335Cde | — |
| meta.function-call.arguments.python | #2D492Dde | — |
| meta.function-call.python | #1F3434de | — |
| meta.member.access.python | #2A2A5Ede | — |
| meta.method.java | #384D17de | — |
| meta.object-literal.key | #384E15de | — |
| meta.paragraph.markdown | #723610de | — |
| meta.preprocessor | #4F3C2Fde | — |
| meta.preprocessor.numeric | #3D3028de | — |
| meta.preprocessor.string | #47166Bde | — |
| meta.scope.prerequisites.makefile | #153535de | — |
| meta.structure.dictionary.json.comments | #3030306e | — |
| meta.structure.dictionary.key.python | #384D17de | — |
| meta.structure.dictionary.value.json.comments | #3030306e | — |
| meta.template.expression | #3B2E23de | — |
| meta.type.cast.expr | #39432Bde | bold |
| meta.type.new.expr | #2F2F4Fde | bold |
| parameter | #37376Ade | — |
| punctuation.character.set.begin.regexp | #384E15de | — |
| punctuation.character.set.end.regexp | #432B34de | — |
| punctuation.definition.array.begin.json | #145214de | — |
| punctuation.definition.character-class.regexp | #64052Bde | — |
| punctuation.definition.comment | #3030306e | — |
| punctuation.definition.comment.json.comments | #3030306e | — |
| punctuation.definition.comment.python | #3030306e | — |
| punctuation.definition.dictionary.begin.json | #2D2D4Dde | — |
| punctuation.definition.dictionary.end.json | #47166Bde | — |
| punctuation.definition.group.assertion.regexp | #492D38de | — |
| punctuation.definition.group.regexp | #482635de | — |
| punctuation.definition.list.begin.json | #392B43de | — |
| punctuation.definition.list.begin.markdown | #4C335Cde | — |
| punctuation.definition.list.begin.python | #354E11de | — |
| punctuation.definition.list.end.json | #723610de | — |
| punctuation.definition.list.end.markdown | #0E0EA1de | — |
| punctuation.definition.list.end.python | #093909de | — |
| punctuation.definition.parameters.begin.python | #1A1A90de | — |
| punctuation.definition.parameters.end.bracket.round.java | #213604de | — |
| punctuation.definition.quote.begin.markdown | #39432Bde | — |
| punctuation.definition.tag | #1A1A90de | — |
| punctuation.definition.template-expression.begin | #49382Dde | — |
| punctuation.definition.template-expression.end | #33335Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #193535de | — |
| punctuation.section.embedded | #633547de | — |
| punctuation.section.embedded.begin.php | #431E60de | — |
| punctuation.section.embedded.end.php | #0F0FA2de | — |
| punctuation.terminator.java | #145214de | — |
| source.cmake | #134F4Fde | — |
| source.coffee.embedded | #513563de | — |
| source.cpp | #145214de | — |
| source.css.less | #563140de | — |
| source.groovy.embedded | #2F2F4Dde | — |
| source.java | #452A18de | — |
| source.java-properties | #243605de | — |
| source.json.comments | #3030306e | — |
| source.makefile | #75350Cde | — |
| source.powershell | #5E1322de | — |
| source.powershell.variable.other.member | #0C3636de | — |
| source.python | #263726de | — |
| storage | #252573de | — |
| storage.modifier | #104F4Fde | — |
| storage.modifier.import.java | #3E2D49de | — |
| storage.modifier.package.java | #0E0EA1de | — |
| storage.type | #384D17de | bold |
| storage.type.annotation.groovy | #442834de | bold |
| storage.type.annotation.java | #64052Bde | bold |
| storage.type.boolean.go | #063906de | bold |
| storage.type.byte.go | #153535de | bold |
| storage.type.cs | #293419de | bold |
| storage.type.error.go | #47166Bde | bold |
| storage.type.generic.cs | #3E492Dde | bold |
| storage.type.generic.groovy | #442834de | bold |
| storage.type.generic.java | #392B43de | bold |
| storage.type.groovy | #5C3344de | bold |
| storage.type.java | #412C1Dde | bold |
| storage.type.modifier.cs | #431E60de | bold |
| storage.type.numeric.go | #33335Cde | bold |
| storage.type.object.array.groovy | #063906de | bold |
| storage.type.object.array.java | #063906de | bold |
| storage.type.parameters.groovy | #432B34de | bold |
| storage.type.primitive.array.groovy | #72350Ade | bold |
| storage.type.primitive.array.java | #4C335Cde | bold |
| storage.type.primitive.groovy | #3D274Ede | bold |
| storage.type.primitive.java | #033737de | bold |
| storage.type.rune.go | #0C3636de | bold |
| storage.type.string.go | #473156de | bold |
| storage.type.token.java | #473156de | bold |
| storage.type.uintptr.go | #3D3028de | bold |
| storage.type.variable.cs | #384D17de | bold |
| string | #0F0FA2de | — |
| string.quoted.docstring.multi.python | #3030306e | — |
| string.regexp | #243605de | — |
| string.tag | #193719de | — |
| string.value | #125312de | — |
| strong | #145214de | — |
| support.class | #2F2F4Dde | — |
| support.constant.color | #364E13de | — |
| support.constant.dom | #093909de | — |
| support.constant.font-name | #64052Bde | — |
| support.constant.handlebars | #392B43de | — |
| support.constant.json | #252573de | — |
| support.constant.math | #502406de | — |
| support.constant.media | #293416de | — |
| support.constant.media-type | #482635de | bold |
| support.constant.property-value | #164F4Fde | — |
| support.function | #3E492Dde | — |
| support.function.git-rebase | #5D1331de | — |
| support.other.parenthesis.regexp | #2C2C57de | — |
| support.type | #353563de | bold |
| support.type.property-name | #3D2D20de | bold |
| support.type.vendored.property-name | #243605de | bold |
| support.variable | #3D2D20de | — |
| token.debug-token | #39432Bde | — |
| token.error-token | #502035de | — |
| token.info-token | #134F4Fde | — |
| token.warn-token | #5D1331de | — |
| variable | #353563de | — |
| variable.css | #513563de | — |
| variable.language | #3D3028de | — |
| variable.language.wildcard.java | #2B3320de | — |
| variable.other.constant | #482635de | — |
| variable.other.definition.java | #4F2F3Cde | — |
| variable.other.enummember | #422F4Fde | — |
| variable.other.less | #571A34de | — |
| variable.other.object.java | #563140de | — |
| variable.other.object.property.java | #263737de | — |
| variable.parameter.c | #0F0FA2de | — |
| variable.parameter.function.language.python | #3B2A46de | — |
| variable.parameter.java | #263737de | — |
| variable.scss | #502403de | — |
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}!`;
}