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 | #CBCB7C6e | — |
| comment.block.html | #CBCB716e | — |
| comment.block.java | #CACA736e | — |
| comment.block.javadoc.java | #CBCB716e | — |
| comment.block.powershell | #CBCB7C6e | — |
| comment.block.xml | #CBCB7C6e | — |
| comment.line.double-slash.c | #CBCB7C6e | — |
| comment.line.double-slash.cpp | #CBCB716e | — |
| comment.line.double-slash.java | #CACA736e | — |
| comment.line.double-slash.js | #CACA736e | — |
| comment.line.number-sign.makefile | #CBCB7C6e | — |
| comment.line.number-sign.python | #CACA736e | — |
| comment.line.number-sign.yaml | #CACA736e | — |
| comment.line.percentage.erlang | #CBCB716e | — |
| comment.line.powershell | #CBCB716e | — |
| comment.source.cmake | #CBCB716e | — |
| comment.source.cmakecache | #CBCB766e | — |
| constant.character | #0EE53Cde | — |
| constant.character.character-class.regexp | #F68EA9de | — |
| constant.character.escape | #F1AEFEde | — |
| constant.character.set.regexp | #9F9FF4de | — |
| constant.language | #F89DB5de | — |
| constant.numeric | #F2ABFEde | — |
| constant.numeric.dec.python | #0EE43Bde | — |
| constant.other.caps.python | #0CE53Ade | — |
| constant.other.character-class.regexp | #EDAC63de | — |
| constant.other.character-class.set.regexp | #0DE439de | — |
| constant.other.color.rgb-value | #E083F1de | — |
| constant.other.placeholder | #9E9EF7de | — |
| constant.other.rgb-value | #9F9FF3de | — |
| constant.regexp | #F1AEFEde | — |
| constant.sha.git-rebase | #0FDAF1de | — |
| emphasis | #DF85F0de | — |
| entity.name.class | #E387F4de | — |
| entity.name.function | #84DC0Dde | — |
| entity.name.function.preprocessor | #F2ABFEde | — |
| entity.name.function.python | #F1AEFEde | — |
| entity.name.label | #0EE53Cde | — |
| entity.name.namespace | #FCBA6Ede | — |
| entity.name.operator | #0DE43Ade | — |
| entity.name.operator.custom-literal | #0DE439de | — |
| entity.name.scope-resolution | #10DAF3de | — |
| entity.name.tag | #E084F3de | — |
| entity.name.tag.css | #FEABC2de | — |
| entity.name.type | #9F9FF4de | — |
| entity.name.variable | #84DC0Ede | — |
| entity.other.attribute | #0EE43Bde | — |
| entity.other.attribute-name | #F187A3de | — |
| entity.other.attribute-name.class.css | #0EDAF1de | — |
| entity.other.attribute-name.class.mixin.css | #FCB971de | — |
| entity.other.attribute-name.id | #9E9EF8de | — |
| entity.other.attribute-name.id.css | #F385A2de | — |
| entity.other.attribute-name.parent-selector.css | #0EE53Cde | — |
| entity.other.attribute-name.pseudo-class.css | #FAACC1de | — |
| entity.other.attribute-name.pseudo-element.css | #F286A3de | — |
| entity.other.attribute-name.scss | #A0A0F5de | — |
| entity.other.document.begin.yaml | #CBCB716e | — |
| entity.other.inherited-class | #9E9EF8de | — |
| header | #86DD0Ade | — |
| invalid | #E083F1de | — |
| keyword | #0DE53Bde | — |
| keyword.codetag.notation.python | #85DC0Cde | — |
| keyword.control | #9F9FF5de | — |
| keyword.control.anchor.regexp | #84DC0Ede | — |
| keyword.control.import.python | #E896F7de | — |
| keyword.operator | #A5A5F9de | — |
| keyword.operator.alignas | #FDB96Dde | — |
| keyword.operator.alignof | #12DAF2de | — |
| keyword.operator.cast | #11DAF2de | — |
| keyword.operator.delete | #F2B878de | — |
| keyword.operator.documentation.powershell | #CBCB7C6e | — |
| keyword.operator.expression | #08E535de | — |
| keyword.operator.instanceof | #FCB96Dde | — |
| keyword.operator.logical.python | #0DE43Ade | — |
| keyword.operator.minus.exponent | #0AE639de | — |
| keyword.operator.negation.regexp | #0EE43Bde | — |
| keyword.operator.new | #0DE439de | — |
| keyword.operator.noexcept | #A0A0F5de | — |
| keyword.operator.or.regexp | #0EE43Bde | — |
| keyword.operator.plus.exponent | #E084F3de | — |
| keyword.operator.quantifier.regexp | #0AE639de | — |
| keyword.operator.sizeof | #E182F3de | — |
| keyword.operator.typeid | #0AE538de | — |
| keyword.operator.wordlike | #9F9FF5de | — |
| keyword.other.operator | #FCB96Dde | — |
| keyword.other.package.java | #EDAC63de | — |
| keyword.other.unit | #A0A0F6de | — |
| keyword.other.using | #9F9FF3de | — |
| markup.bold | #EEACFAde | — |
| markup.changed | #F68EA9de | — |
| markup.deleted | #F187A3de | — |
| markup.fenced_code.block.markdown | #F2AEFEde | — |
| markup.heading | #86DC0Ede | — |
| markup.inline.raw | #FDB96Dde | — |
| markup.inserted | #FEB1C5de | — |
| markup.italic | #0EE53Cde | — |
| markup.raw.block.markdown | #9F9FF3de | — |
| markup.strikethrough | #9F9FF5de | — |
| markup.underline | #E58EF6de | — |
| meta.block.c | #84DC0Dde | — |
| meta.block.c | #9E9EF7de | — |
| meta.class.java | #E896F7de | — |
| meta.definition.variable.name | #FCB96Dde | — |
| meta.diff.header | #0EE53Cde | — |
| meta.embedded | #E58EF6de | — |
| meta.embedded.assembly | #0DE43Ade | — |
| meta.function-call.arguments.python | #9E9EF7de | — |
| meta.function-call.python | #E084F1de | — |
| meta.member.access.python | #9E9EF8de | — |
| meta.method.java | #10DAF3de | — |
| meta.object-literal.key | #E58EF6de | — |
| meta.paragraph.markdown | #EDAC63de | — |
| meta.preprocessor | #9E9EF8de | — |
| meta.preprocessor.numeric | #F385A1de | — |
| meta.preprocessor.string | #F89DB5de | — |
| meta.scope.prerequisites.makefile | #0DE53Bde | — |
| meta.structure.dictionary.json.comments | #CBCB766e | — |
| meta.structure.dictionary.key.python | #FCBA6Ede | — |
| meta.structure.dictionary.value.json.comments | #CACA736e | — |
| meta.template.expression | #E083F1de | — |
| meta.type.cast.expr | #F68EA9de | — |
| meta.type.new.expr | #84DC0Dde | — |
| parameter | #0EE43Bde | — |
| punctuation.character.set.begin.regexp | #EA9DF8de | — |
| punctuation.character.set.end.regexp | #E58EF6de | — |
| punctuation.definition.array.begin.json | #EDAC63de | — |
| punctuation.definition.character-class.regexp | #EEACFAde | — |
| punctuation.definition.comment | #CBCB766e | — |
| punctuation.definition.comment.json.comments | #CBCB716e | — |
| punctuation.definition.comment.python | #CACA736e | — |
| punctuation.definition.dictionary.begin.json | #F89DB5de | — |
| punctuation.definition.dictionary.end.json | #F187A3de | — |
| punctuation.definition.group.assertion.regexp | #0BE33Ade | — |
| punctuation.definition.group.regexp | #10DAF3de | — |
| punctuation.definition.list.begin.json | #0BE33Ade | — |
| punctuation.definition.list.begin.markdown | #FCB96Fde | — |
| punctuation.definition.list.begin.python | #B4B4FBde | — |
| punctuation.definition.list.end.json | #0EE43Bde | — |
| punctuation.definition.list.end.markdown | #0AE639de | — |
| punctuation.definition.list.end.python | #EA9DF8de | — |
| punctuation.definition.parameters.begin.python | #FAACC1de | — |
| punctuation.definition.parameters.end.bracket.round.java | #DF85F0de | — |
| punctuation.definition.quote.begin.markdown | #FDB96Bde | — |
| punctuation.definition.tag | #F2ABFEde | — |
| punctuation.definition.template-expression.begin | #11DAF2de | — |
| punctuation.definition.template-expression.end | #0ADAF3de | — |
| punctuation.section.class.begin.bracket.curly.java | #09E539de | — |
| punctuation.section.embedded | #84DC0Dde | — |
| punctuation.section.embedded.begin.php | #84DC0Dde | — |
| punctuation.section.embedded.end.php | #0DE439de | — |
| punctuation.terminator.java | #E084F1de | — |
| source.cmake | #E896F7de | — |
| source.coffee.embedded | #0DE53Bde | — |
| source.cpp | #0EDAF3de | — |
| source.css.less | #FCBA6Ede | — |
| source.groovy.embedded | #86DC0Ede | — |
| source.java | #A5A5F9de | — |
| source.java-properties | #84DC0Dde | — |
| source.json.comments | #CBCB7C6e | — |
| source.makefile | #FEB1C5de | — |
| source.powershell | #E083F1de | — |
| source.powershell.variable.other.member | #F487A4de | — |
| source.python | #A0A0F5de | — |
| storage | #A0A0F5de | — |
| storage.modifier | #F796AFde | — |
| storage.modifier.import.java | #FEB1C6de | — |
| storage.modifier.package.java | #F186A3de | — |
| storage.type | #FCB971de | — |
| storage.type.annotation.groovy | #0FDAF1de | — |
| storage.type.annotation.java | #0CDAF4de | — |
| storage.type.boolean.go | #0EDAF1de | — |
| storage.type.byte.go | #84DC0Dde | — |
| storage.type.cs | #F385A1de | — |
| storage.type.error.go | #9F9FF4de | — |
| storage.type.generic.cs | #9F9FF4de | — |
| storage.type.generic.groovy | #12DAF2de | — |
| storage.type.generic.java | #FDB96Bde | — |
| storage.type.groovy | #0EDAF3de | — |
| storage.type.java | #BCBCFCde | — |
| storage.type.modifier.cs | #86DD0Dde | — |
| storage.type.numeric.go | #0EDAF1de | — |
| storage.type.object.array.groovy | #FEABC2de | — |
| storage.type.object.array.java | #E182F3de | — |
| storage.type.parameters.groovy | #84DC0Ede | — |
| storage.type.primitive.array.groovy | #E083F1de | — |
| storage.type.primitive.array.java | #F3BC80de | — |
| storage.type.primitive.groovy | #F0B471de | — |
| storage.type.primitive.java | #86DD0Ede | — |
| storage.type.rune.go | #9E9EF7de | — |
| storage.type.string.go | #0ADAF3de | — |
| storage.type.token.java | #9F9FF5de | — |
| storage.type.uintptr.go | #FCBA6Ede | — |
| storage.type.variable.cs | #FCB96Fde | — |
| string | #FDB96Bde | — |
| string.quoted.docstring.multi.python | #CACA736e | — |
| string.regexp | #11DAF2de | — |
| string.tag | #12DAF2de | — |
| string.value | #11DAF2de | — |
| strong | #85DC0Ede | — |
| support.class | #FCB96Fde | — |
| support.constant.color | #EEB06Ade | — |
| support.constant.dom | #FDB96Dde | — |
| support.constant.font-name | #84DC0Dde | — |
| support.constant.handlebars | #10DAF3de | — |
| support.constant.json | #BCBCFCde | — |
| support.constant.math | #86DD0Ade | — |
| support.constant.media | #ECA5F9de | — |
| support.constant.media-type | #A5A5F9de | — |
| support.constant.property-value | #86DC0Ede | — |
| support.function | #85DC0Ede | — |
| support.function.git-rebase | #83DC0Ade | — |
| support.other.parenthesis.regexp | #0DE53Bde | — |
| support.type | #84DC0Dde | — |
| support.type.property-name | #0BD9F0de | — |
| support.type.vendored.property-name | #FAACC1de | — |
| support.variable | #0CE53Ade | — |
| token.debug-token | #0EE43Bde | — |
| token.error-token | #DF85F0de | — |
| token.info-token | #FCB971de | — |
| token.warn-token | #EDAC63de | — |
| variable | #0CE43Ade | — |
| variable.css | #09D9F2de | — |
| variable.language | #F1AEFEde | — |
| variable.language.wildcard.java | #9F9FF5de | — |
| variable.other.constant | #86DC0Ede | — |
| variable.other.definition.java | #BCBCFEde | — |
| variable.other.enummember | #86DC0Ede | — |
| variable.other.less | #A5A5F9de | — |
| variable.other.object.java | #FAACC1de | — |
| variable.other.object.property.java | #F68EA9de | — |
| variable.parameter.c | #9E9EF7de | — |
| variable.parameter.function.language.python | #84DC0Dde | — |
| variable.parameter.java | #F2B878de | — |
| variable.scss | #83DC09de | — |
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}!`;
}