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 | #6C3A6C6e | — |
| comment.block.html | #6B3B6B6e | — |
| comment.block.java | #6B3B6B6e | — |
| comment.block.javadoc.java | #6C3A6C6e | — |
| comment.block.powershell | #4B4B4B6e | — |
| comment.block.xml | #6C3A6C6e | — |
| comment.line.double-slash.c | #673C676e | — |
| comment.line.double-slash.cpp | #4B4B4B6e | — |
| comment.line.double-slash.java | #673C676e | — |
| comment.line.double-slash.js | #673C676e | — |
| comment.line.number-sign.makefile | #6C3A6C6e | — |
| comment.line.number-sign.python | #6C3A6C6e | — |
| comment.line.number-sign.yaml | #6C3A6C6e | — |
| comment.line.percentage.erlang | #4B4B4B6e | — |
| comment.line.powershell | #6B3B6B6e | — |
| comment.source.cmake | #4B4B4B6e | — |
| comment.source.cmakecache | #6B3B6B6e | — |
| constant.character | #83039Ede | — |
| constant.character.character-class.regexp | #08505Ade | — |
| constant.character.escape | #0A545Fde | — |
| constant.character.set.regexp | #355409de | — |
| constant.language | #714008de | — |
| constant.numeric | #2C2CBDde | — |
| constant.numeric.dec.python | #714009de | — |
| constant.other.caps.python | #095821de | — |
| constant.other.character-class.regexp | #724007de | — |
| constant.other.character-class.set.regexp | #77233Cde | — |
| constant.other.color.rgb-value | #734006de | — |
| constant.other.placeholder | #09555Fde | — |
| constant.other.rgb-value | #782489de | — |
| constant.regexp | #355509de | — |
| constant.sha.git-rebase | #09545Ede | — |
| emphasis | #70400Ade | — |
| entity.name.class | #355507de | — |
| entity.name.function | #2E2ED5de | — |
| entity.name.function.preprocessor | #82089Cde | — |
| entity.name.function.python | #084047de | — |
| entity.name.label | #292995de | — |
| entity.name.namespace | #9A0630de | — |
| entity.name.operator | #83049Dde | — |
| entity.name.operator.custom-literal | #194526de | — |
| entity.name.scope-resolution | #892443de | — |
| entity.name.tag | #334519de | — |
| entity.name.tag.css | #83049Dde | — |
| entity.name.type | #5C2168de | bold |
| entity.name.variable | #9A0834de | — |
| entity.other.attribute | #2D2DD3de | — |
| entity.other.attribute-name | #0A545Ede | — |
| entity.other.attribute-name.class.css | #990833de | — |
| entity.other.attribute-name.class.mixin.css | #8A2542de | — |
| entity.other.attribute-name.id | #173E23de | — |
| entity.other.attribute-name.id.css | #9B0733de | — |
| entity.other.attribute-name.parent-selector.css | #084047de | — |
| entity.other.attribute-name.pseudo-class.css | #355409de | — |
| entity.other.attribute-name.pseudo-element.css | #1E535Ade | — |
| entity.other.attribute-name.scss | #095821de | — |
| entity.other.document.begin.yaml | #6C3A6C6e | — |
| entity.other.inherited-class | #82079Bde | bold |
| header | #365509de | — |
| invalid | #0909FCde | — |
| keyword | #81089Bde | bold |
| keyword.codetag.notation.python | #810A9Ade | bold |
| keyword.control | #9A0834de | bold |
| keyword.control.anchor.regexp | #355309de | bold |
| keyword.control.import.python | #355409de | bold |
| keyword.operator | #355409de | bold |
| keyword.operator.alignas | #3C521Cde | bold |
| keyword.operator.alignof | #1C4C53de | bold |
| keyword.operator.cast | #345505de | bold |
| keyword.operator.delete | #61421Fde | bold |
| keyword.operator.documentation.powershell | #4B4B4B6e | bold |
| keyword.operator.expression | #8C2544de | bold |
| keyword.operator.instanceof | #09545Ede | bold |
| keyword.operator.logical.python | #72410Ade | bold |
| keyword.operator.minus.exponent | #734006de | bold |
| keyword.operator.negation.regexp | #194526de | bold |
| keyword.operator.new | #724109de | bold |
| keyword.operator.noexcept | #355309de | bold |
| keyword.operator.or.regexp | #08505Ade | bold |
| keyword.operator.plus.exponent | #714008de | bold |
| keyword.operator.quantifier.regexp | #2C2CD3de | bold |
| keyword.operator.sizeof | #71400Ade | bold |
| keyword.operator.typeid | #2C2CBDde | bold |
| keyword.operator.wordlike | #095821de | bold |
| keyword.other.operator | #35540Ade | bold |
| keyword.other.package.java | #64441Fde | bold |
| keyword.other.unit | #5A3E1Ede | bold |
| keyword.other.using | #82089Cde | bold |
| markup.bold | #2C2CC6de | — |
| markup.changed | #355509de | — |
| markup.deleted | #355409de | — |
| markup.fenced_code.block.markdown | #28288Dde | — |
| markup.heading | #095921de | — |
| markup.inline.raw | #1B464Cde | — |
| markup.inserted | #2D2DD3de | — |
| markup.italic | #9A0A34de | — |
| markup.raw.block.markdown | #1B4C29de | — |
| markup.strikethrough | #355509de | — |
| markup.underline | #72410Ade | — |
| meta.block.c | #8A2543de | — |
| meta.block.c | #384C1Bde | — |
| meta.class.java | #365508de | — |
| meta.definition.variable.name | #71400Ade | — |
| meta.diff.header | #334519de | — |
| meta.embedded | #2C2CC6de | — |
| meta.embedded.assembly | #733F03de | — |
| meta.function-call.arguments.python | #355507de | — |
| meta.function-call.python | #0909FCde | — |
| meta.member.access.python | #72410Ade | — |
| meta.method.java | #365509de | — |
| meta.object-literal.key | #82089Cde | — |
| meta.paragraph.markdown | #365509de | — |
| meta.preprocessor | #980933de | — |
| meta.preprocessor.numeric | #0808BCde | — |
| meta.preprocessor.string | #81059Cde | — |
| meta.scope.prerequisites.makefile | #71400Ade | — |
| meta.structure.dictionary.json.comments | #6C3A6C6e | — |
| meta.structure.dictionary.key.python | #074319de | — |
| meta.structure.dictionary.value.json.comments | #6B3B6B6e | — |
| meta.template.expression | #355409de | — |
| meta.type.cast.expr | #084952de | — |
| meta.type.new.expr | #61421Fde | — |
| parameter | #084952de | — |
| punctuation.character.set.begin.regexp | #1B4C29de | — |
| punctuation.character.set.end.regexp | #752587de | — |
| punctuation.definition.array.begin.json | #084952de | — |
| punctuation.definition.character-class.regexp | #0A535Dde | — |
| punctuation.definition.comment | #6B3B6B6e | — |
| punctuation.definition.comment.json.comments | #6B3B6B6e | — |
| punctuation.definition.comment.python | #6C3A6C6e | — |
| punctuation.definition.dictionary.begin.json | #892542de | — |
| punctuation.definition.dictionary.end.json | #2E2ED4de | — |
| punctuation.definition.group.assertion.regexp | #0A5821de | — |
| punctuation.definition.group.regexp | #355409de | — |
| punctuation.definition.list.begin.json | #0808FEde | — |
| punctuation.definition.list.begin.markdown | #1C562Dde | — |
| punctuation.definition.list.begin.python | #095921de | — |
| punctuation.definition.list.end.json | #355507de | — |
| punctuation.definition.list.end.markdown | #9A0630de | — |
| punctuation.definition.list.end.python | #2E2ED5de | — |
| punctuation.definition.parameters.begin.python | #8B2543de | — |
| punctuation.definition.parameters.end.bracket.round.java | #1B464Cde | — |
| punctuation.definition.quote.begin.markdown | #1B464Cde | — |
| punctuation.definition.tag | #71400Ade | — |
| punctuation.definition.template-expression.begin | #345505de | — |
| punctuation.definition.template-expression.end | #334519de | — |
| punctuation.section.class.begin.bracket.curly.java | #1C562Dde | — |
| punctuation.section.embedded | #0808BCde | — |
| punctuation.section.embedded.begin.php | #2C2CBDde | — |
| punctuation.section.embedded.end.php | #0A535Cde | — |
| punctuation.terminator.java | #0A5821de | — |
| source.cmake | #0A535Dde | — |
| source.coffee.embedded | #81099Bde | — |
| source.cpp | #355509de | — |
| source.css.less | #0808BCde | — |
| source.groovy.embedded | #0A545Ede | — |
| source.java | #9B0733de | — |
| source.java-properties | #355507de | — |
| source.json.comments | #673C676e | — |
| source.makefile | #365508de | — |
| source.powershell | #334519de | — |
| source.powershell.variable.other.member | #8A2542de | — |
| source.python | #355309de | — |
| storage | #355507de | — |
| storage.modifier | #0A535Dde | — |
| storage.modifier.import.java | #8A2542de | — |
| storage.modifier.package.java | #2D2DD3de | — |
| storage.type | #743F04de | bold |
| storage.type.annotation.groovy | #8A2543de | bold |
| storage.type.annotation.java | #5C2168de | bold |
| storage.type.boolean.go | #82089Cde | bold |
| storage.type.byte.go | #0808FEde | bold |
| storage.type.cs | #8A2543de | bold |
| storage.type.error.go | #674520de | bold |
| storage.type.generic.cs | #074319de | bold |
| storage.type.generic.groovy | #095821de | bold |
| storage.type.generic.java | #81089Ade | bold |
| storage.type.groovy | #0A535Cde | bold |
| storage.type.java | #892542de | bold |
| storage.type.modifier.cs | #83049Dde | bold |
| storage.type.numeric.go | #09545Ede | bold |
| storage.type.object.array.groovy | #355409de | bold |
| storage.type.object.array.java | #0A535Cde | bold |
| storage.type.parameters.groovy | #09555Fde | bold |
| storage.type.primitive.array.groovy | #355309de | bold |
| storage.type.primitive.array.java | #990632de | bold |
| storage.type.primitive.groovy | #084952de | bold |
| storage.type.primitive.java | #365508de | bold |
| storage.type.rune.go | #365509de | bold |
| storage.type.string.go | #81059Cde | bold |
| storage.type.token.java | #8B2543de | bold |
| storage.type.uintptr.go | #71400Ade | bold |
| storage.type.variable.cs | #095921de | bold |
| string | #0A545Ede | — |
| string.quoted.docstring.multi.python | #4B4B4B6e | — |
| string.regexp | #08521Dde | — |
| string.tag | #334519de | — |
| string.value | #782489de | — |
| strong | #2C2CBDde | — |
| support.class | #83039Ede | — |
| support.constant.color | #81089Bde | — |
| support.constant.dom | #82099Bde | — |
| support.constant.font-name | #714109de | — |
| support.constant.handlebars | #365509de | — |
| support.constant.json | #70400Ade | — |
| support.constant.math | #81099Bde | — |
| support.constant.media | #2A2AA5de | — |
| support.constant.media-type | #28288Dde | — |
| support.constant.property-value | #9A0834de | — |
| support.function | #095921de | — |
| support.function.git-rebase | #355309de | — |
| support.other.parenthesis.regexp | #611F33de | — |
| support.type | #1C562Dde | bold |
| support.type.property-name | #1C562Dde | bold |
| support.type.vendored.property-name | #9B0431de | bold |
| support.variable | #980933de | — |
| token.debug-token | #35540Ade | — |
| token.error-token | #2B2BB5de | — |
| token.info-token | #194526de | — |
| token.warn-token | #08471Ade | — |
| variable | #0A5921de | — |
| variable.css | #2B2BB5de | — |
| variable.language | #2B2BB5de | — |
| variable.language.wildcard.java | #682136de | — |
| variable.other.constant | #79258Cde | — |
| variable.other.definition.java | #1C4C53de | — |
| variable.other.enummember | #2C2CBDde | — |
| variable.other.less | #3C531Cde | — |
| variable.other.object.java | #07434Cde | — |
| variable.other.object.property.java | #0A5820de | — |
| variable.parameter.c | #77233Cde | — |
| variable.parameter.function.language.python | #355507de | — |
| variable.parameter.java | #1D5259de | — |
| variable.scss | #1B4C29de | — |
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}!`;
}