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 | #3333156e | — |
| comment.block.html | #3333176e | — |
| comment.block.java | #3333166e | — |
| comment.block.javadoc.java | #3333166e | — |
| comment.block.powershell | #3333166e | — |
| comment.block.xml | #3333176e | — |
| comment.line.double-slash.c | #3333166e | — |
| comment.line.double-slash.cpp | #3333156e | — |
| comment.line.double-slash.java | #3333176e | — |
| comment.line.double-slash.js | #3333156e | — |
| comment.line.number-sign.makefile | #3333156e | — |
| comment.line.number-sign.python | #3333166e | — |
| comment.line.number-sign.yaml | #3333156e | — |
| comment.line.percentage.erlang | #3333166e | — |
| comment.line.powershell | #3333176e | — |
| comment.source.cmake | #3333166e | — |
| comment.source.cmakecache | #3333166e | — |
| constant.character | #49291Fde | — |
| constant.character.character-class.regexp | #46127Ade | — |
| constant.character.escape | #422064de | — |
| constant.character.set.regexp | #592F49de | — |
| constant.language | #460883de | — |
| constant.numeric | #333318de | — |
| constant.numeric.dec.python | #592F49de | — |
| constant.other.caps.python | #50251Ade | — |
| constant.other.character-class.regexp | #105148de | — |
| constant.other.character-class.set.regexp | #4F2616de | — |
| constant.other.color.rgb-value | #013933de | — |
| constant.other.placeholder | #294642de | — |
| constant.other.rgb-value | #4A4A11de | — |
| constant.regexp | #3D2951de | — |
| constant.sha.git-rebase | #46127Ade | — |
| emphasis | #323232de | — |
| entity.name.class | #212F5Ade | — |
| entity.name.function | #460883de | — |
| entity.name.function.preprocessor | #01238Cde | — |
| entity.name.function.python | #343421de | — |
| entity.name.label | #511F40de | — |
| entity.name.namespace | #3A3A24de | — |
| entity.name.operator | #3E3E3Ede | — |
| entity.name.operator.custom-literal | #323232de | — |
| entity.name.scope-resolution | #4C2B40de | — |
| entity.name.tag | #402D26de | — |
| entity.name.tag.css | #2F3959de | — |
| entity.name.type | #183733de | bold |
| entity.name.variable | #2B304Bde | — |
| entity.other.attribute | #3B2B4Cde | — |
| entity.other.attribute-name | #303C60de | — |
| entity.other.attribute-name.class.css | #2B304Bde | — |
| entity.other.attribute-name.class.mixin.css | #46127Ade | — |
| entity.other.attribute-name.id | #441B6Dde | — |
| entity.other.attribute-name.id.css | #1D2E62de | — |
| entity.other.attribute-name.parent-selector.css | #50251Ade | — |
| entity.other.attribute-name.pseudo-class.css | #323232de | — |
| entity.other.attribute-name.pseudo-element.css | #333318de | — |
| entity.other.attribute-name.scss | #183733de | — |
| entity.other.document.begin.yaml | #3333156e | — |
| entity.other.inherited-class | #3D2951de | — |
| header | #393939de | — |
| invalid | #50251Ade | — |
| keyword | #50251Ade | bold |
| keyword.codetag.notation.python | #441B6Dde | bold |
| keyword.control | #3D2951de | bold |
| keyword.control.anchor.regexp | #303C60de | bold |
| keyword.control.import.python | #243153de | bold |
| keyword.operator | #3F255Bde | bold |
| keyword.operator.alignas | #49291Fde | bold |
| keyword.operator.alignof | #59392Fde | bold |
| keyword.operator.cast | #2F3959de | bold |
| keyword.operator.delete | #592F49de | bold |
| keyword.operator.documentation.powershell | #3333166e | bold |
| keyword.operator.expression | #4A4A16de | bold |
| keyword.operator.instanceof | #01238Cde | bold |
| keyword.operator.logical.python | #532D44de | bold |
| keyword.operator.minus.exponent | #333310de | bold |
| keyword.operator.negation.regexp | #3F038Fde | bold |
| keyword.operator.new | #4A4A11de | bold |
| keyword.operator.noexcept | #323232de | bold |
| keyword.operator.or.regexp | #592F49de | bold |
| keyword.operator.plus.exponent | #442F59de | bold |
| keyword.operator.quantifier.regexp | #50251Ade | bold |
| keyword.operator.sizeof | #630541de | bold |
| keyword.operator.typeid | #1E3632de | bold |
| keyword.operator.wordlike | #243153de | bold |
| keyword.other.operator | #183733de | bold |
| keyword.other.package.java | #4A4A16de | bold |
| keyword.other.unit | #333318de | bold |
| keyword.other.using | #135149de | bold |
| markup.bold | #464629de | — |
| markup.changed | #343405de | — |
| markup.deleted | #5B1440de | — |
| markup.fenced_code.block.markdown | #46127Ade | — |
| markup.heading | #432C23de | — |
| markup.inline.raw | #1D2E62de | — |
| markup.inserted | #4A4A0Fde | — |
| markup.italic | #3B2B4Cde | — |
| markup.raw.block.markdown | #2B4C48de | — |
| markup.strikethrough | #1D2E62de | — |
| markup.underline | #603C30de | — |
| meta.block.c | #333318de | — |
| meta.block.c | #343421de | — |
| meta.class.java | #50251Ade | — |
| meta.definition.variable.name | #46293Bde | — |
| meta.diff.header | #3B2A4Dde | — |
| meta.embedded | #5B1440de | — |
| meta.embedded.assembly | #1E3632de | — |
| meta.function-call.arguments.python | #393939de | — |
| meta.function-call.python | #50213Ede | — |
| meta.member.access.python | #422064de | — |
| meta.method.java | #49291Fde | — |
| meta.object-literal.key | #3A3A24de | — |
| meta.paragraph.markdown | #463029de | — |
| meta.preprocessor | #60304Ede | — |
| meta.preprocessor.numeric | #483060de | — |
| meta.preprocessor.string | #323232de | — |
| meta.scope.prerequisites.makefile | #432C25de | — |
| meta.structure.dictionary.json.comments | #3333166e | — |
| meta.structure.dictionary.key.python | #243153de | — |
| meta.structure.dictionary.value.json.comments | #3333166e | — |
| meta.template.expression | #323232de | — |
| meta.type.cast.expr | #243153de | bold |
| meta.type.new.expr | #243A37de | bold |
| parameter | #333318de | — |
| punctuation.character.set.begin.regexp | #323232de | — |
| punctuation.character.set.end.regexp | #4A4A11de | — |
| punctuation.definition.array.begin.json | #46293Bde | — |
| punctuation.definition.character-class.regexp | #60304Ede | — |
| punctuation.definition.comment | #3333166e | — |
| punctuation.definition.comment.json.comments | #3333166e | — |
| punctuation.definition.comment.python | #3333176e | — |
| punctuation.definition.dictionary.begin.json | #422064de | — |
| punctuation.definition.dictionary.end.json | #323232de | — |
| punctuation.definition.group.assertion.regexp | #323232de | — |
| punctuation.definition.group.regexp | #323232de | — |
| punctuation.definition.list.begin.json | #5E1B05de | — |
| punctuation.definition.list.begin.markdown | #630541de | — |
| punctuation.definition.list.begin.python | #1E3632de | — |
| punctuation.definition.list.end.json | #4C332Bde | — |
| punctuation.definition.list.end.markdown | #4A4A16de | — |
| punctuation.definition.list.end.python | #603C30de | — |
| punctuation.definition.parameters.begin.python | #343421de | — |
| punctuation.definition.parameters.end.bracket.round.java | #3E3E3Ede | — |
| punctuation.definition.quote.begin.markdown | #53362Dde | — |
| punctuation.definition.tag | #5E1B05de | — |
| punctuation.definition.template-expression.begin | #11277Fde | — |
| punctuation.definition.template-expression.end | #460287de | — |
| punctuation.section.class.begin.bracket.curly.java | #2D3653de | — |
| punctuation.section.embedded | #243153de | — |
| punctuation.section.embedded.begin.php | #404026de | — |
| punctuation.section.embedded.end.php | #1D2E62de | — |
| punctuation.terminator.java | #483060de | — |
| source.cmake | #4F2616de | — |
| source.coffee.embedded | #333318de | — |
| source.cpp | #3E2755de | — |
| source.css.less | #323232de | — |
| source.groovy.embedded | #53362Dde | — |
| source.java | #11277Fde | — |
| source.java-properties | #1E3632de | — |
| source.json.comments | #3333166e | — |
| source.makefile | #333318de | — |
| source.powershell | #323F67de | — |
| source.powershell.variable.other.member | #512516de | — |
| source.python | #155149de | — |
| storage | #59392Fde | — |
| storage.modifier | #333310de | — |
| storage.modifier.import.java | #3F038Fde | — |
| storage.modifier.package.java | #0B3834de | — |
| storage.type | #323232de | bold |
| storage.type.annotation.groovy | #872606de | bold |
| storage.type.annotation.java | #511F40de | bold |
| storage.type.boolean.go | #4C2B40de | bold |
| storage.type.byte.go | #4C3267de | bold |
| storage.type.cs | #442F59de | bold |
| storage.type.error.go | #532D44de | bold |
| storage.type.generic.cs | #01238Cde | bold |
| storage.type.generic.groovy | #872606de | bold |
| storage.type.generic.java | #4C3267de | bold |
| storage.type.groovy | #3E3E3Ede | bold |
| storage.type.java | #323232de | bold |
| storage.type.modifier.cs | #353535de | bold |
| storage.type.numeric.go | #463029de | bold |
| storage.type.object.array.groovy | #323232de | bold |
| storage.type.object.array.java | #673253de | bold |
| storage.type.parameters.groovy | #2F3959de | bold |
| storage.type.primitive.array.groovy | #3F255Bde | bold |
| storage.type.primitive.array.java | #143732de | bold |
| storage.type.primitive.groovy | #46127Ade | bold |
| storage.type.primitive.java | #442F59de | bold |
| storage.type.rune.go | #3A3A24de | bold |
| storage.type.string.go | #183733de | bold |
| storage.type.token.java | #3F038Fde | bold |
| storage.type.uintptr.go | #50251Ade | bold |
| storage.type.variable.cs | #59392Fde | bold |
| string | #155149de | — |
| string.quoted.docstring.multi.python | #3333166e | — |
| string.regexp | #3D2951de | — |
| string.tag | #472A21de | — |
| string.value | #441B6Dde | — |
| strong | #59392Fde | — |
| support.class | #4C332Bde | — |
| support.constant.color | #293149de | — |
| support.constant.dom | #4A4A16de | — |
| support.constant.font-name | #323232de | — |
| support.constant.handlebars | #393939de | — |
| support.constant.json | #323232de | — |
| support.constant.math | #323232de | — |
| support.constant.media | #532D44de | — |
| support.constant.media-type | #532D44de | bold |
| support.constant.property-value | #155149de | — |
| support.function | #092781de | — |
| support.function.git-rebase | #441B6Dde | — |
| support.other.parenthesis.regexp | #013933de | — |
| support.type | #1E3632de | bold |
| support.type.property-name | #323232de | bold |
| support.type.vendored.property-name | #333318de | bold |
| support.variable | #442F59de | — |
| token.debug-token | #432C23de | — |
| token.error-token | #673253de | — |
| token.info-token | #243153de | — |
| token.warn-token | #432C25de | — |
| variable | #592F49de | — |
| variable.css | #460287de | — |
| variable.language | #343405de | — |
| variable.language.wildcard.java | #323232de | — |
| variable.other.constant | #28314Ade | — |
| variable.other.definition.java | #323232de | — |
| variable.other.enummember | #243153de | — |
| variable.other.less | #393939de | — |
| variable.other.object.java | #11277Fde | — |
| variable.other.object.property.java | #432C23de | — |
| variable.parameter.c | #333308de | — |
| variable.parameter.function.language.python | #511F40de | — |
| variable.parameter.java | #511F40de | — |
| variable.scss | #50251Ade | — |
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}!`;
}