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 | #BBBBFB6e | — |
| comment.block.html | #BCBCF96e | — |
| comment.block.java | #BCBCFC6e | — |
| comment.block.javadoc.java | #BCBCFC6e | — |
| comment.block.powershell | #BCBCFA6e | — |
| comment.block.xml | #BBBBFB6e | — |
| comment.line.double-slash.c | #BCBCFA6e | — |
| comment.line.double-slash.cpp | #BCBCFA6e | — |
| comment.line.double-slash.java | #BBBBFB6e | — |
| comment.line.double-slash.js | #BCBCF96e | — |
| comment.line.number-sign.makefile | #BBBBFB6e | — |
| comment.line.number-sign.python | #BBBBFB6e | — |
| comment.line.number-sign.yaml | #BCBCFA6e | — |
| comment.line.percentage.erlang | #BCBCF96e | — |
| comment.line.powershell | #BCBCFA6e | — |
| comment.source.cmake | #BCBCF96e | — |
| comment.source.cmakecache | #BBBBFB6e | — |
| constant.character | #AEAEAEde | — |
| constant.character.character-class.regexp | #14DD78de | — |
| constant.character.escape | #AB96EAde | — |
| constant.character.set.regexp | #AEC0F7de | — |
| constant.language | #FEA8D3de | — |
| constant.numeric | #C1C1C1de | — |
| constant.numeric.dec.python | #EE8BBDde | — |
| constant.other.caps.python | #ABC0FEde | — |
| constant.other.character-class.regexp | #AB95EDde | — |
| constant.other.character-class.set.regexp | #15DE7Bde | — |
| constant.other.color.rgb-value | #FEA7D2de | — |
| constant.other.placeholder | #F4A0A0de | — |
| constant.other.rgb-value | #FEA1D1de | — |
| constant.regexp | #15DE7Bde | — |
| constant.sha.git-rebase | #14DD78de | — |
| emphasis | #E882B5de | — |
| entity.name.class | #15DF15de | — |
| entity.name.function | #16DF16de | — |
| entity.name.function.preprocessor | #15DE7Bde | — |
| entity.name.function.python | #AEAEAEde | — |
| entity.name.label | #B2B2B2de | — |
| entity.name.namespace | #F299C5de | — |
| entity.name.operator | #AB96EAde | — |
| entity.name.operator.custom-literal | #87A0EBde | — |
| entity.name.scope-resolution | #B7B7B7de | — |
| entity.name.tag | #E88888de | — |
| entity.name.tag.css | #0EDE76de | — |
| entity.name.type | #ABC0FEde | — |
| entity.name.variable | #B7B7B7de | — |
| entity.other.attribute | #FEA1D1de | — |
| entity.other.attribute-name | #AB96EAde | — |
| entity.other.attribute-name.class.css | #EB8787de | — |
| entity.other.attribute-name.class.mixin.css | #12E012de | — |
| entity.other.attribute-name.id | #AC95EFde | — |
| entity.other.attribute-name.id.css | #15E015de | — |
| entity.other.attribute-name.parent-selector.css | #F7AEAEde | — |
| entity.other.attribute-name.pseudo-class.css | #FEABABde | — |
| entity.other.attribute-name.pseudo-element.css | #E78989de | — |
| entity.other.attribute-name.scss | #15E015de | — |
| entity.other.document.begin.yaml | #BCBCFA6e | — |
| entity.other.inherited-class | #AB96EAde | — |
| header | #F4A0A0de | — |
| invalid | #8AA1E8de | — |
| keyword | #88A0ECde | — |
| keyword.codetag.notation.python | #A5A5A5de | — |
| keyword.control | #88A0E9de | — |
| keyword.control.anchor.regexp | #FEA8D3de | — |
| keyword.control.import.python | #BBBBBBde | — |
| keyword.operator | #0EDE76de | — |
| keyword.operator.alignas | #13DF13de | — |
| keyword.operator.alignof | #C1C1C1de | — |
| keyword.operator.cast | #0FDD76de | — |
| keyword.operator.delete | #AC97ECde | — |
| keyword.operator.documentation.powershell | #BBBBFB6e | — |
| keyword.operator.expression | #A3A3A3de | — |
| keyword.operator.instanceof | #F299C5de | — |
| keyword.operator.logical.python | #C6B5F9de | — |
| keyword.operator.minus.exponent | #C1C1C1de | — |
| keyword.operator.negation.regexp | #15DF15de | — |
| keyword.operator.new | #12E012de | — |
| keyword.operator.noexcept | #A7BAF6de | — |
| keyword.operator.or.regexp | #0CDD74de | — |
| keyword.operator.plus.exponent | #E78989de | — |
| keyword.operator.quantifier.regexp | #8BA4EEde | — |
| keyword.operator.sizeof | #FEA8D3de | — |
| keyword.operator.typeid | #A0B5F4de | — |
| keyword.operator.wordlike | #88A0E9de | — |
| keyword.other.operator | #C1C1C1de | — |
| keyword.other.package.java | #F4A0A0de | — |
| keyword.other.unit | #92A9F0de | — |
| keyword.other.using | #EE8B8Bde | — |
| markup.bold | #EC8585de | — |
| markup.changed | #15DD79de | — |
| markup.deleted | #89A1E8de | — |
| markup.fenced_code.block.markdown | #0CDF0Cde | — |
| markup.heading | #C1C1C1de | — |
| markup.inline.raw | #FEABABde | — |
| markup.inserted | #EE8B8Bde | — |
| markup.italic | #E88888de | — |
| markup.raw.block.markdown | #A5A5A5de | — |
| markup.strikethrough | #C1C1C1de | — |
| markup.underline | #E683B5de | — |
| meta.block.c | #AF99F2de | — |
| meta.block.c | #A7BAF6de | — |
| meta.class.java | #A9A9A9de | — |
| meta.definition.variable.name | #AABFFEde | — |
| meta.diff.header | #FEA6D1de | — |
| meta.embedded | #15DE7Ade | — |
| meta.embedded.assembly | #FEABABde | — |
| meta.function-call.arguments.python | #F6A7CEde | — |
| meta.function-call.python | #EE8B8Bde | — |
| meta.member.access.python | #89A1E8de | — |
| meta.method.java | #C0C0C0de | — |
| meta.object-literal.key | #F7AEAEde | — |
| meta.paragraph.markdown | #C1C1C1de | — |
| meta.preprocessor | #15DF15de | — |
| meta.preprocessor.numeric | #C0C0C0de | — |
| meta.preprocessor.string | #13DF13de | — |
| meta.scope.prerequisites.makefile | #12E012de | — |
| meta.structure.dictionary.json.comments | #BCBCFC6e | — |
| meta.structure.dictionary.key.python | #F6A7CEde | — |
| meta.structure.dictionary.value.json.comments | #BCBCF96e | — |
| meta.template.expression | #E882B5de | — |
| meta.type.cast.expr | #C6B5F9de | — |
| meta.type.new.expr | #AB96EAde | — |
| parameter | #C6B3FEde | — |
| punctuation.character.set.begin.regexp | #AB96EAde | — |
| punctuation.character.set.end.regexp | #92A9F0de | — |
| punctuation.definition.array.begin.json | #FEAAAAde | — |
| punctuation.definition.character-class.regexp | #FEA1D1de | — |
| punctuation.definition.comment | #BBBBFB6e | — |
| punctuation.definition.comment.json.comments | #BCBCFA6e | — |
| punctuation.definition.comment.python | #BCBCF96e | — |
| punctuation.definition.dictionary.begin.json | #AEAEAEde | — |
| punctuation.definition.dictionary.end.json | #FEABABde | — |
| punctuation.definition.group.assertion.regexp | #E782B5de | — |
| punctuation.definition.group.regexp | #15E015de | — |
| punctuation.definition.list.begin.json | #12DE77de | — |
| punctuation.definition.list.begin.markdown | #16DD78de | — |
| punctuation.definition.list.begin.python | #0FDF0Fde | — |
| punctuation.definition.list.end.json | #BBBBBBde | — |
| punctuation.definition.list.end.markdown | #AEC0F7de | — |
| punctuation.definition.list.end.python | #8BA4EEde | — |
| punctuation.definition.parameters.begin.python | #FEABABde | — |
| punctuation.definition.parameters.end.bracket.round.java | #C6B3FEde | — |
| punctuation.definition.quote.begin.markdown | #FEA6D1de | — |
| punctuation.definition.tag | #C1C1C1de | — |
| punctuation.definition.template-expression.begin | #C1C1C1de | — |
| punctuation.definition.template-expression.end | #A7BAF6de | — |
| punctuation.section.class.begin.bracket.curly.java | #AB95F0de | — |
| punctuation.section.embedded | #0FDD74de | — |
| punctuation.section.embedded.begin.php | #12E012de | — |
| punctuation.section.embedded.end.php | #0FDD76de | — |
| punctuation.terminator.java | #EE8BBDde | — |
| source.cmake | #0FE00Fde | — |
| source.coffee.embedded | #ABC0FEde | — |
| source.cpp | #0CDD74de | — |
| source.css.less | #B7B7B7de | — |
| source.groovy.embedded | #BAA7F6de | — |
| source.java | #15DF15de | — |
| source.java-properties | #C0AEF7de | — |
| source.json.comments | #BCBCF96e | — |
| source.makefile | #C1C1C1de | — |
| source.powershell | #15E015de | — |
| source.powershell.variable.other.member | #E782B5de | — |
| source.python | #E782B5de | — |
| storage | #C0C0C0de | — |
| storage.modifier | #8BA4EEde | — |
| storage.modifier.import.java | #C0AEF7de | — |
| storage.modifier.package.java | #F7AEAEde | — |
| storage.type | #F6A7A7de | — |
| storage.type.annotation.groovy | #0FE00Fde | — |
| storage.type.annotation.java | #E78989de | — |
| storage.type.boolean.go | #C0C0C0de | — |
| storage.type.byte.go | #15DE7Bde | — |
| storage.type.cs | #E98888de | — |
| storage.type.error.go | #FEA8D3de | — |
| storage.type.generic.cs | #C6B5F9de | — |
| storage.type.generic.groovy | #A0B5F4de | — |
| storage.type.generic.java | #E782B5de | — |
| storage.type.groovy | #A0B5F4de | — |
| storage.type.java | #E98888de | — |
| storage.type.modifier.cs | #0CDF0Cde | — |
| storage.type.numeric.go | #EC85B8de | — |
| storage.type.object.array.groovy | #88A0ECde | — |
| storage.type.object.array.java | #C1C1C1de | — |
| storage.type.parameters.groovy | #FEA7D2de | — |
| storage.type.primitive.array.groovy | #16DE79de | — |
| storage.type.primitive.array.java | #F09292de | — |
| storage.type.primitive.groovy | #FEABABde | — |
| storage.type.primitive.java | #FEA1D1de | — |
| storage.type.rune.go | #12E012de | — |
| storage.type.string.go | #0EE00Ede | — |
| storage.type.token.java | #8AA1E8de | — |
| storage.type.uintptr.go | #16DF16de | — |
| storage.type.variable.cs | #EE8B8Bde | — |
| string | #15DD79de | — |
| string.quoted.docstring.multi.python | #BCBCF96e | — |
| string.regexp | #EC85B8de | — |
| string.tag | #16DF16de | — |
| string.value | #C6B3FEde | — |
| strong | #F299C5de | — |
| support.class | #C1C1C1de | — |
| support.constant.color | #89A1E8de | — |
| support.constant.dom | #C1C1C1de | — |
| support.constant.font-name | #B2B2B2de | — |
| support.constant.handlebars | #F4A0A0de | — |
| support.constant.json | #A5A5A5de | — |
| support.constant.math | #FEA8D3de | — |
| support.constant.media | #E683B5de | — |
| support.constant.media-type | #F29999de | — |
| support.constant.property-value | #C8B7FEde | — |
| support.function | #89A1E8de | — |
| support.function.git-rebase | #AB96EAde | — |
| support.other.parenthesis.regexp | #92A9F0de | — |
| support.type | #AC95EFde | — |
| support.type.property-name | #15DF15de | — |
| support.type.vendored.property-name | #FEA1D1de | — |
| support.variable | #E782B5de | — |
| token.debug-token | #F6A7CEde | — |
| token.error-token | #15DF15de | — |
| token.info-token | #16DF16de | — |
| token.warn-token | #EE8BBDde | — |
| variable | #C9B8FEde | — |
| variable.css | #EC8585de | — |
| variable.language | #15DD78de | — |
| variable.language.wildcard.java | #14DD78de | — |
| variable.other.constant | #EC85B8de | — |
| variable.other.definition.java | #92A9F0de | — |
| variable.other.enummember | #FEABABde | — |
| variable.other.less | #A5A5A5de | — |
| variable.other.object.java | #15DF15de | — |
| variable.other.object.property.java | #F299C5de | — |
| variable.parameter.c | #16DD78de | — |
| variable.parameter.function.language.python | #E882B5de | — |
| variable.parameter.java | #16DD78de | — |
| variable.scss | #FEA8D3de | — |
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}!`;
}