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 | #4C4C4C6e | — |
| comment.block.html | #4C4C4C6e | — |
| comment.block.java | #4C4C4C6e | — |
| comment.block.javadoc.java | #4B4B4B6e | — |
| comment.block.powershell | #4C4C4C6e | — |
| comment.block.xml | #4C4C4C6e | — |
| comment.line.double-slash.c | #4B4B4B6e | — |
| comment.line.double-slash.cpp | #4C4C4C6e | — |
| comment.line.double-slash.java | #4B4B4B6e | — |
| comment.line.double-slash.js | #4B4B4B6e | — |
| comment.line.number-sign.makefile | #4B4B4B6e | — |
| comment.line.number-sign.python | #4B4B4B6e | — |
| comment.line.number-sign.yaml | #4C4C4C6e | — |
| comment.line.percentage.erlang | #4C4C4C6e | — |
| comment.line.powershell | #4B4B4B6e | — |
| comment.source.cmake | #4C4C4C6e | — |
| comment.source.cmakecache | #4C4C4C6e | — |
| constant.character | #960A54de | — |
| constant.character.character-class.regexp | #853104de | — |
| constant.character.escape | #0A4D0Ade | — |
| constant.character.set.regexp | #09564Dde | — |
| constant.language | #44501Ede | — |
| constant.numeric | #862759de | — |
| constant.numeric.dec.python | #693C23de | — |
| constant.other.caps.python | #7107BCde | — |
| constant.other.character-class.regexp | #405305de | — |
| constant.other.character-class.set.regexp | #1D4D47de | — |
| constant.other.color.rgb-value | #5B3521de | — |
| constant.other.placeholder | #41520Ade | — |
| constant.other.rgb-value | #405206de | — |
| constant.regexp | #273C7Fde | — |
| constant.sha.git-rebase | #44501Ede | — |
| emphasis | #703F25de | — |
| entity.name.class | #094D09de | — |
| entity.name.function | #415309de | — |
| entity.name.function.preprocessor | #205720de | — |
| entity.name.function.python | #7105BDde | — |
| entity.name.label | #415209de | — |
| entity.name.namespace | #0A2FAAde | — |
| entity.name.operator | #0A554Cde | — |
| entity.name.operator.custom-literal | #095709de | — |
| entity.name.scope-resolution | #0A590Ade | — |
| entity.name.tag | #405206de | — |
| entity.name.tag.css | #0B2B95de | — |
| entity.name.type | #405305de | bold |
| entity.name.variable | #44501Ede | — |
| entity.other.attribute | #0A580Ade | — |
| entity.other.attribute-name | #950854de | — |
| entity.other.attribute-name.class.css | #940953de | — |
| entity.other.attribute-name.class.mixin.css | #0A554Cde | — |
| entity.other.attribute-name.id | #0A590Ade | — |
| entity.other.attribute-name.id.css | #6A2A9Ade | — |
| entity.other.attribute-name.parent-selector.css | #0A2A93de | — |
| entity.other.attribute-name.pseudo-class.css | #693C23de | — |
| entity.other.attribute-name.pseudo-element.css | #0A554Cde | — |
| entity.other.attribute-name.scss | #085149de | — |
| entity.other.document.begin.yaml | #4B4B4B6e | — |
| entity.other.inherited-class | #80340Bde | bold |
| header | #415209de | — |
| invalid | #960954de | — |
| keyword | #6D2A9Dde | bold |
| keyword.codetag.notation.python | #29449Ede | bold |
| keyword.control | #085108de | bold |
| keyword.control.anchor.regexp | #41520Ade | bold |
| keyword.control.import.python | #0A590Ade | bold |
| keyword.operator | #0A554Cde | bold |
| keyword.operator.alignas | #41510Ade | bold |
| keyword.operator.alignof | #0A564Dde | bold |
| keyword.operator.cast | #424D1Dde | bold |
| keyword.operator.delete | #405109de | bold |
| keyword.operator.documentation.powershell | #4B4B4B6e | bold |
| keyword.operator.expression | #1B4641de | bold |
| keyword.operator.instanceof | #54321Fde | bold |
| keyword.operator.logical.python | #41510Ade | bold |
| keyword.operator.minus.exponent | #0A4D0Ade | bold |
| keyword.operator.negation.regexp | #41510Ade | bold |
| keyword.operator.new | #623922de | bold |
| keyword.operator.noexcept | #415209de | bold |
| keyword.operator.or.regexp | #6D2A9Dde | bold |
| keyword.operator.plus.exponent | #692348de | bold |
| keyword.operator.quantifier.regexp | #1A3F3Bde | bold |
| keyword.operator.sizeof | #970351de | bold |
| keyword.operator.typeid | #205720de | bold |
| keyword.operator.wordlike | #803409de | bold |
| keyword.other.operator | #40510Ade | bold |
| keyword.other.package.java | #1A3F1Ade | bold |
| keyword.other.unit | #095809de | bold |
| keyword.other.using | #65298Ede | bold |
| markup.bold | #70254Dde | — |
| markup.changed | #4C2369de | — |
| markup.deleted | #82340Ade | — |
| markup.fenced_code.block.markdown | #5B277Fde | — |
| markup.heading | #960A54de | — |
| markup.inline.raw | #205720de | — |
| markup.inserted | #2A449Fde | — |
| markup.italic | #782651de | — |
| markup.raw.block.markdown | #960753de | — |
| markup.strikethrough | #0A4D0Ade | — |
| markup.underline | #0A4D0Ade | — |
| meta.block.c | #70254Dde | — |
| meta.block.c | #0A570Ade | — |
| meta.class.java | #782651de | — |
| meta.definition.variable.name | #0A580Ade | — |
| meta.diff.header | #5B3521de | — |
| meta.embedded | #084908de | — |
| meta.embedded.assembly | #41530Ade | — |
| meta.function-call.arguments.python | #415309de | — |
| meta.function-call.python | #0A590Ade | — |
| meta.member.access.python | #960552de | — |
| meta.method.java | #41520Ade | — |
| meta.object-literal.key | #853206de | — |
| meta.paragraph.markdown | #842758de | — |
| meta.preprocessor | #7101C0de | — |
| meta.preprocessor.numeric | #0A2C99de | — |
| meta.preprocessor.string | #2B44A2de | — |
| meta.scope.prerequisites.makefile | #7009B9de | — |
| meta.structure.dictionary.json.comments | #4C4C4C6e | — |
| meta.structure.dictionary.key.python | #512570de | — |
| meta.structure.dictionary.value.json.comments | #4C4C4C6e | — |
| meta.template.expression | #960753de | — |
| meta.type.cast.expr | #950854de | — |
| meta.type.new.expr | #0A554Cde | — |
| parameter | #1A3F3Bde | — |
| punctuation.character.set.begin.regexp | #7102BFde | — |
| punctuation.character.set.end.regexp | #41530Ade | — |
| punctuation.definition.array.begin.json | #872759de | — |
| punctuation.definition.character-class.regexp | #41510Ade | — |
| punctuation.definition.comment | #4C4C4C6e | — |
| punctuation.definition.comment.json.comments | #4B4B4B6e | — |
| punctuation.definition.comment.python | #4C4C4C6e | — |
| punctuation.definition.dictionary.begin.json | #1A3F1Ade | — |
| punctuation.definition.dictionary.end.json | #0A580Ade | — |
| punctuation.definition.group.assertion.regexp | #29418Ede | — |
| punctuation.definition.group.regexp | #7F2756de | — |
| punctuation.definition.list.begin.json | #0A2A93de | — |
| punctuation.definition.list.begin.markdown | #40510Ade | — |
| punctuation.definition.list.begin.python | #253670de | — |
| punctuation.definition.list.end.json | #41510Ade | — |
| punctuation.definition.list.end.markdown | #405305de | — |
| punctuation.definition.list.end.python | #1D4D1Dde | — |
| punctuation.definition.parameters.begin.python | #405109de | — |
| punctuation.definition.parameters.end.bracket.round.java | #40510Ade | — |
| punctuation.definition.quote.begin.markdown | #833308de | — |
| punctuation.definition.tag | #602887de | — |
| punctuation.definition.template-expression.begin | #693C23de | — |
| punctuation.definition.template-expression.end | #81340Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #415308de | — |
| punctuation.section.embedded | #950854de | — |
| punctuation.section.embedded.begin.php | #0A554Dde | — |
| punctuation.section.embedded.end.php | #512570de | — |
| punctuation.terminator.java | #0A554Dde | — |
| source.cmake | #1F544Dde | — |
| source.coffee.embedded | #41510Ade | — |
| source.cpp | #0A564Dde | — |
| source.css.less | #29418Ede | — |
| source.groovy.embedded | #0A2C99de | — |
| source.java | #54321Fde | — |
| source.java-properties | #3C461Bde | — |
| source.json.comments | #4C4C4C6e | — |
| source.makefile | #940953de | — |
| source.powershell | #7007BBde | — |
| source.powershell.variable.other.member | #0A580Ade | — |
| source.python | #405206de | — |
| storage | #692A96de | — |
| storage.modifier | #2A449Fde | — |
| storage.modifier.import.java | #833408de | — |
| storage.modifier.package.java | #7107BCde | — |
| storage.type | #970653de | bold |
| storage.type.annotation.groovy | #713F24de | bold |
| storage.type.annotation.java | #7102BFde | bold |
| storage.type.boolean.go | #692A96de | bold |
| storage.type.byte.go | #405209de | bold |
| storage.type.cs | #862759de | bold |
| storage.type.error.go | #0A544Cde | bold |
| storage.type.generic.cs | #415309de | bold |
| storage.type.generic.groovy | #853206de | bold |
| storage.type.generic.java | #41510Ade | bold |
| storage.type.groovy | #29449Ede | bold |
| storage.type.java | #82350Ade | bold |
| storage.type.modifier.cs | #960954de | bold |
| storage.type.numeric.go | #424D1Dde | bold |
| storage.type.object.array.groovy | #1F541Fde | bold |
| storage.type.object.array.java | #0A564Dde | bold |
| storage.type.parameters.groovy | #7102BFde | bold |
| storage.type.primitive.array.groovy | #0A570Ade | bold |
| storage.type.primitive.array.java | #3C461Bde | bold |
| storage.type.primitive.groovy | #082994de | bold |
| storage.type.primitive.java | #1F544Dde | bold |
| storage.type.rune.go | #0A554Cde | bold |
| storage.type.string.go | #0A4D44de | bold |
| storage.type.token.java | #363F1Ade | bold |
| storage.type.uintptr.go | #09564Dde | bold |
| storage.type.variable.cs | #0A590Ade | bold |
| string | #65298Ede | — |
| string.quoted.docstring.multi.python | #4C4C4C6e | — |
| string.regexp | #960753de | — |
| string.tag | #2B44A2de | — |
| string.value | #960A54de | — |
| strong | #405109de | — |
| support.class | #0A2FA7de | — |
| support.constant.color | #09544Bde | — |
| support.constant.dom | #263978de | — |
| support.constant.font-name | #415309de | — |
| support.constant.handlebars | #09544Bde | — |
| support.constant.json | #1F534Dde | — |
| support.constant.math | #0A554Dde | — |
| support.constant.media | #930A53de | — |
| support.constant.media-type | #622244de | — |
| support.constant.property-value | #41530Ade | — |
| support.function | #6D3F23de | — |
| support.function.git-rebase | #803409de | — |
| support.other.parenthesis.regexp | #5B3521de | — |
| support.type | #833308de | bold |
| support.type.property-name | #0A580Ade | bold |
| support.type.vendored.property-name | #41510Ade | bold |
| support.variable | #405109de | — |
| token.debug-token | #40510Ade | — |
| token.error-token | #833307de | — |
| token.info-token | #1D4D47de | — |
| token.warn-token | #0A580Ade | — |
| variable | #085108de | — |
| variable.css | #782651de | — |
| variable.language | #623922de | — |
| variable.language.wildcard.java | #263978de | — |
| variable.other.constant | #833408de | — |
| variable.other.definition.java | #842758de | — |
| variable.other.enummember | #09564Dde | — |
| variable.other.less | #960954de | — |
| variable.other.object.java | #29449Ede | — |
| variable.other.object.property.java | #263978de | — |
| variable.parameter.c | #0A2EA1de | — |
| variable.parameter.function.language.python | #0A590Ade | — |
| variable.parameter.java | #7F2756de | — |
| variable.scss | #713F24de | — |
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}!`;
}