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 | #B9B9FC6e | — |
| comment.block.html | #B9B9FC6e | — |
| comment.block.java | #BABAFB6e | — |
| comment.block.javadoc.java | #BABAFB6e | — |
| comment.block.powershell | #B9B9FC6e | — |
| comment.block.xml | #B9B9F86e | — |
| comment.line.double-slash.c | #B9B9F86e | — |
| comment.line.double-slash.cpp | #BABAFB6e | — |
| comment.line.double-slash.java | #B9B9F86e | — |
| comment.line.double-slash.js | #BABAFB6e | — |
| comment.line.number-sign.makefile | #B9B9FC6e | — |
| comment.line.number-sign.python | #B9B9FA6e | — |
| comment.line.number-sign.yaml | #B9B9F86e | — |
| comment.line.percentage.erlang | #BABAFB6e | — |
| comment.line.powershell | #B9B9FA6e | — |
| comment.source.cmake | #B9B9F86e | — |
| comment.source.cmakecache | #B9B9F86e | — |
| constant.character | #7CADEFde | — |
| constant.character.character-class.regexp | #96C3FEde | — |
| constant.character.escape | #C6C613de | — |
| constant.character.set.regexp | #7CADEFde | — |
| constant.language | #CDB2FEde | — |
| constant.numeric | #89B6F2de | — |
| constant.numeric.dec.python | #11DB92de | — |
| constant.other.caps.python | #2EDE11de | — |
| constant.other.character-class.regexp | #7CADEFde | — |
| constant.other.character-class.set.regexp | #B998F5de | — |
| constant.other.color.rgb-value | #2DDE10de | — |
| constant.other.placeholder | #2EDD11de | — |
| constant.other.rgb-value | #ED77CCde | — |
| constant.regexp | #F8ACA6de | — |
| constant.sha.git-rebase | #2EDE11de | — |
| emphasis | #08DB8Cde | — |
| entity.name.class | #7CADEFde | — |
| entity.name.function | #F490D7de | — |
| entity.name.function.preprocessor | #2DDE10de | — |
| entity.name.function.python | #C9ABFEde | — |
| entity.name.label | #EC78CAde | — |
| entity.name.namespace | #2DDE10de | — |
| entity.name.operator | #7CADEFde | — |
| entity.name.operator.custom-literal | #C5C513de | — |
| entity.name.scope-resolution | #F182D1de | — |
| entity.name.tag | #2EDD11de | — |
| entity.name.tag.css | #0EDB91de | — |
| entity.name.type | #B390F1de | — |
| entity.name.variable | #EF7CCEde | — |
| entity.other.attribute | #0EDB91de | — |
| entity.other.attribute-name | #0EDB91de | — |
| entity.other.attribute-name.class.css | #B390F2de | — |
| entity.other.attribute-name.class.mixin.css | #FEA9A3de | — |
| entity.other.attribute-name.id | #ED837Bde | — |
| entity.other.attribute-name.id.css | #2DDE10de | — |
| entity.other.attribute-name.parent-selector.css | #C5C50Fde | — |
| entity.other.attribute-name.pseudo-class.css | #0EDA92de | — |
| entity.other.attribute-name.pseudo-element.css | #C6C613de | — |
| entity.other.attribute-name.scss | #ED837Bde | — |
| entity.other.document.begin.yaml | #BABAFB6e | — |
| entity.other.inherited-class | #C5C511de | — |
| header | #82B2F1de | — |
| invalid | #11DB92de | — |
| keyword | #2EDD11de | — |
| keyword.codetag.notation.python | #29DD0Bde | — |
| keyword.control | #98C0F5de | — |
| keyword.control.anchor.regexp | #EA7BCAde | — |
| keyword.control.import.python | #F8ACA6de | — |
| keyword.operator | #F182D1de | — |
| keyword.operator.alignas | #93C0FEde | — |
| keyword.operator.alignof | #F7A59Fde | — |
| keyword.operator.cast | #6EA4EBde | — |
| keyword.operator.delete | #0CDB92de | — |
| keyword.operator.documentation.powershell | #B9B9FC6e | — |
| keyword.operator.expression | #2EDE11de | — |
| keyword.operator.instanceof | #F8A6E1de | — |
| keyword.operator.logical.python | #70A4E8de | — |
| keyword.operator.minus.exponent | #0EDB91de | — |
| keyword.operator.negation.regexp | #2DDE0Ede | — |
| keyword.operator.new | #2EDE11de | — |
| keyword.operator.noexcept | #2FDD10de | — |
| keyword.operator.or.regexp | #C3A6F8de | — |
| keyword.operator.plus.exponent | #0EDB91de | — |
| keyword.operator.quantifier.regexp | #27DD08de | — |
| keyword.operator.sizeof | #BE9FF7de | — |
| keyword.operator.typeid | #90BBF4de | — |
| keyword.operator.wordlike | #F79FDEde | — |
| keyword.other.operator | #C5C513de | — |
| keyword.other.package.java | #10DA92de | — |
| keyword.other.unit | #2BDD0Fde | — |
| keyword.other.using | #C4C408de | — |
| markup.bold | #0FDB91de | — |
| markup.changed | #EF847Cde | — |
| markup.deleted | #B998F5de | — |
| markup.fenced_code.block.markdown | #C5C512de | — |
| markup.heading | #08DB8Cde | — |
| markup.inline.raw | #C9AEF9de | — |
| markup.inserted | #C5C511de | — |
| markup.italic | #2FDD10de | — |
| markup.raw.block.markdown | #2EDD11de | — |
| markup.strikethrough | #11DA93de | — |
| markup.underline | #FEAAA4de | — |
| meta.block.c | #98C0F5de | — |
| meta.block.c | #C9ABFEde | — |
| meta.class.java | #CCB2FEde | — |
| meta.definition.variable.name | #98C0F5de | — |
| meta.diff.header | #B290F0de | — |
| meta.embedded | #C3A6F8de | — |
| meta.embedded.assembly | #11DA93de | — |
| meta.function-call.arguments.python | #12DA92de | — |
| meta.function-call.python | #2BDE0Dde | — |
| meta.member.access.python | #FEA3E4de | — |
| meta.method.java | #F7A59Fde | — |
| meta.object-literal.key | #FEA3E4de | — |
| meta.paragraph.markdown | #FEA9A3de | — |
| meta.preprocessor | #C5C50Fde | — |
| meta.preprocessor.numeric | #71A4EAde | — |
| meta.preprocessor.string | #2BDE0Dde | — |
| meta.scope.prerequisites.makefile | #11DB92de | — |
| meta.structure.dictionary.json.comments | #BABAFB6e | — |
| meta.structure.dictionary.key.python | #FEA9A3de | — |
| meta.structure.dictionary.value.json.comments | #B9B9F86e | — |
| meta.template.expression | #C5C50Fde | — |
| meta.type.cast.expr | #0CDB92de | — |
| meta.type.new.expr | #11DA93de | — |
| parameter | #11DA93de | — |
| punctuation.character.set.begin.regexp | #11DB93de | — |
| punctuation.character.set.end.regexp | #2DDE10de | — |
| punctuation.definition.array.begin.json | #90BBF4de | — |
| punctuation.definition.character-class.regexp | #BE9FF7de | — |
| punctuation.definition.comment | #B9B9FC6e | — |
| punctuation.definition.comment.json.comments | #B9B9FA6e | — |
| punctuation.definition.comment.python | #B9B9FC6e | — |
| punctuation.definition.dictionary.begin.json | #CDB2FEde | — |
| punctuation.definition.dictionary.end.json | #CDB2FEde | — |
| punctuation.definition.group.assertion.regexp | #FEA3E4de | — |
| punctuation.definition.group.regexp | #B290F0de | — |
| punctuation.definition.list.begin.json | #FEA9A3de | — |
| punctuation.definition.list.begin.markdown | #FEA9A3de | — |
| punctuation.definition.list.begin.python | #C5C512de | — |
| punctuation.definition.list.end.json | #C5C50Fde | — |
| punctuation.definition.list.end.markdown | #F490D7de | — |
| punctuation.definition.list.end.python | #EF847Cde | — |
| punctuation.definition.parameters.begin.python | #C6C613de | — |
| punctuation.definition.parameters.end.bracket.round.java | #C4C408de | — |
| punctuation.definition.quote.begin.markdown | #CDB2FEde | — |
| punctuation.definition.tag | #B290EEde | — |
| punctuation.definition.template-expression.begin | #FEA3E4de | — |
| punctuation.definition.template-expression.end | #C5C511de | — |
| punctuation.section.class.begin.bracket.curly.java | #FEA9A3de | — |
| punctuation.section.embedded | #7CADEFde | — |
| punctuation.section.embedded.begin.php | #2ADE0Cde | — |
| punctuation.section.embedded.end.php | #F49790de | — |
| punctuation.terminator.java | #2DDE0Ede | — |
| source.cmake | #2BDD0Fde | — |
| source.coffee.embedded | #2BDE0Dde | — |
| source.cpp | #2FDD10de | — |
| source.css.less | #F289D4de | — |
| source.groovy.embedded | #F18A82de | — |
| source.java | #10DB92de | — |
| source.java-properties | #B490F4de | — |
| source.json.comments | #B9B9F86e | — |
| source.makefile | #0BDB8Fde | — |
| source.powershell | #F490D7de | — |
| source.powershell.variable.other.member | #EC78CAde | — |
| source.python | #93C0FEde | — |
| storage | #2EDE11de | — |
| storage.modifier | #C5C511de | — |
| storage.modifier.import.java | #11DA93de | — |
| storage.modifier.package.java | #11DB92de | — |
| storage.type | #EA7BCAde | — |
| storage.type.annotation.groovy | #F79FDEde | — |
| storage.type.annotation.java | #0FDB91de | — |
| storage.type.boolean.go | #ED77CCde | — |
| storage.type.byte.go | #C5C513de | — |
| storage.type.cs | #C9AEF9de | — |
| storage.type.error.go | #F289D4de | — |
| storage.type.generic.cs | #2DDE10de | — |
| storage.type.generic.groovy | #CDB2FEde | — |
| storage.type.generic.java | #CDB2FEde | — |
| storage.type.groovy | #C5C513de | — |
| storage.type.java | #2EDD11de | — |
| storage.type.modifier.cs | #96C3FEde | — |
| storage.type.numeric.go | #FEA9A3de | — |
| storage.type.object.array.groovy | #C5C50Ede | — |
| storage.type.object.array.java | #27DD08de | — |
| storage.type.parameters.groovy | #2EDE11de | — |
| storage.type.primitive.array.groovy | #98C0F5de | — |
| storage.type.primitive.array.java | #98C2FEde | — |
| storage.type.primitive.groovy | #FEA3E4de | — |
| storage.type.primitive.java | #CDB2FEde | — |
| storage.type.rune.go | #C6C607de | — |
| storage.type.string.go | #B390F2de | — |
| storage.type.token.java | #F29189de | — |
| storage.type.uintptr.go | #2FDD10de | — |
| storage.type.variable.cs | #FEA9A3de | — |
| string | #0EDB91de | — |
| string.quoted.docstring.multi.python | #B9B9FC6e | — |
| string.regexp | #11DA93de | — |
| string.tag | #11DB92de | — |
| string.value | #C5C511de | — |
| strong | #90BBF4de | — |
| support.class | #96C3FEde | — |
| support.constant.color | #97C3FEde | — |
| support.constant.dom | #82B2F1de | — |
| support.constant.font-name | #0CDB92de | — |
| support.constant.handlebars | #6EA4EBde | — |
| support.constant.json | #F18A82de | — |
| support.constant.math | #C5C512de | — |
| support.constant.media | #2ADE0Cde | — |
| support.constant.media-type | #C5C511de | — |
| support.constant.property-value | #ED77CCde | — |
| support.function | #2EDD11de | — |
| support.function.git-rebase | #7CADEFde | — |
| support.other.parenthesis.regexp | #B390F1de | — |
| support.type | #96C3FEde | — |
| support.type.property-name | #FEA9A3de | — |
| support.type.vendored.property-name | #F8A6E1de | — |
| support.variable | #C9ABFEde | — |
| token.debug-token | #F49790de | — |
| token.error-token | #F29189de | — |
| token.info-token | #BE9FF7de | — |
| token.warn-token | #F7A59Fde | — |
| variable | #C4C408de | — |
| variable.css | #C5C511de | — |
| variable.language | #96C3FEde | — |
| variable.language.wildcard.java | #EC847Dde | — |
| variable.other.constant | #0EDA92de | — |
| variable.other.definition.java | #10DB92de | — |
| variable.other.enummember | #10DA92de | — |
| variable.other.less | #C5C512de | — |
| variable.other.object.java | #ED837Bde | — |
| variable.other.object.property.java | #B290EFde | — |
| variable.parameter.c | #F7A59Fde | — |
| variable.parameter.function.language.python | #11DA93de | — |
| variable.parameter.java | #F7A59Fde | — |
| variable.scss | #B290F0de | — |
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}!`;
}