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 | #84D9846e | — |
| comment.block.html | #82DA826e | — |
| comment.block.java | #7BDB7B6e | — |
| comment.block.javadoc.java | #82DA826e | — |
| comment.block.powershell | #84D9846e | — |
| comment.block.xml | #7DDB7D6e | — |
| comment.line.double-slash.c | #7DDB7D6e | — |
| comment.line.double-slash.cpp | #82DA826e | — |
| comment.line.double-slash.java | #7BDB7B6e | — |
| comment.line.double-slash.js | #7BDB7B6e | — |
| comment.line.number-sign.makefile | #7DDB7D6e | — |
| comment.line.number-sign.python | #82DA826e | — |
| comment.line.number-sign.yaml | #84D9846e | — |
| comment.line.percentage.erlang | #82DA826e | — |
| comment.line.powershell | #7DDB7D6e | — |
| comment.source.cmake | #84D9846e | — |
| comment.source.cmakecache | #82DA826e | — |
| constant.character | #52E20Fde | — |
| constant.character.character-class.regexp | #F79F9Fde | — |
| constant.character.escape | #51E210de | — |
| constant.character.set.regexp | #97CCF6de | — |
| constant.language | #50E10Ede | — |
| constant.numeric | #51E110de | — |
| constant.numeric.dec.python | #CCBDFBde | — |
| constant.other.caps.python | #EBC20Ede | — |
| constant.other.character-class.regexp | #10E185de | — |
| constant.other.character-class.set.regexp | #0FE285de | — |
| constant.other.color.rgb-value | #EBC10Dde | — |
| constant.other.placeholder | #4DE20Ade | — |
| constant.other.rgb-value | #50E20Fde | — |
| constant.regexp | #EF7CE0de | — |
| constant.sha.git-rebase | #4FE10Fde | — |
| emphasis | #0AE284de | — |
| entity.name.class | #EBC10Dde | — |
| entity.name.function | #51E20Ede | — |
| entity.name.function.preprocessor | #EBC20Ade | — |
| entity.name.function.python | #52E210de | — |
| entity.name.label | #10E185de | — |
| entity.name.namespace | #10E286de | — |
| entity.name.operator | #88C4F3de | — |
| entity.name.operator.custom-literal | #B099F3de | — |
| entity.name.scope-resolution | #0DE285de | — |
| entity.name.tag | #0EE284de | — |
| entity.name.tag.css | #4FE10Fde | — |
| entity.name.type | #0FE285de | — |
| entity.name.variable | #8ECDFDde | — |
| entity.other.attribute | #8DCCFEde | — |
| entity.other.attribute-name | #EF7CE0de | — |
| entity.other.attribute-name.class.css | #F590E8de | — |
| entity.other.attribute-name.class.mixin.css | #F38989de | — |
| entity.other.attribute-name.id | #52E20Fde | — |
| entity.other.attribute-name.id.css | #F79EECde | — |
| entity.other.attribute-name.parent-selector.css | #63ADE8de | — |
| entity.other.attribute-name.pseudo-class.css | #B09AF1de | — |
| entity.other.attribute-name.pseudo-element.css | #ED7EDFde | — |
| entity.other.attribute-name.scss | #F79EECde | — |
| entity.other.document.begin.yaml | #7BDB7B6e | — |
| entity.other.inherited-class | #0CE285de | — |
| header | #52E20Fde | — |
| invalid | #E9C10Fde | — |
| keyword | #EAC10Dde | — |
| keyword.codetag.notation.python | #63ADE8de | — |
| keyword.control | #EE8A8Ade | — |
| keyword.control.anchor.regexp | #FEB2B2de | — |
| keyword.control.import.python | #51E110de | — |
| keyword.operator | #0CE285de | — |
| keyword.operator.alignas | #B09AF1de | — |
| keyword.operator.alignof | #0FE285de | — |
| keyword.operator.cast | #EF7CE0de | — |
| keyword.operator.delete | #52E20Fde | — |
| keyword.operator.documentation.powershell | #7DDB7D6e | — |
| keyword.operator.expression | #51E110de | — |
| keyword.operator.instanceof | #8ECDFDde | — |
| keyword.operator.logical.python | #51E20Ede | — |
| keyword.operator.minus.exponent | #10E286de | — |
| keyword.operator.negation.regexp | #FEB2B2de | — |
| keyword.operator.new | #66B0EAde | — |
| keyword.operator.noexcept | #50E20Fde | — |
| keyword.operator.or.regexp | #63ADE8de | — |
| keyword.operator.plus.exponent | #F8A6EEde | — |
| keyword.operator.quantifier.regexp | #EF8A8Ade | — |
| keyword.operator.sizeof | #F388E6de | — |
| keyword.operator.typeid | #0FE285de | — |
| keyword.operator.wordlike | #97CCF6de | — |
| keyword.other.operator | #7ABCF0de | — |
| keyword.other.package.java | #AF9AF1de | — |
| keyword.other.unit | #EC7FDEde | — |
| keyword.other.using | #AF9AF1de | — |
| markup.bold | #52E20Fde | — |
| markup.changed | #B09AF0de | — |
| markup.deleted | #EBC20Ede | — |
| markup.fenced_code.block.markdown | #10E286de | — |
| markup.heading | #0FE285de | — |
| markup.inline.raw | #B09AF3de | — |
| markup.inserted | #EE8A8Ade | — |
| markup.italic | #10E185de | — |
| markup.raw.block.markdown | #B09AF3de | — |
| markup.strikethrough | #F69898de | — |
| markup.underline | #50E10Ede | — |
| meta.block.c | #52E110de | — |
| meta.block.c | #EBC20Fde | — |
| meta.class.java | #EBC20Ede | — |
| meta.definition.variable.name | #51E20Ede | — |
| meta.diff.header | #4EE20Cde | — |
| meta.embedded | #FEA9F4de | — |
| meta.embedded.assembly | #EE8A8Ade | — |
| meta.function-call.arguments.python | #ECC20Ede | — |
| meta.function-call.python | #BAA6F8de | — |
| meta.member.access.python | #BAA6F8de | — |
| meta.method.java | #88C4F3de | — |
| meta.object-literal.key | #B099F3de | — |
| meta.paragraph.markdown | #EE8A8Ade | — |
| meta.preprocessor | #50E20Fde | — |
| meta.preprocessor.numeric | #F08989de | — |
| meta.preprocessor.string | #4FE10Fde | — |
| meta.scope.prerequisites.makefile | #0EE284de | — |
| meta.structure.dictionary.json.comments | #7BDB7B6e | — |
| meta.structure.dictionary.key.python | #F08989de | — |
| meta.structure.dictionary.value.json.comments | #7BDB7B6e | — |
| meta.template.expression | #0CE285de | — |
| meta.type.cast.expr | #F388E6de | — |
| meta.type.new.expr | #F79EECde | — |
| parameter | #63ADE8de | — |
| punctuation.character.set.begin.regexp | #ECC20Fde | — |
| punctuation.character.set.end.regexp | #AF9AF1de | — |
| punctuation.definition.array.begin.json | #51E210de | — |
| punctuation.definition.character-class.regexp | #51E20Dde | — |
| punctuation.definition.comment | #7DDB7D6e | — |
| punctuation.definition.comment.json.comments | #7DDB7D6e | — |
| punctuation.definition.comment.python | #84D9846e | — |
| punctuation.definition.dictionary.begin.json | #66B0EAde | — |
| punctuation.definition.dictionary.end.json | #EE7DDFde | — |
| punctuation.definition.group.assertion.regexp | #EC7FDEde | — |
| punctuation.definition.group.regexp | #EAC10Fde | — |
| punctuation.definition.list.begin.json | #EF7CE0de | — |
| punctuation.definition.list.begin.markdown | #6DB4ECde | — |
| punctuation.definition.list.begin.python | #8ECDFDde | — |
| punctuation.definition.list.end.json | #FEA9F3de | — |
| punctuation.definition.list.end.markdown | #0DE285de | — |
| punctuation.definition.list.end.python | #74B8EEde | — |
| punctuation.definition.parameters.begin.python | #ECC20Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #4DE20Ade | — |
| punctuation.definition.quote.begin.markdown | #FEA9F3de | — |
| punctuation.definition.tag | #EAC10Dde | — |
| punctuation.definition.template-expression.begin | #F38989de | — |
| punctuation.definition.template-expression.end | #74B8EEde | — |
| punctuation.section.class.begin.bracket.curly.java | #90C8F5de | — |
| punctuation.section.embedded | #F388E6de | — |
| punctuation.section.embedded.begin.php | #66B0EAde | — |
| punctuation.section.embedded.end.php | #51E10Ede | — |
| punctuation.terminator.java | #B09AF3de | — |
| source.cmake | #0FE183de | — |
| source.coffee.embedded | #8DCCFEde | — |
| source.cpp | #51E20Ede | — |
| source.css.less | #C6B5FAde | — |
| source.groovy.embedded | #0EE185de | — |
| source.java | #E9C10Cde | — |
| source.java-properties | #C0ADF9de | — |
| source.json.comments | #84D9846e | — |
| source.makefile | #AF99F2de | — |
| source.powershell | #0CE285de | — |
| source.powershell.variable.other.member | #51E110de | — |
| source.python | #E9C10Fde | — |
| storage | #EBC10Fde | — |
| storage.modifier | #4EE20Cde | — |
| storage.modifier.import.java | #50E20Fde | — |
| storage.modifier.package.java | #FEABABde | — |
| storage.type | #F49090de | — |
| storage.type.annotation.groovy | #0AE284de | — |
| storage.type.annotation.java | #8DCCFDde | — |
| storage.type.boolean.go | #EAC10Fde | — |
| storage.type.byte.go | #FEB2B2de | — |
| storage.type.cs | #EAC20Ede | — |
| storage.type.error.go | #10E185de | — |
| storage.type.generic.cs | #90C8F5de | — |
| storage.type.generic.groovy | #0EE185de | — |
| storage.type.generic.java | #B099F3de | — |
| storage.type.groovy | #EBC10Fde | — |
| storage.type.java | #0DE285de | — |
| storage.type.modifier.cs | #8ECDFEde | — |
| storage.type.numeric.go | #6DB4ECde | — |
| storage.type.object.array.groovy | #EAC10Dde | — |
| storage.type.object.array.java | #0FE183de | — |
| storage.type.parameters.groovy | #74B8EEde | — |
| storage.type.primitive.array.groovy | #B099F3de | — |
| storage.type.primitive.array.java | #97CCF6de | — |
| storage.type.primitive.groovy | #EBC10Fde | — |
| storage.type.primitive.java | #EAC10Dde | — |
| storage.type.rune.go | #74B8EEde | — |
| storage.type.string.go | #F49090de | — |
| storage.type.token.java | #F388E6de | — |
| storage.type.uintptr.go | #EE7DDFde | — |
| storage.type.variable.cs | #AF98F5de | — |
| string | #EE8A8Ade | — |
| string.quoted.docstring.multi.python | #84D9846e | — |
| string.regexp | #10E184de | — |
| string.tag | #EF7CE0de | — |
| string.value | #4DE20Ade | — |
| strong | #EE8A8Ade | — |
| support.class | #97CCF6de | — |
| support.constant.color | #F69898de | — |
| support.constant.dom | #4DE20Ade | — |
| support.constant.font-name | #52E110de | — |
| support.constant.handlebars | #8DCCFEde | — |
| support.constant.json | #0FE183de | — |
| support.constant.math | #ECC20Fde | — |
| support.constant.media | #4EE20Cde | — |
| support.constant.media-type | #ED7EDFde | — |
| support.constant.property-value | #E9C10Cde | — |
| support.function | #F697EAde | — |
| support.function.git-rebase | #4FE10Fde | — |
| support.other.parenthesis.regexp | #C6B5FAde | — |
| support.type | #51E20Dde | — |
| support.type.property-name | #63ADE8de | — |
| support.type.vendored.property-name | #F181E3de | — |
| support.variable | #EBC20Ede | — |
| token.debug-token | #ECC20Ede | — |
| token.error-token | #F181E3de | — |
| token.info-token | #ED8B8Bde | — |
| token.warn-token | #FEA9F4de | — |
| variable | #FEB2B2de | — |
| variable.css | #8ECDFDde | — |
| variable.language | #51E10Ede | — |
| variable.language.wildcard.java | #EBC20Fde | — |
| variable.other.constant | #EAC10Fde | — |
| variable.other.definition.java | #90C8F5de | — |
| variable.other.enummember | #F69898de | — |
| variable.other.less | #F79EECde | — |
| variable.other.object.java | #AF98F4de | — |
| variable.other.object.property.java | #FEA9F4de | — |
| variable.parameter.c | #81C0F1de | — |
| variable.parameter.function.language.python | #10E184de | — |
| variable.parameter.java | #B49EF7de | — |
| variable.scss | #51E10Ede | — |
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}!`;
}