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 | #1835186e | — |
| comment.block.html | #1835186e | — |
| comment.block.java | #1735176e | — |
| comment.block.javadoc.java | #1735176e | — |
| comment.block.powershell | #1735176e | — |
| comment.block.xml | #1935196e | — |
| comment.line.double-slash.c | #1935196e | — |
| comment.line.double-slash.cpp | #1735176e | — |
| comment.line.double-slash.java | #1735176e | — |
| comment.line.double-slash.js | #1935196e | — |
| comment.line.number-sign.makefile | #1735176e | — |
| comment.line.number-sign.python | #1735176e | — |
| comment.line.number-sign.yaml | #1735176e | — |
| comment.line.percentage.erlang | #1935196e | — |
| comment.line.powershell | #1735176e | — |
| comment.source.cmake | #1735176e | — |
| comment.source.cmakecache | #1735176e | — |
| constant.character | #511C2Dde | — |
| constant.character.character-class.regexp | #541B2Cde | — |
| constant.character.escape | #523B1Ede | — |
| constant.character.set.regexp | #293717de | — |
| constant.language | #4E0F5Ede | — |
| constant.numeric | #481E52de | — |
| constant.numeric.dec.python | #0A4D57de | — |
| constant.other.caps.python | #523B1Ede | — |
| constant.other.character-class.regexp | #0909A0de | — |
| constant.other.character-class.set.regexp | #0F4D56de | — |
| constant.other.color.rgb-value | #0B4D57de | — |
| constant.other.placeholder | #293717de | — |
| constant.other.rgb-value | #00343Bde | — |
| constant.regexp | #0A4D57de | — |
| constant.sha.git-rebase | #11361Bde | — |
| emphasis | #25256Bde | — |
| entity.name.class | #58172Ade | — |
| entity.name.function | #0D4D56de | — |
| entity.name.function.preprocessor | #0E0E9Bde | — |
| entity.name.function.python | #0D3616de | — |
| entity.name.label | #25256Fde | — |
| entity.name.namespace | #452803de | — |
| entity.name.operator | #24246Fde | — |
| entity.name.operator.custom-literal | #00343Bde | — |
| entity.name.scope-resolution | #1B3F44de | — |
| entity.name.tag | #4B1956de | — |
| entity.name.tag.css | #113338de | — |
| entity.name.type | #1E1E81de | bold |
| entity.name.variable | #0F4D56de | — |
| entity.other.attribute | #5D0E26de | — |
| entity.other.attribute-name | #643C08de | — |
| entity.other.attribute-name.class.css | #44321Bde | — |
| entity.other.attribute-name.class.mixin.css | #1C454Bde | — |
| entity.other.attribute-name.id | #26266Dde | — |
| entity.other.attribute-name.id.css | #1E1E81de | — |
| entity.other.attribute-name.parent-selector.css | #1C4B28de | — |
| entity.other.attribute-name.pseudo-class.css | #471C51de | — |
| entity.other.attribute-name.pseudo-element.css | #500D5Fde | — |
| entity.other.attribute-name.scss | #19393Dde | — |
| entity.other.document.begin.yaml | #1735176e | — |
| entity.other.inherited-class | #19393Dde | — |
| header | #6F243Bde | — |
| invalid | #5A2367de | — |
| keyword | #232373de | bold |
| keyword.codetag.notation.python | #3E2B0Fde | bold |
| keyword.control | #24330Fde | bold |
| keyword.control.anchor.regexp | #19393Dde | bold |
| keyword.control.import.python | #481E52de | bold |
| keyword.operator | #602135de | bold |
| keyword.operator.alignas | #243310de | bold |
| keyword.operator.alignof | #103338de | bold |
| keyword.operator.cast | #213407de | bold |
| keyword.operator.delete | #0505A3de | bold |
| keyword.operator.documentation.powershell | #1735176e | bold |
| keyword.operator.expression | #1B3F44de | bold |
| keyword.operator.instanceof | #113338de | bold |
| keyword.operator.logical.python | #402B11de | bold |
| keyword.operator.minus.exponent | #0F4D56de | bold |
| keyword.operator.negation.regexp | #105020de | bold |
| keyword.operator.new | #452803de | bold |
| keyword.operator.noexcept | #1E4B52de | bold |
| keyword.operator.or.regexp | #0A3439de | bold |
| keyword.operator.plus.exponent | #173337de | bold |
| keyword.operator.quantifier.regexp | #3D2C16de | bold |
| keyword.operator.sizeof | #643D0Cde | bold |
| keyword.operator.typeid | #374B1Cde | bold |
| keyword.operator.wordlike | #542160de | bold |
| keyword.other.operator | #1B3F44de | bold |
| keyword.other.package.java | #0D4D56de | bold |
| keyword.other.unit | #2F4E09de | bold |
| keyword.other.using | #1B1B87de | bold |
| markup.bold | #103338de | — |
| markup.changed | #17371Fde | — |
| markup.deleted | #24246Ede | — |
| markup.fenced_code.block.markdown | #4B1956de | — |
| markup.heading | #56192Cde | — |
| markup.inline.raw | #32441Bde | — |
| markup.inserted | #500D5Fde | — |
| markup.italic | #4B1756de | — |
| markup.raw.block.markdown | #1C4B28de | — |
| markup.strikethrough | #511C2Dde | — |
| markup.underline | #00343Bde | — |
| meta.block.c | #0C511Ede | — |
| meta.block.c | #4E2059de | — |
| meta.class.java | #3F2B10de | — |
| meta.definition.variable.name | #1E1E81de | — |
| meta.diff.header | #643C08de | — |
| meta.embedded | #592032de | — |
| meta.embedded.assembly | #594020de | — |
| meta.function-call.arguments.python | #304D0Cde | — |
| meta.function-call.python | #44321Bde | — |
| meta.member.access.python | #24246Ede | — |
| meta.method.java | #213407de | — |
| meta.object-literal.key | #5E0D29de | — |
| meta.paragraph.markdown | #5A2367de | — |
| meta.preprocessor | #0A3439de | — |
| meta.preprocessor.numeric | #0F361Bde | — |
| meta.preprocessor.string | #2D3D19de | — |
| meta.scope.prerequisites.makefile | #374B1Cde | — |
| meta.structure.dictionary.json.comments | #1735176e | — |
| meta.structure.dictionary.key.python | #620321de | — |
| meta.structure.dictionary.value.json.comments | #1735176e | — |
| meta.template.expression | #1B4425de | — |
| meta.type.cast.expr | #21217Ade | bold |
| meta.type.new.expr | #61246Fde | bold |
| parameter | #500D5Fde | — |
| punctuation.character.set.begin.regexp | #542160de | — |
| punctuation.character.set.end.regexp | #61246Fde | — |
| punctuation.definition.array.begin.json | #0D3616de | — |
| punctuation.definition.character-class.regexp | #0C511Ede | — |
| punctuation.definition.comment | #1735176e | — |
| punctuation.definition.comment.json.comments | #1835186e | — |
| punctuation.definition.comment.python | #1735176e | — |
| punctuation.definition.dictionary.begin.json | #00343Bde | — |
| punctuation.definition.dictionary.end.json | #1E1E81de | — |
| punctuation.definition.group.assertion.regexp | #11361Bde | — |
| punctuation.definition.group.regexp | #0E0E9Bde | — |
| punctuation.definition.list.begin.json | #293717de | — |
| punctuation.definition.list.begin.markdown | #1C4B28de | — |
| punctuation.definition.list.begin.python | #0B511Cde | — |
| punctuation.definition.list.end.json | #541B2Cde | — |
| punctuation.definition.list.end.markdown | #374B1Cde | — |
| punctuation.definition.list.end.python | #10333Ade | — |
| punctuation.definition.parameters.begin.python | #03343Bde | — |
| punctuation.definition.parameters.end.bracket.round.java | #44321Bde | — |
| punctuation.definition.quote.begin.markdown | #105020de | — |
| punctuation.definition.tag | #491B52de | — |
| punctuation.definition.template-expression.begin | #26266Dde | — |
| punctuation.definition.template-expression.end | #24330Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #1C454Bde | — |
| punctuation.section.embedded | #21217Ade | — |
| punctuation.section.embedded.begin.php | #0909A0de | — |
| punctuation.section.embedded.end.php | #033710de | — |
| punctuation.terminator.java | #324D0Dde | — |
| source.cmake | #10361Ade | — |
| source.coffee.embedded | #530066de | — |
| source.cpp | #3D2C16de | — |
| source.css.less | #3D2C16de | — |
| source.groovy.embedded | #0A4D57de | — |
| source.java | #402A0Dde | — |
| source.java-properties | #243310de | — |
| source.json.comments | #1735176e | — |
| source.makefile | #232373de | — |
| source.powershell | #314D0Fde | — |
| source.powershell.variable.other.member | #293717de | — |
| source.python | #3D2D19de | — |
| storage | #402B11de | — |
| storage.modifier | #193D22de | — |
| storage.modifier.import.java | #3D2D19de | — |
| storage.modifier.package.java | #1E1E81de | — |
| storage.type | #1F3503de | bold |
| storage.type.annotation.groovy | #2D3D19de | bold |
| storage.type.annotation.java | #24246Fde | bold |
| storage.type.boolean.go | #24246Fde | bold |
| storage.type.byte.go | #56192Cde | bold |
| storage.type.cs | #32441Bde | bold |
| storage.type.error.go | #25256Bde | bold |
| storage.type.generic.cs | #293717de | bold |
| storage.type.generic.groovy | #542160de | bold |
| storage.type.generic.java | #10333Ade | bold |
| storage.type.groovy | #4E2059de | bold |
| storage.type.java | #2D3D19de | bold |
| storage.type.modifier.cs | #314D0Fde | bold |
| storage.type.numeric.go | #193D22de | bold |
| storage.type.object.array.groovy | #5D0E26de | bold |
| storage.type.object.array.java | #5E0F26de | bold |
| storage.type.parameters.groovy | #243311de | bold |
| storage.type.primitive.array.groovy | #0C511Ede | bold |
| storage.type.primitive.array.java | #500D5Fde | bold |
| storage.type.primitive.groovy | #1B4425de | bold |
| storage.type.primitive.java | #043711de | bold |
| storage.type.rune.go | #594020de | bold |
| storage.type.string.go | #10333Ade | bold |
| storage.type.token.java | #592032de | bold |
| storage.type.uintptr.go | #0C511Ede | bold |
| storage.type.variable.cs | #10361Ade | bold |
| string | #58172Ade | — |
| string.quoted.docstring.multi.python | #1835186e | — |
| string.regexp | #11361Bde | — |
| string.tag | #105020de | — |
| string.value | #610522de | — |
| strong | #232373de | — |
| support.class | #594020de | — |
| support.constant.color | #402A0Dde | — |
| support.constant.dom | #1B1B87de | — |
| support.constant.font-name | #511C2Dde | — |
| support.constant.handlebars | #4E2059de | — |
| support.constant.json | #3D2C14de | — |
| support.constant.math | #0F361Bde | — |
| support.constant.media | #0909A0de | — |
| support.constant.media-type | #3D2D19de | bold |
| support.constant.property-value | #4B1756de | — |
| support.function | #304D0Cde | — |
| support.function.git-rebase | #24246Ede | — |
| support.other.parenthesis.regexp | #1C4B28de | — |
| support.type | #1C4B28de | bold |
| support.type.property-name | #5D0E26de | bold |
| support.type.vendored.property-name | #243311de | bold |
| support.variable | #610522de | — |
| token.debug-token | #0A4D57de | — |
| token.error-token | #4B1756de | — |
| token.info-token | #1B1B87de | — |
| token.warn-token | #0B4D57de | — |
| variable | #643C0Ade | — |
| variable.css | #4B1956de | — |
| variable.language | #643C0Ade | — |
| variable.language.wildcard.java | #620321de | — |
| variable.other.constant | #4B1956de | — |
| variable.other.definition.java | #3D2D19de | — |
| variable.other.enummember | #3E2B0Fde | — |
| variable.other.less | #4D1359de | — |
| variable.other.object.java | #232373de | — |
| variable.other.object.property.java | #481E52de | — |
| variable.parameter.c | #56192Cde | — |
| variable.parameter.function.language.python | #0F4D56de | — |
| variable.parameter.java | #610522de | — |
| variable.scss | #3E2B0Fde | — |
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}!`;
}