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