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 | #7CD97C6e | — |
| comment.block.html | #83D8836e | — |
| comment.block.java | #7CD97C6e | — |
| comment.block.javadoc.java | #7ADA7A6e | — |
| comment.block.powershell | #7CD97C6e | — |
| comment.block.xml | #7CD97C6e | — |
| comment.line.double-slash.c | #7CD97C6e | — |
| comment.line.double-slash.cpp | #7ADA7A6e | — |
| comment.line.double-slash.java | #7CD97C6e | — |
| comment.line.double-slash.js | #83D8836e | — |
| comment.line.number-sign.makefile | #7CD97C6e | — |
| comment.line.number-sign.python | #7ADA7A6e | — |
| comment.line.number-sign.yaml | #7CD97C6e | — |
| comment.line.percentage.erlang | #7CD97C6e | — |
| comment.line.powershell | #7ADA7A6e | — |
| comment.source.cmake | #7ADA7A6e | — |
| comment.source.cmakecache | #80D9806e | — |
| constant.character | #EF7CE0de | — |
| constant.character.character-class.regexp | #AFAFAFde | — |
| constant.character.escape | #7CC1EFde | — |
| constant.character.set.regexp | #EFBF08de | — |
| constant.language | #11E07Fde | — |
| constant.numeric | #EEC00Dde | — |
| constant.numeric.dec.python | #BCBCBCde | — |
| constant.other.caps.python | #EBBF10de | — |
| constant.other.character-class.regexp | #AB99F1de | — |
| constant.other.character-class.set.regexp | #0DE17Dde | — |
| constant.other.color.rgb-value | #49E111de | — |
| constant.other.placeholder | #91CCF4de | — |
| constant.other.rgb-value | #11E181de | — |
| constant.regexp | #C8BBFEde | — |
| constant.sha.git-rebase | #48E10Fde | — |
| emphasis | #CABDFBde | — |
| entity.name.class | #0EE17Ede | — |
| entity.name.function | #7CC1EFde | — |
| entity.name.function.preprocessor | #85CDFDde | — |
| entity.name.function.python | #EF7CE0de | — |
| entity.name.label | #C5C5C5de | — |
| entity.name.namespace | #11E17Fde | — |
| entity.name.operator | #85CDFDde | — |
| entity.name.operator.custom-literal | #C0C0C0de | — |
| entity.name.scope-resolution | #F183E2de | — |
| entity.name.tag | #83C5F1de | — |
| entity.name.tag.css | #C3B6FAde | — |
| entity.name.type | #B19FF7de | — |
| entity.name.variable | #86CDFDde | — |
| entity.other.attribute | #F79FEBde | — |
| entity.other.attribute-name | #85CDFDde | — |
| entity.other.attribute-name.class.css | #49E111de | — |
| entity.other.attribute-name.class.mixin.css | #A6A6A6de | — |
| entity.other.attribute-name.id | #C8BBFEde | — |
| entity.other.attribute-name.id.css | #EFBF08de | — |
| entity.other.attribute-name.parent-selector.css | #ECBF10de | — |
| entity.other.attribute-name.pseudo-class.css | #EFBF08de | — |
| entity.other.attribute-name.pseudo-element.css | #83C5F1de | — |
| entity.other.attribute-name.scss | #EBC00Cde | — |
| entity.other.document.begin.yaml | #7ADA7A6e | — |
| entity.other.inherited-class | #AFAFAFde | — |
| header | #47E211de | — |
| invalid | #B7A7F8de | — |
| keyword | #46E10Ede | — |
| keyword.codetag.notation.python | #C5C5C5de | — |
| keyword.control | #C8BBFEde | — |
| keyword.control.anchor.regexp | #7CC1EFde | — |
| keyword.control.import.python | #ED7CDEde | — |
| keyword.operator | #0FE17Fde | — |
| keyword.operator.alignas | #11E181de | — |
| keyword.operator.alignof | #EC7DDDde | — |
| keyword.operator.cast | #86CDFDde | — |
| keyword.operator.delete | #48E111de | — |
| keyword.operator.documentation.powershell | #83D8836e | — |
| keyword.operator.expression | #83C5F1de | — |
| keyword.operator.instanceof | #EDC010de | — |
| keyword.operator.logical.python | #11E17Fde | — |
| keyword.operator.minus.exponent | #11E07Fde | — |
| keyword.operator.negation.regexp | #47E211de | — |
| keyword.operator.new | #08E279de | — |
| keyword.operator.noexcept | #EBBF10de | — |
| keyword.operator.or.regexp | #47E110de | — |
| keyword.operator.plus.exponent | #47E20Cde | — |
| keyword.operator.quantifier.regexp | #ECC010de | — |
| keyword.operator.sizeof | #83C5F1de | — |
| keyword.operator.typeid | #C5C5C5de | — |
| keyword.operator.wordlike | #EBC010de | — |
| keyword.other.operator | #EF7CE0de | — |
| keyword.other.package.java | #B7A7F8de | — |
| keyword.other.unit | #83C5F1de | — |
| keyword.other.using | #0DE17Dde | — |
| markup.bold | #ECBF10de | — |
| markup.changed | #0CE07Dde | — |
| markup.deleted | #FEA9F3de | — |
| markup.fenced_code.block.markdown | #AAAAAAde | — |
| markup.heading | #EEC00Dde | — |
| markup.inline.raw | #10E180de | — |
| markup.inserted | #C3B6FAde | — |
| markup.italic | #49E211de | — |
| markup.raw.block.markdown | #11E181de | — |
| markup.strikethrough | #45E10Dde | — |
| markup.underline | #EF7CE0de | — |
| meta.block.c | #EBC010de | — |
| meta.block.c | #EAC010de | — |
| meta.class.java | #6FB9EBde | — |
| meta.definition.variable.name | #ECC010de | — |
| meta.diff.header | #0DE17Dde | — |
| meta.embedded | #AB9AF2de | — |
| meta.embedded.assembly | #EBBF10de | — |
| meta.function-call.arguments.python | #11E17Fde | — |
| meta.function-call.python | #CABDFBde | — |
| meta.member.access.python | #AAAAAAde | — |
| meta.method.java | #49E111de | — |
| meta.object-literal.key | #ECBF0Dde | — |
| meta.paragraph.markdown | #0EE17Ede | — |
| meta.preprocessor | #FEA9F3de | — |
| meta.preprocessor.numeric | #C5C5C5de | — |
| meta.preprocessor.string | #EBBF10de | — |
| meta.scope.prerequisites.makefile | #48E111de | — |
| meta.structure.dictionary.json.comments | #7ADA7A6e | — |
| meta.structure.dictionary.key.python | #ED7CDEde | — |
| meta.structure.dictionary.value.json.comments | #80D9806e | — |
| meta.template.expression | #48E111de | — |
| meta.type.cast.expr | #47E110de | — |
| meta.type.new.expr | #ECC010de | — |
| parameter | #B19FF7de | — |
| punctuation.character.set.begin.regexp | #AB9AF0de | — |
| punctuation.character.set.end.regexp | #ECBF0Dde | — |
| punctuation.definition.array.begin.json | #AB9AF2de | — |
| punctuation.definition.character-class.regexp | #B7A7F8de | — |
| punctuation.definition.comment | #80D9806e | — |
| punctuation.definition.comment.json.comments | #7CD97C6e | — |
| punctuation.definition.comment.python | #7CD97C6e | — |
| punctuation.definition.dictionary.begin.json | #FEA9F3de | — |
| punctuation.definition.dictionary.end.json | #B19FF7de | — |
| punctuation.definition.group.assertion.regexp | #45E10Dde | — |
| punctuation.definition.group.regexp | #CABDFBde | — |
| punctuation.definition.list.begin.json | #47E20Cde | — |
| punctuation.definition.list.begin.markdown | #48E10Fde | — |
| punctuation.definition.list.begin.python | #45E10Ede | — |
| punctuation.definition.list.end.json | #11E07Fde | — |
| punctuation.definition.list.end.markdown | #11E07Fde | — |
| punctuation.definition.list.end.python | #AB99F3de | — |
| punctuation.definition.parameters.begin.python | #C9BBFEde | — |
| punctuation.definition.parameters.end.bracket.round.java | #AB9AF0de | — |
| punctuation.definition.quote.begin.markdown | #AB9AF0de | — |
| punctuation.definition.tag | #62B2E7de | — |
| punctuation.definition.template-expression.begin | #A6A6A6de | — |
| punctuation.definition.template-expression.end | #62B2E7de | — |
| punctuation.section.class.begin.bracket.curly.java | #F598E9de | — |
| punctuation.section.embedded | #B3B3B3de | — |
| punctuation.section.embedded.begin.php | #49E211de | — |
| punctuation.section.embedded.end.php | #43E208de | — |
| punctuation.terminator.java | #86CDFDde | — |
| source.cmake | #B3B3B3de | — |
| source.coffee.embedded | #EFBF08de | — |
| source.cpp | #84CDFEde | — |
| source.css.less | #49E211de | — |
| source.groovy.embedded | #EC7DDDde | — |
| source.java | #FEA8F3de | — |
| source.java-properties | #CABDFBde | — |
| source.json.comments | #7CD97C6e | — |
| source.makefile | #76BDEDde | — |
| source.powershell | #87CDFDde | — |
| source.powershell.variable.other.member | #F79FEBde | — |
| source.python | #EC7DDDde | — |
| storage | #AB98F5de | — |
| storage.modifier | #EFBF08de | — |
| storage.modifier.import.java | #C9BBFEde | — |
| storage.modifier.package.java | #EEC00Ede | — |
| storage.type | #AB99F1de | — |
| storage.type.annotation.groovy | #86CDFDde | — |
| storage.type.annotation.java | #87CDFDde | — |
| storage.type.boolean.go | #EEC00Ede | — |
| storage.type.byte.go | #8AC9F2de | — |
| storage.type.cs | #A6A6A6de | — |
| storage.type.error.go | #FEA3F2de | — |
| storage.type.generic.cs | #0FE17Fde | — |
| storage.type.generic.groovy | #C9BBFEde | — |
| storage.type.generic.java | #C5C5C5de | — |
| storage.type.groovy | #EDC00Ade | — |
| storage.type.java | #C3B6FAde | — |
| storage.type.modifier.cs | #84CDFEde | — |
| storage.type.numeric.go | #F598E9de | — |
| storage.type.object.array.groovy | #62B2E7de | — |
| storage.type.object.array.java | #86CDFDde | — |
| storage.type.parameters.groovy | #AFAFAFde | — |
| storage.type.primitive.array.groovy | #C3B6FAde | — |
| storage.type.primitive.array.java | #0FE17Fde | — |
| storage.type.primitive.groovy | #C9BBFEde | — |
| storage.type.primitive.java | #86CDFDde | — |
| storage.type.rune.go | #83CDFEde | — |
| storage.type.string.go | #C5C5C5de | — |
| storage.type.token.java | #B19FF7de | — |
| storage.type.uintptr.go | #C8BBFEde | — |
| storage.type.variable.cs | #85CDFDde | — |
| string | #AFAFAFde | — |
| string.quoted.docstring.multi.python | #80D9806e | — |
| string.regexp | #C5C5C5de | — |
| string.tag | #45E20Ade | — |
| string.value | #EC7DDDde | — |
| strong | #C5C5C5de | — |
| support.class | #EDC010de | — |
| support.constant.color | #B3B3B3de | — |
| support.constant.dom | #EDC010de | — |
| support.constant.font-name | #EDC00Ade | — |
| support.constant.handlebars | #C5C5C5de | — |
| support.constant.json | #ECC010de | — |
| support.constant.math | #F491E7de | — |
| support.constant.media | #FEA9F3de | — |
| support.constant.media-type | #11E181de | — |
| support.constant.property-value | #48E111de | — |
| support.function | #69B6E9de | — |
| support.function.git-rebase | #AFAFAFde | — |
| support.other.parenthesis.regexp | #49E111de | — |
| support.type | #7CC1EFde | — |
| support.type.property-name | #87CDFDde | — |
| support.type.vendored.property-name | #0EE17Ede | — |
| support.variable | #EEC00Dde | — |
| token.debug-token | #ECBF0Dde | — |
| token.error-token | #FEA9F3de | — |
| token.info-token | #AAAAAAde | — |
| token.warn-token | #6FB9EBde | — |
| variable | #FEA8F3de | — |
| variable.css | #BDAEF9de | — |
| variable.language | #B19FF7de | — |
| variable.language.wildcard.java | #EC7DDDde | — |
| variable.other.constant | #B7B7B7de | — |
| variable.other.definition.java | #48E10Fde | — |
| variable.other.enummember | #B19FF7de | — |
| variable.other.less | #ECC00Ede | — |
| variable.other.object.java | #0DE17Dde | — |
| variable.other.object.property.java | #48E111de | — |
| variable.parameter.c | #EFBF08de | — |
| variable.parameter.function.language.python | #83CDFEde | — |
| variable.parameter.java | #11E07Fde | — |
| variable.scss | #85CDFDde | — |
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}!`;
}