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 | #26264D6e | — |
| comment.block.html | #26264C6e | — |
| comment.block.java | #26264D6e | — |
| comment.block.javadoc.java | #26264B6e | — |
| comment.block.powershell | #26264B6e | — |
| comment.block.xml | #26264B6e | — |
| comment.line.double-slash.c | #26264B6e | — |
| comment.line.double-slash.cpp | #26264B6e | — |
| comment.line.double-slash.java | #26264C6e | — |
| comment.line.double-slash.js | #26264D6e | — |
| comment.line.number-sign.makefile | #2525516e | — |
| comment.line.number-sign.python | #26264C6e | — |
| comment.line.number-sign.yaml | #26264B6e | — |
| comment.line.percentage.erlang | #26264B6e | — |
| comment.line.powershell | #26264C6e | — |
| comment.source.cmake | #26264C6e | — |
| comment.source.cmakecache | #26264B6e | — |
| constant.character | #3C2431de | — |
| constant.character.character-class.regexp | #3F4513de | — |
| constant.character.escape | #294829de | — |
| constant.character.set.regexp | #422D27de | — |
| constant.language | #184B18de | — |
| constant.numeric | #3F4514de | — |
| constant.numeric.dec.python | #27423Cde | — |
| constant.other.caps.python | #223622de | — |
| constant.other.character-class.regexp | #18493Ede | — |
| constant.other.character-class.set.regexp | #343622de | — |
| constant.other.color.rgb-value | #282D02de | — |
| constant.other.placeholder | #432F5Bde | — |
| constant.other.rgb-value | #2A2B1Ade | — |
| constant.regexp | #4E3470de | — |
| constant.sha.git-rebase | #104A3Dde | — |
| emphasis | #292C12de | — |
| entity.name.class | #1F2A45de | — |
| entity.name.function | #0E3027de | — |
| entity.name.function.preprocessor | #473162de | — |
| entity.name.function.python | #2D3655de | — |
| entity.name.label | #2B334Ede | — |
| entity.name.namespace | #422736de | — |
| entity.name.operator | #372620de | — |
| entity.name.operator.custom-literal | #312540de | — |
| entity.name.scope-resolution | #40450Fde | — |
| entity.name.tag | #134A3Ede | — |
| entity.name.tag.css | #0123A1de | — |
| entity.name.type | #134A3Ede | bold |
| entity.name.variable | #5B2F48de | — |
| entity.other.attribute | #432F5Bde | — |
| entity.other.attribute-name | #3E231Dde | — |
| entity.other.attribute-name.class.css | #39261Ede | — |
| entity.other.attribute-name.class.mixin.css | #5B2F48de | — |
| entity.other.attribute-name.id | #0D4A3Cde | — |
| entity.other.attribute-name.id.css | #124A3Dde | — |
| entity.other.attribute-name.parent-selector.css | #154A3Ede | — |
| entity.other.attribute-name.pseudo-class.css | #62314Cde | — |
| entity.other.attribute-name.pseudo-element.css | #154A3Ede | — |
| entity.other.attribute-name.scss | #154A3Ede | — |
| entity.other.document.begin.yaml | #26264D6e | — |
| entity.other.inherited-class | #570532de | — |
| header | #154C15de | — |
| invalid | #243C24de | — |
| keyword | #511605de | bold |
| keyword.codetag.notation.python | #053205de | bold |
| keyword.control | #1F2A45de | bold |
| keyword.control.anchor.regexp | #570532de | bold |
| keyword.control.import.python | #473162de | bold |
| keyword.operator | #272D42de | bold |
| keyword.operator.alignas | #031D7Ade | bold |
| keyword.operator.alignof | #4A182Ede | bold |
| keyword.operator.cast | #404517de | bold |
| keyword.operator.delete | #402219de | bold |
| keyword.operator.documentation.powershell | #26264D6e | bold |
| keyword.operator.expression | #0E3027de | bold |
| keyword.operator.instanceof | #62314Cde | bold |
| keyword.operator.logical.python | #243C24de | bold |
| keyword.operator.minus.exponent | #332247de | bold |
| keyword.operator.negation.regexp | #292C12de | bold |
| keyword.operator.new | #27423Cde | bold |
| keyword.operator.noexcept | #043204de | bold |
| keyword.operator.or.regexp | #031D7Ade | bold |
| keyword.operator.plus.exponent | #7A230Bde | bold |
| keyword.operator.quantifier.regexp | #243C37de | bold |
| keyword.operator.sizeof | #332742de | bold |
| keyword.operator.typeid | #242A3Cde | bold |
| keyword.operator.wordlike | #422736de | bold |
| keyword.other.operator | #343622de | bold |
| keyword.other.package.java | #172E29de | bold |
| keyword.other.unit | #4E332Bde | bold |
| keyword.other.using | #17493Ede | bold |
| markup.bold | #48293Ade | — |
| markup.changed | #4A182Ede | — |
| markup.deleted | #223622de | — |
| markup.fenced_code.block.markdown | #4B3269de | — |
| markup.heading | #38037Ade | — |
| markup.inline.raw | #7A230Bde | — |
| markup.inserted | #422D27de | — |
| markup.italic | #003126de | — |
| markup.raw.block.markdown | #422D27de | — |
| markup.strikethrough | #312441de | — |
| markup.underline | #39126Ade | — |
| meta.block.c | #40450Fde | — |
| meta.block.c | #2F395Bde | — |
| meta.class.java | #0D310Dde | — |
| meta.definition.variable.name | #172E29de | — |
| meta.diff.header | #1F301Fde | — |
| meta.embedded | #1F302Cde | — |
| meta.embedded.assembly | #393C24de | — |
| meta.function-call.arguments.python | #223631de | — |
| meta.function-call.python | #18493Ede | — |
| meta.member.access.python | #0123A1de | — |
| meta.method.java | #312540de | — |
| meta.object-literal.key | #172E29de | — |
| meta.paragraph.markdown | #372948de | — |
| meta.preprocessor | #343622de | — |
| meta.preprocessor.numeric | #5B392Fde | — |
| meta.preprocessor.string | #27423Cde | — |
| meta.scope.prerequisites.makefile | #312441de | — |
| meta.structure.dictionary.json.comments | #2525516e | — |
| meta.structure.dictionary.key.python | #3F4514de | — |
| meta.structure.dictionary.value.json.comments | #26264B6e | — |
| meta.template.expression | #312441de | — |
| meta.type.cast.expr | #172E29de | bold |
| meta.type.new.expr | #332247de | bold |
| parameter | #3D2131de | — |
| punctuation.character.set.begin.regexp | #40450Fde | — |
| punctuation.character.set.end.regexp | #134C13de | — |
| punctuation.definition.array.begin.json | #0F4C0Fde | — |
| punctuation.definition.character-class.regexp | #0123A1de | — |
| punctuation.definition.comment | #26264C6e | — |
| punctuation.definition.comment.json.comments | #26264C6e | — |
| punctuation.definition.comment.python | #26264B6e | — |
| punctuation.definition.dictionary.begin.json | #15255Fde | — |
| punctuation.definition.dictionary.end.json | #043204de | — |
| punctuation.definition.group.assertion.regexp | #154C15de | — |
| punctuation.definition.group.regexp | #38037Ade | — |
| punctuation.definition.list.begin.json | #243C24de | — |
| punctuation.definition.list.begin.markdown | #222942de | — |
| punctuation.definition.list.begin.python | #154C15de | — |
| punctuation.definition.list.end.json | #172E29de | — |
| punctuation.definition.list.end.markdown | #3B2330de | — |
| punctuation.definition.list.end.python | #1B2658de | — |
| punctuation.definition.parameters.begin.python | #2F395Bde | — |
| punctuation.definition.parameters.end.bracket.round.java | #243C37de | — |
| punctuation.definition.quote.begin.markdown | #2A2B1Ade | — |
| punctuation.definition.tag | #292C0Ade | — |
| punctuation.definition.template-expression.begin | #1F302Cde | — |
| punctuation.definition.template-expression.end | #0E3027de | — |
| punctuation.section.class.begin.bracket.curly.java | #294829de | — |
| punctuation.section.embedded | #172E29de | — |
| punctuation.section.embedded.begin.php | #7A230Bde | — |
| punctuation.section.embedded.end.php | #2B334Ede | — |
| punctuation.terminator.java | #164C16de | — |
| source.cmake | #031D7Ade | — |
| source.coffee.embedded | #4A1834de | — |
| source.cpp | #154C15de | — |
| source.css.less | #343622de | — |
| source.groovy.embedded | #292C12de | — |
| source.java | #2D3655de | — |
| source.java-properties | #243C24de | — |
| source.json.comments | #26264C6e | — |
| source.makefile | #39126Ade | — |
| source.powershell | #332247de | — |
| source.powershell.variable.other.member | #282D02de | — |
| source.python | #104A3Dde | — |
| storage | #0123A1de | — |
| storage.modifier | #404517de | — |
| storage.modifier.import.java | #404516de | — |
| storage.modifier.package.java | #372948de | — |
| storage.type | #371B58de | bold |
| storage.type.annotation.groovy | #0D4A3Cde | bold |
| storage.type.annotation.java | #0D4A3Cde | bold |
| storage.type.boolean.go | #0D310Dde | bold |
| storage.type.byte.go | #431D32de | bold |
| storage.type.cs | #7A230Bde | bold |
| storage.type.error.go | #18493Ede | bold |
| storage.type.generic.cs | #292C0Ade | bold |
| storage.type.generic.groovy | #053205de | bold |
| storage.type.generic.java | #003126de | bold |
| storage.type.groovy | #003126de | bold |
| storage.type.java | #313C62de | bold |
| storage.type.modifier.cs | #3C2A24de | bold |
| storage.type.numeric.go | #274227de | bold |
| storage.type.object.array.groovy | #154C15de | bold |
| storage.type.object.array.java | #39126Ade | bold |
| storage.type.parameters.groovy | #292C12de | bold |
| storage.type.primitive.array.groovy | #124A3Dde | bold |
| storage.type.primitive.array.java | #134C13de | bold |
| storage.type.primitive.groovy | #3F4514de | bold |
| storage.type.primitive.java | #5B2F48de | bold |
| storage.type.rune.go | #18493Ede | bold |
| storage.type.string.go | #1F2A45de | bold |
| storage.type.token.java | #5B2F48de | bold |
| storage.type.uintptr.go | #4E2B3Fde | bold |
| storage.type.variable.cs | #411F32de | bold |
| string | #55362Dde | — |
| string.quoted.docstring.multi.python | #26264C6e | — |
| string.regexp | #043204de | — |
| string.tag | #293048de | — |
| string.value | #332247de | — |
| strong | #372620de | — |
| support.class | #292C12de | — |
| support.constant.color | #15255Fde | — |
| support.constant.dom | #404519de | — |
| support.constant.font-name | #114C11de | — |
| support.constant.handlebars | #62314Cde | — |
| support.constant.json | #104A3Dde | — |
| support.constant.math | #552D43de | — |
| support.constant.media | #552D43de | — |
| support.constant.media-type | #404519de | bold |
| support.constant.property-value | #243C37de | — |
| support.function | #292C0Ade | — |
| support.function.git-rebase | #361F4Dde | — |
| support.other.parenthesis.regexp | #124A3Dde | — |
| support.type | #1F301Fde | bold |
| support.type.property-name | #5B2F48de | bold |
| support.type.vendored.property-name | #39126Ade | bold |
| support.variable | #5B392Fde | — |
| token.debug-token | #4E3470de | — |
| token.error-token | #1F2A45de | — |
| token.info-token | #39261Ede | — |
| token.warn-token | #62314Cde | — |
| variable | #223631de | — |
| variable.css | #422D27de | — |
| variable.language | #0123A1de | — |
| variable.language.wildcard.java | #4A182Ede | — |
| variable.other.constant | #323E69de | — |
| variable.other.definition.java | #003126de | — |
| variable.other.enummember | #4E332Bde | — |
| variable.other.less | #293048de | — |
| variable.other.object.java | #223631de | — |
| variable.other.object.property.java | #031D7Ade | — |
| variable.parameter.c | #134A3Ede | — |
| variable.parameter.function.language.python | #4E332Bde | — |
| variable.parameter.java | #4E332Bde | — |
| variable.scss | #431D32de | — |
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}!`;
}