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 | #1636166e | — |
| comment.block.html | #1835186e | — |
| comment.block.java | #1737176e | — |
| comment.block.javadoc.java | #1737176e | — |
| comment.block.powershell | #1835186e | — |
| comment.block.xml | #1835186e | — |
| comment.line.double-slash.c | #1737176e | — |
| comment.line.double-slash.cpp | #1835186e | — |
| comment.line.double-slash.java | #1737176e | — |
| comment.line.double-slash.js | #1736176e | — |
| comment.line.number-sign.makefile | #1835186e | — |
| comment.line.number-sign.python | #1736176e | — |
| comment.line.number-sign.yaml | #1737176e | — |
| comment.line.percentage.erlang | #1835186e | — |
| comment.line.powershell | #1737176e | — |
| comment.source.cmake | #1737176e | — |
| comment.source.cmakecache | #1737176e | — |
| constant.character | #123150de | — |
| constant.character.character-class.regexp | #244668de | — |
| constant.character.escape | #18304Ade | — |
| constant.character.set.regexp | #371F6Ade | — |
| constant.language | #113525de | — |
| constant.numeric | #59214Bde | — |
| constant.numeric.dec.python | #333013de | — |
| constant.other.caps.python | #103050de | — |
| constant.other.character-class.regexp | #0F3705de | — |
| constant.other.character-class.set.regexp | #0B5032de | — |
| constant.other.color.rgb-value | #4C461Ede | — |
| constant.other.placeholder | #362168de | — |
| constant.other.rgb-value | #2F0096de | — |
| constant.regexp | #18382Ade | — |
| constant.sha.git-rebase | #1E3818de | — |
| emphasis | #5C0446de | — |
| entity.name.class | #580E46de | — |
| entity.name.function | #600D0Dde | — |
| entity.name.function.preprocessor | #2F0493de | — |
| entity.name.function.python | #2F0096de | — |
| entity.name.label | #551C1Cde | — |
| entity.name.namespace | #19510Dde | — |
| entity.name.operator | #5C0446de | — |
| entity.name.operator.custom-literal | #501A43de | — |
| entity.name.scope-resolution | #581A1Ade | — |
| entity.name.tag | #343011de | — |
| entity.name.tag.css | #580E46de | — |
| entity.name.type | #18382Ade | bold |
| entity.name.variable | #2F0096de | — |
| entity.other.attribute | #682457de | — |
| entity.other.attribute-name | #383418de | — |
| entity.other.attribute-name.class.css | #352F03de | — |
| entity.other.attribute-name.class.mixin.css | #541444de | — |
| entity.other.attribute-name.id | #361C71de | — |
| entity.other.attribute-name.id.css | #095031de | — |
| entity.other.attribute-name.parent-selector.css | #5A1818de | — |
| entity.other.attribute-name.pseudo-class.css | #1B500Fde | — |
| entity.other.attribute-name.pseudo-element.css | #342F12de | — |
| entity.other.attribute-name.scss | #18304Ade | — |
| entity.other.document.begin.yaml | #1737176e | — |
| entity.other.inherited-class | #173610de | — |
| header | #1B500Fde | — |
| invalid | #650303de | — |
| keyword | #5C0446de | bold |
| keyword.codetag.notation.python | #45401Cde | bold |
| keyword.control | #600D0Dde | bold |
| keyword.control.anchor.regexp | #521F1Fde | bold |
| keyword.control.import.python | #1F3952de | bold |
| keyword.operator | #1E3818de | bold |
| keyword.operator.alignas | #23451Cde | bold |
| keyword.operator.alignof | #5A1818de | bold |
| keyword.operator.cast | #0F3705de | bold |
| keyword.operator.delete | #501A43de | bold |
| keyword.operator.documentation.powershell | #1636166e | bold |
| keyword.operator.expression | #5C0347de | bold |
| keyword.operator.instanceof | #073622de | bold |
| keyword.operator.logical.python | #352F07de | bold |
| keyword.operator.minus.exponent | #600D0Dde | bold |
| keyword.operator.negation.regexp | #2F0096de | bold |
| keyword.operator.new | #600D0Dde | bold |
| keyword.operator.noexcept | #19510Dde | bold |
| keyword.operator.or.regexp | #18382Ade | bold |
| keyword.operator.plus.exponent | #033721de | bold |
| keyword.operator.quantifier.regexp | #521F46de | bold |
| keyword.operator.sizeof | #1E354Cde | bold |
| keyword.operator.typeid | #264C1Ede | bold |
| keyword.operator.wordlike | #561144de | bold |
| keyword.other.operator | #6F255Cde | bold |
| keyword.other.package.java | #0F3705de | bold |
| keyword.other.unit | #173610de | bold |
| keyword.other.using | #033721de | bold |
| markup.bold | #19510Bde | — |
| markup.changed | #392468de | — |
| markup.deleted | #601010de | — |
| markup.fenced_code.block.markdown | #361C71de | — |
| markup.heading | #59214Bde | — |
| markup.inline.raw | #23451Cde | — |
| markup.inserted | #183611de | — |
| markup.italic | #521F1Fde | — |
| markup.raw.block.markdown | #264C1Ede | — |
| markup.strikethrough | #3C256Fde | — |
| markup.underline | #034587de | — |
| meta.block.c | #592121de | — |
| meta.block.c | #541444de | — |
| meta.class.java | #264C1Ede | — |
| meta.definition.variable.name | #032F5Ede | — |
| meta.diff.header | #033721de | — |
| meta.embedded | #234160de | — |
| meta.embedded.assembly | #213E1Ade | — |
| meta.function-call.arguments.python | #521F1Fde | — |
| meta.function-call.python | #362360de | — |
| meta.member.access.python | #570F45de | — |
| meta.method.java | #034587de | — |
| meta.object-literal.key | #1A3149de | — |
| meta.paragraph.markdown | #0D5032de | — |
| meta.preprocessor | #602351de | — |
| meta.preprocessor.numeric | #113525de | — |
| meta.preprocessor.string | #392468de | — |
| meta.scope.prerequisites.makefile | #682424de | — |
| meta.structure.dictionary.json.comments | #1736176e | — |
| meta.structure.dictionary.key.python | #521F1Fde | — |
| meta.structure.dictionary.value.json.comments | #1835186e | — |
| meta.template.expression | #362166de | — |
| meta.type.cast.expr | #511842de | bold |
| meta.type.new.expr | #5A1818de | bold |
| parameter | #105034de | — |
| punctuation.character.set.begin.regexp | #103050de | — |
| punctuation.character.set.end.regexp | #541E1Ede | — |
| punctuation.definition.array.begin.json | #602351de | — |
| punctuation.definition.character-class.regexp | #521F46de | — |
| punctuation.definition.comment | #1835186e | — |
| punctuation.definition.comment.json.comments | #1636166e | — |
| punctuation.definition.comment.python | #1636166e | — |
| punctuation.definition.dictionary.begin.json | #213E1Ade | — |
| punctuation.definition.dictionary.end.json | #6F255Cde | — |
| punctuation.definition.group.assertion.regexp | #103625de | — |
| punctuation.definition.group.regexp | #183611de | — |
| punctuation.definition.list.begin.json | #5C0347de | — |
| punctuation.definition.list.begin.markdown | #18382Ade | — |
| punctuation.definition.list.begin.python | #0B5032de | — |
| punctuation.definition.list.end.json | #353010de | — |
| punctuation.definition.list.end.markdown | #362168de | — |
| punctuation.definition.list.end.python | #19510Dde | — |
| punctuation.definition.parameters.begin.python | #541444de | — |
| punctuation.definition.parameters.end.bracket.round.java | #23451Cde | — |
| punctuation.definition.quote.begin.markdown | #362168de | — |
| punctuation.definition.tag | #2F0096de | — |
| punctuation.definition.template-expression.begin | #1C5010de | — |
| punctuation.definition.template-expression.end | #602351de | — |
| punctuation.section.class.begin.bracket.curly.java | #570F45de | — |
| punctuation.section.embedded | #0F3051de | — |
| punctuation.section.embedded.begin.php | #4E460Cde | — |
| punctuation.section.embedded.end.php | #1A3E2Ede | — |
| punctuation.terminator.java | #352F07de | — |
| source.cmake | #392468de | — |
| source.coffee.embedded | #18304Ade | — |
| source.cpp | #521F1Fde | — |
| source.css.less | #541444de | — |
| source.groovy.embedded | #0D5032de | — |
| source.java | #033721de | — |
| source.java-properties | #45401Cde | — |
| source.json.comments | #1737176e | — |
| source.makefile | #5A1818de | — |
| source.powershell | #15304Cde | — |
| source.powershell.variable.other.member | #342F12de | — |
| source.python | #1B500Fde | — |
| storage | #113525de | — |
| storage.modifier | #6F2525de | — |
| storage.modifier.import.java | #3E3A1Ade | — |
| storage.modifier.package.java | #3E3A1Ade | — |
| storage.type | #650303de | bold |
| storage.type.annotation.groovy | #2F0493de | bold |
| storage.type.annotation.java | #362166de | bold |
| storage.type.boolean.go | #18382Ade | bold |
| storage.type.byte.go | #352F07de | bold |
| storage.type.cs | #1E4C37de | bold |
| storage.type.error.go | #4D4610de | bold |
| storage.type.generic.cs | #193512de | bold |
| storage.type.generic.groovy | #592121de | bold |
| storage.type.generic.java | #551C1Cde | bold |
| storage.type.groovy | #113525de | bold |
| storage.type.java | #521F1Fde | bold |
| storage.type.modifier.cs | #105034de | bold |
| storage.type.numeric.go | #4E460Cde | bold |
| storage.type.object.array.groovy | #1E354Cde | bold |
| storage.type.object.array.java | #361C71de | bold |
| storage.type.parameters.groovy | #5C0446de | bold |
| storage.type.primitive.array.groovy | #581A1Ade | bold |
| storage.type.primitive.array.java | #362166de | bold |
| storage.type.primitive.groovy | #244668de | bold |
| storage.type.primitive.java | #18382Ade | bold |
| storage.type.rune.go | #5A1818de | bold |
| storage.type.string.go | #6F255Cde | bold |
| storage.type.token.java | #1A3E2Ede | bold |
| storage.type.uintptr.go | #341481de | bold |
| storage.type.variable.cs | #5C0347de | bold |
| string | #352F07de | — |
| string.quoted.docstring.multi.python | #1736176e | — |
| string.regexp | #4E460Ade | — |
| string.tag | #360D88de | — |
| string.value | #371F6Ade | — |
| strong | #511842de | — |
| support.class | #1B500Fde | — |
| support.constant.color | #521F1Fde | — |
| support.constant.dom | #5C1414de | — |
| support.constant.font-name | #362168de | — |
| support.constant.handlebars | #353010de | — |
| support.constant.json | #561144de | — |
| support.constant.math | #45401Cde | — |
| support.constant.media | #521F46de | — |
| support.constant.media-type | #213E1Ade | bold |
| support.constant.property-value | #2F0493de | — |
| support.function | #103050de | — |
| support.function.git-rebase | #361C71de | — |
| support.other.parenthesis.regexp | #640404de | — |
| support.type | #600D0Dde | bold |
| support.type.property-name | #1A3E2Ede | bold |
| support.type.vendored.property-name | #1B3147de | bold |
| support.variable | #0F5033de | — |
| token.debug-token | #1E4C37de | — |
| token.error-token | #640404de | — |
| token.info-token | #5C1414de | — |
| token.warn-token | #103050de | — |
| variable | #580E46de | — |
| variable.css | #511842de | — |
| variable.language | #113525de | — |
| variable.language.wildcard.java | #1E354Cde | — |
| variable.other.constant | #650303de | — |
| variable.other.definition.java | #362360de | — |
| variable.other.enummember | #033721de | — |
| variable.other.less | #4E460Fde | — |
| variable.other.object.java | #033721de | — |
| variable.other.object.property.java | #360D88de | — |
| variable.parameter.c | #1E354Cde | — |
| variable.parameter.function.language.python | #353010de | — |
| variable.parameter.java | #4E460Fde | — |
| variable.scss | #341481de | — |
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}!`;
}