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 | #4D4D4D6e | — |
| comment.block.html | #4D4D4D6e | — |
| comment.block.java | #4D4D4D6e | — |
| comment.block.javadoc.java | #4D4D4D6e | — |
| 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 | #4D4D4D6e | — |
| comment.line.number-sign.python | #4D4D4D6e | — |
| comment.line.number-sign.yaml | #4E4E4E6e | — |
| comment.line.percentage.erlang | #4D4D4D6e | — |
| comment.line.powershell | #4C4C4C6e | — |
| comment.source.cmake | #4C4C4C6e | — |
| comment.source.cmakecache | #4C4C4C6e | — |
| constant.character | #4829AEde | — |
| constant.character.character-class.regexp | #454545de | — |
| constant.character.escape | #0A5B35de | — |
| constant.character.set.regexp | #4A29B7de | — |
| constant.language | #095A35de | — |
| constant.numeric | #4E4E4Ede | — |
| constant.numeric.dec.python | #5C4D08de | — |
| constant.other.caps.python | #4E4E4Ede | — |
| constant.other.character-class.regexp | #5D4D05de | — |
| constant.other.character-class.set.regexp | #1F4661de | — |
| constant.other.color.rgb-value | #215A09de | — |
| constant.other.placeholder | #0A4875de | — |
| constant.other.rgb-value | #3F268Ede | — |
| constant.regexp | #095B34de | — |
| constant.sha.git-rebase | #4D29BFde | — |
| emphasis | #8F0A7Fde | — |
| entity.name.class | #215A09de | — |
| entity.name.function | #4E4E4Ede | — |
| entity.name.function.preprocessor | #4F29CDde | — |
| entity.name.function.python | #5D4D07de | — |
| entity.name.label | #1D593Dde | — |
| entity.name.namespace | #4D4D4Dde | — |
| entity.name.operator | #900A80de | — |
| entity.name.operator.custom-literal | #1F5B06de | — |
| entity.name.scope-resolution | #5C4E09de | — |
| entity.name.tag | #215171de | — |
| entity.name.tag.css | #4E4E4Ede | — |
| entity.name.type | #682160de | bold |
| entity.name.variable | #86247Bde | — |
| entity.other.attribute | #3C2587de | — |
| entity.other.attribute-name | #095A34de | — |
| entity.other.attribute-name.class.css | #611F59de | — |
| entity.other.attribute-name.class.mixin.css | #900A80de | — |
| entity.other.attribute-name.id | #095A34de | — |
| entity.other.attribute-name.id.css | #454545de | — |
| entity.other.attribute-name.parent-selector.css | #095934de | — |
| entity.other.attribute-name.pseudo-class.css | #5029CDde | — |
| entity.other.attribute-name.pseudo-element.css | #0A5833de | — |
| entity.other.attribute-name.scss | #5029CDde | — |
| entity.other.document.begin.yaml | #4E4E4E6e | — |
| entity.other.inherited-class | #215A09de | — |
| header | #5D4E06de | — |
| invalid | #5D4D07de | — |
| keyword | #86247Bde | bold |
| keyword.codetag.notation.python | #0A4B7Ade | bold |
| keyword.control | #1D593Dde | bold |
| keyword.control.anchor.regexp | #900980de | bold |
| keyword.control.import.python | #0A4B7Ade | bold |
| keyword.operator | #4829AEde | bold |
| keyword.operator.alignas | #083E63de | bold |
| keyword.operator.alignof | #0A4670de | bold |
| keyword.operator.cast | #5C4D08de | bold |
| keyword.operator.delete | #4D4D4Dde | bold |
| keyword.operator.documentation.powershell | #4D4D4D6e | bold |
| keyword.operator.expression | #5C4D0Ade | bold |
| keyword.operator.instanceof | #095A34de | bold |
| keyword.operator.logical.python | #215909de | bold |
| keyword.operator.minus.exponent | #3B01F9de | bold |
| keyword.operator.negation.regexp | #4E4E4Ede | bold |
| keyword.operator.new | #4D4D4Dde | bold |
| keyword.operator.noexcept | #095B34de | bold |
| keyword.operator.or.regexp | #094D7Cde | bold |
| keyword.operator.plus.exponent | #1D593Dde | bold |
| keyword.operator.quantifier.regexp | #0A5284de | bold |
| keyword.operator.sizeof | #0A5B35de | bold |
| keyword.operator.typeid | #095B35de | bold |
| keyword.operator.wordlike | #294C1Bde | bold |
| keyword.other.operator | #8F0A7Fde | bold |
| keyword.other.package.java | #5029CDde | bold |
| keyword.other.unit | #900980de | bold |
| keyword.other.using | #910480de | bold |
| markup.bold | #2C531Cde | — |
| markup.changed | #2C531Cde | — |
| markup.deleted | #494949de | — |
| markup.fenced_code.block.markdown | #4E4E4Ede | — |
| markup.heading | #5C4E09de | — |
| markup.inline.raw | #4E4E4Ede | — |
| markup.inserted | #094D7Cde | — |
| markup.italic | #4628A6de | — |
| markup.raw.block.markdown | #4F29CBde | — |
| markup.strikethrough | #235374de | — |
| markup.underline | #21590Ade | — |
| meta.block.c | #4E4E4Ede | — |
| meta.block.c | #09446Dde | — |
| meta.class.java | #0A5B35de | — |
| meta.definition.variable.name | #4C431Bde | — |
| meta.diff.header | #4D4D4Dde | — |
| meta.embedded | #084729de | — |
| meta.embedded.assembly | #4F29CFde | — |
| meta.function-call.arguments.python | #5D4D04de | — |
| meta.function-call.python | #5C4E0Ade | — |
| meta.member.access.python | #494949de | — |
| meta.method.java | #215A09de | — |
| meta.object-literal.key | #3C2587de | — |
| meta.paragraph.markdown | #404040de | — |
| meta.preprocessor | #85257Ade | — |
| meta.preprocessor.numeric | #21590Ade | — |
| meta.preprocessor.string | #494949de | — |
| meta.scope.prerequisites.makefile | #4E4E4Ede | — |
| meta.structure.dictionary.json.comments | #4E4E4E6e | — |
| meta.structure.dictionary.key.python | #5D4D04de | — |
| meta.structure.dictionary.value.json.comments | #4D4D4D6e | — |
| meta.template.expression | #5D4E09de | — |
| meta.type.cast.expr | #083E63de | bold |
| meta.type.new.expr | #09446Dde | bold |
| parameter | #494949de | — |
| punctuation.character.set.begin.regexp | #4E4E4Ede | — |
| punctuation.character.set.end.regexp | #4C431Bde | — |
| punctuation.definition.array.begin.json | #702267de | — |
| punctuation.definition.character-class.regexp | #093E64de | — |
| punctuation.definition.comment | #4C4C4C6e | — |
| punctuation.definition.comment.json.comments | #4E4E4E6e | — |
| punctuation.definition.comment.python | #4D4D4D6e | — |
| punctuation.definition.dictionary.begin.json | #215A09de | — |
| punctuation.definition.dictionary.end.json | #1D593Dde | — |
| punctuation.definition.group.assertion.regexp | #5129CEde | — |
| punctuation.definition.group.regexp | #3D03F6de | — |
| punctuation.definition.list.begin.json | #225375de | — |
| punctuation.definition.list.begin.markdown | #910780de | — |
| punctuation.definition.list.begin.python | #5029CDde | — |
| punctuation.definition.list.end.json | #095B34de | — |
| punctuation.definition.list.end.markdown | #225172de | — |
| punctuation.definition.list.end.python | #0A4875de | — |
| punctuation.definition.parameters.begin.python | #4D4D4Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #5029CDde | — |
| punctuation.definition.quote.begin.markdown | #095B34de | — |
| punctuation.definition.tag | #0A5934de | — |
| punctuation.definition.template-expression.begin | #2E551Cde | — |
| punctuation.definition.template-expression.end | #5C4E0Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #702267de | — |
| punctuation.section.embedded | #454545de | — |
| punctuation.section.embedded.begin.php | #77236Dde | — |
| punctuation.section.embedded.end.php | #074327de | — |
| punctuation.terminator.java | #5C4E09de | — |
| source.cmake | #1D593Dde | — |
| source.coffee.embedded | #1B4C35de | — |
| source.cpp | #4F29CDde | — |
| source.css.less | #225172de | — |
| source.groovy.embedded | #205A08de | — |
| source.java | #412796de | — |
| source.java-properties | #4E4E4Ede | — |
| source.json.comments | #4C4C4C6e | — |
| source.makefile | #095B34de | — |
| source.powershell | #412796de | — |
| source.powershell.variable.other.member | #1F4661de | — |
| source.python | #1C3C53de | — |
| storage | #215A09de | — |
| storage.modifier | #5C4E09de | — |
| storage.modifier.import.java | #77236Dde | — |
| storage.modifier.package.java | #1E415Ade | — |
| storage.type | #4829AEde | bold |
| storage.type.annotation.groovy | #910780de | bold |
| storage.type.annotation.java | #4C431Bde | bold |
| storage.type.boolean.go | #842479de | bold |
| storage.type.byte.go | #900880de | bold |
| storage.type.cs | #3F268Ede | bold |
| storage.type.error.go | #5029CDde | bold |
| storage.type.generic.cs | #900680de | bold |
| storage.type.generic.groovy | #494949de | bold |
| storage.type.generic.java | #4A29B7de | bold |
| storage.type.groovy | #1F4661de | bold |
| storage.type.java | #3C3C3Cde | bold |
| storage.type.modifier.cs | #215909de | bold |
| storage.type.numeric.go | #0A5A34de | bold |
| storage.type.object.array.groovy | #4E4E4Ede | bold |
| storage.type.object.array.java | #5D4D05de | bold |
| storage.type.parameters.groovy | #4E4E4Ede | bold |
| storage.type.primitive.array.groovy | #594F1Dde | bold |
| storage.type.primitive.array.java | #4E4E4Ede | bold |
| storage.type.primitive.groovy | #4D4D4Dde | bold |
| storage.type.primitive.java | #494949de | bold |
| storage.type.rune.go | #5C4E0Ade | bold |
| storage.type.string.go | #910980de | bold |
| storage.type.token.java | #5C4D08de | bold |
| storage.type.uintptr.go | #0A4B7Ade | bold |
| storage.type.variable.cs | #86247Bde | bold |
| string | #095B34de | — |
| string.quoted.docstring.multi.python | #4D4D4D6e | — |
| string.regexp | #3F268Ede | — |
| string.tag | #920581de | — |
| string.value | #5C4E09de | — |
| strong | #5029CCde | — |
| support.class | #4E4E4Ede | — |
| support.constant.color | #08426Cde | — |
| support.constant.dom | #2E551Cde | — |
| support.constant.font-name | #5D4E06de | — |
| support.constant.handlebars | #0A5A34de | — |
| support.constant.json | #3B01F9de | — |
| support.constant.math | #8F0A80de | — |
| support.constant.media | #4E4E4Ede | — |
| support.constant.media-type | #074C2Bde | bold |
| support.constant.property-value | #2C531Cde | — |
| support.function | #0A5B35de | — |
| support.function.git-rebase | #095A34de | — |
| support.other.parenthesis.regexp | #86257Ade | — |
| support.type | #900680de | bold |
| support.type.property-name | #205A08de | bold |
| support.type.vendored.property-name | #205B07de | bold |
| support.variable | #095A34de | — |
| token.debug-token | #910780de | — |
| token.error-token | #4E4E4Ede | — |
| token.info-token | #08522Fde | — |
| token.warn-token | #910881de | — |
| variable | #5029CCde | — |
| variable.css | #0A4B7Ade | — |
| variable.language | #0A5B35de | — |
| variable.language.wildcard.java | #3C2587de | — |
| variable.other.constant | #5D4E06de | — |
| variable.other.definition.java | #095A34de | — |
| variable.other.enummember | #4F29CDde | — |
| variable.other.less | #4E4E4Ede | — |
| variable.other.object.java | #900A80de | — |
| variable.other.object.property.java | #205B07de | — |
| variable.parameter.c | #4F29CFde | — |
| variable.parameter.function.language.python | #3C2587de | — |
| variable.parameter.java | #094D7Cde | — |
| variable.scss | #5029CFde | — |
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}!`;
}