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 | #61472D6e | — |
| comment.block.html | #64452E6e | — |
| comment.block.java | #62452F6e | — |
| comment.block.javadoc.java | #62452F6e | — |
| comment.block.powershell | #61472D6e | — |
| comment.block.xml | #61472D6e | — |
| comment.line.double-slash.c | #62452F6e | — |
| comment.line.double-slash.cpp | #66442E6e | — |
| comment.line.double-slash.java | #61472D6e | — |
| comment.line.double-slash.js | #64452E6e | — |
| comment.line.number-sign.makefile | #61472D6e | — |
| comment.line.number-sign.python | #64452E6e | — |
| comment.line.number-sign.yaml | #62452F6e | — |
| comment.line.percentage.erlang | #62452F6e | — |
| comment.line.powershell | #61472D6e | — |
| comment.source.cmake | #62452F6e | — |
| comment.source.cmakecache | #66442E6e | — |
| constant.character | #5305DEde | — |
| constant.character.character-class.regexp | #822A68de | — |
| constant.character.escape | #5E244Dde | — |
| constant.character.set.regexp | #215644de | — |
| constant.language | #97150Bde | — |
| constant.numeric | #295621de | — |
| constant.numeric.dec.python | #16580Ade | — |
| constant.other.caps.python | #5E2824de | — |
| constant.other.character-class.regexp | #4C4C4Cde | — |
| constant.other.character-class.set.regexp | #9B0F05de | — |
| constant.other.color.rgb-value | #295621de | — |
| constant.other.placeholder | #15580Bde | — |
| constant.other.rgb-value | #853129de | — |
| constant.regexp | #9A130Ade | — |
| constant.sha.git-rebase | #534E09de | — |
| emphasis | #99150Bde | — |
| entity.name.class | #812968de | — |
| entity.name.function | #4C4C4Cde | — |
| entity.name.function.preprocessor | #5202E3de | — |
| entity.name.function.python | #5305DEde | — |
| entity.name.label | #15580Bde | — |
| entity.name.namespace | #135807de | — |
| entity.name.operator | #432873de | — |
| entity.name.operator.custom-literal | #534E0Bde | — |
| entity.name.scope-resolution | #73285Ede | — |
| entity.name.tag | #822969de | — |
| entity.name.tag.css | #215643de | — |
| entity.name.type | #5200E3de | bold |
| entity.name.variable | #9A1106de | — |
| entity.other.attribute | #16580Bde | — |
| entity.other.attribute-name | #424242de | — |
| entity.other.attribute-name.class.css | #86302Ade | — |
| entity.other.attribute-name.class.mixin.css | #4D4D4Dde | — |
| entity.other.attribute-name.id | #4D4D4Dde | — |
| entity.other.attribute-name.id.css | #534E09de | — |
| entity.other.attribute-name.parent-selector.css | #5B2DB0de | — |
| entity.other.attribute-name.pseudo-class.css | #15580Bde | — |
| entity.other.attribute-name.pseudo-element.css | #544E0Bde | — |
| entity.other.attribute-name.scss | #20503Fde | — |
| entity.other.document.begin.yaml | #61472D6e | — |
| entity.other.inherited-class | #4D4D4Dde | bold |
| header | #135807de | — |
| invalid | #155909de | — |
| keyword | #4D4D4Dde | bold |
| keyword.codetag.notation.python | #534E09de | bold |
| keyword.control | #4D4D4Dde | bold |
| keyword.control.anchor.regexp | #822A69de | bold |
| keyword.control.import.python | #0A583Cde | bold |
| keyword.operator | #125906de | bold |
| keyword.operator.alignas | #4F4C20de | bold |
| keyword.operator.alignof | #16590Ade | bold |
| keyword.operator.cast | #822968de | bold |
| keyword.operator.delete | #0A563Bde | bold |
| keyword.operator.documentation.powershell | #64452E6e | bold |
| keyword.operator.expression | #084D34de | bold |
| keyword.operator.instanceof | #991308de | bold |
| keyword.operator.logical.python | #424242de | bold |
| keyword.operator.minus.exponent | #900969de | bold |
| keyword.operator.negation.regexp | #0A573Cde | bold |
| keyword.operator.new | #084D34de | bold |
| keyword.operator.noexcept | #5202E3de | bold |
| keyword.operator.or.regexp | #15580Bde | bold |
| keyword.operator.plus.exponent | #0B583Cde | bold |
| keyword.operator.quantifier.regexp | #0B583Cde | bold |
| keyword.operator.sizeof | #5D2DAFde | bold |
| keyword.operator.typeid | #5305DEde | bold |
| keyword.operator.wordlike | #424242de | bold |
| keyword.other.operator | #823129de | bold |
| keyword.other.package.java | #5B2EACde | bold |
| keyword.other.unit | #822969de | bold |
| keyword.other.using | #0B573Bde | bold |
| markup.bold | #524C0Ade | — |
| markup.changed | #0B583Cde | — |
| markup.deleted | #9C0F04de | — |
| markup.fenced_code.block.markdown | #5407DFde | — |
| markup.heading | #5C2EAFde | — |
| markup.inline.raw | #4D4D4Dde | — |
| markup.inserted | #534E0Bde | — |
| markup.italic | #16590Bde | — |
| markup.raw.block.markdown | #5200E3de | — |
| markup.strikethrough | #544E0Bde | — |
| markup.underline | #98150Bde | — |
| meta.block.c | #544E0Bde | — |
| meta.block.c | #9A130Ade | — |
| meta.class.java | #92056Ade | — |
| meta.definition.variable.name | #85312Ade | — |
| meta.diff.header | #4D4D4Dde | — |
| meta.embedded | #0A563Bde | — |
| meta.embedded.assembly | #534E0Bde | — |
| meta.function-call.arguments.python | #544E08de | — |
| meta.function-call.python | #295621de | — |
| meta.member.access.python | #822969de | — |
| meta.method.java | #920A6Bde | — |
| meta.object-literal.key | #5206DDde | — |
| meta.paragraph.markdown | #4D4D4Dde | — |
| meta.preprocessor | #4D4D4Dde | — |
| meta.preprocessor.numeric | #802968de | — |
| meta.preprocessor.string | #9A1106de | — |
| meta.scope.prerequisites.makefile | #86302Bde | — |
| meta.structure.dictionary.json.comments | #66442E6e | — |
| meta.structure.dictionary.key.python | #534E09de | — |
| meta.structure.dictionary.value.json.comments | #61472D6e | — |
| meta.template.expression | #4D4D4Dde | — |
| meta.type.cast.expr | #4D4D4Dde | — |
| meta.type.new.expr | #534E0Ade | — |
| parameter | #4D4D4Dde | — |
| punctuation.character.set.begin.regexp | #46297Bde | — |
| punctuation.character.set.end.regexp | #524D0Ade | — |
| punctuation.definition.array.begin.json | #145908de | — |
| punctuation.definition.character-class.regexp | #0B583Cde | — |
| punctuation.definition.comment | #64452E6e | — |
| punctuation.definition.comment.json.comments | #66442E6e | — |
| punctuation.definition.comment.python | #62452F6e | — |
| punctuation.definition.dictionary.begin.json | #822968de | — |
| punctuation.definition.dictionary.end.json | #135807de | — |
| punctuation.definition.group.assertion.regexp | #25491Ede | — |
| punctuation.definition.group.regexp | #5B2DADde | — |
| punctuation.definition.list.begin.json | #524C0Ade | — |
| punctuation.definition.list.begin.markdown | #534E0Ade | — |
| punctuation.definition.list.begin.python | #5E2DADde | — |
| punctuation.definition.list.end.json | #73285Ede | — |
| punctuation.definition.list.end.markdown | #16570Bde | — |
| punctuation.definition.list.end.python | #85312Ade | — |
| punctuation.definition.parameters.begin.python | #4D4D4Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #9A1409de | — |
| punctuation.definition.quote.begin.markdown | #4D4D4Dde | — |
| punctuation.definition.tag | #08432Dde | — |
| punctuation.definition.template-expression.begin | #920A6Bde | — |
| punctuation.definition.template-expression.end | #652553de | — |
| punctuation.section.class.begin.bracket.curly.java | #4D4D4Dde | — |
| punctuation.section.embedded | #544E0Bde | — |
| punctuation.section.embedded.begin.php | #49461Ede | — |
| punctuation.section.embedded.end.php | #4D4D4Dde | — |
| punctuation.terminator.java | #502C92de | — |
| source.cmake | #652A25de | — |
| source.coffee.embedded | #25491Ede | — |
| source.cpp | #16590Ade | — |
| source.css.less | #0B583Cde | — |
| source.groovy.embedded | #393939de | — |
| source.java | #424242de | — |
| source.java-properties | #5200E3de | — |
| source.json.comments | #61472D6e | — |
| source.makefile | #524D0Ade | — |
| source.powershell | #97150Bde | — |
| source.powershell.variable.other.member | #4D4D4Dde | — |
| source.python | #524C0Ade | — |
| storage | #9B0F05de | — |
| storage.modifier | #432873de | — |
| storage.modifier.import.java | #4F00DDde | — |
| storage.modifier.package.java | #85312Ade | — |
| storage.type | #910B6Bde | bold |
| storage.type.annotation.groovy | #4D4D4Dde | bold |
| storage.type.annotation.java | #991409de | bold |
| storage.type.boolean.go | #991207de | bold |
| storage.type.byte.go | #3C391Ade | bold |
| storage.type.cs | #4D4D4Dde | bold |
| storage.type.error.go | #0B583Cde | bold |
| storage.type.generic.cs | #0B583Cde | bold |
| storage.type.generic.groovy | #920B6Bde | bold |
| storage.type.generic.java | #16590Ade | bold |
| storage.type.groovy | #215643de | bold |
| storage.type.java | #542D9Ade | bold |
| storage.type.modifier.cs | #823129de | bold |
| storage.type.numeric.go | #93066Bde | bold |
| storage.type.object.array.groovy | #4B4B4Bde | bold |
| storage.type.object.array.java | #822968de | bold |
| storage.type.parameters.groovy | #534D0Bde | bold |
| storage.type.primitive.array.groovy | #15590Ade | bold |
| storage.type.primitive.array.java | #16580Bde | bold |
| storage.type.primitive.groovy | #15590Ade | bold |
| storage.type.primitive.java | #502C92de | bold |
| storage.type.rune.go | #49461Ede | bold |
| storage.type.string.go | #534E0Ade | bold |
| storage.type.token.java | #822A69de | bold |
| storage.type.uintptr.go | #095338de | bold |
| storage.type.variable.cs | #812967de | bold |
| string | #084D34de | — |
| string.quoted.docstring.multi.python | #66442E6e | — |
| string.regexp | #4C4C4Cde | — |
| string.tag | #534E0Bde | — |
| string.value | #4A2A82de | — |
| strong | #4D4D4Dde | — |
| support.class | #920A6Bde | — |
| support.constant.color | #86302Ade | — |
| support.constant.dom | #82302Ade | — |
| support.constant.font-name | #822969de | — |
| support.constant.handlebars | #215644de | — |
| support.constant.json | #822968de | — |
| support.constant.math | #094730de | — |
| support.constant.media | #542D9Ade | — |
| support.constant.media-type | #22421Dde | — |
| support.constant.property-value | #432873de | — |
| support.function | #46297Bde | — |
| support.function.git-rebase | #16570Bde | — |
| support.other.parenthesis.regexp | #4D4D4Dde | — |
| support.type | #4C4C4Cde | bold |
| support.type.property-name | #3E3E3Ede | bold |
| support.type.vendored.property-name | #544E0Bde | bold |
| support.variable | #9A1409de | — |
| token.debug-token | #125906de | — |
| token.error-token | #991207de | — |
| token.info-token | #822968de | — |
| token.warn-token | #4D4D4Dde | — |
| variable | #5305DEde | — |
| variable.css | #544E07de | — |
| variable.language | #4D2B8Ade | — |
| variable.language.wildcard.java | #991308de | — |
| variable.other.constant | #5E2824de | — |
| variable.other.definition.java | #0A573Cde | — |
| variable.other.enummember | #544E06de | — |
| variable.other.less | #16570Bde | — |
| variable.other.object.java | #16590Bde | — |
| variable.other.object.property.java | #0B573Bde | — |
| variable.parameter.c | #15590Ade | — |
| variable.parameter.function.language.python | #3E3E3Ede | — |
| variable.parameter.java | #4D4D4Dde | — |
| variable.scss | #4B4B4Bde | — |
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}!`;
}