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 | #F4B2B26e | — |
| comment.block.html | #F8B2B26e | — |
| comment.block.java | #F9B0B06e | — |
| comment.block.javadoc.java | #F8B2B26e | — |
| comment.block.powershell | #F8B2B26e | — |
| comment.block.xml | #F4B2B26e | — |
| comment.line.double-slash.c | #F9B0B06e | — |
| comment.line.double-slash.cpp | #F8B2B26e | — |
| comment.line.double-slash.java | #F8B2B26e | — |
| comment.line.double-slash.js | #F9B0B06e | — |
| comment.line.number-sign.makefile | #F9B0B06e | — |
| comment.line.number-sign.python | #F4B2B26e | — |
| comment.line.number-sign.yaml | #F4B2B26e | — |
| comment.line.percentage.erlang | #F8B2B26e | — |
| comment.line.powershell | #F9B0B06e | — |
| comment.source.cmake | #F8B2B26e | — |
| comment.source.cmakecache | #F9B0B06e | — |
| constant.character | #F28686de | — |
| constant.character.character-class.regexp | #0BE07Fde | — |
| constant.character.escape | #40E10Ade | — |
| constant.character.set.regexp | #8ACAFDde | — |
| constant.language | #0EDF81de | — |
| constant.numeric | #0DDF80de | — |
| constant.numeric.dec.python | #F38585de | — |
| constant.other.caps.python | #CBBAFEde | — |
| constant.other.character-class.regexp | #ECBE09de | — |
| constant.other.character-class.set.regexp | #8CCAFEde | — |
| constant.other.color.rgb-value | #3FE109de | — |
| constant.other.placeholder | #C6B4FBde | — |
| constant.other.rgb-value | #C7B4FEde | — |
| constant.regexp | #F796EDde | — |
| constant.sha.git-rebase | #EBBE0Cde | — |
| emphasis | #8ACAFEde | — |
| entity.name.class | #FEB0B0de | — |
| entity.name.function | #43E00Ede | — |
| entity.name.function.preprocessor | #FEABABde | — |
| entity.name.function.python | #F89D9Dde | — |
| entity.name.label | #6AB3EFde | — |
| entity.name.namespace | #F077E4de | — |
| entity.name.operator | #0DDF80de | — |
| entity.name.operator.custom-literal | #F28686de | — |
| entity.name.scope-resolution | #FEABABde | — |
| entity.name.tag | #0AE080de | — |
| entity.name.tag.css | #EBBE0Dde | — |
| entity.name.type | #40E00Bde | — |
| entity.name.variable | #F28686de | — |
| entity.other.attribute | #F278E6de | — |
| entity.other.attribute-name | #0BE07Fde | — |
| entity.other.attribute-name.class.css | #0BE07Fde | — |
| entity.other.attribute-name.class.mixin.css | #42E00Ede | — |
| entity.other.attribute-name.id | #FEABABde | — |
| entity.other.attribute-name.id.css | #ECBF0Dde | — |
| entity.other.attribute-name.parent-selector.css | #F38484de | — |
| entity.other.attribute-name.pseudo-class.css | #F38585de | — |
| entity.other.attribute-name.pseudo-element.css | #3FE109de | — |
| entity.other.attribute-name.scss | #41E00Ade | — |
| entity.other.document.begin.yaml | #F8B2B26e | — |
| entity.other.inherited-class | #F28686de | — |
| header | #78BBF2de | — |
| invalid | #43E10Ede | — |
| keyword | #5CABEBde | — |
| keyword.codetag.notation.python | #F587EAde | — |
| keyword.control | #80BFF3de | — |
| keyword.control.anchor.regexp | #41E00Cde | — |
| keyword.control.import.python | #C6B4FBde | — |
| keyword.operator | #F58787de | — |
| keyword.operator.alignas | #F79696de | — |
| keyword.operator.alignof | #F9A5A5de | — |
| keyword.operator.cast | #F38484de | — |
| keyword.operator.delete | #0EE081de | — |
| keyword.operator.documentation.powershell | #F9B0B06e | — |
| keyword.operator.expression | #08DF7Ede | — |
| keyword.operator.instanceof | #0EDF81de | — |
| keyword.operator.logical.python | #41E00Dde | — |
| keyword.operator.minus.exponent | #09DE7Ede | — |
| keyword.operator.negation.regexp | #C6B4FBde | — |
| keyword.operator.new | #8ACAFEde | — |
| keyword.operator.noexcept | #43E10Ede | — |
| keyword.operator.or.regexp | #F18686de | — |
| keyword.operator.plus.exponent | #8ACAFEde | — |
| keyword.operator.quantifier.regexp | #43E00Ede | — |
| keyword.operator.sizeof | #78BBF2de | — |
| keyword.operator.typeid | #8BCAFDde | — |
| keyword.operator.wordlike | #FEA5F4de | — |
| keyword.other.operator | #ECBF0Dde | — |
| keyword.other.package.java | #AE97F4de | — |
| keyword.other.unit | #43E00Ede | — |
| keyword.other.using | #0AE080de | — |
| markup.bold | #87C3F5de | — |
| markup.changed | #AE98F3de | — |
| markup.deleted | #FEA5F4de | — |
| markup.fenced_code.block.markdown | #FEA6F6de | — |
| markup.heading | #F380E8de | — |
| markup.inline.raw | #AE96F6de | — |
| markup.inserted | #F68E8Ede | — |
| markup.italic | #6AB3EFde | — |
| markup.raw.block.markdown | #F587EAde | — |
| markup.strikethrough | #42E00Ede | — |
| markup.underline | #F380E8de | — |
| meta.block.c | #C7B4FEde | — |
| meta.block.c | #F18686de | — |
| meta.class.java | #C7B4FEde | — |
| meta.definition.variable.name | #AE97F4de | — |
| meta.diff.header | #EF78E3de | — |
| meta.embedded | #5CABEBde | — |
| meta.embedded.assembly | #EBBF0Bde | — |
| meta.function-call.arguments.python | #ECBE0Dde | — |
| meta.function-call.python | #CBBAFEde | — |
| meta.member.access.python | #0BE07Fde | — |
| meta.method.java | #FEAFAFde | — |
| meta.object-literal.key | #FEA6F6de | — |
| meta.paragraph.markdown | #AE97F3de | — |
| meta.preprocessor | #8ACAFDde | — |
| meta.preprocessor.numeric | #09DE7Ede | — |
| meta.preprocessor.string | #42E00Dde | — |
| meta.scope.prerequisites.makefile | #0EE081de | — |
| meta.structure.dictionary.json.comments | #F9B0B06e | — |
| meta.structure.dictionary.key.python | #0DDF80de | — |
| meta.structure.dictionary.value.json.comments | #F9B0B06e | — |
| meta.template.expression | #F68EECde | — |
| meta.type.cast.expr | #F9A5F1de | — |
| meta.type.new.expr | #80BFF3de | — |
| parameter | #0AE080de | — |
| punctuation.character.set.begin.regexp | #FEAFAFde | — |
| punctuation.character.set.end.regexp | #F38484de | — |
| punctuation.definition.array.begin.json | #0DDF80de | — |
| punctuation.definition.character-class.regexp | #C7B4FEde | — |
| punctuation.definition.comment | #F4B2B26e | — |
| punctuation.definition.comment.json.comments | #F8B2B26e | — |
| punctuation.definition.comment.python | #F8B2B26e | — |
| punctuation.definition.dictionary.begin.json | #0DDF80de | — |
| punctuation.definition.dictionary.end.json | #FEA6F6de | — |
| punctuation.definition.group.assertion.regexp | #8AC9FEde | — |
| punctuation.definition.group.regexp | #43E00Ede | — |
| punctuation.definition.list.begin.json | #8BCAFDde | — |
| punctuation.definition.list.begin.markdown | #0BE07Fde | — |
| punctuation.definition.list.begin.python | #5CABEBde | — |
| punctuation.definition.list.end.json | #AE97F6de | — |
| punctuation.definition.list.end.markdown | #41E00Ade | — |
| punctuation.definition.list.end.python | #AE96F7de | — |
| punctuation.definition.parameters.begin.python | #71B7F0de | — |
| punctuation.definition.parameters.end.bracket.round.java | #8DCAFEde | — |
| punctuation.definition.quote.begin.markdown | #EABE0Ade | — |
| punctuation.definition.tag | #0DDF7Fde | — |
| punctuation.definition.template-expression.begin | #EABF0Dde | — |
| punctuation.definition.template-expression.end | #ECBF0Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #C7B4FEde | — |
| punctuation.section.embedded | #C6B4FBde | — |
| punctuation.section.embedded.begin.php | #EBBF0Bde | — |
| punctuation.section.embedded.end.php | #F89D9Dde | — |
| punctuation.terminator.java | #42E00Dde | — |
| source.cmake | #0ADF80de | — |
| source.coffee.embedded | #0AE080de | — |
| source.cpp | #F18686de | — |
| source.css.less | #EBBF0Cde | — |
| source.groovy.embedded | #09DE7Ede | — |
| source.java | #ECBE08de | — |
| source.java-properties | #8BCAFDde | — |
| source.json.comments | #F9B0B06e | — |
| source.makefile | #0EE082de | — |
| source.powershell | #0DE080de | — |
| source.powershell.variable.other.member | #EABE0Ade | — |
| source.python | #EBBE0Dde | — |
| storage | #08DF7Ede | — |
| storage.modifier | #41E00Cde | — |
| storage.modifier.import.java | #43E10Dde | — |
| storage.modifier.package.java | #F08686de | — |
| storage.type | #42E00Dde | — |
| storage.type.annotation.groovy | #FEA5F4de | — |
| storage.type.annotation.java | #ECBF0Dde | — |
| storage.type.boolean.go | #F28686de | — |
| storage.type.byte.go | #F08686de | — |
| storage.type.cs | #AE97F6de | — |
| storage.type.error.go | #08DF7Ede | — |
| storage.type.generic.cs | #40E00Bde | — |
| storage.type.generic.groovy | #F18686de | — |
| storage.type.generic.java | #F077E4de | — |
| storage.type.groovy | #F38585de | — |
| storage.type.java | #40E10Ade | — |
| storage.type.modifier.cs | #C7B4FEde | — |
| storage.type.numeric.go | #F9A5F1de | — |
| storage.type.object.array.groovy | #8ACAFDde | — |
| storage.type.object.array.java | #AE97F6de | — |
| storage.type.parameters.groovy | #0ADF80de | — |
| storage.type.primitive.array.groovy | #8BCAFDde | — |
| storage.type.primitive.array.java | #63AFEDde | — |
| storage.type.primitive.groovy | #EABE0Ade | — |
| storage.type.primitive.java | #78BBF2de | — |
| storage.type.rune.go | #43E10Dde | — |
| storage.type.string.go | #71B7F0de | — |
| storage.type.token.java | #43E00Ede | — |
| storage.type.uintptr.go | #C7B4FEde | — |
| storage.type.variable.cs | #FEABABde | — |
| string | #3FE109de | — |
| string.quoted.docstring.multi.python | #F9B0B06e | — |
| string.regexp | #AE96F5de | — |
| string.tag | #C0ADFAde | — |
| string.value | #FEABABde | — |
| strong | #AE97F4de | — |
| support.class | #0EDF81de | — |
| support.constant.color | #F68EECde | — |
| support.constant.dom | #F08686de | — |
| support.constant.font-name | #CBBAFEde | — |
| support.constant.handlebars | #EABE0Ade | — |
| support.constant.json | #F28686de | — |
| support.constant.math | #09DE7Ede | — |
| support.constant.media | #42E00Ede | — |
| support.constant.media-type | #EABF0Dde | — |
| support.constant.property-value | #43E10Ede | — |
| support.function | #0EE081de | — |
| support.function.git-rebase | #F18686de | — |
| support.other.parenthesis.regexp | #FEA5F4de | — |
| support.type | #ECBF0Ede | — |
| support.type.property-name | #F587EAde | — |
| support.type.vendored.property-name | #F28686de | — |
| support.variable | #F587EAde | — |
| token.debug-token | #F9A5F1de | — |
| token.error-token | #8ACAFDde | — |
| token.info-token | #43E00Ede | — |
| token.warn-token | #FEA5F5de | — |
| variable | #C0ADFAde | — |
| variable.css | #FEB0B0de | — |
| variable.language | #F078E5de | — |
| variable.language.wildcard.java | #AE98F3de | — |
| variable.other.constant | #EF78E3de | — |
| variable.other.definition.java | #B49DF8de | — |
| variable.other.enummember | #EABE0Dde | — |
| variable.other.less | #AE96F6de | — |
| variable.other.object.java | #F38484de | — |
| variable.other.object.property.java | #EF78E3de | — |
| variable.parameter.c | #FAADADde | — |
| variable.parameter.function.language.python | #0CE080de | — |
| variable.parameter.java | #C0ADFAde | — |
| variable.scss | #0EE081de | — |
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}!`;
}