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 | #2E542E6e | — |
| comment.block.html | #2E542E6e | — |
| comment.block.java | #2E542E6e | — |
| comment.block.javadoc.java | #3154316e | — |
| comment.block.powershell | #2E542E6e | — |
| comment.block.xml | #2E542E6e | — |
| comment.line.double-slash.c | #3154316e | — |
| comment.line.double-slash.cpp | #3154316e | — |
| comment.line.double-slash.java | #2E542E6e | — |
| comment.line.double-slash.js | #2E542E6e | — |
| comment.line.number-sign.makefile | #3154316e | — |
| comment.line.number-sign.python | #3154316e | — |
| comment.line.number-sign.yaml | #3154316e | — |
| comment.line.percentage.erlang | #2E542E6e | — |
| comment.line.powershell | #2E542E6e | — |
| comment.source.cmake | #2E542E6e | — |
| comment.source.cmakecache | #2E542E6e | — |
| constant.character | #335605de | — |
| constant.character.character-class.regexp | #335607de | — |
| constant.character.escape | #8C2340de | — |
| constant.character.set.regexp | #9B0931de | — |
| constant.language | #763F09de | — |
| constant.numeric | #4D4D4Dde | — |
| constant.numeric.dec.python | #763F08de | — |
| constant.other.caps.python | #9C052Fde | — |
| constant.other.character-class.regexp | #4D4D4Dde | — |
| constant.other.character-class.set.regexp | #83089Cde | — |
| constant.other.color.rgb-value | #09555Fde | — |
| constant.other.placeholder | #763E06de | — |
| constant.other.rgb-value | #82079Bde | — |
| constant.regexp | #4D4D4Dde | — |
| constant.sha.git-rebase | #085118de | — |
| emphasis | #4D4D4Dde | — |
| entity.name.class | #8E2440de | — |
| entity.name.function | #4D4D4Dde | — |
| entity.name.function.preprocessor | #6A441Fde | — |
| entity.name.function.python | #753F09de | — |
| entity.name.label | #743F09de | — |
| entity.name.namespace | #8D2240de | — |
| entity.name.operator | #074315de | — |
| entity.name.operator.custom-literal | #074951de | — |
| entity.name.scope-resolution | #335509de | — |
| entity.name.tag | #335509de | — |
| entity.name.tag.css | #4D4D4Dde | — |
| entity.name.type | #9B0931de | bold |
| entity.name.variable | #335509de | — |
| entity.other.attribute | #753F09de | — |
| entity.other.attribute-name | #4D4D4Dde | — |
| entity.other.attribute-name.class.css | #7A238Cde | — |
| entity.other.attribute-name.class.mixin.css | #4D4D4Dde | — |
| entity.other.attribute-name.id | #9C052Fde | — |
| entity.other.attribute-name.id.css | #9B0931de | — |
| entity.other.attribute-name.parent-selector.css | #335509de | — |
| entity.other.attribute-name.pseudo-class.css | #194D24de | — |
| entity.other.attribute-name.pseudo-element.css | #763E06de | — |
| entity.other.attribute-name.scss | #1C545Bde | — |
| entity.other.document.begin.yaml | #2E542E6e | — |
| entity.other.inherited-class | #8E2341de | bold |
| header | #8E2341de | — |
| invalid | #792139de | — |
| keyword | #8C2340de | bold |
| keyword.codetag.notation.python | #1B5427de | bold |
| keyword.control | #325606de | bold |
| keyword.control.anchor.regexp | #1B4D54de | bold |
| keyword.control.import.python | #8F2340de | bold |
| keyword.operator | #8F2340de | bold |
| keyword.operator.alignas | #4D4D4Dde | bold |
| keyword.operator.alignof | #753F09de | bold |
| keyword.operator.cast | #4D4D4Dde | bold |
| keyword.operator.delete | #763E07de | bold |
| keyword.operator.documentation.powershell | #2E542E6e | bold |
| keyword.operator.expression | #174622de | bold |
| keyword.operator.instanceof | #4D4D4Dde | bold |
| keyword.operator.logical.python | #7A238Cde | bold |
| keyword.operator.minus.exponent | #09545Dde | bold |
| keyword.operator.negation.regexp | #09545Dde | bold |
| keyword.operator.new | #4D4D4Dde | bold |
| keyword.operator.noexcept | #83069Cde | bold |
| keyword.operator.or.regexp | #335509de | bold |
| keyword.operator.plus.exponent | #4D4D4Dde | bold |
| keyword.operator.quantifier.regexp | #763F09de | bold |
| keyword.operator.sizeof | #09591Bde | bold |
| keyword.operator.typeid | #09545Dde | bold |
| keyword.operator.wordlike | #743F09de | bold |
| keyword.other.operator | #9B0931de | bold |
| keyword.other.package.java | #3A541Bde | bold |
| keyword.other.unit | #6C441Ede | bold |
| keyword.other.using | #4C4C4Cde | bold |
| markup.bold | #763E08de | — |
| markup.changed | #9B0730de | — |
| markup.deleted | #2C3F16de | — |
| markup.fenced_code.block.markdown | #69441Ede | — |
| markup.heading | #8D2342de | — |
| markup.inline.raw | #9B0630de | — |
| markup.inserted | #3A541Bde | — |
| markup.italic | #1C545Bde | — |
| markup.raw.block.markdown | #712280de | — |
| markup.strikethrough | #9B0630de | — |
| markup.underline | #4D4D4Dde | — |
| meta.block.c | #7C238Dde | — |
| meta.block.c | #9B042Ede | — |
| meta.class.java | #4D4D4Dde | — |
| meta.definition.variable.name | #335607de | — |
| meta.diff.header | #9C062Fde | — |
| meta.embedded | #4D4D4Dde | — |
| meta.embedded.assembly | #753F09de | — |
| meta.function-call.arguments.python | #09555Fde | — |
| meta.function-call.python | #095018de | — |
| meta.member.access.python | #8E2341de | — |
| meta.method.java | #085A1Ade | — |
| meta.object-literal.key | #393939de | — |
| meta.paragraph.markdown | #095A1Bde | — |
| meta.preprocessor | #712036de | — |
| meta.preprocessor.numeric | #7A238Cde | — |
| meta.preprocessor.string | #09545Dde | — |
| meta.scope.prerequisites.makefile | #753E08de | — |
| meta.structure.dictionary.json.comments | #3154316e | — |
| meta.structure.dictionary.key.python | #335508de | — |
| meta.structure.dictionary.value.json.comments | #3154316e | — |
| meta.template.expression | #753F09de | — |
| meta.type.cast.expr | #314617de | — |
| meta.type.new.expr | #325408de | — |
| parameter | #712280de | — |
| punctuation.character.set.begin.regexp | #753F09de | — |
| punctuation.character.set.end.regexp | #6C441Ede | — |
| punctuation.definition.array.begin.json | #335509de | — |
| punctuation.definition.character-class.regexp | #4C4C4Cde | — |
| punctuation.definition.comment | #3154316e | — |
| punctuation.definition.comment.json.comments | #3154316e | — |
| punctuation.definition.comment.python | #3154316e | — |
| punctuation.definition.dictionary.begin.json | #4D4D4Dde | — |
| punctuation.definition.dictionary.end.json | #9B0630de | — |
| punctuation.definition.group.assertion.regexp | #335607de | — |
| punctuation.definition.group.regexp | #772388de | — |
| punctuation.definition.list.begin.json | #09581Ade | — |
| punctuation.definition.list.begin.markdown | #095A1Bde | — |
| punctuation.definition.list.begin.python | #84039Ede | — |
| punctuation.definition.list.end.json | #095A1Bde | — |
| punctuation.definition.list.end.markdown | #335508de | — |
| punctuation.definition.list.end.python | #763F09de | — |
| punctuation.definition.parameters.begin.python | #7C238Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #09591Ade | — |
| punctuation.definition.quote.begin.markdown | #08535Cde | — |
| punctuation.definition.tag | #075117de | — |
| punctuation.definition.template-expression.begin | #325408de | — |
| punctuation.definition.template-expression.end | #09555Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #9B0831de | — |
| punctuation.section.embedded | #763E06de | — |
| punctuation.section.embedded.begin.php | #9C0831de | — |
| punctuation.section.embedded.end.php | #325606de | — |
| punctuation.terminator.java | #79238Ade | — |
| source.cmake | #79238Ade | — |
| source.coffee.embedded | #4D4D4Dde | — |
| source.cpp | #09555Ede | — |
| source.css.less | #4D4D4Dde | — |
| source.groovy.embedded | #345609de | — |
| source.java | #84039Ede | — |
| source.java-properties | #8D2342de | — |
| source.json.comments | #2E542E6e | — |
| source.makefile | #314617de | — |
| source.powershell | #712280de | — |
| source.powershell.variable.other.member | #743F09de | — |
| source.python | #7C238Dde | — |
| storage | #09591Bde | — |
| storage.modifier | #9A0831de | — |
| storage.modifier.import.java | #79238Ade | — |
| storage.modifier.package.java | #4C4C4Cde | — |
| storage.type | #83099Bde | bold |
| storage.type.annotation.groovy | #9C0931de | bold |
| storage.type.annotation.java | #09555Fde | bold |
| storage.type.boolean.go | #88233Fde | bold |
| storage.type.byte.go | #9C052Fde | bold |
| storage.type.cs | #712280de | bold |
| storage.type.error.go | #82089Ade | bold |
| storage.type.generic.cs | #325606de | bold |
| storage.type.generic.groovy | #325408de | bold |
| storage.type.generic.java | #09545Dde | bold |
| storage.type.groovy | #4D4D4Dde | bold |
| storage.type.java | #074315de | bold |
| storage.type.modifier.cs | #9B0630de | bold |
| storage.type.numeric.go | #753F09de | bold |
| storage.type.object.array.groovy | #095018de | bold |
| storage.type.object.array.java | #4D4D4Dde | bold |
| storage.type.parameters.groovy | #4D4D4Dde | bold |
| storage.type.primitive.array.groovy | #335509de | bold |
| storage.type.primitive.array.java | #2C3F16de | bold |
| storage.type.primitive.groovy | #9C052Fde | bold |
| storage.type.primitive.java | #335607de | bold |
| storage.type.rune.go | #4C4C4Cde | bold |
| storage.type.string.go | #074951de | bold |
| storage.type.token.java | #09591Ade | bold |
| storage.type.uintptr.go | #763F09de | bold |
| storage.type.variable.cs | #7B228Dde | bold |
| string | #335607de | — |
| string.quoted.docstring.multi.python | #3154316e | — |
| string.regexp | #07505Ade | — |
| string.tag | #09591Bde | — |
| string.value | #09581Bde | — |
| strong | #83089Cde | — |
| support.class | #064A15de | — |
| support.constant.color | #9C062Fde | — |
| support.constant.dom | #4D4D4Dde | — |
| support.constant.font-name | #325606de | — |
| support.constant.handlebars | #4D4D4Dde | — |
| support.constant.json | #5B3C1Cde | — |
| support.constant.math | #6A441Fde | — |
| support.constant.media | #772388de | — |
| support.constant.media-type | #84039Ede | — |
| support.constant.property-value | #09545Dde | — |
| support.function | #3E3E3Ede | — |
| support.function.git-rebase | #4D4D4Dde | — |
| support.other.parenthesis.regexp | #4D4D4Dde | — |
| support.type | #325408de | bold |
| support.type.property-name | #773E06de | bold |
| support.type.vendored.property-name | #571D62de | bold |
| support.variable | #9C0931de | — |
| token.debug-token | #095A1Bde | — |
| token.error-token | #8D2342de | — |
| token.info-token | #095018de | — |
| token.warn-token | #7C238Dde | — |
| variable | #83099Cde | — |
| variable.css | #753F09de | — |
| variable.language | #4D4D4Dde | — |
| variable.language.wildcard.java | #095A1Ade | — |
| variable.other.constant | #9C0831de | — |
| variable.other.definition.java | #084014de | — |
| variable.other.enummember | #753F09de | — |
| variable.other.less | #5B3C1Cde | — |
| variable.other.object.java | #364D19de | — |
| variable.other.object.property.java | #1C545Bde | — |
| variable.parameter.c | #4D4D4Dde | — |
| variable.parameter.function.language.python | #2C3F16de | — |
| variable.parameter.java | #753F09de | — |
| variable.scss | #8D2342de | — |
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}!`;
}