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 | #3030306e | — |
| comment.block.html | #3030306e | — |
| comment.block.java | #3030306e | — |
| comment.block.javadoc.java | #3030306e | — |
| comment.block.powershell | #3030306e | — |
| comment.block.xml | #3030306e | — |
| comment.line.double-slash.c | #3030306e | — |
| comment.line.double-slash.cpp | #3030306e | — |
| comment.line.double-slash.java | #3030306e | — |
| comment.line.double-slash.js | #3030306e | — |
| comment.line.number-sign.makefile | #3030306e | — |
| comment.line.number-sign.python | #3030306e | — |
| comment.line.number-sign.yaml | #3030306e | — |
| comment.line.percentage.erlang | #3030306e | — |
| comment.line.powershell | #3030306e | — |
| comment.source.cmake | #3030306e | — |
| comment.source.cmakecache | #3030306e | — |
| constant.character | #344934de | — |
| constant.character.character-class.regexp | #4B1F4Bde | — |
| constant.character.escape | #073907de | — |
| constant.character.set.regexp | #492727de | — |
| constant.language | #1B521Bde | — |
| constant.numeric | #073907de | — |
| constant.numeric.dec.python | #2F2F45de | — |
| constant.other.caps.python | #2F2F45de | — |
| constant.other.character-class.regexp | #3E3E69de | — |
| constant.other.character-class.set.regexp | #3D2A3Dde | — |
| constant.other.color.rgb-value | #5B3B3Bde | — |
| constant.other.placeholder | #2F3D2Fde | — |
| constant.other.rgb-value | #103810de | — |
| constant.regexp | #0101ABde | — |
| constant.sha.git-rebase | #073907de | — |
| emphasis | #155215de | — |
| entity.name.class | #175217de | — |
| entity.name.function | #1111A0de | — |
| entity.name.function.preprocessor | #073907de | — |
| entity.name.function.python | #7E0F7Ede | — |
| entity.name.label | #5B3B5Bde | — |
| entity.name.namespace | #36364Fde | — |
| entity.name.operator | #433243de | — |
| entity.name.operator.custom-literal | #155215de | — |
| entity.name.scope-resolution | #135213de | — |
| entity.name.tag | #581C1Cde | — |
| entity.name.tag.css | #581C1Cde | — |
| entity.name.type | #502222de | bold |
| entity.name.variable | #660606de | — |
| entity.other.attribute | #433232de | — |
| entity.other.attribute-name | #433232de | — |
| entity.other.attribute-name.class.css | #1111A0de | — |
| entity.other.attribute-name.class.mixin.css | #5B3B5Bde | — |
| entity.other.attribute-name.id | #492727de | — |
| entity.other.attribute-name.id.css | #3E3E69de | — |
| entity.other.attribute-name.parent-selector.css | #0101ABde | — |
| entity.other.attribute-name.pseudo-class.css | #623C3Cde | — |
| entity.other.attribute-name.pseudo-element.css | #3C3C62de | — |
| entity.other.attribute-name.scss | #433232de | — |
| entity.other.document.begin.yaml | #3030306e | — |
| entity.other.inherited-class | #502222de | — |
| header | #324332de | — |
| invalid | #155215de | — |
| keyword | #1B521Bde | bold |
| keyword.codetag.notation.python | #2F2F3Dde | bold |
| keyword.control | #324332de | bold |
| keyword.control.anchor.regexp | #3D2F2Fde | bold |
| keyword.control.import.python | #3B3B5Bde | bold |
| keyword.operator | #1111A0de | bold |
| keyword.operator.alignas | #623C3Cde | bold |
| keyword.operator.alignof | #195219de | bold |
| keyword.operator.cast | #155215de | bold |
| keyword.operator.delete | #003A00de | bold |
| keyword.operator.documentation.powershell | #3030306e | bold |
| keyword.operator.expression | #553939de | bold |
| keyword.operator.instanceof | #553939de | bold |
| keyword.operator.logical.python | #1D361Dde | bold |
| keyword.operator.minus.exponent | #412741de | bold |
| keyword.operator.negation.regexp | #910808de | bold |
| keyword.operator.new | #3E3E69de | bold |
| keyword.operator.noexcept | #0101ABde | bold |
| keyword.operator.or.regexp | #2B2B5Ade | bold |
| keyword.operator.plus.exponent | #0C0CA3de | bold |
| keyword.operator.quantifier.regexp | #502222de | bold |
| keyword.operator.sizeof | #553939de | bold |
| keyword.operator.typeid | #422B2Bde | bold |
| keyword.operator.wordlike | #0101ABde | bold |
| keyword.other.operator | #1D361Dde | bold |
| keyword.other.package.java | #073907de | bold |
| keyword.other.unit | #910808de | bold |
| keyword.other.using | #155215de | bold |
| markup.bold | #502222de | — |
| markup.changed | #433243de | — |
| markup.deleted | #073907de | — |
| markup.fenced_code.block.markdown | #493449de | — |
| markup.heading | #2B2B5Ade | — |
| markup.inline.raw | #660606de | — |
| markup.inserted | #344934de | — |
| markup.italic | #553939de | — |
| markup.raw.block.markdown | #344934de | — |
| markup.strikethrough | #623C3Cde | — |
| markup.underline | #003A00de | — |
| meta.block.c | #103810de | — |
| meta.block.c | #3D2F3Dde | — |
| meta.class.java | #343449de | — |
| meta.definition.variable.name | #155215de | — |
| meta.diff.header | #283328de | — |
| meta.embedded | #2F2F45de | — |
| meta.embedded.assembly | #623C3Cde | — |
| meta.function-call.arguments.python | #073907de | — |
| meta.function-call.python | #0101ABde | — |
| meta.member.access.python | #7E0F7Ede | — |
| meta.method.java | #3D2F2Fde | — |
| meta.object-literal.key | #283328de | — |
| meta.paragraph.markdown | #343449de | — |
| meta.preprocessor | #343449de | — |
| meta.preprocessor.numeric | #3E3E69de | — |
| meta.preprocessor.string | #393955de | — |
| meta.scope.prerequisites.makefile | #1D361Dde | — |
| meta.structure.dictionary.json.comments | #3030306e | — |
| meta.structure.dictionary.key.python | #580A58de | — |
| meta.structure.dictionary.value.json.comments | #3030306e | — |
| meta.template.expression | #422B2Bde | — |
| meta.type.cast.expr | #623C3Cde | bold |
| meta.type.new.expr | #7F0C7Fde | bold |
| parameter | #175217de | — |
| punctuation.character.set.begin.regexp | #3B2D2Dde | — |
| punctuation.character.set.end.regexp | #3B3B5Bde | — |
| punctuation.definition.array.begin.json | #3D2F3Dde | — |
| punctuation.definition.character-class.regexp | #482348de | — |
| punctuation.definition.comment | #3030306e | — |
| punctuation.definition.comment.json.comments | #3030306e | — |
| punctuation.definition.comment.python | #3030306e | — |
| punctuation.definition.dictionary.begin.json | #2B2B5Ade | — |
| punctuation.definition.dictionary.end.json | #1D361Dde | — |
| punctuation.definition.group.assertion.regexp | #492727de | — |
| punctuation.definition.group.regexp | #623C3Cde | — |
| punctuation.definition.list.begin.json | #2F2F45de | — |
| punctuation.definition.list.begin.markdown | #493434de | — |
| punctuation.definition.list.begin.python | #283328de | — |
| punctuation.definition.list.end.json | #581C1Cde | — |
| punctuation.definition.list.end.markdown | #2F2F45de | — |
| punctuation.definition.list.end.python | #393955de | — |
| punctuation.definition.parameters.begin.python | #155215de | — |
| punctuation.definition.parameters.end.bracket.round.java | #1C1C8Ede | — |
| punctuation.definition.quote.begin.markdown | #323243de | — |
| punctuation.definition.tag | #4F3636de | — |
| punctuation.definition.template-expression.begin | #422B2Bde | — |
| punctuation.definition.template-expression.end | #343449de | — |
| punctuation.section.class.begin.bracket.curly.java | #502222de | — |
| punctuation.section.embedded | #553939de | — |
| punctuation.section.embedded.begin.php | #323243de | — |
| punctuation.section.embedded.end.php | #393955de | — |
| punctuation.terminator.java | #073907de | — |
| source.cmake | #0101ABde | — |
| source.coffee.embedded | #553955de | — |
| source.cpp | #492727de | — |
| source.css.less | #3C3C62de | — |
| source.groovy.embedded | #323243de | — |
| source.java | #0101ABde | — |
| source.java-properties | #580A58de | — |
| source.json.comments | #3030306e | — |
| source.makefile | #195219de | — |
| source.powershell | #073907de | — |
| source.powershell.variable.other.member | #2E2E47de | — |
| source.python | #344934de | — |
| storage | #195219de | — |
| storage.modifier | #7F0C7Fde | — |
| storage.modifier.import.java | #0C0CA3de | — |
| storage.modifier.package.java | #4B1F4Bde | — |
| storage.type | #5B3B5Bde | bold |
| storage.type.annotation.groovy | #493434de | bold |
| storage.type.annotation.java | #155215de | bold |
| storage.type.boolean.go | #2B2B5Ade | bold |
| storage.type.byte.go | #3D2F3Dde | bold |
| storage.type.cs | #1111A0de | bold |
| storage.type.error.go | #2E2E47de | bold |
| storage.type.generic.cs | #003A00de | bold |
| storage.type.generic.groovy | #0C0CA3de | bold |
| storage.type.generic.java | #412741de | bold |
| storage.type.groovy | #103810de | bold |
| storage.type.java | #344934de | bold |
| storage.type.modifier.cs | #1D361Dde | bold |
| storage.type.numeric.go | #1D361Dde | bold |
| storage.type.object.array.groovy | #344934de | bold |
| storage.type.object.array.java | #5B005Bde | bold |
| storage.type.parameters.groovy | #3B2D2Dde | bold |
| storage.type.primitive.array.groovy | #393955de | bold |
| storage.type.primitive.array.java | #5B3B3Bde | bold |
| storage.type.primitive.groovy | #5B3B3Bde | bold |
| storage.type.primitive.java | #195219de | bold |
| storage.type.rune.go | #581C1Cde | bold |
| storage.type.string.go | #7E0F7Ede | bold |
| storage.type.token.java | #1B521Bde | bold |
| storage.type.uintptr.go | #0C0CA3de | bold |
| storage.type.variable.cs | #1C1C8Ede | bold |
| string | #482348de | — |
| string.quoted.docstring.multi.python | #3030306e | — |
| string.regexp | #2F2F3Dde | — |
| string.tag | #910808de | — |
| string.value | #2F2F45de | — |
| strong | #493449de | — |
| support.class | #3C3C62de | — |
| support.constant.color | #910808de | — |
| support.constant.dom | #2B2B5Ade | — |
| support.constant.font-name | #135213de | — |
| support.constant.handlebars | #3E3E69de | — |
| support.constant.json | #175217de | — |
| support.constant.math | #323243de | — |
| support.constant.media | #493449de | — |
| support.constant.media-type | #344934de | bold |
| support.constant.property-value | #493434de | — |
| support.function | #3E3E69de | — |
| support.function.git-rebase | #393955de | — |
| support.other.parenthesis.regexp | #433243de | — |
| support.type | #135213de | bold |
| support.type.property-name | #5B3B5Bde | bold |
| support.type.vendored.property-name | #3D2F2Fde | bold |
| support.variable | #3B2D2Dde | — |
| token.debug-token | #344934de | — |
| token.error-token | #393955de | — |
| token.info-token | #103810de | — |
| token.warn-token | #3D2F2Fde | — |
| variable | #323243de | — |
| variable.css | #3B3B5Bde | — |
| variable.language | #3D2A3Dde | — |
| variable.language.wildcard.java | #155215de | — |
| variable.other.constant | #324332de | — |
| variable.other.definition.java | #195219de | — |
| variable.other.enummember | #5B3B3Bde | — |
| variable.other.less | #660606de | — |
| variable.other.object.java | #2F3D2Fde | — |
| variable.other.object.property.java | #1D361Dde | — |
| variable.parameter.c | #36364Fde | — |
| variable.parameter.function.language.python | #073907de | — |
| variable.parameter.java | #502222de | — |
| variable.scss | #910808de | — |
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}!`;
}