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 | #9A9AF76e | — |
| comment.block.html | #9B9BF86e | — |
| comment.block.java | #9999F96e | — |
| comment.block.javadoc.java | #9A9AF76e | — |
| comment.block.powershell | #9898F86e | — |
| comment.block.xml | #9898F86e | — |
| comment.line.double-slash.c | #9B9BF86e | — |
| comment.line.double-slash.cpp | #9B9BF86e | — |
| comment.line.double-slash.java | #9B9BF86e | — |
| comment.line.double-slash.js | #9999F96e | — |
| comment.line.number-sign.makefile | #9898F86e | — |
| comment.line.number-sign.python | #9999F96e | — |
| comment.line.number-sign.yaml | #9B9BF86e | — |
| comment.line.percentage.erlang | #9B9BF86e | — |
| comment.line.powershell | #9898F86e | — |
| comment.source.cmake | #9999F96e | — |
| comment.source.cmakecache | #9898F86e | — |
| constant.character | #A2A2A2de | — |
| constant.character.character-class.regexp | #29BB60de | — |
| constant.character.escape | #A2A2A2de | — |
| constant.character.set.regexp | #07B1EAde | — |
| constant.language | #A2A2A2de | — |
| constant.numeric | #9D97F6de | — |
| constant.numeric.dec.python | #9F99F7de | — |
| constant.other.caps.python | #F18095de | — |
| constant.other.character-class.regexp | #A3A3A3de | — |
| constant.other.character-class.set.regexp | #F17F95de | — |
| constant.other.color.rgb-value | #32AFD8de | — |
| constant.other.placeholder | #A2A2A2de | — |
| constant.other.rgb-value | #56BA08de | — |
| constant.regexp | #9F98F6de | — |
| constant.sha.git-rebase | #9D97F6de | — |
| emphasis | #9D97F6de | — |
| entity.name.class | #07D655de | — |
| entity.name.function | #76D52Dde | — |
| entity.name.function.preprocessor | #9D98F6de | — |
| entity.name.function.python | #55B808de | — |
| entity.name.label | #2ACF68de | — |
| entity.name.namespace | #54B808de | — |
| entity.name.operator | #07BE4Bde | — |
| entity.name.operator.custom-literal | #56BA09de | — |
| entity.name.scope-resolution | #56BA09de | — |
| entity.name.tag | #A2A2A2de | — |
| entity.name.tag.css | #07B0E7de | — |
| entity.name.type | #67B729de | — |
| entity.name.variable | #F58FA2de | — |
| entity.other.attribute | #9E98F6de | — |
| entity.other.attribute-name | #55BA09de | — |
| entity.other.attribute-name.class.css | #E776EFde | — |
| entity.other.attribute-name.class.mixin.css | #55B809de | — |
| entity.other.attribute-name.id | #E876EFde | — |
| entity.other.attribute-name.id.css | #F096F6de | — |
| entity.other.attribute-name.parent-selector.css | #29BB60de | — |
| entity.other.attribute-name.pseudo-class.css | #07B3EEde | — |
| entity.other.attribute-name.pseudo-element.css | #A2A2A2de | — |
| entity.other.attribute-name.scss | #56BA08de | — |
| entity.other.document.begin.yaml | #9999F96e | — |
| entity.other.inherited-class | #56BA09de | — |
| header | #F27E94de | — |
| invalid | #F27F94de | — |
| keyword | #55B809de | — |
| keyword.codetag.notation.python | #9E98F6de | — |
| keyword.control | #E877F0de | — |
| keyword.control.anchor.regexp | #07DC57de | — |
| keyword.control.import.python | #A2A2A2de | — |
| keyword.operator | #F28095de | — |
| keyword.operator.alignas | #BCBCBCde | — |
| keyword.operator.alignof | #2AB95Fde | — |
| keyword.operator.cast | #06DC56de | — |
| keyword.operator.delete | #9D98F6de | — |
| keyword.operator.documentation.powershell | #9898F86e | — |
| keyword.operator.expression | #F17F95de | — |
| keyword.operator.instanceof | #32AFD8de | — |
| keyword.operator.logical.python | #07D655de | — |
| keyword.operator.minus.exponent | #F58FA2de | — |
| keyword.operator.negation.regexp | #F17F95de | — |
| keyword.operator.new | #F28196de | — |
| keyword.operator.noexcept | #2ACF68de | — |
| keyword.operator.or.regexp | #9F99F7de | — |
| keyword.operator.plus.exponent | #F18095de | — |
| keyword.operator.quantifier.regexp | #E876F0de | — |
| keyword.operator.sizeof | #56BA08de | — |
| keyword.operator.typeid | #F27E94de | — |
| keyword.operator.wordlike | #07D957de | — |
| keyword.other.operator | #A2A2A2de | — |
| keyword.other.package.java | #B7B7B7de | — |
| keyword.other.unit | #66B529de | — |
| keyword.other.using | #32AFD8de | — |
| markup.bold | #E776EFde | — |
| markup.changed | #08BB4Bde | — |
| markup.deleted | #07BE4Bde | — |
| markup.fenced_code.block.markdown | #07AFE9de | — |
| markup.heading | #A2A2A2de | — |
| markup.inline.raw | #07BD4Bde | — |
| markup.inserted | #9E98F6de | — |
| markup.italic | #33AFD8de | — |
| markup.raw.block.markdown | #06DC56de | — |
| markup.strikethrough | #F18095de | — |
| markup.underline | #76D52Dde | — |
| meta.block.c | #07AFE9de | — |
| meta.block.c | #07AEE6de | — |
| meta.class.java | #55B909de | — |
| meta.definition.variable.name | #07DC57de | — |
| meta.diff.header | #58C3E6de | — |
| meta.embedded | #33D871de | — |
| meta.embedded.assembly | #57BA09de | — |
| meta.function-call.arguments.python | #F28095de | — |
| meta.function-call.python | #F18095de | — |
| meta.member.access.python | #67B729de | — |
| meta.method.java | #56BA08de | — |
| meta.object-literal.key | #A2A2A2de | — |
| meta.paragraph.markdown | #F17F95de | — |
| meta.preprocessor | #07AEE6de | — |
| meta.preprocessor.numeric | #F17F94de | — |
| meta.preprocessor.string | #F17F94de | — |
| meta.scope.prerequisites.makefile | #56BA09de | — |
| meta.structure.dictionary.json.comments | #9999F96e | — |
| meta.structure.dictionary.key.python | #E876EFde | — |
| meta.structure.dictionary.value.json.comments | #9B9BF86e | — |
| meta.template.expression | #F58FA2de | — |
| meta.type.cast.expr | #F696A8de | — |
| meta.type.new.expr | #F17F94de | — |
| parameter | #9D97F6de | — |
| punctuation.character.set.begin.regexp | #08CB51de | — |
| punctuation.character.set.end.regexp | #F29EF7de | — |
| punctuation.definition.array.begin.json | #F696A8de | — |
| punctuation.definition.character-class.regexp | #2DD56Cde | — |
| punctuation.definition.comment | #9999F96e | — |
| punctuation.definition.comment.json.comments | #9A9AF76e | — |
| punctuation.definition.comment.python | #9999F96e | — |
| punctuation.definition.dictionary.begin.json | #F18095de | — |
| punctuation.definition.dictionary.end.json | #F28095de | — |
| punctuation.definition.group.assertion.regexp | #9D97F6de | — |
| punctuation.definition.group.regexp | #67B729de | — |
| punctuation.definition.list.begin.json | #08CB51de | — |
| punctuation.definition.list.begin.markdown | #07AFE9de | — |
| punctuation.definition.list.begin.python | #9E98F6de | — |
| punctuation.definition.list.end.json | #33AFD8de | — |
| punctuation.definition.list.end.markdown | #07BD4Bde | — |
| punctuation.definition.list.end.python | #07B0E7de | — |
| punctuation.definition.parameters.begin.python | #A6A6A6de | — |
| punctuation.definition.parameters.end.bracket.round.java | #E876EFde | — |
| punctuation.definition.quote.begin.markdown | #F27F94de | — |
| punctuation.definition.tag | #9D98F6de | — |
| punctuation.definition.template-expression.begin | #29BB60de | — |
| punctuation.definition.template-expression.end | #33D871de | — |
| punctuation.section.class.begin.bracket.curly.java | #2ABD61de | — |
| punctuation.section.embedded | #A2A2A2de | — |
| punctuation.section.embedded.begin.php | #A6A6A6de | — |
| punctuation.section.embedded.end.php | #9F99F7de | — |
| punctuation.terminator.java | #32AED8de | — |
| source.cmake | #AAA5F8de | — |
| source.coffee.embedded | #9D97F6de | — |
| source.cpp | #08D254de | — |
| source.css.less | #9E98F6de | — |
| source.groovy.embedded | #A2A2A2de | — |
| source.java | #55BA07de | — |
| source.java-properties | #67B729de | — |
| source.json.comments | #9B9BF86e | — |
| source.makefile | #E776EFde | — |
| source.powershell | #66B529de | — |
| source.powershell.variable.other.member | #F17F94de | — |
| source.python | #A2A2A2de | — |
| storage | #2ABD61de | — |
| storage.modifier | #6CCCEDde | — |
| storage.modifier.import.java | #A2A2A2de | — |
| storage.modifier.package.java | #A2A2A2de | — |
| storage.type | #F18095de | — |
| storage.type.annotation.groovy | #E775EFde | — |
| storage.type.annotation.java | #A2A2A2de | — |
| storage.type.boolean.go | #07B3EEde | — |
| storage.type.byte.go | #9F99F7de | — |
| storage.type.cs | #E876F0de | — |
| storage.type.error.go | #07B3EEde | — |
| storage.type.generic.cs | #07BE4Bde | — |
| storage.type.generic.groovy | #06DC56de | — |
| storage.type.generic.java | #F27F95de | — |
| storage.type.groovy | #55BA07de | — |
| storage.type.java | #6EC62Ade | — |
| storage.type.modifier.cs | #4BBCE2de | — |
| storage.type.numeric.go | #E876F0de | — |
| storage.type.object.array.groovy | #A2A2A2de | — |
| storage.type.object.array.java | #07AFE9de | — |
| storage.type.parameters.groovy | #A2A2A2de | — |
| storage.type.primitive.array.groovy | #07BD4Bde | — |
| storage.type.primitive.array.java | #07B1EAde | — |
| storage.type.primitive.groovy | #E775EFde | — |
| storage.type.primitive.java | #E876EFde | — |
| storage.type.rune.go | #9F99F7de | — |
| storage.type.string.go | #F27F95de | — |
| storage.type.token.java | #51C0E4de | — |
| storage.type.uintptr.go | #A2A2A2de | — |
| storage.type.variable.cs | #E776EFde | — |
| string | #9E98F6de | — |
| string.quoted.docstring.multi.python | #9898F86e | — |
| string.regexp | #9D98F6de | — |
| string.tag | #07B0E7de | — |
| string.value | #55B909de | — |
| strong | #F096F6de | — |
| support.class | #E775EFde | — |
| support.constant.color | #B3B3B3de | — |
| support.constant.dom | #32AFD8de | — |
| support.constant.font-name | #07AEE4de | — |
| support.constant.handlebars | #56BA08de | — |
| support.constant.json | #F28096de | — |
| support.constant.math | #E775EFde | — |
| support.constant.media | #E875EEde | — |
| support.constant.media-type | #32AFD8de | — |
| support.constant.property-value | #F17F94de | — |
| support.function | #32AED8de | — |
| support.function.git-rebase | #AAA5F8de | — |
| support.other.parenthesis.regexp | #A2A2A2de | — |
| support.type | #32AFD8de | — |
| support.type.property-name | #2DD56Cde | — |
| support.type.vendored.property-name | #33AED8de | — |
| support.variable | #6BBD2Ade | — |
| token.debug-token | #07AFE9de | — |
| token.error-token | #F3A5F8de | — |
| token.info-token | #A3A3A3de | — |
| token.warn-token | #A2A2A2de | — |
| variable | #E876EFde | — |
| variable.css | #39B2DAde | — |
| variable.language | #A2A2A2de | — |
| variable.language.wildcard.java | #E875EEde | — |
| variable.other.constant | #A2A2A2de | — |
| variable.other.definition.java | #51C0E4de | — |
| variable.other.enummember | #9D97F6de | — |
| variable.other.less | #56BA09de | — |
| variable.other.object.java | #E876EFde | — |
| variable.other.object.property.java | #07BD4Bde | — |
| variable.parameter.c | #A2A2A2de | — |
| variable.parameter.function.language.python | #33D871de | — |
| variable.parameter.java | #67B729de | — |
| variable.scss | #F17F95de | — |
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}!`;
}