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 | #4F154F6e | — |
| comment.block.html | #2F2F2F6e | — |
| comment.block.java | #4F154F6e | — |
| comment.block.javadoc.java | #4F154F6e | — |
| comment.block.powershell | #4F154F6e | — |
| comment.block.xml | #4F174F6e | — |
| comment.line.double-slash.c | #4F174F6e | — |
| comment.line.double-slash.cpp | #4F154F6e | — |
| comment.line.double-slash.java | #4F174F6e | — |
| comment.line.double-slash.js | #4F174F6e | — |
| comment.line.number-sign.makefile | #2F2F2F6e | — |
| comment.line.number-sign.python | #4F154F6e | — |
| comment.line.number-sign.yaml | #2F2F2F6e | — |
| comment.line.percentage.erlang | #4F154F6e | — |
| comment.line.powershell | #4F154F6e | — |
| comment.source.cmake | #4F154F6e | — |
| comment.source.cmakecache | #2F2F2F6e | — |
| constant.character | #063704de | — |
| constant.character.character-class.regexp | #20411Dde | — |
| constant.character.escape | #4F201Dde | — |
| constant.character.set.regexp | #123712de | — |
| constant.language | #5D0342de | — |
| constant.numeric | #48480Dde | — |
| constant.numeric.dec.python | #722E29de | — |
| constant.other.caps.python | #48480Dde | — |
| constant.other.character-class.regexp | #0E4F3Bde | — |
| constant.other.character-class.set.regexp | #263D63de | — |
| constant.other.color.rgb-value | #4C1E3Ede | — |
| constant.other.placeholder | #590F3Dde | — |
| constant.other.rgb-value | #133429de | — |
| constant.regexp | #153712de | — |
| constant.sha.git-rebase | #5C244Bde | — |
| emphasis | #39235Dde | — |
| entity.name.class | #6A2756de | — |
| entity.name.function | #4F201Dde | — |
| entity.name.function.preprocessor | #632650de | — |
| entity.name.function.python | #152D5Ade | — |
| entity.name.label | #1B3A31de | — |
| entity.name.namespace | #0C4F3Bde | — |
| entity.name.operator | #11510Bde | — |
| entity.name.operator.custom-literal | #1D2F4Bde | — |
| entity.name.scope-resolution | #0A4F39de | — |
| entity.name.tag | #033627de | — |
| entity.name.tag.css | #19342Cde | — |
| entity.name.type | #3D2663de | bold |
| entity.name.variable | #182E52de | — |
| entity.other.attribute | #153513de | — |
| entity.other.attribute-name | #0E4F3Bde | — |
| entity.other.attribute-name.class.css | #0E3528de | — |
| entity.other.attribute-name.class.mixin.css | #1E2F4Ade | — |
| entity.other.attribute-name.id | #0F4F3Bde | — |
| entity.other.attribute-name.id.css | #580E40de | — |
| entity.other.attribute-name.parent-selector.css | #48480Cde | — |
| entity.other.attribute-name.pseudo-class.css | #22481Fde | — |
| entity.other.attribute-name.pseudo-element.css | #0E4F3Bde | — |
| entity.other.attribute-name.scss | #39235Dde | — |
| entity.other.document.begin.yaml | #4F154F6e | — |
| entity.other.inherited-class | #303013de | — |
| header | #303013de | — |
| invalid | #54153Ede | — |
| keyword | #722E29de | bold |
| keyword.codetag.notation.python | #152D5Ade | bold |
| keyword.control | #370D84de | bold |
| keyword.control.anchor.regexp | #233655de | bold |
| keyword.control.import.python | #632B26de | bold |
| keyword.operator | #632B26de | bold |
| keyword.operator.alignas | #5C244Bde | bold |
| keyword.operator.alignof | #4E2421de | bold |
| keyword.operator.cast | #182E52de | bold |
| keyword.operator.delete | #263D63de | bold |
| keyword.operator.documentation.powershell | #2F2F2F6e | bold |
| keyword.operator.expression | #1B3419de | bold |
| keyword.operator.instanceof | #370D84de | bold |
| keyword.operator.logical.python | #1F2F48de | bold |
| keyword.operator.minus.exponent | #5C2924de | bold |
| keyword.operator.negation.regexp | #11510Bde | bold |
| keyword.operator.new | #3A245Cde | bold |
| keyword.operator.noexcept | #38038Bde | bold |
| keyword.operator.or.regexp | #30300Bde | bold |
| keyword.operator.plus.exponent | #30300Bde | bold |
| keyword.operator.quantifier.regexp | #0F2D5Ede | bold |
| keyword.operator.sizeof | #5F0E07de | bold |
| keyword.operator.typeid | #1B3A31de | bold |
| keyword.operator.wordlike | #48480Dde | bold |
| keyword.other.operator | #19342Cde | bold |
| keyword.other.package.java | #155010de | bold |
| keyword.other.unit | #0F2D5Ede | bold |
| keyword.other.using | #294572de | bold |
| markup.bold | #303013de | — |
| markup.changed | #1F2F48de | — |
| markup.deleted | #3A3A1Bde | — |
| markup.fenced_code.block.markdown | #053625de | — |
| markup.heading | #0F2D5Dde | — |
| markup.inline.raw | #303013de | — |
| markup.inserted | #41411Dde | — |
| markup.italic | #1B2F4Fde | — |
| markup.raw.block.markdown | #0F4F3Bde | — |
| markup.strikethrough | #182E52de | — |
| markup.underline | #12342Ade | — |
| meta.block.c | #0E4F3Bde | — |
| meta.block.c | #452972de | — |
| meta.class.java | #722E29de | — |
| meta.definition.variable.name | #41411Dde | — |
| meta.diff.header | #22481Fde | — |
| meta.embedded | #392061de | — |
| meta.embedded.assembly | #22481Fde | — |
| meta.function-call.arguments.python | #370D84de | — |
| meta.function-call.python | #133429de | — |
| meta.member.access.python | #21324Ede | — |
| meta.method.java | #39235Dde | — |
| meta.object-literal.key | #552723de | — |
| meta.paragraph.markdown | #4E1B3Fde | — |
| meta.preprocessor | #4C221Ede | — |
| meta.preprocessor.numeric | #392061de | — |
| meta.preprocessor.string | #10360Dde | — |
| meta.scope.prerequisites.makefile | #20411Dde | — |
| meta.structure.dictionary.json.comments | #4F174F6e | — |
| meta.structure.dictionary.key.python | #580F41de | — |
| meta.structure.dictionary.value.json.comments | #2F2F2F6e | — |
| meta.template.expression | #4E2421de | — |
| meta.type.cast.expr | #484809de | bold |
| meta.type.new.expr | #392061de | bold |
| parameter | #4E2140de | — |
| punctuation.character.set.begin.regexp | #182E52de | — |
| punctuation.character.set.end.regexp | #484809de | — |
| punctuation.definition.array.begin.json | #104F3Dde | — |
| punctuation.definition.character-class.regexp | #0F2D5Ede | — |
| punctuation.definition.comment | #4F174F6e | — |
| punctuation.definition.comment.json.comments | #2F2F2F6e | — |
| punctuation.definition.comment.python | #4F174F6e | — |
| punctuation.definition.dictionary.begin.json | #032C69de | — |
| punctuation.definition.dictionary.end.json | #153513de | — |
| punctuation.definition.group.assertion.regexp | #4E2421de | — |
| punctuation.definition.group.regexp | #1B3419de | — |
| punctuation.definition.list.begin.json | #20411Dde | — |
| punctuation.definition.list.begin.markdown | #1B2F4Fde | — |
| punctuation.definition.list.begin.python | #5C2924de | — |
| punctuation.definition.list.end.json | #484810de | — |
| punctuation.definition.list.end.markdown | #294572de | — |
| punctuation.definition.list.end.python | #1E2F4Ade | — |
| punctuation.definition.parameters.begin.python | #3A3A1Bde | — |
| punctuation.definition.parameters.end.bracket.round.java | #153513de | — |
| punctuation.definition.quote.begin.markdown | #1B3A31de | — |
| punctuation.definition.tag | #0C4F3Bde | — |
| punctuation.definition.template-expression.begin | #0E3528de | — |
| punctuation.definition.template-expression.end | #600C03de | — |
| punctuation.section.class.begin.bracket.curly.java | #12342Ade | — |
| punctuation.section.embedded | #3A1479de | — |
| punctuation.section.embedded.begin.php | #1D4136de | — |
| punctuation.section.embedded.end.php | #0F2D5Dde | — |
| punctuation.terminator.java | #5B1410de | — |
| source.cmake | #4E2140de | — |
| source.coffee.embedded | #294572de | — |
| source.cpp | #3A3A1Bde | — |
| source.css.less | #552346de | — |
| source.groovy.embedded | #580F41de | — |
| source.java | #4D1D3Fde | — |
| source.java-properties | #4F201Dde | — |
| source.json.comments | #4F174F6e | — |
| source.makefile | #153712de | — |
| source.powershell | #580E40de | — |
| source.powershell.variable.other.member | #13510Dde | — |
| source.python | #313100de | — |
| storage | #233655de | — |
| storage.modifier | #124F3Cde | — |
| storage.modifier.import.java | #313100de | — |
| storage.modifier.package.java | #531D18de | — |
| storage.type | #1D3A1Bde | bold |
| storage.type.annotation.groovy | #12342Ade | bold |
| storage.type.annotation.java | #3A245Cde | bold |
| storage.type.boolean.go | #590F3Dde | bold |
| storage.type.byte.go | #4C1E3Ede | bold |
| storage.type.cs | #54153Ede | bold |
| storage.type.error.go | #343419de | bold |
| storage.type.generic.cs | #30300Bde | bold |
| storage.type.generic.groovy | #580E40de | bold |
| storage.type.generic.java | #153513de | bold |
| storage.type.groovy | #590F3Dde | bold |
| storage.type.java | #303013de | bold |
| storage.type.modifier.cs | #063704de | bold |
| storage.type.numeric.go | #38018Cde | bold |
| storage.type.object.array.groovy | #41411Dde | bold |
| storage.type.object.array.java | #6A2756de | bold |
| storage.type.parameters.groovy | #4C1E3Ede | bold |
| storage.type.primitive.array.groovy | #4C221Ede | bold |
| storage.type.primitive.array.java | #39235Dde | bold |
| storage.type.primitive.groovy | #233655de | bold |
| storage.type.primitive.java | #133429de | bold |
| storage.type.rune.go | #632B26de | bold |
| storage.type.string.go | #4D1D3Fde | bold |
| storage.type.token.java | #22481Fde | bold |
| storage.type.uintptr.go | #3A215Fde | bold |
| storage.type.variable.cs | #1D2F4Bde | bold |
| string | #10360Dde | — |
| string.quoted.docstring.multi.python | #4F174F6e | — |
| string.regexp | #313100de | — |
| string.tag | #0F2D5Ede | — |
| string.value | #063704de | — |
| strong | #153513de | — |
| support.class | #3A215Fde | — |
| support.constant.color | #20411Dde | — |
| support.constant.dom | #552346de | — |
| support.constant.font-name | #153513de | — |
| support.constant.handlebars | #3A215Fde | — |
| support.constant.json | #155010de | — |
| support.constant.math | #4E2140de | — |
| support.constant.media | #37038Dde | — |
| support.constant.media-type | #5C244Bde | bold |
| support.constant.property-value | #0A4F39de | — |
| support.function | #632650de | — |
| support.function.git-rebase | #38018Cde | — |
| support.other.parenthesis.regexp | #632650de | — |
| support.type | #4E2140de | bold |
| support.type.property-name | #0F4F3Bde | bold |
| support.type.vendored.property-name | #501F1Bde | bold |
| support.variable | #244E21de | — |
| token.debug-token | #033627de | — |
| token.error-token | #313100de | — |
| token.info-token | #501F1Bde | — |
| token.warn-token | #4F201Dde | — |
| variable | #1D2F4Bde | — |
| variable.css | #032C69de | — |
| variable.language | #14510Fde | — |
| variable.language.wildcard.java | #063704de | — |
| variable.other.constant | #123712de | — |
| variable.other.definition.java | #20411Dde | — |
| variable.other.enummember | #581815de | — |
| variable.other.less | #13510Dde | — |
| variable.other.object.java | #0A4F39de | — |
| variable.other.object.property.java | #5F0E07de | — |
| variable.parameter.c | #6A2756de | — |
| variable.parameter.function.language.python | #063704de | — |
| variable.parameter.java | #5C2924de | — |
| variable.scss | #22481Fde | — |
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}!`;
}