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 | #F0B6A36e | — |
| comment.block.html | #F2B69E6e | — |
| comment.block.java | #ECBA986e | — |
| comment.block.javadoc.java | #F0B8966e | — |
| comment.block.powershell | #F0B8966e | — |
| comment.block.xml | #F0B6A36e | — |
| comment.line.double-slash.c | #F0B6A36e | — |
| comment.line.double-slash.cpp | #F0B6A36e | — |
| comment.line.double-slash.java | #ECBA986e | — |
| comment.line.double-slash.js | #ECBA986e | — |
| comment.line.number-sign.makefile | #F0B8966e | — |
| comment.line.number-sign.python | #F0B6A36e | — |
| comment.line.number-sign.yaml | #F0B6A36e | — |
| comment.line.percentage.erlang | #F0B8966e | — |
| comment.line.powershell | #F0B6A36e | — |
| comment.source.cmake | #F2B69E6e | — |
| comment.source.cmakecache | #ECBA986e | — |
| constant.character | #C4C4C4de | — |
| constant.character.character-class.regexp | #2BD5F6de | — |
| constant.character.escape | #29D5F7de | — |
| constant.character.set.regexp | #C4C4C4de | — |
| constant.language | #0BE150de | — |
| constant.numeric | #B1ACFAde | — |
| constant.numeric.dec.python | #A09BF5de | — |
| constant.other.caps.python | #F796B4de | — |
| constant.other.character-class.regexp | #79DB0Dde | — |
| constant.other.character-class.set.regexp | #A29DF8de | — |
| constant.other.color.rgb-value | #79DB0Ede | — |
| constant.other.placeholder | #28D6F6de | — |
| constant.other.rgb-value | #A5A5A5de | — |
| constant.regexp | #A09BF5de | — |
| constant.sha.git-rebase | #ECA5F9de | — |
| emphasis | #A9A5F9de | — |
| entity.name.class | #26D6F8de | — |
| entity.name.function | #C0BCFCde | — |
| entity.name.function.preprocessor | #F68EAFde | — |
| entity.name.function.python | #F1AAFEde | — |
| entity.name.label | #0AE14Fde | — |
| entity.name.namespace | #FAACC5de | — |
| entity.name.operator | #EEACFAde | — |
| entity.name.operator.custom-literal | #0EE250de | — |
| entity.name.scope-resolution | #79DB0Dde | — |
| entity.name.tag | #79DA0Ede | — |
| entity.name.tag.css | #23D6F6de | — |
| entity.name.type | #F68EAFde | — |
| entity.name.variable | #09E14Cde | — |
| entity.other.attribute | #26D6F7de | — |
| entity.other.attribute-name | #B1ACFAde | — |
| entity.other.attribute-name.class.css | #78DC0Ade | — |
| entity.other.attribute-name.class.mixin.css | #B8B4FBde | — |
| entity.other.attribute-name.id | #B1ACFAde | — |
| entity.other.attribute-name.id.css | #7BDB0Fde | — |
| entity.other.attribute-name.parent-selector.css | #EA9DF8de | — |
| entity.other.attribute-name.pseudo-class.css | #B1ACFAde | — |
| entity.other.attribute-name.pseudo-element.css | #22D6F8de | — |
| entity.other.attribute-name.scss | #F182A5de | — |
| entity.other.document.begin.yaml | #F2B69E6e | — |
| entity.other.inherited-class | #F381A4de | — |
| header | #E180F3de | — |
| invalid | #78DB0Bde | — |
| keyword | #0DE251de | — |
| keyword.codetag.notation.python | #0EE251de | — |
| keyword.control | #7ADA0Ade | — |
| keyword.control.anchor.regexp | #C0BCFCde | — |
| keyword.control.import.python | #E896F7de | — |
| keyword.operator | #0CE24Ede | — |
| keyword.operator.alignas | #A09BF4de | — |
| keyword.operator.alignof | #FEABC5de | — |
| keyword.operator.cast | #E58EF6de | — |
| keyword.operator.delete | #79DA0Ede | — |
| keyword.operator.documentation.powershell | #F0B8966e | — |
| keyword.operator.expression | #0CE24Ede | — |
| keyword.operator.instanceof | #9F9BF3de | — |
| keyword.operator.logical.python | #A29DF8de | — |
| keyword.operator.minus.exponent | #C4C4C4de | — |
| keyword.operator.negation.regexp | #A9A9A9de | — |
| keyword.operator.new | #28D6F6de | — |
| keyword.operator.noexcept | #A29DF8de | — |
| keyword.operator.or.regexp | #DE80F0de | — |
| keyword.operator.plus.exponent | #79DC09de | — |
| keyword.operator.quantifier.regexp | #A19CF3de | — |
| keyword.operator.sizeof | #0AE14Fde | — |
| keyword.operator.typeid | #0DE251de | — |
| keyword.operator.wordlike | #79DB0Dde | — |
| keyword.other.operator | #0BE150de | — |
| keyword.other.package.java | #F1ABFEde | — |
| keyword.other.unit | #A5A5A5de | — |
| keyword.other.using | #0DE24Fde | — |
| markup.bold | #F1ABFEde | — |
| markup.changed | #F2ABFEde | — |
| markup.deleted | #C0C0C0de | — |
| markup.fenced_code.block.markdown | #DF7FF1de | — |
| markup.heading | #A09BF5de | — |
| markup.inline.raw | #C4C4C4de | — |
| markup.inserted | #C4C4C4de | — |
| markup.italic | #DE80F0de | — |
| markup.raw.block.markdown | #DF80F0de | — |
| markup.strikethrough | #79DA0Ede | — |
| markup.underline | #78DC0Ade | — |
| meta.block.c | #0DE24Fde | — |
| meta.block.c | #F381A4de | — |
| meta.class.java | #E896F7de | — |
| meta.definition.variable.name | #C4C4C4de | — |
| meta.diff.header | #28D6F6de | — |
| meta.embedded | #C4C4C4de | — |
| meta.embedded.assembly | #0AE14Fde | — |
| meta.function-call.arguments.python | #79DA0Ede | — |
| meta.function-call.python | #7ADA0Ade | — |
| meta.member.access.python | #F68EAFde | — |
| meta.method.java | #E180F3de | — |
| meta.object-literal.key | #A09BF5de | — |
| meta.paragraph.markdown | #79DB0Ede | — |
| meta.preprocessor | #F082A5de | — |
| meta.preprocessor.numeric | #28D6F7de | — |
| meta.preprocessor.string | #28D6F6de | — |
| meta.scope.prerequisites.makefile | #79DB0Ede | — |
| meta.structure.dictionary.json.comments | #ECBA986e | — |
| meta.structure.dictionary.key.python | #9F9BF7de | — |
| meta.structure.dictionary.value.json.comments | #ECBA986e | — |
| meta.template.expression | #2BD5F6de | — |
| meta.type.cast.expr | #7ADA0Ede | — |
| meta.type.new.expr | #E58EF6de | — |
| parameter | #C4C4C4de | — |
| punctuation.character.set.begin.regexp | #C4C4C4de | — |
| punctuation.character.set.end.regexp | #7ADA0Ede | — |
| punctuation.definition.array.begin.json | #78DC0Ade | — |
| punctuation.definition.character-class.regexp | #79DA0Dde | — |
| punctuation.definition.comment | #F0B6A36e | — |
| punctuation.definition.comment.json.comments | #F2B69E6e | — |
| punctuation.definition.comment.python | #F2B69E6e | — |
| punctuation.definition.dictionary.begin.json | #C0BCFEde | — |
| punctuation.definition.dictionary.end.json | #0DE150de | — |
| punctuation.definition.group.assertion.regexp | #28D6F6de | — |
| punctuation.definition.group.regexp | #F1AAFEde | — |
| punctuation.definition.list.begin.json | #27D6F6de | — |
| punctuation.definition.list.begin.markdown | #2AD6F6de | — |
| punctuation.definition.list.begin.python | #0EE251de | — |
| punctuation.definition.list.end.json | #F1AAFEde | — |
| punctuation.definition.list.end.markdown | #F381A4de | — |
| punctuation.definition.list.end.python | #E896F7de | — |
| punctuation.definition.parameters.begin.python | #C4C4C4de | — |
| punctuation.definition.parameters.end.bracket.round.java | #29D5F7de | — |
| punctuation.definition.quote.begin.markdown | #0AE050de | — |
| punctuation.definition.tag | #E180F3de | — |
| punctuation.definition.template-expression.begin | #09E14Cde | — |
| punctuation.definition.template-expression.end | #28D6F6de | — |
| punctuation.section.class.begin.bracket.curly.java | #C4C4C4de | — |
| punctuation.section.embedded | #E896F7de | — |
| punctuation.section.embedded.begin.php | #28D6F6de | — |
| punctuation.section.embedded.end.php | #79DB0Ede | — |
| punctuation.terminator.java | #09E14Cde | — |
| source.cmake | #F1AAFEde | — |
| source.coffee.embedded | #29D5F7de | — |
| source.cpp | #0DE150de | — |
| source.css.less | #79DA0Dde | — |
| source.groovy.embedded | #F89DBAde | — |
| source.java | #E180F3de | — |
| source.java-properties | #78DB0Bde | — |
| source.json.comments | #F0B8966e | — |
| source.makefile | #F083A6de | — |
| source.powershell | #F2ABFEde | — |
| source.powershell.variable.other.member | #79DC0Cde | — |
| source.python | #0CE24Ede | — |
| storage | #A9A5F9de | — |
| storage.modifier | #09E14Cde | — |
| storage.modifier.import.java | #F082A5de | — |
| storage.modifier.package.java | #C4C4C4de | — |
| storage.type | #A19CF3de | — |
| storage.type.annotation.groovy | #7ADA0Ede | — |
| storage.type.annotation.java | #C0C0C0de | — |
| storage.type.boolean.go | #ECA5F9de | — |
| storage.type.byte.go | #FEADC7de | — |
| storage.type.cs | #0EE251de | — |
| storage.type.error.go | #79DB0Dde | — |
| storage.type.generic.cs | #78DB0Bde | — |
| storage.type.generic.groovy | #F1AAFEde | — |
| storage.type.generic.java | #09E14Cde | — |
| storage.type.groovy | #F68EAFde | — |
| storage.type.java | #78DB0Bde | — |
| storage.type.modifier.cs | #0EE250de | — |
| storage.type.numeric.go | #A09BF4de | — |
| storage.type.object.array.groovy | #0DE251de | — |
| storage.type.object.array.java | #29D6F7de | — |
| storage.type.parameters.groovy | #28D6F6de | — |
| storage.type.primitive.array.groovy | #EA9DF8de | — |
| storage.type.primitive.array.java | #9F9BF7de | — |
| storage.type.primitive.groovy | #C4C4C4de | — |
| storage.type.primitive.java | #B1ACFAde | — |
| storage.type.rune.go | #FEADC7de | — |
| storage.type.string.go | #29D6F6de | — |
| storage.type.token.java | #DF80F2de | — |
| storage.type.uintptr.go | #F281A5de | — |
| storage.type.variable.cs | #DF80F2de | — |
| string | #0AE14Fde | — |
| string.quoted.docstring.multi.python | #F0B8966e | — |
| string.regexp | #A09BF4de | — |
| string.tag | #79DB0Ede | — |
| string.value | #EA9DF8de | — |
| strong | #9F9BF3de | — |
| support.class | #F796B4de | — |
| support.constant.color | #79DA0Dde | — |
| support.constant.dom | #E896F7de | — |
| support.constant.font-name | #C4C4C4de | — |
| support.constant.handlebars | #A29DF8de | — |
| support.constant.json | #B7B7B7de | — |
| support.constant.math | #F89DBAde | — |
| support.constant.media | #26D6F8de | — |
| support.constant.media-type | #DF80F0de | — |
| support.constant.property-value | #79DA0Dde | — |
| support.function | #26D6F8de | — |
| support.function.git-rebase | #79DA0Dde | — |
| support.other.parenthesis.regexp | #2AD6F6de | — |
| support.type | #C4C4C4de | — |
| support.type.property-name | #B1ACFAde | — |
| support.type.vendored.property-name | #DF80F0de | — |
| support.variable | #A5A5A5de | — |
| token.debug-token | #79DC0Cde | — |
| token.error-token | #0AE050de | — |
| token.info-token | #E58EF6de | — |
| token.warn-token | #23D6F6de | — |
| variable | #F796B4de | — |
| variable.css | #E58EF6de | — |
| variable.language | #2AD6F6de | — |
| variable.language.wildcard.java | #2AD6F6de | — |
| variable.other.constant | #B1ACFAde | — |
| variable.other.definition.java | #29D6F7de | — |
| variable.other.enummember | #7BDB0Fde | — |
| variable.other.less | #F182A5de | — |
| variable.other.object.java | #B8B4FBde | — |
| variable.other.object.property.java | #F281A5de | — |
| variable.parameter.c | #ECA5F9de | — |
| variable.parameter.function.language.python | #BBBBBBde | — |
| variable.parameter.java | #0EE250de | — |
| variable.scss | #B8B4FBde | — |
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}!`;
}