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 | #7B35356e | — |
| comment.block.html | #7E33336e | — |
| comment.block.java | #7F31316e | — |
| comment.block.javadoc.java | #7F33336e | — |
| comment.block.powershell | #7F33336e | — |
| comment.block.xml | #7B35356e | — |
| comment.line.double-slash.c | #7F31316e | — |
| comment.line.double-slash.cpp | #7B35356e | — |
| comment.line.double-slash.java | #7F31316e | — |
| comment.line.double-slash.js | #7E33336e | — |
| comment.line.number-sign.makefile | #7F31316e | — |
| comment.line.number-sign.python | #7E33336e | — |
| comment.line.number-sign.yaml | #7E33336e | — |
| comment.line.percentage.erlang | #7B35356e | — |
| comment.line.powershell | #7F31316e | — |
| comment.source.cmake | #7B35356e | — |
| comment.source.cmakecache | #7F33336e | — |
| constant.character | #793724de | — |
| constant.character.character-class.regexp | #5C2C1Fde | — |
| constant.character.escape | #485009de | — |
| constant.character.set.regexp | #85255Bde | — |
| constant.language | #6728A3de | — |
| constant.numeric | #0A580Ade | — |
| constant.numeric.dec.python | #095347de | — |
| constant.other.caps.python | #485006de | — |
| constant.other.character-class.regexp | #095347de | — |
| constant.other.character-class.set.regexp | #1D551Dde | — |
| constant.other.color.rgb-value | #1D541Dde | — |
| constant.other.placeholder | #095709de | — |
| constant.other.rgb-value | #940A56de | — |
| constant.regexp | #184018de | — |
| constant.sha.git-rebase | #095709de | — |
| emphasis | #0A570Ade | — |
| entity.name.class | #6607C6de | — |
| entity.name.function | #950655de | — |
| entity.name.function.preprocessor | #6729A5de | — |
| entity.name.function.python | #71234Ede | — |
| entity.name.label | #6500CBde | — |
| entity.name.namespace | #072C8Cde | — |
| entity.name.operator | #0A5548de | — |
| entity.name.operator.custom-literal | #0A580Ade | — |
| entity.name.scope-resolution | #6604C9de | — |
| entity.name.tag | #082D8Fde | — |
| entity.name.tag.css | #243C79de | — |
| entity.name.type | #48500Ade | bold |
| entity.name.variable | #28459Ade | — |
| entity.other.attribute | #6500CBde | — |
| entity.other.attribute-name | #940956de | — |
| entity.other.attribute-name.class.css | #274795de | — |
| entity.other.attribute-name.class.mixin.css | #6605C9de | — |
| entity.other.attribute-name.id | #920855de | — |
| entity.other.attribute-name.id.css | #0A34A1de | — |
| entity.other.attribute-name.parent-selector.css | #48500Ade | — |
| entity.other.attribute-name.pseudo-class.css | #6607C7de | — |
| entity.other.attribute-name.pseudo-element.css | #3B4018de | — |
| entity.other.attribute-name.scss | #6729A5de | — |
| entity.other.document.begin.yaml | #7F31316e | — |
| entity.other.inherited-class | #6708C7de | — |
| header | #8E2406de | — |
| invalid | #7A3724de | — |
| keyword | #6706C7de | bold |
| keyword.codetag.notation.python | #940A56de | bold |
| keyword.control | #86255Ade | bold |
| keyword.control.anchor.regexp | #1D544Bde | bold |
| keyword.control.import.python | #930855de | bold |
| keyword.operator | #842559de | bold |
| keyword.operator.alignas | #243C79de | bold |
| keyword.operator.alignof | #184018de | bold |
| keyword.operator.cast | #6628A6de | bold |
| keyword.operator.delete | #5C1F41de | bold |
| keyword.operator.documentation.powershell | #7B35356e | bold |
| keyword.operator.expression | #4A2371de | bold |
| keyword.operator.instanceof | #632F20de | bold |
| keyword.operator.logical.python | #940A56de | bold |
| keyword.operator.minus.exponent | #6628A6de | bold |
| keyword.operator.negation.regexp | #484F09de | bold |
| keyword.operator.new | #940956de | bold |
| keyword.operator.noexcept | #1C4E1Cde | bold |
| keyword.operator.or.regexp | #484E1Bde | bold |
| keyword.operator.plus.exponent | #86255Cde | bold |
| keyword.operator.quantifier.regexp | #8C2609de | bold |
| keyword.operator.sizeof | #8E2306de | bold |
| keyword.operator.typeid | #85255Bde | bold |
| keyword.operator.wordlike | #484E1Bde | bold |
| keyword.other.operator | #6607C6de | bold |
| keyword.other.package.java | #093095de | bold |
| keyword.other.unit | #632045de | bold |
| keyword.other.using | #095347de | bold |
| markup.bold | #485005de | — |
| markup.changed | #6605C9de | — |
| markup.deleted | #075044de | — |
| markup.fenced_code.block.markdown | #48500Ade | — |
| markup.heading | #0A2E8Cde | — |
| markup.inline.raw | #0A2C87de | — |
| markup.inserted | #602898de | — |
| markup.italic | #0A3299de | — |
| markup.raw.block.markdown | #095609de | — |
| markup.strikethrough | #0A2E8Cde | — |
| markup.underline | #86255Ade | — |
| meta.block.c | #1A473Fde | — |
| meta.block.c | #0A5549de | — |
| meta.class.java | #602898de | — |
| meta.definition.variable.name | #602898de | — |
| meta.diff.header | #6628A6de | — |
| meta.embedded | #0A550Ade | — |
| meta.embedded.assembly | #6729A5de | — |
| meta.function-call.arguments.python | #0A2C87de | — |
| meta.function-call.python | #1D571Dde | — |
| meta.member.access.python | #940655de | — |
| meta.method.java | #0A570Ade | — |
| meta.object-literal.key | #075044de | — |
| meta.paragraph.markdown | #5B2790de | — |
| meta.preprocessor | #485009de | — |
| meta.preprocessor.numeric | #6605C9de | — |
| meta.preprocessor.string | #1C4E45de | — |
| meta.scope.prerequisites.makefile | #940554de | — |
| meta.structure.dictionary.json.comments | #7E33336e | — |
| meta.structure.dictionary.key.python | #22366Ade | — |
| meta.structure.dictionary.value.json.comments | #7B35356e | — |
| meta.template.expression | #632F20de | — |
| meta.type.cast.expr | #485009de | bold |
| meta.type.new.expr | #8E2609de | bold |
| parameter | #095448de | — |
| punctuation.character.set.begin.regexp | #4A2371de | — |
| punctuation.character.set.end.regexp | #6605C9de | — |
| punctuation.definition.array.begin.json | #8E2609de | — |
| punctuation.definition.character-class.regexp | #0A550Ade | — |
| punctuation.definition.comment | #7B35356e | — |
| punctuation.definition.comment.json.comments | #7F33336e | — |
| punctuation.definition.comment.python | #7F31316e | — |
| punctuation.definition.dictionary.begin.json | #095709de | — |
| punctuation.definition.dictionary.end.json | #7A3724de | — |
| punctuation.definition.group.assertion.regexp | #940956de | — |
| punctuation.definition.group.regexp | #233971de | — |
| punctuation.definition.list.begin.json | #5C1F41de | — |
| punctuation.definition.list.begin.markdown | #6607C6de | — |
| punctuation.definition.list.begin.python | #094509de | — |
| punctuation.definition.list.end.json | #095609de | — |
| punctuation.definition.list.end.markdown | #274797de | — |
| punctuation.definition.list.end.python | #930955de | — |
| punctuation.definition.parameters.begin.python | #1C4E45de | — |
| punctuation.definition.parameters.end.bracket.round.java | #274596de | — |
| punctuation.definition.quote.begin.markdown | #075044de | — |
| punctuation.definition.tag | #0A5549de | — |
| punctuation.definition.template-expression.begin | #095448de | — |
| punctuation.definition.template-expression.end | #075044de | — |
| punctuation.section.class.begin.bracket.curly.java | #495008de | — |
| punctuation.section.embedded | #6605C9de | — |
| punctuation.section.embedded.begin.php | #0A2E8Cde | — |
| punctuation.section.embedded.end.php | #48500Ade | — |
| punctuation.terminator.java | #095709de | — |
| source.cmake | #0A5548de | — |
| source.coffee.embedded | #4E2479de | — |
| source.cpp | #930A56de | — |
| source.css.less | #940956de | — |
| source.groovy.embedded | #0A580Ade | — |
| source.java | #1C5249de | — |
| source.java-properties | #6729A5de | — |
| source.json.comments | #7B35356e | — |
| source.makefile | #792453de | — |
| source.powershell | #233971de | — |
| source.powershell.variable.other.member | #6628A7de | — |
| source.python | #495008de | — |
| storage | #6728A5de | — |
| storage.modifier | #353916de | — |
| storage.modifier.import.java | #4E2479de | — |
| storage.modifier.package.java | #274795de | — |
| storage.type | #274695de | bold |
| storage.type.annotation.groovy | #0A5549de | bold |
| storage.type.annotation.java | #6628A6de | bold |
| storage.type.boolean.go | #095447de | bold |
| storage.type.byte.go | #075007de | bold |
| storage.type.cs | #0A2C87de | bold |
| storage.type.error.go | #950453de | bold |
| storage.type.generic.cs | #572688de | bold |
| storage.type.generic.groovy | #6708C7de | bold |
| storage.type.generic.java | #203363de | bold |
| storage.type.groovy | #940554de | bold |
| storage.type.java | #092E90de | bold |
| storage.type.modifier.cs | #940554de | bold |
| storage.type.numeric.go | #542A1Dde | bold |
| storage.type.object.array.groovy | #783723de | bold |
| storage.type.object.array.java | #0A580Ade | bold |
| storage.type.parameters.groovy | #095548de | bold |
| storage.type.primitive.array.groovy | #092C88de | bold |
| storage.type.primitive.array.java | #475007de | bold |
| storage.type.primitive.groovy | #602898de | bold |
| storage.type.primitive.java | #095549de | bold |
| storage.type.rune.go | #6604C9de | bold |
| storage.type.string.go | #253E80de | bold |
| storage.type.token.java | #8E2609de | bold |
| storage.type.uintptr.go | #86255Bde | bold |
| storage.type.variable.cs | #4A2371de | bold |
| string | #71234Ede | — |
| string.quoted.docstring.multi.python | #7E33336e | — |
| string.regexp | #8C260Ade | — |
| string.tag | #632F20de | — |
| string.value | #095549de | — |
| strong | #1D541Dde | — |
| support.class | #5C2C1Fde | — |
| support.constant.color | #485009de | — |
| support.constant.dom | #6728A3de | — |
| support.constant.font-name | #474F09de | — |
| support.constant.handlebars | #084E08de | — |
| support.constant.json | #8F2304de | — |
| support.constant.math | #0A5548de | — |
| support.constant.media | #1D541Dde | — |
| support.constant.media-type | #8C2609de | bold |
| support.constant.property-value | #542A1Dde | — |
| support.function | #485009de | — |
| support.function.git-rebase | #602898de | — |
| support.other.parenthesis.regexp | #1D551Dde | — |
| support.type | #6706C7de | bold |
| support.type.property-name | #095709de | bold |
| support.type.vendored.property-name | #8C270Ade | bold |
| support.variable | #940755de | — |
| token.debug-token | #253E80de | — |
| token.error-token | #6628A7de | — |
| token.info-token | #264188de | — |
| token.warn-token | #094509de | — |
| variable | #184018de | — |
| variable.css | #8C2609de | — |
| variable.language | #485007de | — |
| variable.language.wildcard.java | #1D544Ade | — |
| variable.other.constant | #6628A7de | — |
| variable.other.definition.java | #0A580Ade | — |
| variable.other.enummember | #86255Cde | — |
| variable.other.less | #71234Ede | — |
| variable.other.object.java | #484F09de | — |
| variable.other.object.property.java | #1A473Fde | — |
| variable.parameter.c | #6628A6de | — |
| variable.parameter.function.language.python | #6706C7de | — |
| variable.parameter.java | #22366Ade | — |
| variable.scss | #6500CBde | — |
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}!`;
}