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 | #BEBEBE6e | — |
| comment.block.html | #BEBEBE6e | — |
| comment.block.java | #BEBEBE6e | — |
| comment.block.javadoc.java | #BFBFBF6e | — |
| comment.block.powershell | #BEBEBE6e | — |
| comment.block.xml | #BEBEBE6e | — |
| comment.line.double-slash.c | #BEBEBE6e | — |
| comment.line.double-slash.cpp | #BFBFBF6e | — |
| comment.line.double-slash.java | #BFBFBF6e | — |
| comment.line.double-slash.js | #BFBFBF6e | — |
| comment.line.number-sign.makefile | #BFBFBF6e | — |
| comment.line.number-sign.python | #BEBEBE6e | — |
| comment.line.number-sign.yaml | #BEBEBE6e | — |
| comment.line.percentage.erlang | #BFBFBF6e | — |
| comment.line.powershell | #BFBFBF6e | — |
| comment.source.cmake | #BFBFBF6e | — |
| comment.source.cmakecache | #BFBFBF6e | — |
| constant.character | #DEBD14de | — |
| constant.character.character-class.regexp | #ED89EDde | — |
| constant.character.escape | #E68585de | — |
| constant.character.set.regexp | #E478E4de | — |
| constant.language | #AA9CF3de | — |
| constant.numeric | #6BCAFAde | — |
| constant.numeric.dec.python | #7CC4E8de | — |
| constant.other.caps.python | #17DA78de | — |
| constant.other.character-class.regexp | #DEBD14de | — |
| constant.other.character-class.set.regexp | #E379E3de | — |
| constant.other.color.rgb-value | #E0BD11de | — |
| constant.other.placeholder | #57D915de | — |
| constant.other.rgb-value | #57D916de | — |
| constant.regexp | #F39CF3de | — |
| constant.sha.git-rebase | #E0BD10de | — |
| emphasis | #DDBC15de | — |
| entity.name.class | #16DB78de | — |
| entity.name.function | #11DA74de | — |
| entity.name.function.preprocessor | #F4A3F4de | — |
| entity.name.function.python | #16DB78de | — |
| entity.name.label | #17DA78de | — |
| entity.name.namespace | #17DA78de | — |
| entity.name.operator | #A495EAde | — |
| entity.name.operator.custom-literal | #EF8FEFde | — |
| entity.name.scope-resolution | #BCB1F8de | — |
| entity.name.tag | #FEA8A8de | — |
| entity.name.tag.css | #A595EDde | — |
| entity.name.type | #11DA74de | — |
| entity.name.variable | #FD9BFDde | — |
| entity.other.attribute | #E88585de | — |
| entity.other.attribute-name | #B0A3F4de | — |
| entity.other.attribute-name.class.css | #E78585de | — |
| entity.other.attribute-name.class.mixin.css | #EB8383de | — |
| entity.other.attribute-name.id | #17DA79de | — |
| entity.other.attribute-name.id.css | #A495EAde | — |
| entity.other.attribute-name.parent-selector.css | #B0A3F4de | — |
| entity.other.attribute-name.pseudo-class.css | #13DA77de | — |
| entity.other.attribute-name.pseudo-element.css | #E0BD10de | — |
| entity.other.attribute-name.scss | #57DA16de | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #ED89EDde | — |
| header | #10D973de | — |
| invalid | #A595F1de | — |
| keyword | #DEBE16de | — |
| keyword.codetag.notation.python | #E576E5de | — |
| keyword.control | #6BCAFAde | — |
| keyword.control.anchor.regexp | #FD9DFDde | — |
| keyword.control.import.python | #DDBC16de | — |
| keyword.operator | #E0BD16de | — |
| keyword.operator.alignas | #F19595de | — |
| keyword.operator.alignof | #FEA8A8de | — |
| keyword.operator.cast | #E0BD15de | — |
| keyword.operator.delete | #ED8989de | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #14D978de | — |
| keyword.operator.instanceof | #E478E4de | — |
| keyword.operator.logical.python | #C2B5FEde | — |
| keyword.operator.minus.exponent | #11DA74de | — |
| keyword.operator.negation.regexp | #16DB79de | — |
| keyword.operator.new | #16DA77de | — |
| keyword.operator.noexcept | #58DA17de | — |
| keyword.operator.or.regexp | #DEBD16de | — |
| keyword.operator.plus.exponent | #11DA74de | — |
| keyword.operator.quantifier.regexp | #A595F1de | — |
| keyword.operator.sizeof | #E68585de | — |
| keyword.operator.typeid | #DFBC14de | — |
| keyword.operator.wordlike | #B0A3F4de | — |
| keyword.other.operator | #DFBC14de | — |
| keyword.other.package.java | #76C0E5de | — |
| keyword.other.unit | #A497E9de | — |
| keyword.other.using | #FE9DFEde | — |
| markup.bold | #E98585de | — |
| markup.changed | #15DB78de | — |
| markup.deleted | #ED89EDde | — |
| markup.fenced_code.block.markdown | #FEA9A9de | — |
| markup.heading | #E0BD10de | — |
| markup.inline.raw | #66CAFCde | — |
| markup.inserted | #15DB78de | — |
| markup.italic | #17DA79de | — |
| markup.raw.block.markdown | #76C0E5de | — |
| markup.strikethrough | #E98585de | — |
| markup.underline | #6BB9E0de | — |
| meta.block.c | #ED89EDde | — |
| meta.block.c | #68CAFAde | — |
| meta.class.java | #17DA79de | — |
| meta.definition.variable.name | #0EDB74de | — |
| meta.diff.header | #E78585de | — |
| meta.embedded | #76C0E5de | — |
| meta.embedded.assembly | #14DB76de | — |
| meta.function-call.arguments.python | #F4A3F4de | — |
| meta.function-call.python | #17DA78de | — |
| meta.member.access.python | #DDBC16de | — |
| meta.method.java | #16DA77de | — |
| meta.object-literal.key | #56D914de | — |
| meta.paragraph.markdown | #82C8EAde | — |
| meta.preprocessor | #E1BD0Ede | — |
| meta.preprocessor.numeric | #16DB79de | — |
| meta.preprocessor.string | #FEA8A8de | — |
| meta.scope.prerequisites.makefile | #56D914de | — |
| meta.structure.dictionary.json.comments | #BEBEBE6e | — |
| meta.structure.dictionary.key.python | #A597EAde | — |
| meta.structure.dictionary.value.json.comments | #BFBFBF6e | — |
| meta.template.expression | #EF8FEFde | — |
| meta.type.cast.expr | #FEA8A8de | — |
| meta.type.new.expr | #71BDE3de | — |
| parameter | #E0BD10de | — |
| punctuation.character.set.begin.regexp | #BCB1F8de | — |
| punctuation.character.set.end.regexp | #E576E5de | — |
| punctuation.definition.array.begin.json | #FEA8A8de | — |
| punctuation.definition.character-class.regexp | #FEA9A9de | — |
| punctuation.definition.comment | #BFBFBF6e | — |
| punctuation.definition.comment.json.comments | #BEBEBE6e | — |
| punctuation.definition.comment.python | #BEBEBE6e | — |
| punctuation.definition.dictionary.begin.json | #E0BD11de | — |
| punctuation.definition.dictionary.end.json | #FE9DFEde | — |
| punctuation.definition.group.assertion.regexp | #71BDE3de | — |
| punctuation.definition.group.regexp | #51DB0Ede | — |
| punctuation.definition.list.begin.json | #EF8F8Fde | — |
| punctuation.definition.list.begin.markdown | #E478E4de | — |
| punctuation.definition.list.begin.python | #76C0E5de | — |
| punctuation.definition.list.end.json | #58DA17de | — |
| punctuation.definition.list.end.markdown | #A495EAde | — |
| punctuation.definition.list.end.python | #DFBC13de | — |
| punctuation.definition.parameters.begin.python | #E0BD11de | — |
| punctuation.definition.parameters.end.bracket.round.java | #DEBE16de | — |
| punctuation.definition.quote.begin.markdown | #FEA8A8de | — |
| punctuation.definition.tag | #14DB76de | — |
| punctuation.definition.template-expression.begin | #FD9BFDde | — |
| punctuation.definition.template-expression.end | #E1BD0Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #EF8FEFde | — |
| punctuation.section.embedded | #54DA0Fde | — |
| punctuation.section.embedded.begin.php | #56D914de | — |
| punctuation.section.embedded.end.php | #EF8F8Fde | — |
| punctuation.terminator.java | #13DA77de | — |
| source.cmake | #57DA16de | — |
| source.coffee.embedded | #DEBD14de | — |
| source.cpp | #82C8EAde | — |
| source.css.less | #17DA78de | — |
| source.groovy.embedded | #55DA13de | — |
| source.java | #66CAFCde | — |
| source.java-properties | #69CAFBde | — |
| source.json.comments | #BFBFBF6e | — |
| source.makefile | #54DA0Fde | — |
| source.powershell | #7CC4E8de | — |
| source.powershell.variable.other.member | #EA82EAde | — |
| source.python | #0FDA76de | — |
| storage | #F5A3A3de | — |
| storage.modifier | #A495EFde | — |
| storage.modifier.import.java | #11DA74de | — |
| storage.modifier.package.java | #17DA79de | — |
| storage.type | #F6AAAAde | — |
| storage.type.annotation.groovy | #DEBD16de | — |
| storage.type.annotation.java | #52DA11de | — |
| storage.type.boolean.go | #17DA79de | — |
| storage.type.byte.go | #E379E3de | — |
| storage.type.cs | #E0BD15de | — |
| storage.type.error.go | #FEA8A8de | — |
| storage.type.generic.cs | #55DA13de | — |
| storage.type.generic.groovy | #68CAFBde | — |
| storage.type.generic.java | #F6AAAAde | — |
| storage.type.groovy | #E98585de | — |
| storage.type.java | #57D917de | — |
| storage.type.modifier.cs | #ED8989de | — |
| storage.type.numeric.go | #FE9DFEde | — |
| storage.type.object.array.groovy | #A495EAde | — |
| storage.type.object.array.java | #57D917de | — |
| storage.type.parameters.groovy | #B6AAF6de | — |
| storage.type.primitive.array.groovy | #68CAFBde | — |
| storage.type.primitive.array.java | #DFBC14de | — |
| storage.type.primitive.groovy | #ED8989de | — |
| storage.type.primitive.java | #FE9CFEde | — |
| storage.type.rune.go | #0FDA76de | — |
| storage.type.string.go | #69CAFBde | — |
| storage.type.token.java | #6BCAFAde | — |
| storage.type.uintptr.go | #FE9DFEde | — |
| storage.type.variable.cs | #EF8FEFde | — |
| string | #B6AAF6de | — |
| string.quoted.docstring.multi.python | #BEBEBE6e | — |
| string.regexp | #7CC4E8de | — |
| string.tag | #E88585de | — |
| string.value | #BBADFEde | — |
| strong | #DEBE16de | — |
| support.class | #E87CE8de | — |
| support.constant.color | #ED8989de | — |
| support.constant.dom | #E1BD0Ede | — |
| support.constant.font-name | #E88585de | — |
| support.constant.handlebars | #DFBC14de | — |
| support.constant.json | #16DB79de | — |
| support.constant.math | #E0BD15de | — |
| support.constant.media | #0EDB74de | — |
| support.constant.media-type | #6ACAFBde | — |
| support.constant.property-value | #10D973de | — |
| support.function | #DEBD14de | — |
| support.function.git-rebase | #6ACAFBde | — |
| support.other.parenthesis.regexp | #E87CE8de | — |
| support.type | #DEBD14de | — |
| support.type.property-name | #E88585de | — |
| support.type.vendored.property-name | #FEA9A9de | — |
| support.variable | #EF8F8Fde | — |
| token.debug-token | #FE9DFEde | — |
| token.error-token | #FEA8A8de | — |
| token.info-token | #55DA13de | — |
| token.warn-token | #C2B5FEde | — |
| variable | #A495EAde | — |
| variable.css | #DFBC14de | — |
| variable.language | #DFBC13de | — |
| variable.language.wildcard.java | #17DA78de | — |
| variable.other.constant | #E1BD0Ede | — |
| variable.other.definition.java | #A495EEde | — |
| variable.other.enummember | #E98585de | — |
| variable.other.less | #F5A3A3de | — |
| variable.other.object.java | #57DA16de | — |
| variable.other.object.property.java | #FE9DFEde | — |
| variable.parameter.c | #E478E4de | — |
| variable.parameter.function.language.python | #FEA9A9de | — |
| variable.parameter.java | #E68585de | — |
| variable.scss | #E576E5de | — |
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}!`;
}