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 | #5515556e | — |
| comment.block.html | #5514556e | — |
| comment.block.java | #3131316e | — |
| comment.block.javadoc.java | #5515556e | — |
| comment.block.powershell | #5515556e | — |
| comment.block.xml | #3131316e | — |
| comment.line.double-slash.c | #5515556e | — |
| comment.line.double-slash.cpp | #5514556e | — |
| comment.line.double-slash.java | #5515556e | — |
| comment.line.double-slash.js | #5515556e | — |
| comment.line.number-sign.makefile | #5514556e | — |
| comment.line.number-sign.python | #3131316e | — |
| comment.line.number-sign.yaml | #5515556e | — |
| comment.line.percentage.erlang | #5515556e | — |
| comment.line.powershell | #5514556e | — |
| comment.source.cmake | #5515556e | — |
| comment.source.cmakecache | #5515556e | — |
| constant.character | #5C1F36de | — |
| constant.character.character-class.regexp | #103A17de | — |
| constant.character.escape | #0912A1de | — |
| constant.character.set.regexp | #56226Ade | — |
| constant.language | #66032Ade | — |
| constant.numeric | #47301Ade | — |
| constant.numeric.dec.python | #581C32de | — |
| constant.other.caps.python | #442C13de | — |
| constant.other.character-class.regexp | #4A1C5Dde | — |
| constant.other.character-class.set.regexp | #5E1330de | — |
| constant.other.color.rgb-value | #63203Ade | — |
| constant.other.placeholder | #4B1E5Bde | — |
| constant.other.rgb-value | #591A33de | — |
| constant.regexp | #4E2703de | — |
| constant.sha.git-rebase | #4E2703de | — |
| emphasis | #273610de | — |
| entity.name.class | #191E8Dde | — |
| entity.name.function | #4E351Cde | — |
| entity.name.function.preprocessor | #222775de | — |
| entity.name.function.python | #620C2Ede | — |
| entity.name.label | #0912A1de | — |
| entity.name.namespace | #4B1F5Cde | — |
| entity.name.operator | #212678de | — |
| entity.name.operator.custom-literal | #10373Ade | — |
| entity.name.scope-resolution | #610F2Dde | — |
| entity.name.tag | #4B1F5Cde | — |
| entity.name.tag.css | #5C2371de | — |
| entity.name.type | #043739de | bold |
| entity.name.variable | #530272de | — |
| entity.other.attribute | #63203Ade | — |
| entity.other.attribute-name | #5A1832de | — |
| entity.other.attribute-name.class.css | #712341de | — |
| entity.other.attribute-name.class.mixin.css | #510D6Ade | — |
| entity.other.attribute-name.id | #232874de | — |
| entity.other.attribute-name.id.css | #354F0Dde | — |
| entity.other.attribute-name.parent-selector.css | #191E8Dde | — |
| entity.other.attribute-name.pseudo-class.css | #10373Ade | — |
| entity.other.attribute-name.pseudo-element.css | #273611de | — |
| entity.other.attribute-name.scss | #442C13de | — |
| entity.other.document.begin.yaml | #5514556e | — |
| entity.other.inherited-class | #4E2703de | — |
| header | #703A05de | — |
| invalid | #610E2Fde | — |
| keyword | #5A1832de | bold |
| keyword.codetag.notation.python | #232776de | bold |
| keyword.control | #344F09de | bold |
| keyword.control.anchor.regexp | #4E2703de | bold |
| keyword.control.import.python | #4B1E5Bde | bold |
| keyword.operator | #141B94de | bold |
| keyword.operator.alignas | #03373Ade | bold |
| keyword.operator.alignof | #2C3916de | bold |
| keyword.operator.cast | #374F0Fde | bold |
| keyword.operator.delete | #304018de | bold |
| keyword.operator.documentation.powershell | #5515556e | bold |
| keyword.operator.expression | #232874de | bold |
| keyword.operator.instanceof | #1C2187de | bold |
| keyword.operator.logical.python | #050BA7de | bold |
| keyword.operator.minus.exponent | #1A4447de | bold |
| keyword.operator.negation.regexp | #10373Ade | bold |
| keyword.operator.new | #374F0Fde | bold |
| keyword.operator.noexcept | #4D1A60de | bold |
| keyword.operator.or.regexp | #1C2187de | bold |
| keyword.operator.plus.exponent | #0C5054de | bold |
| keyword.operator.quantifier.regexp | #0A5055de | bold |
| keyword.operator.sizeof | #232876de | bold |
| keyword.operator.typeid | #163739de | bold |
| keyword.operator.wordlike | #0A5416de | bold |
| keyword.other.operator | #4D1862de | bold |
| keyword.other.package.java | #0912A1de | bold |
| keyword.other.unit | #620C2Ede | bold |
| keyword.other.using | #5C1631de | bold |
| markup.bold | #20257Bde | — |
| markup.changed | #442C15de | — |
| markup.deleted | #501266de | — |
| markup.fenced_code.block.markdown | #304018de | — |
| markup.heading | #1C4E24de | — |
| markup.inline.raw | #243706de | — |
| markup.inserted | #222775de | — |
| markup.italic | #304018de | — |
| markup.raw.block.markdown | #501266de | — |
| markup.strikethrough | #472B10de | — |
| markup.underline | #141B94de | — |
| meta.block.c | #5C3D1Fde | — |
| meta.block.c | #6E3B08de | — |
| meta.class.java | #47301Ade | — |
| meta.definition.variable.name | #3A4E1Cde | — |
| meta.diff.header | #25257Bde | — |
| meta.embedded | #0E179Bde | — |
| meta.embedded.assembly | #0A5416de | — |
| meta.function-call.arguments.python | #54391Dde | — |
| meta.function-call.python | #3A4E1Cde | — |
| meta.member.access.python | #163739de | — |
| meta.method.java | #103A17de | — |
| meta.object-literal.key | #243706de | — |
| meta.paragraph.markdown | #442C14de | — |
| meta.preprocessor | #5C1631de | — |
| meta.preprocessor.numeric | #6A223Ede | — |
| meta.preprocessor.string | #191E8Dde | — |
| meta.scope.prerequisites.makefile | #3A4E1Cde | — |
| meta.structure.dictionary.json.comments | #5514556e | — |
| meta.structure.dictionary.key.python | #5C1631de | — |
| meta.structure.dictionary.value.json.comments | #5515556e | — |
| meta.template.expression | #3A4E1Cde | — |
| meta.type.cast.expr | #374F0Fde | bold |
| meta.type.new.expr | #581C32de | bold |
| parameter | #5C3D1Fde | — |
| punctuation.character.set.begin.regexp | #273610de | — |
| punctuation.character.set.end.regexp | #6C3B0Ade | — |
| punctuation.definition.array.begin.json | #3A4E1Cde | — |
| punctuation.definition.character-class.regexp | #66032Ade | — |
| punctuation.definition.comment | #3131316e | — |
| punctuation.definition.comment.json.comments | #5515556e | — |
| punctuation.definition.comment.python | #5515556e | — |
| punctuation.definition.dictionary.begin.json | #354F0Dde | — |
| punctuation.definition.dictionary.end.json | #273610de | — |
| punctuation.definition.group.assertion.regexp | #4D1A60de | — |
| punctuation.definition.group.regexp | #25257Bde | — |
| punctuation.definition.list.begin.json | #0F5053de | — |
| punctuation.definition.list.begin.markdown | #233703de | — |
| punctuation.definition.list.begin.python | #4C2801de | — |
| punctuation.definition.list.end.json | #085054de | — |
| punctuation.definition.list.end.markdown | #54391Dde | — |
| punctuation.definition.list.end.python | #273611de | — |
| punctuation.definition.parameters.begin.python | #5C2371de | — |
| punctuation.definition.parameters.end.bracket.round.java | #610E2Fde | — |
| punctuation.definition.quote.begin.markdown | #5C3D1Fde | — |
| punctuation.definition.tag | #0A5055de | — |
| punctuation.definition.template-expression.begin | #2C3916de | — |
| punctuation.definition.template-expression.end | #10373Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #354F0Dde | — |
| punctuation.section.embedded | #442C15de | — |
| punctuation.section.embedded.begin.php | #5A1832de | — |
| punctuation.section.embedded.end.php | #6E3B08de | — |
| punctuation.terminator.java | #610F2Dde | — |
| source.cmake | #4E2703de | — |
| source.coffee.embedded | #0D3739de | — |
| source.cpp | #530272de | — |
| source.css.less | #0C5417de | — |
| source.groovy.embedded | #1F2381de | — |
| source.java | #222775de | — |
| source.java-properties | #5A1832de | — |
| source.json.comments | #5515556e | — |
| source.makefile | #5C1631de | — |
| source.powershell | #273710de | — |
| source.powershell.variable.other.member | #212678de | — |
| source.python | #2C3916de | — |
| storage | #243706de | — |
| storage.modifier | #0912A1de | — |
| storage.modifier.import.java | #591A33de | — |
| storage.modifier.package.java | #35471Ade | — |
| storage.type | #442C14de | bold |
| storage.type.annotation.groovy | #4A1C5Dde | bold |
| storage.type.annotation.java | #232776de | bold |
| storage.type.boolean.go | #0E179Bde | bold |
| storage.type.byte.go | #703A05de | bold |
| storage.type.cs | #501266de | bold |
| storage.type.error.go | #581C32de | bold |
| storage.type.generic.cs | #442C14de | bold |
| storage.type.generic.groovy | #25257Bde | bold |
| storage.type.generic.java | #610E2Fde | bold |
| storage.type.groovy | #233703de | bold |
| storage.type.java | #670228de | bold |
| storage.type.modifier.cs | #183E40de | bold |
| storage.type.numeric.go | #66032Ade | bold |
| storage.type.object.array.groovy | #212678de | bold |
| storage.type.object.array.java | #5C1F36de | bold |
| storage.type.parameters.groovy | #4E351Cde | bold |
| storage.type.primitive.array.groovy | #4E2703de | bold |
| storage.type.primitive.array.java | #442C14de | bold |
| storage.type.primitive.groovy | #4E1565de | bold |
| storage.type.primitive.java | #2C3916de | bold |
| storage.type.rune.go | #050BA7de | bold |
| storage.type.string.go | #1C2187de | bold |
| storage.type.token.java | #304018de | bold |
| storage.type.uintptr.go | #54391Dde | bold |
| storage.type.variable.cs | #0F531Ade | bold |
| string | #103917de | — |
| string.quoted.docstring.multi.python | #5515556e | — |
| string.regexp | #243706de | — |
| string.tag | #442C14de | — |
| string.value | #712341de | — |
| strong | #442C13de | — |
| support.class | #530B6Ade | — |
| support.constant.color | #530272de | — |
| support.constant.dom | #442C15de | — |
| support.constant.font-name | #10373Ade | — |
| support.constant.handlebars | #703A05de | — |
| support.constant.json | #482A10de | — |
| support.constant.math | #085414de | — |
| support.constant.media | #5E1330de | — |
| support.constant.media-type | #1F2381de | bold |
| support.constant.property-value | #6C3B0Ade | — |
| support.function | #4D1A60de | — |
| support.function.git-rebase | #374F0Fde | — |
| support.other.parenthesis.regexp | #212678de | — |
| support.type | #085054de | bold |
| support.type.property-name | #4B1D5Dde | bold |
| support.type.vendored.property-name | #591A33de | bold |
| support.variable | #5E1330de | — |
| token.debug-token | #1A4721de | — |
| token.error-token | #141B94de | — |
| token.info-token | #141B94de | — |
| token.warn-token | #183E40de | — |
| variable | #232874de | — |
| variable.css | #4E1565de | — |
| variable.language | #1A4721de | — |
| variable.language.wildcard.java | #4B1E5Bde | — |
| variable.other.constant | #243706de | — |
| variable.other.definition.java | #581C32de | — |
| variable.other.enummember | #5E1330de | — |
| variable.other.less | #5C2371de | — |
| variable.other.object.java | #0F531Ade | — |
| variable.other.object.property.java | #232874de | — |
| variable.parameter.c | #510A6Dde | — |
| variable.parameter.function.language.python | #0F5053de | — |
| variable.parameter.java | #1C2187de | — |
| variable.scss | #4A1C5Dde | — |
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}!`;
}