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 | #4C4C2E6e | — |
| comment.block.html | #4C4C2E6e | — |
| comment.block.java | #4D4D2D6e | — |
| comment.block.javadoc.java | #4E4E2E6e | — |
| comment.block.powershell | #4C4C2E6e | — |
| comment.block.xml | #4E4E2E6e | — |
| comment.line.double-slash.c | #4D4D2D6e | — |
| comment.line.double-slash.cpp | #4C4C2E6e | — |
| comment.line.double-slash.java | #4E4E2F6e | — |
| comment.line.double-slash.js | #4E4E2E6e | — |
| comment.line.number-sign.makefile | #4D4D2D6e | — |
| comment.line.number-sign.python | #4D4D2D6e | — |
| comment.line.number-sign.yaml | #4E4E2E6e | — |
| comment.line.percentage.erlang | #4C4C2E6e | — |
| comment.line.powershell | #4E4E2E6e | — |
| comment.source.cmake | #4E4E2E6e | — |
| comment.source.cmakecache | #4C4C2E6e | — |
| constant.character | #09555Bde | — |
| constant.character.character-class.regexp | #314218de | — |
| constant.character.escape | #084245de | — |
| constant.character.set.regexp | #375609de | — |
| constant.language | #09581Fde | — |
| constant.numeric | #744106de | — |
| constant.numeric.dec.python | #0A565Cde | — |
| constant.other.caps.python | #850499de | — |
| constant.other.character-class.regexp | #375606de | — |
| constant.other.character-class.set.regexp | #2C2CD7de | — |
| constant.other.color.rgb-value | #72420Ade | — |
| constant.other.placeholder | #84253Ede | — |
| constant.other.rgb-value | #36540Ade | — |
| constant.regexp | #644621de | — |
| constant.sha.git-rebase | #09581Fde | — |
| emphasis | #5C2165de | — |
| entity.name.class | #71410Ade | — |
| entity.name.function | #365605de | — |
| entity.name.function.preprocessor | #840996de | — |
| entity.name.function.python | #2C2CD8de | — |
| entity.name.label | #850999de | — |
| entity.name.namespace | #8B2541de | — |
| entity.name.operator | #2D2DD8de | — |
| entity.name.operator.custom-literal | #375606de | — |
| entity.name.scope-resolution | #2D2DD8de | — |
| entity.name.tag | #840A97de | — |
| entity.name.tag.css | #262695de | — |
| entity.name.type | #375609de | bold |
| entity.name.variable | #3C521Dde | — |
| entity.other.attribute | #840A96de | — |
| entity.other.attribute-name | #1A4927de | — |
| entity.other.attribute-name.class.css | #183F42de | — |
| entity.other.attribute-name.class.mixin.css | #1E562Cde | — |
| entity.other.attribute-name.id | #840798de | — |
| entity.other.attribute-name.id.css | #2E2ED8de | — |
| entity.other.attribute-name.parent-selector.css | #375607de | — |
| entity.other.attribute-name.pseudo-class.css | #085A1Ede | — |
| entity.other.attribute-name.pseudo-element.css | #840A97de | — |
| entity.other.attribute-name.scss | #0A565Bde | — |
| entity.other.document.begin.yaml | #4E4E2E6e | — |
| entity.other.inherited-class | #2929BEde | — |
| header | #2E2ED8de | — |
| invalid | #1A4927de | — |
| keyword | #36540Ade | bold |
| keyword.codetag.notation.python | #385609de | bold |
| keyword.control | #2C2CD8de | bold |
| keyword.control.anchor.regexp | #7A2687de | bold |
| keyword.control.import.python | #850499de | bold |
| keyword.operator | #7B2587de | bold |
| keyword.operator.alignas | #692374de | bold |
| keyword.operator.alignof | #2C2CD8de | bold |
| keyword.operator.cast | #0A581Fde | bold |
| keyword.operator.delete | #840A97de | bold |
| keyword.operator.documentation.powershell | #4C4C2E6e | bold |
| keyword.operator.expression | #674720de | bold |
| keyword.operator.instanceof | #2C2CD8de | bold |
| keyword.operator.logical.python | #2D2DD8de | bold |
| keyword.operator.minus.exponent | #754004de | bold |
| keyword.operator.negation.regexp | #314218de | bold |
| keyword.operator.new | #9C0930de | bold |
| keyword.operator.noexcept | #2929CFde | bold |
| keyword.operator.or.regexp | #1C502Ade | bold |
| keyword.operator.plus.exponent | #074A19de | bold |
| keyword.operator.quantifier.regexp | #70410Ade | bold |
| keyword.operator.sizeof | #860399de | bold |
| keyword.operator.typeid | #184224de | bold |
| keyword.operator.wordlike | #70410Ade | bold |
| keyword.other.operator | #8E2543de | bold |
| keyword.other.package.java | #2C2CD7de | bold |
| keyword.other.unit | #2929C6de | bold |
| keyword.other.using | #8E2543de | bold |
| markup.bold | #074A19de | — |
| markup.changed | #0A555Ade | — |
| markup.deleted | #375606de | — |
| markup.fenced_code.block.markdown | #1E562Cde | — |
| markup.heading | #70247Cde | — |
| markup.inline.raw | #36491Ade | — |
| markup.inserted | #2B2BD6de | — |
| markup.italic | #674720de | — |
| markup.raw.block.markdown | #0A591Fde | — |
| markup.strikethrough | #3E521Dde | — |
| markup.underline | #72420Ade | — |
| meta.block.c | #1A4927de | — |
| meta.block.c | #9B082Fde | — |
| meta.class.java | #9A082Fde | — |
| meta.definition.variable.name | #375606de | — |
| meta.diff.header | #654521de | — |
| meta.embedded | #0B0BFDde | — |
| meta.embedded.assembly | #850898de | — |
| meta.function-call.arguments.python | #09591Fde | — |
| meta.function-call.python | #71410Ade | — |
| meta.member.access.python | #840798de | — |
| meta.method.java | #714109de | — |
| meta.object-literal.key | #50381Cde | — |
| meta.paragraph.markdown | #0808FEde | — |
| meta.preprocessor | #0A591Fde | — |
| meta.preprocessor.numeric | #644621de | — |
| meta.preprocessor.string | #840996de | — |
| meta.scope.prerequisites.makefile | #7A2588de | — |
| meta.structure.dictionary.json.comments | #4E4E2E6e | — |
| meta.structure.dictionary.key.python | #744106de | — |
| meta.structure.dictionary.value.json.comments | #4D4D2D6e | — |
| meta.template.expression | #375509de | — |
| meta.type.cast.expr | #724108de | bold |
| meta.type.new.expr | #1A4927de | bold |
| parameter | #2E2ED8de | — |
| punctuation.character.set.begin.regexp | #09565Bde | — |
| punctuation.character.set.end.regexp | #654521de | — |
| punctuation.definition.array.begin.json | #850999de | — |
| punctuation.definition.character-class.regexp | #095A1Fde | — |
| punctuation.definition.comment | #4C4C2E6e | — |
| punctuation.definition.comment.json.comments | #4D4D2D6e | — |
| punctuation.definition.comment.python | #4C4C2E6e | — |
| punctuation.definition.dictionary.begin.json | #183F42de | — |
| punctuation.definition.dictionary.end.json | #1E5357de | — |
| punctuation.definition.group.assertion.regexp | #7A2588de | — |
| punctuation.definition.group.regexp | #375508de | — |
| punctuation.definition.list.begin.json | #734109de | — |
| punctuation.definition.list.begin.markdown | #652133de | — |
| punctuation.definition.list.begin.python | #860599de | — |
| punctuation.definition.list.end.json | #3B501Cde | — |
| punctuation.definition.list.end.markdown | #1E5357de | — |
| punctuation.definition.list.end.python | #49331Ade | — |
| punctuation.definition.parameters.begin.python | #385609de | — |
| punctuation.definition.parameters.end.bracket.round.java | #1D562Cde | — |
| punctuation.definition.quote.begin.markdown | #1D562Cde | — |
| punctuation.definition.tag | #09555Bde | — |
| punctuation.definition.template-expression.begin | #2D2DD7de | — |
| punctuation.definition.template-expression.end | #8E2642de | — |
| punctuation.section.class.begin.bracket.curly.java | #1C502Ade | — |
| punctuation.section.embedded | #9C0A31de | — |
| punctuation.section.embedded.begin.php | #734107de | — |
| punctuation.section.embedded.end.php | #095A1Fde | — |
| punctuation.terminator.java | #9C0930de | — |
| source.cmake | #9A082Fde | — |
| source.coffee.embedded | #2E2ED8de | — |
| source.cpp | #744106de | — |
| source.css.less | #692374de | — |
| source.groovy.embedded | #5C2165de | — |
| source.java | #754004de | — |
| source.java-properties | #0A5A1Fde | — |
| source.json.comments | #4D4D2D6e | — |
| source.makefile | #840798de | — |
| source.powershell | #744107de | — |
| source.powershell.variable.other.member | #0B0BFDde | — |
| source.python | #84253Ede | — |
| storage | #70410Ade | — |
| storage.modifier | #50381Cde | — |
| storage.modifier.import.java | #2C2CD8de | — |
| storage.modifier.package.java | #684621de | — |
| storage.type | #2E2ED8de | bold |
| storage.type.annotation.groovy | #09591Ede | bold |
| storage.type.annotation.java | #840996de | bold |
| storage.type.boolean.go | #09591Fde | bold |
| storage.type.byte.go | #654521de | bold |
| storage.type.cs | #9A0930de | bold |
| storage.type.error.go | #1E5256de | bold |
| storage.type.generic.cs | #7C2589de | bold |
| storage.type.generic.groovy | #08581Dde | bold |
| storage.type.generic.java | #0A591Fde | bold |
| storage.type.groovy | #084518de | bold |
| storage.type.java | #2C2CD8de | bold |
| storage.type.modifier.cs | #7A2588de | bold |
| storage.type.numeric.go | #8C2641de | bold |
| storage.type.object.array.groovy | #50381Cde | bold |
| storage.type.object.array.java | #7B2689de | bold |
| storage.type.parameters.groovy | #860699de | bold |
| storage.type.primitive.array.groovy | #840798de | bold |
| storage.type.primitive.array.java | #734107de | bold |
| storage.type.primitive.groovy | #8A2640de | bold |
| storage.type.primitive.java | #1D5356de | bold |
| storage.type.rune.go | #2C2CD8de | bold |
| storage.type.string.go | #375609de | bold |
| storage.type.token.java | #7C243Cde | bold |
| storage.type.uintptr.go | #0A555Bde | bold |
| storage.type.variable.cs | #36540Ade | bold |
| string | #3E521Dde | — |
| string.quoted.docstring.multi.python | #4E4E2F6e | — |
| string.regexp | #8E2543de | — |
| string.tag | #72410Ade | — |
| string.value | #744005de | — |
| strong | #09565Bde | — |
| support.class | #754004de | — |
| support.constant.color | #09565Bde | — |
| support.constant.dom | #07454Ade | — |
| support.constant.font-name | #744107de | — |
| support.constant.handlebars | #860699de | — |
| support.constant.json | #50381Cde | — |
| support.constant.math | #09591Ede | — |
| support.constant.media | #084245de | — |
| support.constant.media-type | #375509de | bold |
| support.constant.property-value | #9C052Ede | — |
| support.function | #375508de | — |
| support.function.git-rebase | #71410Ade | — |
| support.other.parenthesis.regexp | #375609de | — |
| support.type | #70247Cde | bold |
| support.type.property-name | #70247Cde | bold |
| support.type.vendored.property-name | #0A581Fde | bold |
| support.variable | #860699de | — |
| token.debug-token | #0A591Fde | — |
| token.error-token | #850898de | — |
| token.info-token | #50381Cde | — |
| token.warn-token | #36491Ade | — |
| variable | #7B2587de | — |
| variable.css | #1E562Cde | — |
| variable.language | #5E411Fde | — |
| variable.language.wildcard.java | #0B0BFDde | — |
| variable.other.constant | #7A2588de | — |
| variable.other.definition.java | #840798de | — |
| variable.other.enummember | #365409de | — |
| variable.other.less | #0A591Fde | — |
| variable.other.object.java | #7B258Ade | — |
| variable.other.object.property.java | #0A5A1Fde | — |
| variable.parameter.c | #2D2DD8de | — |
| variable.parameter.function.language.python | #70247Cde | — |
| variable.parameter.java | #375608de | — |
| variable.scss | #0A565Cde | — |
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}!`;
}