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 | #1437146e | — |
| comment.block.html | #1337136e | — |
| comment.block.java | #1437146e | — |
| comment.block.javadoc.java | #1337136e | — |
| comment.block.powershell | #1437146e | — |
| comment.block.xml | #1437146e | — |
| comment.line.double-slash.c | #1437146e | — |
| comment.line.double-slash.cpp | #1437146e | — |
| comment.line.double-slash.java | #1537156e | — |
| comment.line.double-slash.js | #1437146e | — |
| comment.line.number-sign.makefile | #1337136e | — |
| comment.line.number-sign.python | #1337136e | — |
| comment.line.number-sign.yaml | #1437146e | — |
| comment.line.percentage.erlang | #1437146e | — |
| comment.line.powershell | #1537156e | — |
| comment.source.cmake | #1537156e | — |
| comment.source.cmakecache | #1437146e | — |
| constant.character | #0A3812de | — |
| constant.character.character-class.regexp | #501F32de | — |
| constant.character.escape | #503827de | — |
| constant.character.set.regexp | #244343de | — |
| constant.language | #04380Dde | — |
| constant.numeric | #283404de | — |
| constant.numeric.dec.python | #640129de | — |
| constant.other.caps.python | #124E4Ede | — |
| constant.other.character-class.regexp | #12521Cde | — |
| constant.other.character-class.set.regexp | #193434de | — |
| constant.other.color.rgb-value | #193434de | — |
| constant.other.placeholder | #5B1231de | — |
| constant.other.rgb-value | #0E5219de | — |
| constant.regexp | #40254Fde | — |
| constant.sha.git-rebase | #3E4C15de | — |
| emphasis | #551B32de | — |
| entity.name.class | #262E55de | — |
| entity.name.function | #0A3812de | — |
| entity.name.function.preprocessor | #124E4Ede | — |
| entity.name.function.python | #452915de | — |
| entity.name.label | #193434de | — |
| entity.name.namespace | #262E55de | — |
| entity.name.operator | #234328de | — |
| entity.name.operator.custom-literal | #472814de | — |
| entity.name.scope-resolution | #134E4Ede | — |
| entity.name.tag | #363D20de | — |
| entity.name.tag.css | #293057de | — |
| entity.name.type | #572E6Bde | bold |
| entity.name.variable | #3D4C0Dde | — |
| entity.other.attribute | #1E3722de | — |
| entity.other.attribute-name | #571735de | — |
| entity.other.attribute-name.class.css | #283406de | — |
| entity.other.attribute-name.class.mixin.css | #3E4C15de | — |
| entity.other.attribute-name.id | #432B1Bde | — |
| entity.other.attribute-name.id.css | #0A3812de | — |
| entity.other.attribute-name.parent-selector.css | #244343de | — |
| entity.other.attribute-name.pseudo-class.css | #501F32de | — |
| entity.other.attribute-name.pseudo-element.css | #283404de | — |
| entity.other.attribute-name.scss | #2C3564de | — |
| entity.other.document.begin.yaml | #1437146e | — |
| entity.other.inherited-class | #053636de | — |
| header | #5D402Ade | — |
| invalid | #14511Ede | — |
| keyword | #1F3636de | bold |
| keyword.codetag.notation.python | #4D2132de | bold |
| keyword.control | #2C321Ade | bold |
| keyword.control.anchor.regexp | #2E386Bde | bold |
| keyword.control.import.python | #0E5219de | bold |
| keyword.operator | #001996de | bold |
| keyword.operator.alignas | #134E4Ede | bold |
| keyword.operator.alignof | #3E4C15de | bold |
| keyword.operator.cast | #193434de | bold |
| keyword.operator.delete | #503827de | bold |
| keyword.operator.documentation.powershell | #1337136e | bold |
| keyword.operator.expression | #234328de | bold |
| keyword.operator.instanceof | #571735de | bold |
| keyword.operator.logical.python | #293057de | bold |
| keyword.operator.minus.exponent | #043636de | bold |
| keyword.operator.negation.regexp | #0F3535de | bold |
| keyword.operator.new | #4B0F6Ade | bold |
| keyword.operator.noexcept | #3D4C0Dde | bold |
| keyword.operator.or.regexp | #193434de | bold |
| keyword.operator.plus.exponent | #502738de | bold |
| keyword.operator.quantifier.regexp | #124E4Ede | bold |
| keyword.operator.sizeof | #293310de | bold |
| keyword.operator.typeid | #001996de | bold |
| keyword.operator.wordlike | #252D54de | bold |
| keyword.other.operator | #422750de | bold |
| keyword.other.package.java | #40254Fde | bold |
| keyword.other.unit | #4C2A5Dde | bold |
| keyword.other.using | #363D20de | bold |
| markup.bold | #223D3Dde | — |
| markup.changed | #40254Fde | — |
| markup.deleted | #3E4C13de | — |
| markup.fenced_code.block.markdown | #1F3636de | — |
| markup.heading | #283406de | — |
| markup.inline.raw | #1E3722de | — |
| markup.inserted | #3E4C13de | — |
| markup.italic | #203D25de | — |
| markup.raw.block.markdown | #264949de | — |
| markup.strikethrough | #433023de | — |
| markup.underline | #551B32de | — |
| meta.block.c | #203D25de | — |
| meta.block.c | #164E4Ede | — |
| meta.class.java | #31371Ede | — |
| meta.definition.variable.name | #293057de | — |
| meta.diff.header | #642C43de | — |
| meta.embedded | #244343de | — |
| meta.embedded.assembly | #3D2C20de | — |
| meta.function-call.arguments.python | #433023de | — |
| meta.function-call.python | #272E50de | — |
| meta.member.access.python | #173434de | — |
| meta.method.java | #551B32de | — |
| meta.object-literal.key | #262D51de | — |
| meta.paragraph.markdown | #404A25de | — |
| meta.preprocessor | #4B0F6Ade | — |
| meta.preprocessor.numeric | #001996de | — |
| meta.preprocessor.string | #4F2305de | — |
| meta.scope.prerequisites.makefile | #432B1Bde | — |
| meta.structure.dictionary.json.comments | #1537156e | — |
| meta.structure.dictionary.key.python | #293057de | — |
| meta.structure.dictionary.value.json.comments | #1537156e | — |
| meta.template.expression | #0E5219de | — |
| meta.type.cast.expr | #10521Cde | bold |
| meta.type.new.expr | #472957de | bold |
| parameter | #551B32de | — |
| punctuation.character.set.begin.regexp | #402B18de | — |
| punctuation.character.set.end.regexp | #501F32de | — |
| punctuation.definition.array.begin.json | #244343de | — |
| punctuation.definition.character-class.regexp | #4F2305de | — |
| punctuation.definition.comment | #1437146e | — |
| punctuation.definition.comment.json.comments | #1337136e | — |
| punctuation.definition.comment.python | #1437146e | — |
| punctuation.definition.dictionary.begin.json | #733509de | — |
| punctuation.definition.dictionary.end.json | #244343de | — |
| punctuation.definition.group.assertion.regexp | #3F254Dde | — |
| punctuation.definition.group.regexp | #733509de | — |
| punctuation.definition.list.begin.json | #173434de | — |
| punctuation.definition.list.begin.markdown | #16361Ade | — |
| punctuation.definition.list.begin.python | #244343de | — |
| punctuation.definition.list.end.json | #3E4C15de | — |
| punctuation.definition.list.end.markdown | #1F3636de | — |
| punctuation.definition.list.end.python | #733509de | — |
| punctuation.definition.parameters.begin.python | #124E4Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #6B2E47de | — |
| punctuation.definition.quote.begin.markdown | #4D0E6Ade | — |
| punctuation.definition.tag | #3E4C11de | — |
| punctuation.definition.template-expression.begin | #283406de | — |
| punctuation.definition.template-expression.end | #422750de | — |
| punctuation.section.class.begin.bracket.curly.java | #3D4C0Dde | — |
| punctuation.section.embedded | #2E386Bde | — |
| punctuation.section.embedded.begin.php | #432153de | — |
| punctuation.section.embedded.end.php | #501F32de | — |
| punctuation.terminator.java | #642C43de | — |
| source.cmake | #232D5Ade | — |
| source.coffee.embedded | #5D2A40de | — |
| source.cpp | #422750de | — |
| source.css.less | #5B1231de | — |
| source.groovy.embedded | #422750de | — |
| source.java | #3D4C0Dde | — |
| source.java-properties | #10521Cde | — |
| source.json.comments | #1437146e | — |
| source.makefile | #573C29de | — |
| source.powershell | #402B18de | — |
| source.powershell.variable.other.member | #432153de | — |
| source.python | #283404de | — |
| storage | #5B1231de | — |
| storage.modifier | #14511Ede | — |
| storage.modifier.import.java | #40254Fde | — |
| storage.modifier.package.java | #422750de | — |
| storage.type | #293315de | bold |
| storage.type.annotation.groovy | #2E386Bde | bold |
| storage.type.annotation.java | #4A3425de | bold |
| storage.type.boolean.go | #503827de | bold |
| storage.type.byte.go | #244343de | bold |
| storage.type.cs | #31371Ede | bold |
| storage.type.error.go | #640129de | bold |
| storage.type.generic.cs | #4A1465de | bold |
| storage.type.generic.groovy | #501F32de | bold |
| storage.type.generic.java | #471B5Dde | bold |
| storage.type.groovy | #571735de | bold |
| storage.type.java | #1F3636de | bold |
| storage.type.modifier.cs | #173434de | bold |
| storage.type.numeric.go | #223D3Dde | bold |
| storage.type.object.array.groovy | #12521Cde | bold |
| storage.type.object.array.java | #433023de | bold |
| storage.type.parameters.groovy | #203D25de | bold |
| storage.type.primitive.array.groovy | #0C5218de | bold |
| storage.type.primitive.array.java | #4A1465de | bold |
| storage.type.primitive.groovy | #173434de | bold |
| storage.type.primitive.java | #5D2A40de | bold |
| storage.type.rune.go | #10521Cde | bold |
| storage.type.string.go | #223D3Dde | bold |
| storage.type.token.java | #001996de | bold |
| storage.type.uintptr.go | #001996de | bold |
| storage.type.variable.cs | #031B92de | bold |
| string | #4E2404de | — |
| string.quoted.docstring.multi.python | #1437146e | — |
| string.regexp | #733509de | — |
| string.tag | #293057de | — |
| string.value | #262E55de | — |
| strong | #2C3564de | — |
| support.class | #3B4323de | — |
| support.constant.color | #471B5Dde | — |
| support.constant.dom | #452915de | — |
| support.constant.font-name | #2A335Dde | — |
| support.constant.handlebars | #16361Bde | — |
| support.constant.json | #573C29de | — |
| support.constant.math | #193434de | — |
| support.constant.media | #6B2E47de | — |
| support.constant.media-type | #522C64de | bold |
| support.constant.property-value | #432B1Bde | — |
| support.function | #5B1231de | — |
| support.function.git-rebase | #0E5219de | — |
| support.other.parenthesis.regexp | #3F254Dde | — |
| support.type | #272E50de | bold |
| support.type.property-name | #432153de | bold |
| support.type.vendored.property-name | #40254Fde | bold |
| support.variable | #31371Ede | — |
| token.debug-token | #402B18de | — |
| token.error-token | #2C3564de | — |
| token.info-token | #63042Dde | — |
| token.warn-token | #01390Cde | — |
| variable | #234328de | — |
| variable.css | #640129de | — |
| variable.language | #471B5Dde | — |
| variable.language.wildcard.java | #12521Cde | — |
| variable.other.constant | #40254Fde | — |
| variable.other.definition.java | #203D25de | — |
| variable.other.enummember | #733509de | — |
| variable.other.less | #3B4323de | — |
| variable.other.object.java | #234328de | — |
| variable.other.object.property.java | #6B2E47de | — |
| variable.parameter.c | #0A3812de | — |
| variable.parameter.function.language.python | #0F3535de | — |
| variable.parameter.java | #262E55de | — |
| variable.scss | #16361Ade | — |
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}!`;
}