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 | #8FCBEA6e | — |
| comment.block.html | #98CBED6e | — |
| comment.block.java | #96CCE66e | — |
| comment.block.javadoc.java | #98CBED6e | — |
| comment.block.powershell | #8FCBEA6e | — |
| comment.block.xml | #96CCE66e | — |
| comment.line.double-slash.c | #98CBED6e | — |
| comment.line.double-slash.cpp | #96CCE66e | — |
| comment.line.double-slash.java | #8FCBEA6e | — |
| comment.line.double-slash.js | #96CCE66e | — |
| comment.line.number-sign.makefile | #98CBED6e | — |
| comment.line.number-sign.python | #96CCE66e | — |
| comment.line.number-sign.yaml | #95CCE86e | — |
| comment.line.percentage.erlang | #96CCE66e | — |
| comment.line.powershell | #8FCBEA6e | — |
| comment.source.cmake | #98CBED6e | — |
| comment.source.cmakecache | #96CCE66e | — |
| constant.character | #98BAF4de | — |
| constant.character.character-class.regexp | #BA98F4de | — |
| constant.character.escape | #CACA10de | — |
| constant.character.set.regexp | #D0B3FEde | — |
| constant.language | #CACA12de | — |
| constant.numeric | #F8ADADde | — |
| constant.numeric.dec.python | #0FE093de | — |
| constant.other.caps.python | #EE83C6de | — |
| constant.other.character-class.regexp | #CACA12de | — |
| constant.other.character-class.set.regexp | #EB8A8Ade | — |
| constant.other.color.rgb-value | #D1B7FEde | — |
| constant.other.placeholder | #D2B7FEde | — |
| constant.other.rgb-value | #12DF93de | — |
| constant.regexp | #CACA15de | — |
| constant.sha.git-rebase | #FEAFAFde | — |
| emphasis | #FEAADFde | — |
| entity.name.class | #14DE92de | — |
| entity.name.function | #14DE92de | — |
| entity.name.function.preprocessor | #EE8989de | — |
| entity.name.function.python | #CBCB15de | — |
| entity.name.label | #CBCB10de | — |
| entity.name.namespace | #CBCB10de | — |
| entity.name.operator | #F7A6D9de | — |
| entity.name.operator.custom-literal | #2CE313de | — |
| entity.name.scope-resolution | #0EE094de | — |
| entity.name.tag | #FEABDFde | — |
| entity.name.tag.css | #CACA12de | — |
| entity.name.type | #F291CDde | — |
| entity.name.variable | #91B5F2de | — |
| entity.other.attribute | #A1C4FEde | — |
| entity.other.attribute-name | #0FE093de | — |
| entity.other.attribute-name.class.css | #EE8989de | — |
| entity.other.attribute-name.class.mixin.css | #EB82C3de | — |
| entity.other.attribute-name.id | #D0B3FEde | — |
| entity.other.attribute-name.id.css | #F59F9Fde | — |
| entity.other.attribute-name.parent-selector.css | #FEABDFde | — |
| entity.other.attribute-name.pseudo-class.css | #7DA6E8de | — |
| entity.other.attribute-name.pseudo-element.css | #BA98F4de | — |
| entity.other.attribute-name.scss | #FEAAAAde | — |
| entity.other.document.begin.yaml | #95CCE86e | — |
| entity.other.inherited-class | #13DE92de | — |
| header | #D2B7FEde | — |
| invalid | #FEB0B0de | — |
| keyword | #B695EDde | — |
| keyword.codetag.notation.python | #CACA10de | — |
| keyword.control | #FEB0B0de | — |
| keyword.control.anchor.regexp | #B796EFde | — |
| keyword.control.import.python | #CBCB15de | — |
| keyword.operator | #0CDF90de | — |
| keyword.operator.alignas | #CACA12de | — |
| keyword.operator.alignof | #B794F2de | — |
| keyword.operator.cast | #B695EDde | — |
| keyword.operator.delete | #83ABEEde | — |
| keyword.operator.documentation.powershell | #8FCBEA6e | — |
| keyword.operator.expression | #E983C3de | — |
| keyword.operator.instanceof | #F8ADADde | — |
| keyword.operator.logical.python | #EB82C3de | — |
| keyword.operator.minus.exponent | #EB82C3de | — |
| keyword.operator.negation.regexp | #F291CDde | — |
| keyword.operator.new | #CACA12de | — |
| keyword.operator.noexcept | #A3C6FEde | — |
| keyword.operator.or.regexp | #CACA12de | — |
| keyword.operator.plus.exponent | #FEAADFde | — |
| keyword.operator.quantifier.regexp | #FEAADFde | — |
| keyword.operator.sizeof | #D1B7FEde | — |
| keyword.operator.typeid | #F8ADDCde | — |
| keyword.operator.wordlike | #2DE213de | — |
| keyword.other.operator | #12E092de | — |
| keyword.other.package.java | #EC81C4de | — |
| keyword.other.unit | #F08A8Ade | — |
| keyword.other.using | #ED8989de | — |
| markup.bold | #B695ECde | — |
| markup.changed | #2CE313de | — |
| markup.deleted | #29E20Ede | — |
| markup.fenced_code.block.markdown | #0EE094de | — |
| markup.heading | #FEAFAFde | — |
| markup.inline.raw | #2DE313de | — |
| markup.inserted | #CACA15de | — |
| markup.italic | #CBCB15de | — |
| markup.raw.block.markdown | #CACA09de | — |
| markup.strikethrough | #BF9FF5de | — |
| markup.underline | #98BAF4de | — |
| meta.block.c | #13E092de | — |
| meta.block.c | #F7A6A6de | — |
| meta.class.java | #FEABDFde | — |
| meta.definition.variable.name | #EC8989de | — |
| meta.diff.header | #7EA6EBde | — |
| meta.embedded | #A3C6FEde | — |
| meta.embedded.assembly | #7EA6EBde | — |
| meta.function-call.arguments.python | #BA98F4de | — |
| meta.function-call.python | #F08A8Ade | — |
| meta.member.access.python | #F59F9Fde | — |
| meta.method.java | #ED8989de | — |
| meta.object-literal.key | #A4C6FEde | — |
| meta.paragraph.markdown | #12DF93de | — |
| meta.preprocessor | #0EE094de | — |
| meta.preprocessor.numeric | #FEAADFde | — |
| meta.preprocessor.string | #0CDF90de | — |
| meta.scope.prerequisites.makefile | #2CE210de | — |
| meta.structure.dictionary.json.comments | #8FCBEA6e | — |
| meta.structure.dictionary.key.python | #2CE213de | — |
| meta.structure.dictionary.value.json.comments | #8FCBEA6e | — |
| meta.template.expression | #CBCB0Fde | — |
| meta.type.cast.expr | #FEB0B0de | — |
| meta.type.new.expr | #CBCB15de | — |
| parameter | #E983C3de | — |
| punctuation.character.set.begin.regexp | #B796EFde | — |
| punctuation.character.set.end.regexp | #EA83C3de | — |
| punctuation.definition.array.begin.json | #F8ADDCde | — |
| punctuation.definition.character-class.regexp | #2CE212de | — |
| punctuation.definition.comment | #95CCE86e | — |
| punctuation.definition.comment.json.comments | #98CBED6e | — |
| punctuation.definition.comment.python | #8FCBEA6e | — |
| punctuation.definition.dictionary.begin.json | #F59FD5de | — |
| punctuation.definition.dictionary.end.json | #A4C6FEde | — |
| punctuation.definition.group.assertion.regexp | #B694F0de | — |
| punctuation.definition.group.regexp | #CBCB10de | — |
| punctuation.definition.list.begin.json | #12DF93de | — |
| punctuation.definition.list.begin.markdown | #13DF93de | — |
| punctuation.definition.list.begin.python | #A4C6FEde | — |
| punctuation.definition.list.end.json | #0FE093de | — |
| punctuation.definition.list.end.markdown | #CBCB15de | — |
| punctuation.definition.list.end.python | #CBCB10de | — |
| punctuation.definition.parameters.begin.python | #FEB0B0de | — |
| punctuation.definition.parameters.end.bracket.round.java | #CBCB15de | — |
| punctuation.definition.quote.begin.markdown | #CACA12de | — |
| punctuation.definition.tag | #CACA13de | — |
| punctuation.definition.template-expression.begin | #0EE094de | — |
| punctuation.definition.template-expression.end | #8AB0F0de | — |
| punctuation.section.class.begin.bracket.curly.java | #B794F2de | — |
| punctuation.section.embedded | #EB8A8Ade | — |
| punctuation.section.embedded.begin.php | #7CA6ECde | — |
| punctuation.section.embedded.end.php | #D1B7FEde | — |
| punctuation.terminator.java | #B794F2de | — |
| source.cmake | #F8ADADde | — |
| source.coffee.embedded | #CBCB15de | — |
| source.cpp | #9FBFF5de | — |
| source.css.less | #13DF94de | — |
| source.groovy.embedded | #2DE313de | — |
| source.java | #EC81C4de | — |
| source.java-properties | #EA83C3de | — |
| source.json.comments | #8FCBEA6e | — |
| source.makefile | #FEABDFde | — |
| source.powershell | #2CE210de | — |
| source.powershell.variable.other.member | #7EA6EBde | — |
| source.python | #13DF94de | — |
| storage | #B695EDde | — |
| storage.modifier | #D2B7FEde | — |
| storage.modifier.import.java | #FEABDFde | — |
| storage.modifier.package.java | #0FDF90de | — |
| storage.type | #FEAAAAde | — |
| storage.type.annotation.groovy | #CACA15de | — |
| storage.type.annotation.java | #14DE92de | — |
| storage.type.boolean.go | #D2B7FEde | — |
| storage.type.byte.go | #CFB5F9de | — |
| storage.type.cs | #27E30Fde | — |
| storage.type.error.go | #C4A6F7de | — |
| storage.type.generic.cs | #CBCB15de | — |
| storage.type.generic.groovy | #CFB5F9de | — |
| storage.type.generic.java | #A5C6FEde | — |
| storage.type.groovy | #B695ECde | — |
| storage.type.java | #D0B3FEde | — |
| storage.type.modifier.cs | #B794F1de | — |
| storage.type.numeric.go | #F8ADADde | — |
| storage.type.object.array.groovy | #FEB0B0de | — |
| storage.type.object.array.java | #CACA09de | — |
| storage.type.parameters.groovy | #0FDF90de | — |
| storage.type.primitive.array.groovy | #F291CDde | — |
| storage.type.primitive.array.java | #FEAADFde | — |
| storage.type.primitive.groovy | #13E092de | — |
| storage.type.primitive.java | #83ABEEde | — |
| storage.type.rune.go | #A4C6FEde | — |
| storage.type.string.go | #13E092de | — |
| storage.type.token.java | #F8ADDCde | — |
| storage.type.uintptr.go | #F8ADDCde | — |
| storage.type.variable.cs | #2AE210de | — |
| string | #ED8989de | — |
| string.quoted.docstring.multi.python | #8FCBEA6e | — |
| string.regexp | #F59F9Fde | — |
| string.tag | #7DA6E8de | — |
| string.value | #D1B7FEde | — |
| strong | #EA83C3de | — |
| support.class | #0CDF90de | — |
| support.constant.color | #13E092de | — |
| support.constant.dom | #EE8989de | — |
| support.constant.font-name | #2CE213de | — |
| support.constant.handlebars | #A4C6FEde | — |
| support.constant.json | #F8ADADde | — |
| support.constant.math | #EE83C6de | — |
| support.constant.media | #13DF93de | — |
| support.constant.media-type | #FEAADFde | — |
| support.constant.property-value | #7EA6EBde | — |
| support.function | #83ABEEde | — |
| support.function.git-rebase | #EC81C4de | — |
| support.other.parenthesis.regexp | #14DE92de | — |
| support.type | #CACA09de | — |
| support.type.property-name | #B694F0de | — |
| support.type.vendored.property-name | #D1B7FEde | — |
| support.variable | #10E093de | — |
| token.debug-token | #13DE92de | — |
| token.error-token | #F08ACAde | — |
| token.info-token | #CACA13de | — |
| token.warn-token | #C9ADF8de | — |
| variable | #F7A6A6de | — |
| variable.css | #7EA6E9de | — |
| variable.language | #CACA15de | — |
| variable.language.wildcard.java | #CACA13de | — |
| variable.other.constant | #D0B3FEde | — |
| variable.other.definition.java | #B694F0de | — |
| variable.other.enummember | #CACA15de | — |
| variable.other.less | #A1C4FEde | — |
| variable.other.object.java | #B794F1de | — |
| variable.other.object.property.java | #F08ACAde | — |
| variable.parameter.c | #13DF93de | — |
| variable.parameter.function.language.python | #CBCB15de | — |
| variable.parameter.java | #BA98F4de | — |
| variable.scss | #CACA12de | — |
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}!`;
}