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 | #80D7D76e | — |
| comment.block.html | #80D7D76e | — |
| comment.block.java | #80D7D76e | — |
| comment.block.javadoc.java | #86D6D66e | — |
| comment.block.powershell | #87D6D66e | — |
| comment.block.xml | #80D5D56e | — |
| comment.line.double-slash.c | #86D6D66e | — |
| comment.line.double-slash.cpp | #80D5D56e | — |
| comment.line.double-slash.java | #80D5D56e | — |
| comment.line.double-slash.js | #80D7D76e | — |
| comment.line.number-sign.makefile | #86D6D66e | — |
| comment.line.number-sign.python | #80D5D56e | — |
| comment.line.number-sign.yaml | #80D5D56e | — |
| comment.line.percentage.erlang | #80D7D76e | — |
| comment.line.powershell | #86D6D66e | — |
| comment.source.cmake | #87D6D66e | — |
| comment.source.cmakecache | #87D6D66e | — |
| constant.character | #CDCD06de | — |
| constant.character.character-class.regexp | #F182D6de | — |
| constant.character.escape | #87B8F5de | — |
| constant.character.set.regexp | #0DE2A2de | — |
| constant.language | #2CE709de | — |
| constant.numeric | #BD97F5de | — |
| constant.numeric.dec.python | #A2CBFEde | — |
| constant.other.caps.python | #0EE3A3de | — |
| constant.other.character-class.regexp | #2DE70Dde | — |
| constant.other.character-class.set.regexp | #0DE3A2de | — |
| constant.other.color.rgb-value | #A2CBFEde | — |
| constant.other.placeholder | #2CE508de | — |
| constant.other.rgb-value | #0EE3A3de | — |
| constant.regexp | #F59287de | — |
| constant.sha.git-rebase | #2EE60Dde | — |
| emphasis | #F18D81de | — |
| entity.name.class | #F18D81de | — |
| entity.name.function | #FEB7AFde | — |
| entity.name.function.preprocessor | #A1CAFEde | — |
| entity.name.function.python | #BC97F4de | — |
| entity.name.label | #F9ADA5de | — |
| entity.name.namespace | #CCADFAde | — |
| entity.name.operator | #0CE2A2de | — |
| entity.name.operator.custom-literal | #2EE60Ede | — |
| entity.name.scope-resolution | #96C2F7de | — |
| entity.name.tag | #CFCF10de | — |
| entity.name.tag.css | #78AFF2de | — |
| entity.name.type | #F6998Ede | — |
| entity.name.variable | #BD97F6de | — |
| entity.other.attribute | #0CE2A2de | — |
| entity.other.attribute-name | #CFCF10de | — |
| entity.other.attribute-name.class.css | #F89DE1de | — |
| entity.other.attribute-name.class.mixin.css | #A1CBFEde | — |
| entity.other.attribute-name.id | #CFCF10de | — |
| entity.other.attribute-name.id.css | #A5CBF9de | — |
| entity.other.attribute-name.parent-selector.css | #A1CBFEde | — |
| entity.other.attribute-name.pseudo-class.css | #F68EDCde | — |
| entity.other.attribute-name.pseudo-element.css | #2FE70Dde | — |
| entity.other.attribute-name.scss | #2CE508de | — |
| entity.other.document.begin.yaml | #80D7D76e | — |
| entity.other.inherited-class | #BD97F5de | — |
| header | #0AE1A4de | — |
| invalid | #CECE0Fde | — |
| keyword | #F59287de | — |
| keyword.codetag.notation.python | #BC97F3de | — |
| keyword.control | #BC98F3de | — |
| keyword.control.anchor.regexp | #CECE10de | — |
| keyword.control.import.python | #C7A5F9de | — |
| keyword.operator | #C29DF8de | — |
| keyword.operator.alignas | #A1CBFEde | — |
| keyword.operator.alignof | #CECE0Fde | — |
| keyword.operator.cast | #FEABE9de | — |
| keyword.operator.delete | #F79F96de | — |
| keyword.operator.documentation.powershell | #80D5D56e | — |
| keyword.operator.expression | #0EE2A3de | — |
| keyword.operator.instanceof | #2EE70Dde | — |
| keyword.operator.logical.python | #2EE70Dde | — |
| keyword.operator.minus.exponent | #0DE2A2de | — |
| keyword.operator.negation.regexp | #9DC6F8de | — |
| keyword.operator.new | #CECE0Dde | — |
| keyword.operator.noexcept | #78AFF2de | — |
| keyword.operator.or.regexp | #2CE70Ade | — |
| keyword.operator.plus.exponent | #F59287de | — |
| keyword.operator.quantifier.regexp | #0DE3A3de | — |
| keyword.operator.sizeof | #0CE2A2de | — |
| keyword.operator.typeid | #F9A5E4de | — |
| keyword.operator.wordlike | #F9A5E4de | — |
| keyword.other.operator | #FEB6AEde | — |
| keyword.other.package.java | #BC97F3de | — |
| keyword.other.unit | #0DE3A2de | — |
| keyword.other.using | #CECE0Fde | — |
| markup.bold | #FEABE9de | — |
| markup.changed | #BD97F5de | — |
| markup.deleted | #0EE2A2de | — |
| markup.fenced_code.block.markdown | #2CE709de | — |
| markup.heading | #2EE60Ade | — |
| markup.inline.raw | #BD98F5de | — |
| markup.inserted | #F79F96de | — |
| markup.italic | #2CE709de | — |
| markup.raw.block.markdown | #A2CBFEde | — |
| markup.strikethrough | #F8A69Dde | — |
| markup.underline | #0DE3A2de | — |
| meta.block.c | #D1B4FBde | — |
| meta.block.c | #75ACF0de | — |
| meta.class.java | #2EE60Ade | — |
| meta.definition.variable.name | #8EBDF6de | — |
| meta.diff.header | #FEB3ABde | — |
| meta.embedded | #0EE3A3de | — |
| meta.embedded.assembly | #F380D6de | — |
| meta.function-call.arguments.python | #F796DFde | — |
| meta.function-call.python | #D6BCFCde | — |
| meta.member.access.python | #BC98F3de | — |
| meta.method.java | #F18D82de | — |
| meta.object-literal.key | #BD98F5de | — |
| meta.paragraph.markdown | #BD96F7de | — |
| meta.preprocessor | #CECE0Bde | — |
| meta.preprocessor.numeric | #0DE2A2de | — |
| meta.preprocessor.string | #2EE60Ade | — |
| meta.scope.prerequisites.makefile | #C29DF8de | — |
| meta.structure.dictionary.json.comments | #80D7D76e | — |
| meta.structure.dictionary.key.python | #F18D82de | — |
| meta.structure.dictionary.value.json.comments | #87D6D66e | — |
| meta.template.expression | #2EE60Dde | — |
| meta.type.cast.expr | #FEB7AFde | — |
| meta.type.new.expr | #2BE60Bde | — |
| parameter | #96C2F7de | — |
| punctuation.character.set.begin.regexp | #F28C80de | — |
| punctuation.character.set.end.regexp | #BD98F5de | — |
| punctuation.definition.array.begin.json | #2EE60Ade | — |
| punctuation.definition.character-class.regexp | #CECE0Bde | — |
| punctuation.definition.comment | #87D6D66e | — |
| punctuation.definition.comment.json.comments | #80D5D56e | — |
| punctuation.definition.comment.python | #87D6D66e | — |
| punctuation.definition.dictionary.begin.json | #F59287de | — |
| punctuation.definition.dictionary.end.json | #0EE3A3de | — |
| punctuation.definition.group.assertion.regexp | #CFCF10de | — |
| punctuation.definition.group.regexp | #D1B4FBde | — |
| punctuation.definition.list.begin.json | #F796DFde | — |
| punctuation.definition.list.begin.markdown | #A5CBF9de | — |
| punctuation.definition.list.begin.python | #2EE60Dde | — |
| punctuation.definition.list.end.json | #F59287de | — |
| punctuation.definition.list.end.markdown | #0EE2A2de | — |
| punctuation.definition.list.end.python | #08E3A0de | — |
| punctuation.definition.parameters.begin.python | #BC97F3de | — |
| punctuation.definition.parameters.end.bracket.round.java | #2EE60Ede | — |
| punctuation.definition.quote.begin.markdown | #F082D5de | — |
| punctuation.definition.tag | #BC98F3de | — |
| punctuation.definition.template-expression.begin | #F08D82de | — |
| punctuation.definition.template-expression.end | #FEB6AEde | — |
| punctuation.section.class.begin.bracket.curly.java | #A5CBF9de | — |
| punctuation.section.embedded | #2FE70Dde | — |
| punctuation.section.embedded.begin.php | #F68EDCde | — |
| punctuation.section.embedded.end.php | #2EE60Cde | — |
| punctuation.terminator.java | #BC97F3de | — |
| source.cmake | #C29DF8de | — |
| source.coffee.embedded | #2FE70Dde | — |
| source.cpp | #CFCF0Cde | — |
| source.css.less | #2CE60Dde | — |
| source.groovy.embedded | #09E3A2de | — |
| source.java | #BD98F5de | — |
| source.java-properties | #75ACEFde | — |
| source.json.comments | #80D7D76e | — |
| source.makefile | #F38C81de | — |
| source.powershell | #2EE70Dde | — |
| source.powershell.variable.other.member | #75ACF0de | — |
| source.python | #0EE2A3de | — |
| storage | #0DE2A2de | — |
| storage.modifier | #0DE2A2de | — |
| storage.modifier.import.java | #F38C81de | — |
| storage.modifier.package.java | #F281D6de | — |
| storage.type | #2EE70Cde | — |
| storage.type.annotation.groovy | #CFCF10de | — |
| storage.type.annotation.java | #0BE2A2de | — |
| storage.type.boolean.go | #F38C81de | — |
| storage.type.byte.go | #CECE0Dde | — |
| storage.type.cs | #CFCF10de | — |
| storage.type.error.go | #F59287de | — |
| storage.type.generic.cs | #BC97F3de | — |
| storage.type.generic.groovy | #CFCF0Cde | — |
| storage.type.generic.java | #8EBDF6de | — |
| storage.type.groovy | #D1B4FBde | — |
| storage.type.java | #F6998Ede | — |
| storage.type.modifier.cs | #75ACEFde | — |
| storage.type.numeric.go | #2EE70Dde | — |
| storage.type.object.array.groovy | #0DE3A2de | — |
| storage.type.object.array.java | #0CE2A2de | — |
| storage.type.parameters.groovy | #0CE3A3de | — |
| storage.type.primitive.array.groovy | #BD96F7de | — |
| storage.type.primitive.array.java | #D1B4FBde | — |
| storage.type.primitive.groovy | #BD98F5de | — |
| storage.type.primitive.java | #CFCF10de | — |
| storage.type.rune.go | #FEB6AEde | — |
| storage.type.string.go | #FEB6AEde | — |
| storage.type.token.java | #FEB7AFde | — |
| storage.type.uintptr.go | #FEB6AEde | — |
| storage.type.variable.cs | #CFCF10de | — |
| string | #F18D81de | — |
| string.quoted.docstring.multi.python | #87D6D66e | — |
| string.regexp | #CFCF10de | — |
| string.tag | #D6BCFCde | — |
| string.value | #2CE508de | — |
| strong | #80B4F3de | — |
| support.class | #F6998Ede | — |
| support.constant.color | #F59287de | — |
| support.constant.dom | #8EBDF6de | — |
| support.constant.font-name | #F6998Ede | — |
| support.constant.handlebars | #0DE2A2de | — |
| support.constant.json | #0DE2A2de | — |
| support.constant.math | #CECE0Bde | — |
| support.constant.media | #2FE70Dde | — |
| support.constant.media-type | #CDCD06de | — |
| support.constant.property-value | #A1CAFEde | — |
| support.function | #CCCC07de | — |
| support.function.git-rebase | #78AFF2de | — |
| support.other.parenthesis.regexp | #0AE3A3de | — |
| support.type | #0DE2A2de | — |
| support.type.property-name | #2EE60Ade | — |
| support.type.vendored.property-name | #F28C80de | — |
| support.variable | #F380D6de | — |
| token.debug-token | #F182D6de | — |
| token.error-token | #F18D81de | — |
| token.info-token | #F182D6de | — |
| token.warn-token | #FEAEEAde | — |
| variable | #09E3A2de | — |
| variable.css | #0CE2A2de | — |
| variable.language | #2EE60Cde | — |
| variable.language.wildcard.java | #80B4F3de | — |
| variable.other.constant | #F18D82de | — |
| variable.other.definition.java | #80B4F3de | — |
| variable.other.enummember | #EF84D5de | — |
| variable.other.less | #08E3A0de | — |
| variable.other.object.java | #F18D81de | — |
| variable.other.object.property.java | #EF84D5de | — |
| variable.parameter.c | #80B4F3de | — |
| variable.parameter.function.language.python | #A1CBFEde | — |
| variable.parameter.java | #D7BCFEde | — |
| variable.scss | #87B8F5de | — |
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}!`;
}