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 | #5415546e | — |
| comment.block.html | #3131316e | — |
| comment.block.java | #5415546e | — |
| comment.block.javadoc.java | #5415546e | — |
| comment.block.powershell | #3131316e | — |
| comment.block.xml | #5415546e | — |
| comment.line.double-slash.c | #3131316e | — |
| comment.line.double-slash.cpp | #5415546e | — |
| comment.line.double-slash.java | #5415546e | — |
| comment.line.double-slash.js | #3131316e | — |
| comment.line.number-sign.makefile | #5415546e | — |
| comment.line.number-sign.python | #3131316e | — |
| comment.line.number-sign.yaml | #5415546e | — |
| comment.line.percentage.erlang | #3131316e | — |
| comment.line.powershell | #5415546e | — |
| comment.source.cmake | #5415546e | — |
| comment.source.cmakecache | #5415546e | — |
| constant.character | #263767de | — |
| constant.character.character-class.regexp | #672648de | — |
| constant.character.escape | #44245Fde | — |
| constant.character.set.regexp | #1D441Dde | — |
| constant.language | #2B3509de | — |
| constant.numeric | #105148de | — |
| constant.numeric.dec.python | #424D0Ede | — |
| constant.other.caps.python | #41235Cde | — |
| constant.other.character-class.regexp | #600E3Ade | — |
| constant.other.character-class.set.regexp | #182E68de | — |
| constant.other.color.rgb-value | #215221de | — |
| constant.other.placeholder | #313131de | — |
| constant.other.rgb-value | #2B3509de | — |
| constant.regexp | #600E3Ade | — |
| constant.sha.git-rebase | #42225Ede | — |
| emphasis | #132977de | — |
| entity.name.class | #2D3412de | — |
| entity.name.function | #432061de | — |
| entity.name.function.preprocessor | #0F540Fde | — |
| entity.name.function.python | #063831de | — |
| entity.name.label | #105410de | — |
| entity.name.namespace | #1D443Fde | — |
| entity.name.operator | #313131de | — |
| entity.name.operator.custom-literal | #213057de | — |
| entity.name.scope-resolution | #0E5149de | — |
| entity.name.tag | #125312de | — |
| entity.name.tag.css | #454545de | — |
| entity.name.type | #480184de | bold |
| entity.name.variable | #480681de | — |
| entity.other.attribute | #313131de | — |
| entity.other.attribute-name | #46186Dde | — |
| entity.other.attribute-name.class.css | #414D10de | — |
| entity.other.attribute-name.class.mixin.css | #115148de | — |
| entity.other.attribute-name.id | #313131de | — |
| entity.other.attribute-name.id.css | #313131de | — |
| entity.other.attribute-name.parent-selector.css | #063831de | — |
| entity.other.attribute-name.pseudo-class.css | #41235Cde | — |
| entity.other.attribute-name.pseudo-element.css | #404040de | — |
| entity.other.attribute-name.scss | #283D75de | — |
| entity.other.document.begin.yaml | #5415546e | — |
| entity.other.inherited-class | #105148de | — |
| header | #1E2F5Fde | — |
| invalid | #313719de | — |
| keyword | #424B1Fde | bold |
| keyword.codetag.notation.python | #5F2444de | bold |
| keyword.control | #44245Fde | bold |
| keyword.control.anchor.regexp | #233158de | bold |
| keyword.control.import.python | #0B297Bde | bold |
| keyword.operator | #313131de | bold |
| keyword.operator.alignas | #215221de | bold |
| keyword.operator.alignof | #1F305Ade | bold |
| keyword.operator.cast | #24345Fde | bold |
| keyword.operator.delete | #600E3Ade | bold |
| keyword.operator.documentation.powershell | #3131316e | bold |
| keyword.operator.expression | #2A3600de | bold |
| keyword.operator.instanceof | #531F3Bde | bold |
| keyword.operator.logical.python | #373E1Bde | bold |
| keyword.operator.minus.exponent | #480184de | bold |
| keyword.operator.negation.regexp | #063831de | bold |
| keyword.operator.new | #313131de | bold |
| keyword.operator.noexcept | #105148de | bold |
| keyword.operator.or.regexp | #441E65de | bold |
| keyword.operator.plus.exponent | #414D0Dde | bold |
| keyword.operator.quantifier.regexp | #2D3412de | bold |
| keyword.operator.sizeof | #373737de | bold |
| keyword.operator.typeid | #6E274Dde | bold |
| keyword.operator.wordlike | #043A04de | bold |
| keyword.other.operator | #313131de | bold |
| keyword.other.package.java | #2B3603de | bold |
| keyword.other.unit | #480681de | bold |
| keyword.other.using | #313131de | bold |
| markup.bold | #313131de | — |
| markup.changed | #1F4B45de | — |
| markup.deleted | #215221de | — |
| markup.fenced_code.block.markdown | #5B1638de | — |
| markup.heading | #1D441Dde | — |
| markup.inline.raw | #313131de | — |
| markup.inserted | #630637de | — |
| markup.italic | #1E2F5Fde | — |
| markup.raw.block.markdown | #283D75de | — |
| markup.strikethrough | #0A5147de | — |
| markup.underline | #132977de | — |
| meta.block.c | #115148de | — |
| meta.block.c | #752851de | — |
| meta.class.java | #42225Ede | — |
| meta.definition.variable.name | #630637de | — |
| meta.diff.header | #541D3Bde | — |
| meta.embedded | #531F3Bde | — |
| meta.embedded.assembly | #373E1Bde | — |
| meta.function-call.arguments.python | #41235Cde | — |
| meta.function-call.python | #012687de | — |
| meta.member.access.python | #125149de | — |
| meta.method.java | #58233Fde | — |
| meta.object-literal.key | #2B3603de | — |
| meta.paragraph.markdown | #2B3509de | — |
| meta.preprocessor | #414D10de | — |
| meta.preprocessor.numeric | #313131de | — |
| meta.preprocessor.string | #600E3Ade | — |
| meta.scope.prerequisites.makefile | #672648de | — |
| meta.structure.dictionary.json.comments | #5415546e | — |
| meta.structure.dictionary.key.python | #373737de | — |
| meta.structure.dictionary.value.json.comments | #5415546e | — |
| meta.template.expression | #470B7Ede | — |
| meta.type.cast.expr | #062781de | bold |
| meta.type.new.expr | #451B6Ade | bold |
| parameter | #470B7Ede | — |
| punctuation.character.set.begin.regexp | #482667de | — |
| punctuation.character.set.end.regexp | #59193Bde | — |
| punctuation.definition.array.begin.json | #0F540Fde | — |
| punctuation.definition.character-class.regexp | #3C3C3Cde | — |
| punctuation.definition.comment | #5415546e | — |
| punctuation.definition.comment.json.comments | #5415546e | — |
| punctuation.definition.comment.python | #3131316e | — |
| punctuation.definition.dictionary.begin.json | #1B2E62de | — |
| punctuation.definition.dictionary.end.json | #414D12de | — |
| punctuation.definition.group.assertion.regexp | #42225Ede | — |
| punctuation.definition.group.regexp | #273A6Ede | — |
| punctuation.definition.list.begin.json | #033A03de | — |
| punctuation.definition.list.begin.markdown | #233158de | — |
| punctuation.definition.list.begin.python | #012687de | — |
| punctuation.definition.list.end.json | #41235Cde | — |
| punctuation.definition.list.end.markdown | #42215Fde | — |
| punctuation.definition.list.end.python | #44245Fde | — |
| punctuation.definition.parameters.begin.python | #41235Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #52213Bde | — |
| punctuation.definition.quote.begin.markdown | #451278de | — |
| punctuation.definition.tag | #373737de | — |
| punctuation.definition.template-expression.begin | #630637de | — |
| punctuation.definition.template-expression.end | #5E113Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #313131de | — |
| punctuation.section.embedded | #482667de | — |
| punctuation.section.embedded.begin.php | #123732de | — |
| punctuation.section.embedded.end.php | #2B3603de | — |
| punctuation.terminator.java | #1E2F5Fde | — |
| source.cmake | #033832de | — |
| source.coffee.embedded | #143914de | — |
| source.cpp | #1D443Fde | — |
| source.css.less | #6E274Dde | — |
| source.groovy.embedded | #432061de | — |
| source.java | #3C3C3Cde | — |
| source.java-properties | #451278de | — |
| source.json.comments | #5415546e | — |
| source.makefile | #123732de | — |
| source.powershell | #0F3731de | — |
| source.powershell.variable.other.member | #58233Fde | — |
| source.python | #2B3603de | — |
| storage | #5B1638de | — |
| storage.modifier | #0F3731de | — |
| storage.modifier.import.java | #213057de | — |
| storage.modifier.package.java | #313131de | — |
| storage.type | #283D75de | bold |
| storage.type.annotation.groovy | #0B540Bde | bold |
| storage.type.annotation.java | #2B3509de | bold |
| storage.type.boolean.go | #480184de | bold |
| storage.type.byte.go | #6E274Dde | bold |
| storage.type.cs | #373E1Bde | bold |
| storage.type.error.go | #541D3Bde | bold |
| storage.type.generic.cs | #313131de | bold |
| storage.type.generic.groovy | #630637de | bold |
| storage.type.generic.java | #012687de | bold |
| storage.type.groovy | #424B1Fde | bold |
| storage.type.java | #1E2F5Fde | bold |
| storage.type.modifier.cs | #012687de | bold |
| storage.type.numeric.go | #600E3Ade | bold |
| storage.type.object.array.groovy | #373737de | bold |
| storage.type.object.array.java | #033A03de | bold |
| storage.type.parameters.groovy | #484848de | bold |
| storage.type.primitive.array.groovy | #541D3Bde | bold |
| storage.type.primitive.array.java | #033832de | bold |
| storage.type.primitive.groovy | #451B6Ade | bold |
| storage.type.primitive.java | #0F540Fde | bold |
| storage.type.rune.go | #1F305Ade | bold |
| storage.type.string.go | #1F4B1Fde | bold |
| storage.type.token.java | #470B7Ede | bold |
| storage.type.uintptr.go | #470B7Ede | bold |
| storage.type.variable.cs | #451278de | bold |
| string | #105148de | — |
| string.quoted.docstring.multi.python | #5415546e | — |
| string.regexp | #414D0Dde | — |
| string.tag | #105410de | — |
| string.value | #531F3Bde | — |
| strong | #42048Ade | — |
| support.class | #2B3603de | — |
| support.constant.color | #6E274Dde | — |
| support.constant.dom | #41235Cde | — |
| support.constant.font-name | #0D540Dde | — |
| support.constant.handlebars | #2B3509de | — |
| support.constant.json | #424B1Fde | — |
| support.constant.math | #3C3C3Cde | — |
| support.constant.media | #441E65de | — |
| support.constant.media-type | #2D3413de | bold |
| support.constant.property-value | #2A3600de | — |
| support.function | #3F4D0Bde | — |
| support.function.git-rebase | #063831de | — |
| support.other.parenthesis.regexp | #143732de | — |
| support.type | #2A3600de | bold |
| support.type.property-name | #213059de | bold |
| support.type.vendored.property-name | #062781de | bold |
| support.variable | #600E3Ade | — |
| token.debug-token | #2D3412de | — |
| token.error-token | #424B1Fde | — |
| token.info-token | #414D10de | — |
| token.warn-token | #414D12de | — |
| variable | #313131de | — |
| variable.css | #0F540Fde | — |
| variable.language | #215221de | — |
| variable.language.wildcard.java | #313719de | — |
| variable.other.constant | #6E274Dde | — |
| variable.other.definition.java | #313131de | — |
| variable.other.enummember | #1F4B45de | — |
| variable.other.less | #125312de | — |
| variable.other.object.java | #063831de | — |
| variable.other.object.property.java | #414D12de | — |
| variable.parameter.c | #105410de | — |
| variable.parameter.function.language.python | #414D0Dde | — |
| variable.parameter.java | #105410de | — |
| variable.scss | #541D3Bde | — |
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}!`;
}