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 | #A8A8A86e | — |
| comment.block.html | #A9A9A96e | — |
| comment.block.java | #A7A7A76e | — |
| comment.block.javadoc.java | #BBBBBB6e | — |
| comment.block.powershell | #B3B3B36e | — |
| comment.block.xml | #B8B8B86e | — |
| comment.line.double-slash.c | #A9A9A96e | — |
| comment.line.double-slash.cpp | #B9B9B96e | — |
| comment.line.double-slash.java | #A5A5A56e | — |
| comment.line.double-slash.js | #ACACAC6e | — |
| comment.line.number-sign.makefile | #B3B3B36e | — |
| comment.line.number-sign.python | #BBBBBB6e | — |
| comment.line.number-sign.yaml | #B9B9B96e | — |
| comment.line.percentage.erlang | #B8B8B86e | — |
| comment.line.powershell | #B5B5B56e | — |
| comment.source.cmake | #A4A4A46e | — |
| comment.source.cmakecache | #BBBBBB6e | — |
| constant.character | #EB8D8Dde | — |
| constant.character.character-class.regexp | #59CB59de | — |
| constant.character.escape | #47B747de | — |
| constant.character.set.regexp | #EE9595de | — |
| constant.language | #4FC14Fde | — |
| constant.numeric | #0CD60Cde | — |
| constant.numeric.dec.python | #50C350de | — |
| constant.other.caps.python | #B3B3F7de | — |
| constant.other.character-class.regexp | #0ECC0Ede | — |
| constant.other.character-class.set.regexp | #5ACC5Ade | — |
| constant.other.color.rgb-value | #63D463de | — |
| constant.other.placeholder | #EF9999de | — |
| constant.other.rgb-value | #A9A9F4de | — |
| constant.regexp | #B2B2B2de | — |
| constant.sha.git-rebase | #B4B4F7de | — |
| emphasis | #B1B1F7de | — |
| entity.name.class | #66D666de | — |
| entity.name.function | #0CCA0Cde | — |
| entity.name.function.preprocessor | #BBBBBBde | — |
| entity.name.function.python | #63D363de | — |
| entity.name.label | #F3A6A6de | — |
| entity.name.namespace | #A0A0A0de | — |
| entity.name.operator | #63D363de | — |
| entity.name.operator.custom-literal | #F19E9Ede | — |
| entity.name.scope-resolution | #F3A4A4de | — |
| entity.name.tag | #A0A0A0de | — |
| entity.name.tag.css | #58CA58de | — |
| entity.name.type | #B7B7F8de | — |
| entity.name.variable | #A6A6F3de | — |
| entity.other.attribute | #A0A0F2de | — |
| entity.other.attribute-name | #E98888de | — |
| entity.other.attribute-name.class.css | #0ECD0Ede | — |
| entity.other.attribute-name.class.mixin.css | #0ED10Ede | — |
| entity.other.attribute-name.id | #0DD40Dde | — |
| entity.other.attribute-name.id.css | #A2A2F3de | — |
| entity.other.attribute-name.parent-selector.css | #4DBF4Dde | — |
| entity.other.attribute-name.pseudo-class.css | #F2A0A0de | — |
| entity.other.attribute-name.pseudo-element.css | #B4B4F7de | — |
| entity.other.attribute-name.scss | #B5B5B5de | — |
| entity.other.document.begin.yaml | #AEAEAE6e | — |
| entity.other.inherited-class | #0CCA0Cde | — |
| header | #0CC70Cde | — |
| invalid | #EE9494de | — |
| keyword | #B2B2B2de | — |
| keyword.codetag.notation.python | #EF9696de | — |
| keyword.control | #AFAFF6de | — |
| keyword.control.anchor.regexp | #A1A1F2de | — |
| keyword.control.import.python | #EA8C8Cde | — |
| keyword.operator | #A0A0F2de | — |
| keyword.operator.alignas | #E98787de | — |
| keyword.operator.alignof | #A1A1F2de | — |
| keyword.operator.cast | #B3B3F7de | — |
| keyword.operator.delete | #0DD90Dde | — |
| keyword.operator.documentation.powershell | #AFAFAF6e | — |
| keyword.operator.expression | #EA8B8Bde | — |
| keyword.operator.instanceof | #0ECD0Ede | — |
| keyword.operator.logical.python | #55C855de | — |
| keyword.operator.minus.exponent | #9999F0de | — |
| keyword.operator.negation.regexp | #A6A6F4de | — |
| keyword.operator.new | #60D160de | — |
| keyword.operator.noexcept | #4FC14Fde | — |
| keyword.operator.or.regexp | #F2A0A0de | — |
| keyword.operator.plus.exponent | #9999F0de | — |
| keyword.operator.quantifier.regexp | #5ACC5Ade | — |
| keyword.operator.sizeof | #A8A8F4de | — |
| keyword.operator.typeid | #A4A4F3de | — |
| keyword.operator.wordlike | #0CBF0Cde | — |
| keyword.other.operator | #9C9CF1de | — |
| keyword.other.package.java | #48B948de | — |
| keyword.other.unit | #F09999de | — |
| keyword.other.using | #4ABB4Ade | — |
| markup.bold | #5ACC5Ade | — |
| markup.changed | #EE9393de | — |
| markup.deleted | #F09999de | — |
| markup.fenced_code.block.markdown | #5FCF5Fde | — |
| markup.heading | #F09999de | — |
| markup.inline.raw | #0ECE0Ede | — |
| markup.inserted | #EE9696de | — |
| markup.italic | #B0B0F6de | — |
| markup.raw.block.markdown | #9F9FF2de | — |
| markup.strikethrough | #BBBBBBde | — |
| markup.underline | #47B747de | — |
| meta.block.c | #A6A6F4de | — |
| meta.block.c | #E88686de | — |
| meta.class.java | #A0A0A0de | — |
| meta.definition.variable.name | #0FC00Fde | — |
| meta.diff.header | #ACACF5de | — |
| meta.embedded | #0DD90Dde | — |
| meta.embedded.assembly | #F09B9Bde | — |
| meta.function-call.arguments.python | #A0A0F2de | — |
| meta.function-call.python | #EA8C8Cde | — |
| meta.member.access.python | #4ABB4Ade | — |
| meta.method.java | #5FCF5Fde | — |
| meta.object-literal.key | #A6A6F4de | — |
| meta.paragraph.markdown | #4DBF4Dde | — |
| meta.preprocessor | #51C351de | — |
| meta.preprocessor.numeric | #0CC90Cde | — |
| meta.preprocessor.string | #5ACC5Ade | — |
| meta.scope.prerequisites.makefile | #0ECA0Ede | — |
| meta.structure.dictionary.json.comments | #B8B8B86e | — |
| meta.structure.dictionary.key.python | #5FCF5Fde | — |
| meta.structure.dictionary.value.json.comments | #B1B1B16e | — |
| meta.template.expression | #52C352de | — |
| meta.type.cast.expr | #61D161de | — |
| meta.type.new.expr | #E88888de | — |
| parameter | #A6A6F4de | — |
| punctuation.character.set.begin.regexp | #E88686de | — |
| punctuation.character.set.end.regexp | #0DD80Dde | — |
| punctuation.definition.array.begin.json | #0EC90Ede | — |
| punctuation.definition.character-class.regexp | #9999F0de | — |
| punctuation.definition.comment | #B8B8B86e | — |
| punctuation.definition.comment.json.comments | #A2A2A26e | — |
| punctuation.definition.comment.python | #B3B3B36e | — |
| punctuation.definition.dictionary.begin.json | #9999F0de | — |
| punctuation.definition.dictionary.end.json | #EA8A8Ade | — |
| punctuation.definition.group.assertion.regexp | #E98888de | — |
| punctuation.definition.group.regexp | #E98787de | — |
| punctuation.definition.list.begin.json | #63D363de | — |
| punctuation.definition.list.begin.markdown | #9E9EF1de | — |
| punctuation.definition.list.begin.python | #AFAFAFde | — |
| punctuation.definition.list.end.json | #A1A1A1de | — |
| punctuation.definition.list.end.markdown | #A9A9A9de | — |
| punctuation.definition.list.end.python | #4EBF4Ede | — |
| punctuation.definition.parameters.begin.python | #9797EFde | — |
| punctuation.definition.parameters.end.bracket.round.java | #A8A8F4de | — |
| punctuation.definition.quote.begin.markdown | #B9B9B9de | — |
| punctuation.definition.tag | #A1A1A1de | — |
| punctuation.definition.template-expression.begin | #64D464de | — |
| punctuation.definition.template-expression.end | #63D363de | — |
| punctuation.section.class.begin.bracket.curly.java | #BEBEBEde | — |
| punctuation.section.embedded | #AAAAF5de | — |
| punctuation.section.embedded.begin.php | #B7B7B7de | — |
| punctuation.section.embedded.end.php | #0EBE0Ede | — |
| punctuation.terminator.java | #B4B4F7de | — |
| source.cmake | #0CD60Cde | — |
| source.coffee.embedded | #A6A6F4de | — |
| source.cpp | #52C352de | — |
| source.css.less | #ABABF5de | — |
| source.groovy.embedded | #A1A1A1de | — |
| source.java | #EC9191de | — |
| source.java-properties | #A0A0F2de | — |
| source.json.comments | #ADADAD6e | — |
| source.makefile | #5FCF5Fde | — |
| source.powershell | #0CC60Cde | — |
| source.powershell.variable.other.member | #EA8C8Cde | — |
| source.python | #BBBBBBde | — |
| storage | #65D565de | — |
| storage.modifier | #5FD05Fde | — |
| storage.modifier.import.java | #B3B3F7de | — |
| storage.modifier.package.java | #E78484de | — |
| storage.type | #49BA49de | — |
| storage.type.annotation.groovy | #0ECD0Ede | — |
| storage.type.annotation.java | #F2A0A0de | — |
| storage.type.boolean.go | #0EC80Ede | — |
| storage.type.byte.go | #4ABB4Ade | — |
| storage.type.cs | #0EC70Ede | — |
| storage.type.error.go | #F5ACACde | — |
| storage.type.generic.cs | #EB8D8Dde | — |
| storage.type.generic.groovy | #A2A2F3de | — |
| storage.type.generic.java | #0BDA0Bde | — |
| storage.type.groovy | #F5ACACde | — |
| storage.type.java | #A6A6F4de | — |
| storage.type.modifier.cs | #F4A7A7de | — |
| storage.type.numeric.go | #0BDD0Bde | — |
| storage.type.object.array.groovy | #63D463de | — |
| storage.type.object.array.java | #B4B4F7de | — |
| storage.type.parameters.groovy | #0ECC0Ede | — |
| storage.type.primitive.array.groovy | #A1A1A1de | — |
| storage.type.primitive.array.java | #A8A8A8de | — |
| storage.type.primitive.groovy | #EB8D8Dde | — |
| storage.type.primitive.java | #F5ABABde | — |
| storage.type.rune.go | #9999F0de | — |
| storage.type.string.go | #F4A9A9de | — |
| storage.type.token.java | #EA8A8Ade | — |
| storage.type.uintptr.go | #0FBC0Fde | — |
| storage.type.variable.cs | #EB8E8Ede | — |
| string | #B5B5B5de | — |
| string.quoted.docstring.multi.python | #A3A3A36e | — |
| string.regexp | #9F9FF2de | — |
| string.tag | #B9B9F8de | — |
| string.value | #B7B7B7de | — |
| strong | #F4A6A6de | — |
| support.class | #9797EFde | — |
| support.constant.color | #0ED50Ede | — |
| support.constant.dom | #0EC30Ede | — |
| support.constant.font-name | #ED9191de | — |
| support.constant.handlebars | #A0A0A0de | — |
| support.constant.json | #F09B9Bde | — |
| support.constant.math | #A0A0F2de | — |
| support.constant.media | #F4A7A7de | — |
| support.constant.media-type | #A0A0F2de | — |
| support.constant.property-value | #9999F0de | — |
| support.function | #0EC80Ede | — |
| support.function.git-rebase | #B7B7B7de | — |
| support.other.parenthesis.regexp | #0EC40Ede | — |
| support.type | #F5ABABde | — |
| support.type.property-name | #5FD05Fde | — |
| support.type.vendored.property-name | #ABABF5de | — |
| support.variable | #5FCF5Fde | — |
| token.debug-token | #52C352de | — |
| token.error-token | #EE9494de | — |
| token.info-token | #E88888de | — |
| token.warn-token | #54C754de | — |
| variable | #9999F0de | — |
| variable.css | #A8A8F4de | — |
| variable.language | #A4A4F3de | — |
| variable.language.wildcard.java | #F4A6A6de | — |
| variable.other.constant | #9797EFde | — |
| variable.other.definition.java | #9898EFde | — |
| variable.other.enummember | #63D363de | — |
| variable.other.less | #A6A6F4de | — |
| variable.other.object.java | #B7B7F8de | — |
| variable.other.object.property.java | #0DCC0Dde | — |
| variable.parameter.c | #0DD40Dde | — |
| variable.parameter.function.language.python | #F2A0A0de | — |
| variable.parameter.java | #EC9090de | — |
| variable.scss | #0EC30Ede | — |
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}!`;
}