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 | #1535356e | — |
| comment.block.html | #1535356e | — |
| comment.block.java | #1535356e | — |
| comment.block.javadoc.java | #1734346e | — |
| comment.block.powershell | #1834346e | — |
| comment.block.xml | #1834346e | — |
| comment.line.double-slash.c | #1634346e | — |
| comment.line.double-slash.cpp | #1634346e | — |
| comment.line.double-slash.java | #1834346e | — |
| comment.line.double-slash.js | #1734346e | — |
| comment.line.number-sign.makefile | #1535356e | — |
| comment.line.number-sign.python | #1734346e | — |
| comment.line.number-sign.yaml | #1634346e | — |
| comment.line.percentage.erlang | #1834346e | — |
| comment.line.powershell | #1734346e | — |
| comment.source.cmake | #1535356e | — |
| comment.source.cmakecache | #1734346e | — |
| constant.character | #910808de | — |
| constant.character.character-class.regexp | #2B2B53de | — |
| constant.character.escape | #3E3E69de | — |
| constant.character.set.regexp | #2E2E40de | — |
| constant.language | #4C2323de | — |
| constant.numeric | #073807de | — |
| constant.numeric.dec.python | #2B2B53de | — |
| constant.other.caps.python | #185118de | — |
| constant.other.character-class.regexp | #113711de | — |
| constant.other.character-class.set.regexp | #1A511Ade | — |
| constant.other.color.rgb-value | #185118de | — |
| constant.other.placeholder | #3E3E69de | — |
| constant.other.rgb-value | #185118de | — |
| constant.regexp | #650606de | — |
| constant.sha.git-rebase | #433232de | — |
| emphasis | #165116de | — |
| entity.name.class | #2E2E40de | — |
| entity.name.function | #11119Cde | — |
| entity.name.function.preprocessor | #3A2C2Cde | — |
| entity.name.function.python | #165116de | — |
| entity.name.label | #135213de | — |
| entity.name.namespace | #1F1F82de | — |
| entity.name.operator | #083808de | — |
| entity.name.operator.custom-literal | #324332de | — |
| entity.name.scope-resolution | #1F1F82de | — |
| entity.name.tag | #2F2F3Dde | — |
| entity.name.tag.css | #433232de | — |
| entity.name.type | #2F2F3Dde | bold |
| entity.name.variable | #3F2A2Ade | — |
| entity.other.attribute | #7E0C7Ede | — |
| entity.other.attribute-name | #462727de | — |
| entity.other.attribute-name.class.css | #324332de | — |
| entity.other.attribute-name.class.mixin.css | #2E2E40de | — |
| entity.other.attribute-name.id | #2E2E40de | — |
| entity.other.attribute-name.id.css | #2B2B53de | — |
| entity.other.attribute-name.parent-selector.css | #11119Cde | — |
| entity.other.attribute-name.pseudo-class.css | #393955de | — |
| entity.other.attribute-name.pseudo-element.css | #372C37de | — |
| entity.other.attribute-name.scss | #910808de | — |
| entity.other.document.begin.yaml | #1634346e | — |
| entity.other.inherited-class | #590259de | — |
| header | #5B3B3Bde | — |
| invalid | #1B511Bde | — |
| keyword | #344934de | bold |
| keyword.codetag.notation.python | #013901de | bold |
| keyword.control | #1B511Bde | bold |
| keyword.control.anchor.regexp | #433232de | bold |
| keyword.control.import.python | #5B3B5Bde | bold |
| keyword.operator | #4F364Fde | bold |
| keyword.operator.alignas | #3D2F2Fde | bold |
| keyword.operator.alignof | #3D2F2Fde | bold |
| keyword.operator.cast | #013901de | bold |
| keyword.operator.delete | #185118de | bold |
| keyword.operator.documentation.powershell | #1734346e | bold |
| keyword.operator.expression | #013901de | bold |
| keyword.operator.instanceof | #1E351Ede | bold |
| keyword.operator.logical.python | #910808de | bold |
| keyword.operator.minus.exponent | #3A2C2Cde | bold |
| keyword.operator.negation.regexp | #393955de | bold |
| keyword.operator.new | #433232de | bold |
| keyword.operator.noexcept | #5B3B3Bde | bold |
| keyword.operator.or.regexp | #5B3B3Bde | bold |
| keyword.operator.plus.exponent | #1F1F82de | bold |
| keyword.operator.quantifier.regexp | #553939de | bold |
| keyword.operator.sizeof | #493434de | bold |
| keyword.operator.typeid | #3A2A3Ade | bold |
| keyword.operator.wordlike | #623C3Cde | bold |
| keyword.other.operator | #323243de | bold |
| keyword.other.package.java | #462727de | bold |
| keyword.other.unit | #4F3636de | bold |
| keyword.other.using | #4C2323de | bold |
| markup.bold | #2A322Ade | — |
| markup.changed | #2C372Cde | — |
| markup.deleted | #493434de | — |
| markup.fenced_code.block.markdown | #0F0F9Dde | — |
| markup.heading | #11119Cde | — |
| markup.inline.raw | #3B3B5Bde | — |
| markup.inserted | #323243de | — |
| markup.italic | #3A2C2Cde | — |
| markup.raw.block.markdown | #2D2D45de | — |
| markup.strikethrough | #570757de | — |
| markup.underline | #1A511Ade | — |
| meta.block.c | #0F0F9Dde | — |
| meta.block.c | #5B3B3Bde | — |
| meta.class.java | #650606de | — |
| meta.definition.variable.name | #2B2B53de | — |
| meta.diff.header | #3E3E69de | — |
| meta.embedded | #324332de | — |
| meta.embedded.assembly | #013901de | — |
| meta.function-call.arguments.python | #553939de | — |
| meta.function-call.python | #491F49de | — |
| meta.member.access.python | #5B3B3Bde | — |
| meta.method.java | #0F0F9Dde | — |
| meta.object-literal.key | #3D2F2Fde | — |
| meta.paragraph.markdown | #0303A7de | — |
| meta.preprocessor | #165116de | — |
| meta.preprocessor.numeric | #3C3C62de | — |
| meta.preprocessor.string | #343449de | — |
| meta.scope.prerequisites.makefile | #5B3B5Bde | — |
| meta.structure.dictionary.json.comments | #1634346e | — |
| meta.structure.dictionary.key.python | #2E2E40de | — |
| meta.structure.dictionary.value.json.comments | #1834346e | — |
| meta.template.expression | #3C3C62de | — |
| meta.type.cast.expr | #4F3636de | bold |
| meta.type.new.expr | #372C37de | bold |
| parameter | #2F3D2Fde | — |
| punctuation.character.set.begin.regexp | #2C372Cde | — |
| punctuation.character.set.end.regexp | #3D2F3Dde | — |
| punctuation.definition.array.begin.json | #2A322Ade | — |
| punctuation.definition.character-class.regexp | #4F3636de | — |
| punctuation.definition.comment | #1535356e | — |
| punctuation.definition.comment.json.comments | #1535356e | — |
| punctuation.definition.comment.python | #1734346e | — |
| punctuation.definition.dictionary.begin.json | #1B511Bde | — |
| punctuation.definition.dictionary.end.json | #3E3E69de | — |
| punctuation.definition.group.assertion.regexp | #2A322Ade | — |
| punctuation.definition.group.regexp | #324332de | — |
| punctuation.definition.list.begin.json | #553939de | — |
| punctuation.definition.list.begin.markdown | #1B511Bde | — |
| punctuation.definition.list.begin.python | #36364Fde | — |
| punctuation.definition.list.end.json | #1F1F82de | — |
| punctuation.definition.list.end.markdown | #3A2C2Cde | — |
| punctuation.definition.list.end.python | #3D2F2Fde | — |
| punctuation.definition.parameters.begin.python | #3B3B5Bde | — |
| punctuation.definition.parameters.end.bracket.round.java | #3D2F2Fde | — |
| punctuation.definition.quote.begin.markdown | #3F2A2Ade | — |
| punctuation.definition.tag | #623C3Cde | — |
| punctuation.definition.template-expression.begin | #553939de | — |
| punctuation.definition.template-expression.end | #553939de | — |
| punctuation.section.class.begin.bracket.curly.java | #135213de | — |
| punctuation.section.embedded | #553939de | — |
| punctuation.section.embedded.begin.php | #7E0C7Ede | — |
| punctuation.section.embedded.end.php | #3B3B5Bde | — |
| punctuation.terminator.java | #0F0F9Dde | — |
| source.cmake | #393955de | — |
| source.coffee.embedded | #323243de | — |
| source.cpp | #7E0C7Ede | — |
| source.css.less | #3A2C2Cde | — |
| source.groovy.embedded | #1A511Ade | — |
| source.java | #11119Cde | — |
| source.java-properties | #5B3B3Bde | — |
| source.json.comments | #1634346e | — |
| source.makefile | #1B511Bde | — |
| source.powershell | #1F1F82de | — |
| source.powershell.variable.other.member | #2A322Ade | — |
| source.python | #1B511Bde | — |
| storage | #3A2A3Ade | — |
| storage.modifier | #393955de | — |
| storage.modifier.import.java | #910808de | — |
| storage.modifier.package.java | #910808de | — |
| storage.type | #083808de | bold |
| storage.type.annotation.groovy | #083808de | bold |
| storage.type.annotation.java | #185118de | bold |
| storage.type.boolean.go | #462727de | bold |
| storage.type.byte.go | #3D2F2Fde | bold |
| storage.type.cs | #2D2D45de | bold |
| storage.type.error.go | #0F0F9Dde | bold |
| storage.type.generic.cs | #1E351Ede | bold |
| storage.type.generic.groovy | #083808de | bold |
| storage.type.generic.java | #493434de | bold |
| storage.type.groovy | #3C3C62de | bold |
| storage.type.java | #185118de | bold |
| storage.type.modifier.cs | #2B2B53de | bold |
| storage.type.numeric.go | #2E2E40de | bold |
| storage.type.object.array.groovy | #551D1Dde | bold |
| storage.type.object.array.java | #3C3C62de | bold |
| storage.type.parameters.groovy | #372C37de | bold |
| storage.type.primitive.array.groovy | #462727de | bold |
| storage.type.primitive.array.java | #073807de | bold |
| storage.type.primitive.groovy | #135213de | bold |
| storage.type.primitive.java | #013901de | bold |
| storage.type.rune.go | #0F0F9Dde | bold |
| storage.type.string.go | #2C372Cde | bold |
| storage.type.token.java | #1A511Ade | bold |
| storage.type.uintptr.go | #1A511Ade | bold |
| storage.type.variable.cs | #135213de | bold |
| string | #013901de | — |
| string.quoted.docstring.multi.python | #1634346e | — |
| string.regexp | #1B511Bde | — |
| string.tag | #402740de | — |
| string.value | #113711de | — |
| strong | #113711de | — |
| support.class | #3F2A2Ade | — |
| support.constant.color | #1E351Ede | — |
| support.constant.dom | #2E2E40de | — |
| support.constant.font-name | #393955de | — |
| support.constant.handlebars | #462727de | — |
| support.constant.json | #493434de | — |
| support.constant.math | #3B3B5Bde | — |
| support.constant.media | #4F364Fde | — |
| support.constant.media-type | #2C372Cde | bold |
| support.constant.property-value | #4F364Fde | — |
| support.function | #5B3B5Bde | — |
| support.function.git-rebase | #553939de | — |
| support.other.parenthesis.regexp | #570757de | — |
| support.type | #462727de | bold |
| support.type.property-name | #073807de | bold |
| support.type.vendored.property-name | #324332de | bold |
| support.variable | #7E0C7Ede | — |
| token.debug-token | #553939de | — |
| token.error-token | #650606de | — |
| token.info-token | #36364Fde | — |
| token.warn-token | #393955de | — |
| variable | #2C372Cde | — |
| variable.css | #1A511Ade | — |
| variable.language | #4C2323de | — |
| variable.language.wildcard.java | #013901de | — |
| variable.other.constant | #551D1Dde | — |
| variable.other.definition.java | #462727de | — |
| variable.other.enummember | #344934de | — |
| variable.other.less | #185118de | — |
| variable.other.object.java | #083808de | — |
| variable.other.object.property.java | #013901de | — |
| variable.parameter.c | #393955de | — |
| variable.parameter.function.language.python | #343449de | — |
| variable.parameter.java | #4F364Fde | — |
| variable.scss | #4F3636de | — |
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}!`;
}