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 | #26264B6e | — |
| comment.block.html | #26264D6e | — |
| comment.block.java | #27274A6e | — |
| comment.block.javadoc.java | #27274A6e | — |
| comment.block.powershell | #26264D6e | — |
| comment.block.xml | #26264D6e | — |
| comment.line.double-slash.c | #27274A6e | — |
| comment.line.double-slash.cpp | #26264B6e | — |
| comment.line.double-slash.java | #26264D6e | — |
| comment.line.double-slash.js | #26264B6e | — |
| comment.line.number-sign.makefile | #26264B6e | — |
| comment.line.number-sign.python | #26264B6e | — |
| comment.line.number-sign.yaml | #26264D6e | — |
| comment.line.percentage.erlang | #26264D6e | — |
| comment.line.powershell | #26264D6e | — |
| comment.source.cmake | #27274A6e | — |
| comment.source.cmakecache | #26264B6e | — |
| constant.character | #021E78de | — |
| constant.character.character-class.regexp | #6F254Fde | — |
| constant.character.escape | #592F21de | — |
| constant.character.set.regexp | #4C291Ede | — |
| constant.language | #3C0E6Ade | — |
| constant.numeric | #1C453Dde | — |
| constant.numeric.dec.python | #391F52de | — |
| constant.other.caps.python | #16312Cde | — |
| constant.other.character-class.regexp | #3E4508de | — |
| constant.other.character-class.set.regexp | #592141de | — |
| constant.other.color.rgb-value | #522C1Fde | — |
| constant.other.placeholder | #2A2C03de | — |
| constant.other.rgb-value | #0B4A3Fde | — |
| constant.regexp | #0C3029de | — |
| constant.sha.git-rebase | #471E11de | — |
| emphasis | #3C0E6Ade | — |
| entity.name.class | #45261Cde | — |
| entity.name.function | #451C33de | — |
| entity.name.function.preprocessor | #0B2369de | — |
| entity.name.function.python | #0B4A3Fde | — |
| entity.name.label | #14265Cde | — |
| entity.name.namespace | #094A3Ede | — |
| entity.name.operator | #451C33de | — |
| entity.name.operator.custom-literal | #4C291Ede | — |
| entity.name.scope-resolution | #3E4508de | — |
| entity.name.tag | #371E4Fde | — |
| entity.name.tag.css | #442115de | — |
| entity.name.type | #021E78de | bold |
| entity.name.variable | #471A33de | — |
| entity.other.attribute | #3C0E6Ade | — |
| entity.other.attribute-name | #501034de | — |
| entity.other.attribute-name.class.css | #511603de | — |
| entity.other.attribute-name.class.mixin.css | #2E3116de | — |
| entity.other.attribute-name.id | #0A4D0Ade | — |
| entity.other.attribute-name.id.css | #1C451Cde | — |
| entity.other.attribute-name.parent-selector.css | #4C291Ede | — |
| entity.other.attribute-name.pseudo-class.css | #3E450Ede | — |
| entity.other.attribute-name.pseudo-element.css | #462468de | — |
| entity.other.attribute-name.scss | #103110de | — |
| entity.other.document.begin.yaml | #26264D6e | — |
| entity.other.inherited-class | #3D2159de | — |
| header | #391F52de | — |
| invalid | #1A3E1Ade | — |
| keyword | #003128de | bold |
| keyword.codetag.notation.python | #25386Fde | bold |
| keyword.control | #3E4511de | bold |
| keyword.control.anchor.regexp | #4C1535de | bold |
| keyword.control.import.python | #0E4A3Fde | bold |
| keyword.operator | #3E450Ede | bold |
| keyword.operator.alignas | #0B2369de | bold |
| keyword.operator.alignof | #451C33de | bold |
| keyword.operator.cast | #3E450Ede | bold |
| keyword.operator.delete | #792508de | bold |
| keyword.operator.documentation.powershell | #26264B6e | bold |
| keyword.operator.expression | #183832de | bold |
| keyword.operator.instanceof | #113111de | bold |
| keyword.operator.logical.python | #68244Ade | bold |
| keyword.operator.minus.exponent | #3D2159de | bold |
| keyword.operator.negation.regexp | #39185Dde | bold |
| keyword.operator.new | #0A4D0Ade | bold |
| keyword.operator.noexcept | #381C53de | bold |
| keyword.operator.or.regexp | #471E11de | bold |
| keyword.operator.plus.exponent | #1A3E1Ade | bold |
| keyword.operator.quantifier.regexp | #391A58de | bold |
| keyword.operator.sizeof | #243568de | bold |
| keyword.operator.typeid | #4E1233de | bold |
| keyword.operator.wordlike | #0B4A3Fde | bold |
| keyword.other.operator | #113111de | bold |
| keyword.other.package.java | #592141de | bold |
| keyword.other.unit | #68244Ade | bold |
| keyword.other.using | #3B0278de | bold |
| markup.bold | #592F21de | — |
| markup.changed | #1A3E37de | — |
| markup.deleted | #3E450Cde | — |
| markup.fenced_code.block.markdown | #4A256Fde | — |
| markup.heading | #0B310Bde | — |
| markup.inline.raw | #282C11de | — |
| markup.inserted | #491833de | — |
| markup.italic | #521F3Cde | — |
| markup.raw.block.markdown | #521F3Cde | — |
| markup.strikethrough | #592F21de | — |
| markup.underline | #053027de | — |
| meta.block.c | #592F21de | — |
| meta.block.c | #3E4508de | — |
| meta.class.java | #0B310Bde | — |
| meta.definition.variable.name | #451C33de | — |
| meta.diff.header | #792508de | — |
| meta.embedded | #103110de | — |
| meta.embedded.assembly | #0C2369de | — |
| meta.function-call.arguments.python | #7B2205de | — |
| meta.function-call.python | #0C3029de | — |
| meta.member.access.python | #451F12de | — |
| meta.method.java | #183832de | — |
| meta.object-literal.key | #094D09de | — |
| meta.paragraph.markdown | #3B0278de | — |
| meta.preprocessor | #114C11de | — |
| meta.preprocessor.numeric | #522C1Fde | — |
| meta.preprocessor.string | #114C11de | — |
| meta.scope.prerequisites.makefile | #113111de | — |
| meta.structure.dictionary.json.comments | #27274A6e | — |
| meta.structure.dictionary.key.python | #422118de | — |
| meta.structure.dictionary.value.json.comments | #26264B6e | — |
| meta.template.expression | #003128de | — |
| meta.type.cast.expr | #0B4A3Fde | bold |
| meta.type.new.expr | #4C1535de | bold |
| parameter | #0C4C0Cde | — |
| punctuation.character.set.begin.regexp | #343818de | — |
| punctuation.character.set.end.regexp | #033203de | — |
| punctuation.definition.array.begin.json | #183818de | — |
| punctuation.definition.character-class.regexp | #1C453Dde | — |
| punctuation.definition.comment | #27274A6e | — |
| punctuation.definition.comment.json.comments | #26264B6e | — |
| punctuation.definition.comment.python | #27274A6e | — |
| punctuation.definition.dictionary.begin.json | #003128de | — |
| punctuation.definition.dictionary.end.json | #1A3E37de | — |
| punctuation.definition.group.assertion.regexp | #3C0E6Ade | — |
| punctuation.definition.group.regexp | #1E294Cde | — |
| punctuation.definition.list.begin.json | #68244Ade | — |
| punctuation.definition.list.begin.markdown | #3E231Ade | — |
| punctuation.definition.list.begin.python | #471B33de | — |
| punctuation.definition.list.end.json | #2A2C03de | — |
| punctuation.definition.list.end.markdown | #343818de | — |
| punctuation.definition.list.end.python | #282C11de | — |
| punctuation.definition.parameters.begin.python | #371D52de | — |
| punctuation.definition.parameters.end.bracket.round.java | #462468de | — |
| punctuation.definition.quote.begin.markdown | #3E4508de | — |
| punctuation.definition.tag | #3B1364de | — |
| punctuation.definition.template-expression.begin | #1F2C52de | — |
| punctuation.definition.template-expression.end | #510F34de | — |
| punctuation.section.class.begin.bracket.curly.java | #3B1364de | — |
| punctuation.section.embedded | #2E3116de | — |
| punctuation.section.embedded.begin.php | #3C0B6Dde | — |
| punctuation.section.embedded.end.php | #471B33de | — |
| punctuation.terminator.java | #522C1Fde | — |
| source.cmake | #4A256Fde | — |
| source.coffee.embedded | #003128de | — |
| source.cpp | #491833de | — |
| source.css.less | #021E78de | — |
| source.groovy.embedded | #471E11de | — |
| source.java | #6F254Fde | — |
| source.java-properties | #25386Fde | — |
| source.json.comments | #26264B6e | — |
| source.makefile | #282C11de | — |
| source.powershell | #233260de | — |
| source.powershell.variable.other.member | #45261Cde | — |
| source.python | #3B1364de | — |
| storage | #0F2465de | — |
| storage.modifier | #282C11de | — |
| storage.modifier.import.java | #114C11de | — |
| storage.modifier.package.java | #053027de | — |
| storage.type | #1C451Cde | bold |
| storage.type.annotation.groovy | #462468de | bold |
| storage.type.annotation.java | #272D07de | bold |
| storage.type.boolean.go | #094A3Ede | bold |
| storage.type.byte.go | #45261Cde | bold |
| storage.type.cs | #212F59de | bold |
| storage.type.error.go | #0B4A3Fde | bold |
| storage.type.generic.cs | #113111de | bold |
| storage.type.generic.groovy | #1E294Cde | bold |
| storage.type.generic.java | #272D07de | bold |
| storage.type.groovy | #3C0A6Ede | bold |
| storage.type.java | #104A3Fde | bold |
| storage.type.modifier.cs | #104A3Fde | bold |
| storage.type.numeric.go | #491833de | bold |
| storage.type.object.array.groovy | #39185Dde | bold |
| storage.type.object.array.java | #3C0A6Ede | bold |
| storage.type.parameters.groovy | #094A3Ede | bold |
| storage.type.primitive.array.groovy | #3F4511de | bold |
| storage.type.primitive.array.java | #471E11de | bold |
| storage.type.primitive.groovy | #3C0B6Dde | bold |
| storage.type.primitive.java | #243568de | bold |
| storage.type.rune.go | #114C11de | bold |
| storage.type.string.go | #3C0A6Ede | bold |
| storage.type.token.java | #371D52de | bold |
| storage.type.uintptr.go | #402319de | bold |
| storage.type.variable.cs | #0E4A3Fde | bold |
| string | #442115de | — |
| string.quoted.docstring.multi.python | #26264B6e | — |
| string.regexp | #391F52de | — |
| string.tag | #0D4A3Fde | — |
| string.value | #3E450Ede | — |
| strong | #3B0278de | — |
| support.class | #471B33de | — |
| support.constant.color | #272D07de | — |
| support.constant.dom | #113111de | — |
| support.constant.font-name | #0F2465de | — |
| support.constant.handlebars | #45261Cde | — |
| support.constant.json | #792508de | — |
| support.constant.math | #2E3116de | — |
| support.constant.media | #094D09de | — |
| support.constant.media-type | #114C11de | bold |
| support.constant.property-value | #6F254Fde | — |
| support.function | #14265Cde | — |
| support.function.git-rebase | #1A3E1Ade | — |
| support.other.parenthesis.regexp | #442115de | — |
| support.type | #451C33de | bold |
| support.type.property-name | #343818de | bold |
| support.type.vendored.property-name | #4E1233de | bold |
| support.variable | #510F34de | — |
| token.debug-token | #491833de | — |
| token.error-token | #381C53de | — |
| token.info-token | #272D03de | — |
| token.warn-token | #391A58de | — |
| variable | #4C1E37de | — |
| variable.css | #3C0A6Ede | — |
| variable.language | #0A4D0Ade | — |
| variable.language.wildcard.java | #023202de | — |
| variable.other.constant | #1C451Cde | — |
| variable.other.definition.java | #0C3029de | — |
| variable.other.enummember | #021E78de | — |
| variable.other.less | #183818de | — |
| variable.other.object.java | #272D03de | — |
| variable.other.object.property.java | #4C291Ede | — |
| variable.parameter.c | #243568de | — |
| variable.parameter.function.language.python | #163116de | — |
| variable.parameter.java | #3A3E1Ade | — |
| variable.scss | #0C2369de | — |
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}!`;
}