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 | #4E4E4E6e | — |
| comment.block.html | #4C4C4C6e | — |
| comment.block.java | #4D4D4D6e | — |
| comment.block.javadoc.java | #4C4C4C6e | — |
| comment.block.powershell | #4D4D4D6e | — |
| comment.block.xml | #4D4D4D6e | — |
| comment.line.double-slash.c | #4D4D4D6e | — |
| comment.line.double-slash.cpp | #4D4D4D6e | — |
| comment.line.double-slash.java | #4E4E4E6e | — |
| comment.line.double-slash.js | #4D4D4D6e | — |
| comment.line.number-sign.makefile | #4E4E4E6e | — |
| comment.line.number-sign.python | #4C4C4C6e | — |
| comment.line.number-sign.yaml | #4D4D4D6e | — |
| comment.line.percentage.erlang | #4D4D4D6e | — |
| comment.line.powershell | #4D4D4D6e | — |
| comment.source.cmake | #4D4D4D6e | — |
| comment.source.cmakecache | #4D4D4D6e | — |
| constant.character | #295922de | — |
| constant.character.character-class.regexp | #0B5A42de | — |
| constant.character.escape | #6F2758de | — |
| constant.character.set.regexp | #135B09de | — |
| constant.language | #612824de | — |
| constant.numeric | #0A5941de | — |
| constant.numeric.dec.python | #51510Bde | — |
| constant.other.caps.python | #295081de | — |
| constant.other.character-class.regexp | #532C95de | — |
| constant.other.character-class.set.regexp | #145B0Ade | — |
| constant.other.color.rgb-value | #243E61de | — |
| constant.other.placeholder | #96086Ade | — |
| constant.other.rgb-value | #155A0Bde | — |
| constant.regexp | #5F2DB4de | — |
| constant.sha.git-rebase | #9E140Bde | — |
| emphasis | #135B08de | — |
| entity.name.class | #0B4B9Ede | — |
| entity.name.function | #0B5941de | — |
| entity.name.function.preprocessor | #9D1209de | — |
| entity.name.function.python | #883029de | — |
| entity.name.label | #155A0Bde | — |
| entity.name.namespace | #502B8Dde | — |
| entity.name.operator | #960A6Ade | — |
| entity.name.operator.custom-literal | #7E2963de | — |
| entity.name.scope-resolution | #27466Fde | — |
| entity.name.tag | #0B4A9Bde | — |
| entity.name.tag.css | #602EB0de | — |
| entity.name.type | #0A553Dde | bold |
| entity.name.variable | #51510Ade | — |
| entity.other.attribute | #9F1107de | — |
| entity.other.attribute-name | #3F3F1Bde | — |
| entity.other.attribute-name.class.css | #883029de | — |
| entity.other.attribute-name.class.mixin.css | #09553Dde | — |
| entity.other.attribute-name.id | #5A2DA5de | — |
| entity.other.attribute-name.id.css | #A00E05de | — |
| entity.other.attribute-name.parent-selector.css | #243E61de | — |
| entity.other.attribute-name.pseudo-class.css | #0B3C7Dde | — |
| entity.other.attribute-name.pseudo-element.css | #284A76de | — |
| entity.other.attribute-name.scss | #852A6Ade | — |
| entity.other.document.begin.yaml | #4C4C4C6e | — |
| entity.other.inherited-class | #083979de | — |
| header | #50500Ade | — |
| invalid | #A00E05de | — |
| keyword | #15590Bde | bold |
| keyword.codetag.notation.python | #51510Ade | bold |
| keyword.control | #155B0Bde | bold |
| keyword.control.anchor.regexp | #50500Ade | bold |
| keyword.control.import.python | #215745de | bold |
| keyword.operator | #50500Ade | bold |
| keyword.operator.alignas | #872A68de | bold |
| keyword.operator.alignof | #9E140Bde | bold |
| keyword.operator.cast | #9E130Ade | bold |
| keyword.operator.delete | #5703E4de | bold |
| keyword.operator.documentation.powershell | #4C4C4C6e | bold |
| keyword.operator.expression | #7E2963de | bold |
| keyword.operator.instanceof | #5D2DADde | bold |
| keyword.operator.logical.python | #515107de | bold |
| keyword.operator.minus.exponent | #0B4B9Ede | bold |
| keyword.operator.negation.regexp | #0A3D80de | bold |
| keyword.operator.new | #8B2E2Bde | bold |
| keyword.operator.noexcept | #4F4F1Fde | bold |
| keyword.operator.or.regexp | #97086Ade | bold |
| keyword.operator.plus.exponent | #892F2Ade | bold |
| keyword.operator.quantifier.regexp | #97076Ade | bold |
| keyword.operator.sizeof | #50500Ade | bold |
| keyword.operator.typeid | #50500Ade | bold |
| keyword.operator.wordlike | #155B0Bde | bold |
| keyword.other.operator | #892F2Ade | bold |
| keyword.other.package.java | #51510Ade | bold |
| keyword.other.unit | #8B2E2Bde | bold |
| keyword.other.using | #9F1108de | bold |
| markup.bold | #51510Bde | — |
| markup.changed | #215343de | — |
| markup.deleted | #88302Ade | — |
| markup.fenced_code.block.markdown | #275721de | — |
| markup.heading | #51510Ade | — |
| markup.inline.raw | #284A76de | — |
| markup.inserted | #950B6Ade | — |
| markup.italic | #0B5A42de | — |
| markup.raw.block.markdown | #084F39de | — |
| markup.strikethrough | #682925de | — |
| markup.underline | #50500Ade | — |
| meta.block.c | #515108de | — |
| meta.block.c | #50500Ade | — |
| meta.class.java | #515109de | — |
| meta.definition.variable.name | #243E61de | — |
| meta.diff.header | #5D2DADde | — |
| meta.embedded | #842A67de | — |
| meta.embedded.assembly | #0A3873de | — |
| meta.function-call.arguments.python | #51510Bde | — |
| meta.function-call.python | #0B4796de | — |
| meta.member.access.python | #50500Ade | — |
| meta.method.java | #852A69de | — |
| meta.object-literal.key | #0B438Cde | — |
| meta.paragraph.markdown | #135B09de | — |
| meta.preprocessor | #0B4B9Ede | — |
| meta.preprocessor.numeric | #275321de | — |
| meta.preprocessor.string | #85302Ade | — |
| meta.scope.prerequisites.makefile | #093977de | — |
| meta.structure.dictionary.json.comments | #4E4E4E6e | — |
| meta.structure.dictionary.key.python | #892F2Ade | — |
| meta.structure.dictionary.value.json.comments | #4D4D4D6e | — |
| meta.template.expression | #9F1107de | — |
| meta.type.cast.expr | #0B5941de | bold |
| meta.type.new.expr | #135B09de | bold |
| parameter | #0A3D80de | — |
| punctuation.character.set.begin.regexp | #505009de | — |
| punctuation.character.set.end.regexp | #14590Bde | — |
| punctuation.definition.array.begin.json | #8B302Bde | — |
| punctuation.definition.character-class.regexp | #295081de | — |
| punctuation.definition.comment | #4C4C4C6e | — |
| punctuation.definition.comment.json.comments | #4E4E4E6e | — |
| punctuation.definition.comment.python | #4C4C4C6e | — |
| punctuation.definition.dictionary.begin.json | #515109de | — |
| punctuation.definition.dictionary.end.json | #452876de | — |
| punctuation.definition.group.assertion.regexp | #950969de | — |
| punctuation.definition.group.regexp | #0B4A9Bde | — |
| punctuation.definition.list.begin.json | #45451Dde | — |
| punctuation.definition.list.begin.markdown | #0B3771de | — |
| punctuation.definition.list.begin.python | #6F2B27de | — |
| punctuation.definition.list.end.json | #0A5941de | — |
| punctuation.definition.list.end.markdown | #215343de | — |
| punctuation.definition.list.end.python | #9E0F06de | — |
| punctuation.definition.parameters.begin.python | #135C07de | — |
| punctuation.definition.parameters.end.bracket.round.java | #97066Ade | — |
| punctuation.definition.quote.begin.markdown | #083979de | — |
| punctuation.definition.tag | #275721de | — |
| punctuation.definition.template-expression.begin | #515109de | — |
| punctuation.definition.template-expression.end | #0A3D80de | — |
| punctuation.section.class.begin.bracket.curly.java | #0B3C7Dde | — |
| punctuation.section.embedded | #682553de | — |
| punctuation.section.embedded.begin.php | #960568de | — |
| punctuation.section.embedded.end.php | #294F7Fde | — |
| punctuation.terminator.java | #5F2DB6de | — |
| source.cmake | #5700E5de | — |
| source.coffee.embedded | #0B4796de | — |
| source.cpp | #0B5941de | — |
| source.css.less | #49297Ede | — |
| source.groovy.embedded | #0B4186de | — |
| source.java | #135B08de | — |
| source.java-properties | #950B6Ade | — |
| source.json.comments | #4E4E4E6e | — |
| source.makefile | #50500Ade | — |
| source.powershell | #294F7Fde | — |
| source.powershell.variable.other.member | #505009de | — |
| source.python | #51510Bde | — |
| storage | #50500Ade | — |
| storage.modifier | #0B5940de | — |
| storage.modifier.import.java | #872A68de | — |
| storage.modifier.package.java | #842A67de | — |
| storage.type | #215343de | bold |
| storage.type.annotation.groovy | #145A09de | bold |
| storage.type.annotation.java | #950A69de | bold |
| storage.type.boolean.go | #5F2DB1de | bold |
| storage.type.byte.go | #96086Ade | bold |
| storage.type.cs | #612824de | bold |
| storage.type.error.go | #51510Ade | bold |
| storage.type.generic.cs | #9E130Ade | bold |
| storage.type.generic.groovy | #0A5A41de | bold |
| storage.type.generic.java | #51510Ade | bold |
| storage.type.groovy | #295081de | bold |
| storage.type.java | #8B302Bde | bold |
| storage.type.modifier.cs | #5700E5de | bold |
| storage.type.numeric.go | #852A68de | bold |
| storage.type.object.array.groovy | #9E140Ade | bold |
| storage.type.object.array.java | #155A0Bde | bold |
| storage.type.parameters.groovy | #0A5940de | bold |
| storage.type.primitive.array.groovy | #612824de | bold |
| storage.type.primitive.array.java | #15590Bde | bold |
| storage.type.primitive.groovy | #9E130Ade | bold |
| storage.type.primitive.java | #960B6Ade | bold |
| storage.type.rune.go | #0B4796de | bold |
| storage.type.string.go | #96086Ade | bold |
| storage.type.token.java | #294E7Ede | bold |
| storage.type.uintptr.go | #0A5840de | bold |
| storage.type.variable.cs | #244C1Fde | bold |
| string | #0A3978de | — |
| string.quoted.docstring.multi.python | #4D4D4D6e | — |
| string.regexp | #842A67de | — |
| string.tag | #852A6Ade | — |
| string.value | #14590Bde | — |
| strong | #6F2B27de | — |
| support.class | #960B6Ade | — |
| support.constant.color | #145B0Ade | — |
| support.constant.dom | #8B302Bde | — |
| support.constant.font-name | #7E2963de | — |
| support.constant.handlebars | #275721de | — |
| support.constant.json | #762D28de | — |
| support.constant.math | #5D2DADde | — |
| support.constant.media | #4F4F1Fde | — |
| support.constant.media-type | #0B4796de | bold |
| support.constant.property-value | #0A5941de | — |
| support.function | #0B4A9Bde | — |
| support.function.git-rebase | #842968de | — |
| support.other.parenthesis.regexp | #9E140Ade | — |
| support.type | #612824de | bold |
| support.type.property-name | #5703E4de | bold |
| support.type.vendored.property-name | #49297Ede | bold |
| support.variable | #8B302Bde | — |
| token.debug-token | #960B6Ade | — |
| token.error-token | #5702E4de | — |
| token.info-token | #452876de | — |
| token.warn-token | #49297Ede | — |
| variable | #244C1Fde | — |
| variable.css | #505009de | — |
| variable.language | #15590Bde | — |
| variable.language.wildcard.java | #51510Ade | — |
| variable.other.constant | #45451Dde | — |
| variable.other.definition.java | #295081de | — |
| variable.other.enummember | #960B6Ade | — |
| variable.other.less | #51510Ade | — |
| variable.other.object.java | #51510Ade | — |
| variable.other.object.property.java | #093977de | — |
| variable.parameter.c | #27466Fde | — |
| variable.parameter.function.language.python | #215343de | — |
| variable.parameter.java | #515109de | — |
| variable.scss | #0B5941de | — |
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}!`;
}