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 | #4E4E2F6e | — |
| comment.block.html | #4E4E2F6e | — |
| comment.block.java | #4E4E2F6e | — |
| comment.block.javadoc.java | #4E4E2F6e | — |
| comment.block.powershell | #4E4E306e | — |
| comment.block.xml | #5050306e | — |
| comment.line.double-slash.c | #4E4E2F6e | — |
| comment.line.double-slash.cpp | #4E4E2F6e | — |
| comment.line.double-slash.java | #4E4E306e | — |
| comment.line.double-slash.js | #51512E6e | — |
| comment.line.number-sign.makefile | #4E4E2F6e | — |
| comment.line.number-sign.python | #4E4E306e | — |
| comment.line.number-sign.yaml | #4E4E306e | — |
| comment.line.percentage.erlang | #4E4E306e | — |
| comment.line.powershell | #51512E6e | — |
| comment.source.cmake | #4E4E2F6e | — |
| comment.source.cmakecache | #4E4E2F6e | — |
| constant.character | #0C4F0Cde | — |
| constant.character.character-class.regexp | #0D5B0Dde | — |
| constant.character.escape | #49532Cde | — |
| constant.character.set.regexp | #67324Cde | — |
| constant.language | #2B4C2Bde | — |
| constant.numeric | #0C4B4Bde | — |
| constant.numeric.dec.python | #810DA8de | — |
| constant.other.caps.python | #684732de | — |
| constant.other.character-class.regexp | #0D20AEde | — |
| constant.other.character-class.set.regexp | #0D21ABde | — |
| constant.other.color.rgb-value | #0C20ABde | — |
| constant.other.placeholder | #0E5B0Ede | — |
| constant.other.rgb-value | #343B6Ede | — |
| constant.regexp | #5F346Ede | — |
| constant.sha.git-rebase | #0C590Cde | — |
| emphasis | #0E5B0Ede | — |
| entity.name.class | #0E5A0Ede | — |
| entity.name.function | #0E5858de | — |
| entity.name.function.preprocessor | #43550Dde | — |
| entity.name.function.python | #0E5858de | — |
| entity.name.label | #820AA9de | — |
| entity.name.namespace | #813A0Ede | — |
| entity.name.operator | #703782de | — |
| entity.name.operator.custom-literal | #091EB0de | — |
| entity.name.scope-resolution | #2C5454de | — |
| entity.name.tag | #9A0D54de | — |
| entity.name.tag.css | #0E530Ede | — |
| entity.name.type | #0B4747de | bold |
| entity.name.variable | #49532Cde | — |
| entity.other.attribute | #0C20ABde | — |
| entity.other.attribute-name | #0E5B0Ede | — |
| entity.other.attribute-name.class.css | #7C3659de | — |
| entity.other.attribute-name.class.mixin.css | #7E365Ade | — |
| entity.other.attribute-name.id | #2A4E4Ede | — |
| entity.other.attribute-name.id.css | #7C3658de | — |
| entity.other.attribute-name.parent-selector.css | #813A0Ede | — |
| entity.other.attribute-name.pseudo-class.css | #43550Ede | — |
| entity.other.attribute-name.pseudo-element.css | #990E54de | — |
| entity.other.attribute-name.scss | #810BA8de | — |
| entity.other.document.begin.yaml | #51512E6e | — |
| entity.other.inherited-class | #394492de | — |
| header | #2C5656de | — |
| invalid | #2D532Dde | — |
| keyword | #2A4E4Ede | bold |
| keyword.codetag.notation.python | #2E582Ede | bold |
| keyword.control | #0E5B0Ede | bold |
| keyword.control.anchor.regexp | #0E5858de | bold |
| keyword.control.import.python | #48522Cde | bold |
| keyword.operator | #893505de | bold |
| keyword.operator.alignas | #49532Cde | bold |
| keyword.operator.alignof | #0E5C0Ede | bold |
| keyword.operator.cast | #0D5757de | bold |
| keyword.operator.delete | #0B5151de | bold |
| keyword.operator.documentation.powershell | #4E4E306e | bold |
| keyword.operator.expression | #7E365Ade | bold |
| keyword.operator.instanceof | #2D562Dde | bold |
| keyword.operator.logical.python | #753555de | bold |
| keyword.operator.minus.exponent | #0E5656de | bold |
| keyword.operator.negation.regexp | #343B6Ede | bold |
| keyword.operator.new | #82390Ede | bold |
| keyword.operator.noexcept | #0D520Dde | bold |
| keyword.operator.or.regexp | #533B2Dde | bold |
| keyword.operator.plus.exponent | #873708de | bold |
| keyword.operator.quantifier.regexp | #43550Cde | bold |
| keyword.operator.sizeof | #3A45A0de | bold |
| keyword.operator.typeid | #5A3267de | bold |
| keyword.operator.wordlike | #6F3681de | bold |
| keyword.other.operator | #0E5C0Ede | bold |
| keyword.other.package.java | #264141de | bold |
| keyword.other.unit | #4C372Bde | bold |
| keyword.other.using | #091EB0de | bold |
| markup.bold | #3A45A6de | — |
| markup.changed | #9D0551de | — |
| markup.deleted | #42540Ede | — |
| markup.fenced_code.block.markdown | #592F44de | — |
| markup.heading | #694632de | — |
| markup.inline.raw | #43560Cde | — |
| markup.inserted | #0E5B0Ede | — |
| markup.italic | #9A0B52de | — |
| markup.raw.block.markdown | #0D5656de | — |
| markup.strikethrough | #3A46A2de | — |
| markup.underline | #703785de | — |
| meta.block.c | #6F3781de | — |
| meta.block.c | #284747de | — |
| meta.class.java | #9B0952de | — |
| meta.definition.variable.name | #0B490Bde | — |
| meta.diff.header | #5A3267de | — |
| meta.embedded | #83390Cde | — |
| meta.embedded.assembly | #0E5B0Ede | — |
| meta.function-call.arguments.python | #8109A9de | — |
| meta.function-call.python | #833A0Ede | — |
| meta.member.access.python | #823A0Ede | — |
| meta.method.java | #43550Ede | — |
| meta.object-literal.key | #85380Ade | — |
| meta.paragraph.markdown | #990E53de | — |
| meta.preprocessor | #2D532Dde | — |
| meta.preprocessor.numeric | #83390Ede | — |
| meta.preprocessor.string | #42530Dde | — |
| meta.scope.prerequisites.makefile | #2D562Dde | — |
| meta.structure.dictionary.json.comments | #4E4E306e | — |
| meta.structure.dictionary.key.python | #374183de | — |
| meta.structure.dictionary.value.json.comments | #51512E6e | — |
| meta.template.expression | #43550Dde | — |
| meta.type.cast.expr | #43550Cde | bold |
| meta.type.new.expr | #2D562Dde | bold |
| parameter | #694632de | — |
| punctuation.character.set.begin.regexp | #0D520Dde | — |
| punctuation.character.set.end.regexp | #2E582Ede | — |
| punctuation.definition.array.begin.json | #873708de | — |
| punctuation.definition.character-class.regexp | #2E582Ede | — |
| punctuation.definition.comment | #51512E6e | — |
| punctuation.definition.comment.json.comments | #51512E6e | — |
| punctuation.definition.comment.python | #4E4E2F6e | — |
| punctuation.definition.dictionary.begin.json | #43540Dde | — |
| punctuation.definition.dictionary.end.json | #343B6Ede | — |
| punctuation.definition.group.assertion.regexp | #264141de | — |
| punctuation.definition.group.regexp | #873707de | — |
| punctuation.definition.list.begin.json | #0E5656de | — |
| punctuation.definition.list.begin.markdown | #43560Cde | — |
| punctuation.definition.list.begin.python | #43550Ede | — |
| punctuation.definition.list.end.json | #0B510Bde | — |
| punctuation.definition.list.end.markdown | #394026de | — |
| punctuation.definition.list.end.python | #873708de | — |
| punctuation.definition.parameters.begin.python | #6B367Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #44560Bde | — |
| punctuation.definition.quote.begin.markdown | #7D3659de | — |
| punctuation.definition.tag | #3A45A6de | — |
| punctuation.definition.template-expression.begin | #0D5757de | — |
| punctuation.definition.template-expression.end | #42540Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #82390Ede | — |
| punctuation.section.embedded | #810CA8de | — |
| punctuation.section.embedded.begin.php | #0A1EAEde | — |
| punctuation.section.embedded.end.php | #603048de | — |
| punctuation.terminator.java | #48522Cde | — |
| source.cmake | #0D5757de | — |
| source.coffee.embedded | #43550Ede | — |
| source.cpp | #43550Ede | — |
| source.css.less | #48522Cde | — |
| source.groovy.embedded | #323967de | — |
| source.java | #49532Cde | — |
| source.java-properties | #0D5B0Dde | — |
| source.json.comments | #4E4E2F6e | — |
| source.makefile | #0B4747de | — |
| source.powershell | #82390Ede | — |
| source.powershell.variable.other.member | #694632de | — |
| source.python | #42540Ede | — |
| storage | #0E5757de | — |
| storage.modifier | #82390Ede | — |
| storage.modifier.import.java | #2B4C2Bde | — |
| storage.modifier.package.java | #703785de | — |
| storage.type | #653575de | bold |
| storage.type.annotation.groovy | #833A0Ede | bold |
| storage.type.annotation.java | #3A44A4de | bold |
| storage.type.boolean.go | #0E5656de | bold |
| storage.type.byte.go | #43540Dde | bold |
| storage.type.cs | #2C5656de | bold |
| storage.type.error.go | #43550Cde | bold |
| storage.type.generic.cs | #0E5C0Ede | bold |
| storage.type.generic.groovy | #5F346Ede | bold |
| storage.type.generic.java | #43550Ade | bold |
| storage.type.groovy | #0C20B1de | bold |
| storage.type.java | #0D5C0Dde | bold |
| storage.type.modifier.cs | #833A0Ede | bold |
| storage.type.numeric.go | #43550Ede | bold |
| storage.type.object.array.groovy | #653575de | bold |
| storage.type.object.array.java | #49532Dde | bold |
| storage.type.parameters.groovy | #0E5B0Ede | bold |
| storage.type.primitive.array.groovy | #0E5B0Ede | bold |
| storage.type.primitive.array.java | #0D4747de | bold |
| storage.type.primitive.groovy | #071BB6de | bold |
| storage.type.primitive.java | #0C4F0Cde | bold |
| storage.type.rune.go | #0E5A0Ede | bold |
| storage.type.string.go | #7C3658de | bold |
| storage.type.token.java | #323967de | bold |
| storage.type.uintptr.go | #44560Bde | bold |
| storage.type.variable.cs | #0E5757de | bold |
| string | #82390Ede | — |
| string.quoted.docstring.multi.python | #4E4E306e | — |
| string.regexp | #0B490Bde | — |
| string.tag | #43560Cde | — |
| string.value | #43550Ede | — |
| strong | #0C20ABde | — |
| support.class | #5F346Ede | — |
| support.constant.color | #43540Dde | — |
| support.constant.dom | #674732de | — |
| support.constant.font-name | #6A4732de | — |
| support.constant.handlebars | #2D532Dde | — |
| support.constant.json | #0E5757de | — |
| support.constant.math | #0E5B0Ede | — |
| support.constant.media | #0B490Bde | — |
| support.constant.media-type | #674632de | bold |
| support.constant.property-value | #0E5757de | — |
| support.function | #873708de | — |
| support.function.git-rebase | #0D5757de | — |
| support.other.parenthesis.regexp | #0E5757de | — |
| support.type | #43540Dde | bold |
| support.type.property-name | #3946A1de | bold |
| support.type.vendored.property-name | #694632de | bold |
| support.variable | #3946A1de | — |
| token.debug-token | #8107AAde | — |
| token.error-token | #4C372Bde | — |
| token.info-token | #2C5656de | — |
| token.warn-token | #5F346Ede | — |
| variable | #703782de | — |
| variable.css | #8107AAde | — |
| variable.language | #67324Cde | — |
| variable.language.wildcard.java | #3F4629de | — |
| variable.other.constant | #363F7Cde | — |
| variable.other.definition.java | #3946A1de | — |
| variable.other.enummember | #6B367Cde | — |
| variable.other.less | #84390Dde | — |
| variable.other.object.java | #893505de | — |
| variable.other.object.property.java | #0E5C0Ede | — |
| variable.parameter.c | #0E5C0Ede | — |
| variable.parameter.function.language.python | #0A1EAEde | — |
| variable.parameter.java | #44560Bde | — |
| variable.scss | #0D5757de | — |
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}!`;
}