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 | #1734346e | — |
| comment.block.html | #1734346e | — |
| comment.block.java | #1734346e | — |
| comment.block.javadoc.java | #1834346e | — |
| comment.block.powershell | #1635356e | — |
| comment.block.xml | #1734346e | — |
| comment.line.double-slash.c | #1834346e | — |
| comment.line.double-slash.cpp | #1635356e | — |
| comment.line.double-slash.java | #1834346e | — |
| comment.line.double-slash.js | #1734346e | — |
| comment.line.number-sign.makefile | #1734346e | — |
| comment.line.number-sign.python | #1734346e | — |
| comment.line.number-sign.yaml | #1834346e | — |
| comment.line.percentage.erlang | #1734346e | — |
| comment.line.powershell | #1734346e | — |
| comment.source.cmake | #1834346e | — |
| comment.source.cmakecache | #1834346e | — |
| constant.character | #03380Fde | — |
| constant.character.character-class.regexp | #1E4349de | — |
| constant.character.escape | #6A3A09de | — |
| constant.character.set.regexp | #12511Fde | — |
| constant.language | #12343Ade | — |
| constant.numeric | #104D58de | — |
| constant.numeric.dec.python | #4F0E61de | — |
| constant.other.caps.python | #163439de | — |
| constant.other.character-class.regexp | #6A3A0Bde | — |
| constant.other.character-class.set.regexp | #304E0Ade | — |
| constant.other.color.rgb-value | #252570de | — |
| constant.other.placeholder | #520368de | — |
| constant.other.rgb-value | #0A0AA4de | — |
| constant.regexp | #4C145Dde | — |
| constant.sha.git-rebase | #4C145Dde | — |
| emphasis | #293518de | — |
| entity.name.class | #4F0F62de | — |
| entity.name.function | #0D0D9Ede | — |
| entity.name.function.preprocessor | #520368de | — |
| entity.name.function.python | #632873de | — |
| entity.name.label | #243410de | — |
| entity.name.namespace | #6A3A0Bde | — |
| entity.name.operator | #422F1Dde | — |
| entity.name.operator.custom-literal | #49341Ede | — |
| entity.name.scope-resolution | #5D1025de | — |
| entity.name.tag | #4A1A56de | — |
| entity.name.tag.css | #324E0Fde | — |
| entity.name.type | #03380Fde | bold |
| entity.name.variable | #491C54de | — |
| entity.other.attribute | #12333Cde | — |
| entity.other.attribute-name | #0C4D59de | — |
| entity.other.attribute-name.class.css | #64031Fde | — |
| entity.other.attribute-name.class.mixin.css | #482704de | — |
| entity.other.attribute-name.id | #0A0AA4de | — |
| entity.other.attribute-name.id.css | #5E2434de | — |
| entity.other.attribute-name.parent-selector.css | #26266Dde | — |
| entity.other.attribute-name.pseudo-class.css | #1E4928de | — |
| entity.other.attribute-name.pseudo-element.css | #304E0Ade | — |
| entity.other.attribute-name.scss | #5D1025de | — |
| entity.other.document.begin.yaml | #1834346e | — |
| entity.other.inherited-class | #451F50de | — |
| header | #432A11de | — |
| invalid | #5F0E25de | — |
| keyword | #203503de | bold |
| keyword.codetag.notation.python | #573C22de | bold |
| keyword.control | #12361Ade | bold |
| keyword.control.anchor.regexp | #64031Fde | bold |
| keyword.control.import.python | #104D58de | bold |
| keyword.operator | #5F0E1Fde | bold |
| keyword.operator.alignas | #344D12de | bold |
| keyword.operator.alignof | #5D1025de | bold |
| keyword.operator.cast | #5A1529de | bold |
| keyword.operator.delete | #4C145Dde | bold |
| keyword.operator.documentation.powershell | #1734346e | bold |
| keyword.operator.expression | #58182Ade | bold |
| keyword.operator.instanceof | #26266Dde | bold |
| keyword.operator.logical.python | #26266Bde | bold |
| keyword.operator.minus.exponent | #0D3715de | bold |
| keyword.operator.negation.regexp | #503820de | bold |
| keyword.operator.new | #1A1A8Bde | bold |
| keyword.operator.noexcept | #26266Cde | bold |
| keyword.operator.or.regexp | #11511Ede | bold |
| keyword.operator.plus.exponent | #461F50de | bold |
| keyword.operator.quantifier.regexp | #461F50de | bold |
| keyword.operator.sizeof | #204950de | bold |
| keyword.operator.typeid | #204950de | bold |
| keyword.operator.wordlike | #4F0F62de | bold |
| keyword.other.operator | #551A2Dde | bold |
| keyword.other.package.java | #03380Fde | bold |
| keyword.other.unit | #50202Ede | bold |
| keyword.other.using | #1D3D42de | bold |
| markup.bold | #12511Fde | — |
| markup.changed | #324E0Fde | — |
| markup.deleted | #520368de | — |
| markup.fenced_code.block.markdown | #12511Fde | — |
| markup.heading | #133439de | — |
| markup.inline.raw | #26266Dde | — |
| markup.inserted | #5A1529de | — |
| markup.italic | #491C54de | — |
| markup.raw.block.markdown | #243410de | — |
| markup.strikethrough | #491C54de | — |
| markup.underline | #432A11de | — |
| meta.block.c | #27276Cde | — |
| meta.block.c | #503820de | — |
| meta.class.java | #094D59de | — |
| meta.definition.variable.name | #573C22de | — |
| meta.diff.header | #26266Cde | — |
| meta.embedded | #6C273Ade | — |
| meta.embedded.assembly | #501F2Cde | — |
| meta.function-call.arguments.python | #324E0Fde | — |
| meta.function-call.python | #4B1858de | — |
| meta.member.access.python | #51245Ede | — |
| meta.method.java | #27276Cde | — |
| meta.object-literal.key | #03380Fde | — |
| meta.paragraph.markdown | #4C145Dde | — |
| meta.preprocessor | #0D511Bde | — |
| meta.preprocessor.numeric | #50202Ede | — |
| meta.preprocessor.string | #133439de | — |
| meta.scope.prerequisites.makefile | #03380Fde | — |
| meta.structure.dictionary.json.comments | #1734346e | — |
| meta.structure.dictionary.key.python | #1D3D42de | — |
| meta.structure.dictionary.value.json.comments | #1734346e | — |
| meta.template.expression | #402B18de | — |
| meta.type.cast.expr | #5D276Cde | bold |
| meta.type.new.expr | #432A11de | bold |
| parameter | #5D1025de | — |
| punctuation.character.set.begin.regexp | #5F0E25de | — |
| punctuation.character.set.end.regexp | #20207Dde | — |
| punctuation.definition.array.begin.json | #412A13de | — |
| punctuation.definition.character-class.regexp | #2D3C1Ade | — |
| punctuation.definition.comment | #1834346e | — |
| punctuation.definition.comment.json.comments | #1734346e | — |
| punctuation.definition.comment.python | #1734346e | — |
| punctuation.definition.dictionary.begin.json | #5F0E25de | — |
| punctuation.definition.dictionary.end.json | #252570de | — |
| punctuation.definition.group.assertion.regexp | #324E0Ede | — |
| punctuation.definition.group.regexp | #0D4D58de | — |
| punctuation.definition.list.begin.json | #412A16de | — |
| punctuation.definition.list.begin.markdown | #0A0AA4de | — |
| punctuation.definition.list.begin.python | #1D3D42de | — |
| punctuation.definition.list.end.json | #0D0D9Ede | — |
| punctuation.definition.list.end.markdown | #0D3715de | — |
| punctuation.definition.list.end.python | #4B2257de | — |
| punctuation.definition.parameters.begin.python | #572565de | — |
| punctuation.definition.parameters.end.bracket.round.java | #095218de | — |
| punctuation.definition.quote.begin.markdown | #095218de | — |
| punctuation.definition.tag | #503820de | — |
| punctuation.definition.template-expression.begin | #204950de | — |
| punctuation.definition.template-expression.end | #632873de | — |
| punctuation.section.class.begin.bracket.curly.java | #1A3C22de | — |
| punctuation.section.embedded | #1A373Cde | — |
| punctuation.section.embedded.begin.php | #163439de | — |
| punctuation.section.embedded.end.php | #6C3907de | — |
| punctuation.terminator.java | #58182Ade | — |
| source.cmake | #27276Cde | — |
| source.coffee.embedded | #26266Dde | — |
| source.cpp | #402B18de | — |
| source.css.less | #501F2Cde | — |
| source.groovy.embedded | #1E4349de | — |
| source.java | #32421Dde | — |
| source.java-properties | #252570de | — |
| source.json.comments | #1734346e | — |
| source.makefile | #334D11de | — |
| source.powershell | #32421Dde | — |
| source.powershell.variable.other.member | #12361Ade | — |
| source.python | #252570de | — |
| storage | #253413de | — |
| storage.modifier | #334D11de | — |
| storage.modifier.import.java | #4F0E61de | — |
| storage.modifier.package.java | #21217Cde | — |
| storage.type | #21217Cde | bold |
| storage.type.annotation.groovy | #4F0F62de | bold |
| storage.type.annotation.java | #0A0AA4de | bold |
| storage.type.boolean.go | #0D0D9Ede | bold |
| storage.type.byte.go | #163439de | bold |
| storage.type.cs | #32421Dde | bold |
| storage.type.error.go | #4F0E61de | bold |
| storage.type.generic.cs | #1A373Cde | bold |
| storage.type.generic.groovy | #334D11de | bold |
| storage.type.generic.java | #293518de | bold |
| storage.type.groovy | #491C54de | bold |
| storage.type.java | #5F0E25de | bold |
| storage.type.modifier.cs | #482704de | bold |
| storage.type.numeric.go | #18351Ede | bold |
| storage.type.object.array.groovy | #5A1529de | bold |
| storage.type.object.array.java | #03380Dde | bold |
| storage.type.parameters.groovy | #213506de | bold |
| storage.type.primitive.array.groovy | #58182Ade | bold |
| storage.type.primitive.array.java | #6A3A0Bde | bold |
| storage.type.primitive.groovy | #412A13de | bold |
| storage.type.primitive.java | #0D4D58de | bold |
| storage.type.rune.go | #451F50de | bold |
| storage.type.string.go | #5D1025de | bold |
| storage.type.token.java | #491C54de | bold |
| storage.type.uintptr.go | #482704de | bold |
| storage.type.variable.cs | #32421Dde | bold |
| string | #4F0E61de | — |
| string.quoted.docstring.multi.python | #1734346e | — |
| string.regexp | #3F2B16de | — |
| string.tag | #0F511Dde | — |
| string.value | #412A13de | — |
| strong | #4F0F62de | — |
| support.class | #5A1529de | — |
| support.constant.color | #0D3715de | — |
| support.constant.dom | #520368de | — |
| support.constant.font-name | #630320de | — |
| support.constant.handlebars | #324E0Fde | — |
| support.constant.json | #1A1A8Bde | — |
| support.constant.math | #572565de | — |
| support.constant.media | #482704de | — |
| support.constant.media-type | #26266Cde | bold |
| support.constant.property-value | #104D58de | — |
| support.function | #37491Ede | — |
| support.function.git-rebase | #26266Dde | — |
| support.other.parenthesis.regexp | #0B511Ade | — |
| support.type | #50202Ede | bold |
| support.type.property-name | #4A1A56de | bold |
| support.type.vendored.property-name | #5F0E25de | bold |
| support.variable | #572565de | — |
| token.debug-token | #03353Cde | — |
| token.error-token | #0B511Ade | — |
| token.info-token | #095218de | — |
| token.warn-token | #501F2Cde | — |
| variable | #0D0D9Ede | — |
| variable.css | #5D1025de | — |
| variable.language | #26266Bde | — |
| variable.language.wildcard.java | #324E0Cde | — |
| variable.other.constant | #0505A4de | — |
| variable.other.definition.java | #0A0AA4de | — |
| variable.other.enummember | #151594de | — |
| variable.other.less | #26266Bde | — |
| variable.other.object.java | #0505A4de | — |
| variable.other.object.property.java | #094D59de | — |
| variable.parameter.c | #243410de | — |
| variable.parameter.function.language.python | #0D0D9Ede | — |
| variable.parameter.java | #324E0Ede | — |
| variable.scss | #5D1025de | — |
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}!`;
}