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 | #1437146e | — |
| comment.block.html | #1237126e | — |
| comment.block.java | #1437146e | — |
| comment.block.javadoc.java | #1437146e | — |
| comment.block.powershell | #1437146e | — |
| comment.block.xml | #1237126e | — |
| comment.line.double-slash.c | #1237126e | — |
| comment.line.double-slash.cpp | #1237126e | — |
| comment.line.double-slash.java | #1237126e | — |
| comment.line.double-slash.js | #1437146e | — |
| comment.line.number-sign.makefile | #1237126e | — |
| comment.line.number-sign.python | #1537156e | — |
| comment.line.number-sign.yaml | #1437146e | — |
| comment.line.percentage.erlang | #1537156e | — |
| comment.line.powershell | #1437146e | — |
| comment.source.cmake | #1237126e | — |
| comment.source.cmakecache | #1437146e | — |
| constant.character | #531F1Fde | — |
| constant.character.character-class.regexp | #2F1389de | — |
| constant.character.escape | #57104Ade | — |
| constant.character.set.regexp | #353014de | — |
| constant.language | #35265Ede | — |
| constant.numeric | #692929de | — |
| constant.numeric.dec.python | #05381Ede | — |
| constant.other.caps.python | #332464de | — |
| constant.other.character-class.regexp | #4E1D45de | — |
| constant.other.character-class.set.regexp | #362862de | — |
| constant.other.color.rgb-value | #342560de | — |
| constant.other.placeholder | #620E0Ede | — |
| constant.other.rgb-value | #5B2652de | — |
| constant.regexp | #382F02de | — |
| constant.sha.git-rebase | #591A1Ade | — |
| emphasis | #123248de | — |
| entity.name.class | #332464de | — |
| entity.name.function | #531F1Fde | — |
| entity.name.function.preprocessor | #133348de | — |
| entity.name.function.python | #4E2323de | — |
| entity.name.label | #123248de | — |
| entity.name.namespace | #4E2222de | — |
| entity.name.operator | #133348de | — |
| entity.name.operator.custom-literal | #504611de | — |
| entity.name.scope-resolution | #300A91de | — |
| entity.name.tag | #52460Cde | — |
| entity.name.tag.css | #4E4623de | — |
| entity.name.type | #1F3518de | bold |
| entity.name.variable | #1C3613de | — |
| entity.other.attribute | #622828de | — |
| entity.other.attribute-name | #3A351Cde | — |
| entity.other.attribute-name.class.css | #35265Ede | — |
| entity.other.attribute-name.class.mixin.css | #35265Ede | — |
| entity.other.attribute-name.id | #383005de | — |
| entity.other.attribute-name.id.css | #3C2B71de | — |
| entity.other.attribute-name.parent-selector.css | #2C0C94de | — |
| entity.other.attribute-name.pseudo-class.css | #57104Ade | — |
| entity.other.attribute-name.pseudo-element.css | #02381Dde | — |
| entity.other.attribute-name.scss | #620E0Ede | — |
| entity.other.document.begin.yaml | #1437146e | — |
| entity.other.inherited-class | #205110de | — |
| header | #113151de | — |
| invalid | #591A1Ade | — |
| keyword | #362862de | bold |
| keyword.codetag.notation.python | #501A49de | bold |
| keyword.control | #215111de | bold |
| keyword.control.anchor.regexp | #332464de | bold |
| keyword.control.import.python | #133348de | bold |
| keyword.operator | #311A7Ede | bold |
| keyword.operator.alignas | #69295Fde | bold |
| keyword.operator.alignof | #35216Bde | bold |
| keyword.operator.cast | #4E2222de | bold |
| keyword.operator.delete | #622858de | bold |
| keyword.operator.documentation.powershell | #1437146e | bold |
| keyword.operator.expression | #382F02de | bold |
| keyword.operator.instanceof | #284A62de | bold |
| keyword.operator.logical.python | #2D4E23de | bold |
| keyword.operator.minus.exponent | #591A1Ade | bold |
| keyword.operator.negation.regexp | #311A7Ede | bold |
| keyword.operator.new | #34275Dde | bold |
| keyword.operator.noexcept | #1D510Cde | bold |
| keyword.operator.or.regexp | #133348de | bold |
| keyword.operator.plus.exponent | #1D3614de | bold |
| keyword.operator.quantifier.regexp | #501A49de | bold |
| keyword.operator.sizeof | #113805de | bold |
| keyword.operator.typeid | #5D1515de | bold |
| keyword.operator.wordlike | #1E402Fde | bold |
| keyword.other.operator | #692929de | bold |
| keyword.other.package.java | #3A351Cde | bold |
| keyword.other.unit | #1E3240de | bold |
| keyword.other.using | #5D004Fde | bold |
| markup.bold | #351E72de | — |
| markup.changed | #692929de | — |
| markup.deleted | #542424de | — |
| markup.fenced_code.block.markdown | #353013de | — |
| markup.heading | #524610de | — |
| markup.inline.raw | #5D004Fde | — |
| markup.inserted | #113805de | — |
| markup.italic | #105130de | — |
| markup.raw.block.markdown | #35216Bde | — |
| markup.strikethrough | #34275Dde | — |
| markup.underline | #4C1E44de | — |
| meta.block.c | #4E1D45de | — |
| meta.block.c | #0C512Ede | — |
| meta.class.java | #4E1D45de | — |
| meta.definition.variable.name | #2C0C94de | — |
| meta.diff.header | #193613de | — |
| meta.embedded | #094975de | — |
| meta.embedded.assembly | #4E4623de | — |
| meta.function-call.arguments.python | #115131de | — |
| meta.function-call.python | #3A351Cde | — |
| meta.member.access.python | #2A4721de | — |
| meta.method.java | #622858de | — |
| meta.object-literal.key | #620E0Ede | — |
| meta.paragraph.markdown | #5D1515de | — |
| meta.preprocessor | #213747de | — |
| meta.preprocessor.numeric | #193613de | — |
| meta.preprocessor.string | #1C3613de | — |
| meta.scope.prerequisites.makefile | #105130de | — |
| meta.structure.dictionary.json.comments | #1437146e | — |
| meta.structure.dictionary.key.python | #57104Ade | — |
| meta.structure.dictionary.value.json.comments | #1437146e | — |
| meta.template.expression | #514613de | — |
| meta.type.cast.expr | #143626de | bold |
| meta.type.new.expr | #27401Ede | bold |
| parameter | #284A62de | — |
| punctuation.character.set.begin.regexp | #622858de | — |
| punctuation.character.set.end.regexp | #52460Cde | — |
| punctuation.definition.array.begin.json | #542424de | — |
| punctuation.definition.character-class.regexp | #233C4Ede | — |
| punctuation.definition.comment | #1237126e | — |
| punctuation.definition.comment.json.comments | #1537156e | — |
| punctuation.definition.comment.python | #1437146e | — |
| punctuation.definition.dictionary.begin.json | #501A49de | — |
| punctuation.definition.dictionary.end.json | #34275Dde | — |
| punctuation.definition.group.assertion.regexp | #514613de | — |
| punctuation.definition.group.regexp | #244054de | — |
| punctuation.definition.list.begin.json | #504611de | — |
| punctuation.definition.list.begin.markdown | #332464de | — |
| punctuation.definition.list.begin.python | #2F1389de | — |
| punctuation.definition.list.end.json | #620E0Ede | — |
| punctuation.definition.list.end.markdown | #183527de | — |
| punctuation.definition.list.end.python | #173344de | — |
| punctuation.definition.parameters.begin.python | #205110de | — |
| punctuation.definition.parameters.end.bracket.round.java | #522020de | — |
| punctuation.definition.quote.begin.markdown | #27401Ede | — |
| punctuation.definition.tag | #205110de | — |
| punctuation.definition.template-expression.begin | #5D004Fde | — |
| punctuation.definition.template-expression.end | #115131de | — |
| punctuation.section.class.begin.bracket.curly.java | #113805de | — |
| punctuation.section.embedded | #115131de | — |
| punctuation.section.embedded.begin.php | #35216Bde | — |
| punctuation.section.embedded.end.php | #5B2652de | — |
| punctuation.terminator.java | #5D004Fde | — |
| source.cmake | #403B1Ede | — |
| source.coffee.embedded | #133625de | — |
| source.cpp | #26455Bde | — |
| source.css.less | #193613de | — |
| source.groovy.embedded | #17370Dde | — |
| source.java | #123248de | — |
| source.java-properties | #342560de | — |
| source.json.comments | #1437146e | — |
| source.makefile | #501A49de | — |
| source.powershell | #143626de | — |
| source.powershell.variable.other.member | #5D004Fde | — |
| source.python | #5C044Dde | — |
| storage | #382F02de | — |
| storage.modifier | #542424de | — |
| storage.modifier.import.java | #214734de | — |
| storage.modifier.package.java | #4E4623de | — |
| storage.type | #591046de | bold |
| storage.type.annotation.groovy | #522020de | bold |
| storage.type.annotation.java | #094975de | bold |
| storage.type.boolean.go | #382F02de | bold |
| storage.type.byte.go | #670404de | bold |
| storage.type.cs | #522020de | bold |
| storage.type.error.go | #351E72de | bold |
| storage.type.generic.cs | #353013de | bold |
| storage.type.generic.groovy | #0C512Ede | bold |
| storage.type.generic.java | #213747de | bold |
| storage.type.groovy | #531649de | bold |
| storage.type.java | #52460Cde | bold |
| storage.type.modifier.cs | #4E2323de | bold |
| storage.type.numeric.go | #284A62de | bold |
| storage.type.object.array.groovy | #1A3244de | bold |
| storage.type.object.array.java | #4E1D45de | bold |
| storage.type.parameters.groovy | #27401Ede | bold |
| storage.type.primitive.array.groovy | #5B2652de | bold |
| storage.type.primitive.array.java | #35265Ede | bold |
| storage.type.primitive.groovy | #1C3613de | bold |
| storage.type.primitive.java | #342560de | bold |
| storage.type.rune.go | #35216Bde | bold |
| storage.type.string.go | #094975de | bold |
| storage.type.token.java | #215111de | bold |
| storage.type.uintptr.go | #620E0Ede | bold |
| storage.type.variable.cs | #610F0Fde | bold |
| string | #205110de | — |
| string.quoted.docstring.multi.python | #1437146e | — |
| string.regexp | #351E72de | — |
| string.tag | #514613de | — |
| string.value | #35265Ede | — |
| strong | #531F1Fde | — |
| support.class | #143626de | — |
| support.constant.color | #52460Cde | — |
| support.constant.dom | #193613de | — |
| support.constant.font-name | #35265Ede | — |
| support.constant.handlebars | #094975de | — |
| support.constant.json | #57104Ade | — |
| support.constant.math | #351E72de | — |
| support.constant.media | #5B2626de | — |
| support.constant.media-type | #353018de | bold |
| support.constant.property-value | #353018de | — |
| support.function | #52460Cde | — |
| support.function.git-rebase | #383005de | — |
| support.other.parenthesis.regexp | #2A4721de | — |
| support.type | #3C2B71de | bold |
| support.type.property-name | #105130de | bold |
| support.type.vendored.property-name | #214734de | bold |
| support.variable | #69295Fde | — |
| token.debug-token | #133625de | — |
| token.error-token | #27401Ede | — |
| token.info-token | #342560de | — |
| token.warn-token | #053255de | — |
| variable | #3C2B71de | — |
| variable.css | #17370Dde | — |
| variable.language | #1D3614de | — |
| variable.language.wildcard.java | #504611de | — |
| variable.other.constant | #3A351Cde | — |
| variable.other.definition.java | #383005de | — |
| variable.other.enummember | #5C044Dde | — |
| variable.other.less | #591A1Ade | — |
| variable.other.object.java | #33265Dde | — |
| variable.other.object.property.java | #0C512Ede | — |
| variable.parameter.c | #514613de | — |
| variable.parameter.function.language.python | #3C2B71de | — |
| variable.parameter.java | #531F1Fde | — |
| variable.scss | #2C0C94de | — |
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}!`;
}