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 | #C7C7796e | — |
| comment.block.html | #C7C7796e | — |
| comment.block.java | #C6C67E6e | — |
| comment.block.javadoc.java | #C6C6816e | — |
| comment.block.powershell | #C6C6816e | — |
| comment.block.xml | #C6C6816e | — |
| comment.line.double-slash.c | #C7C7796e | — |
| comment.line.double-slash.cpp | #C7C7796e | — |
| comment.line.double-slash.java | #C7C7796e | — |
| comment.line.double-slash.js | #C6C6776e | — |
| comment.line.number-sign.makefile | #C6C6816e | — |
| comment.line.number-sign.python | #C6C6776e | — |
| comment.line.number-sign.yaml | #C6C6816e | — |
| comment.line.percentage.erlang | #C7C7796e | — |
| comment.line.powershell | #C6C6776e | — |
| comment.source.cmake | #C7C7796e | — |
| comment.source.cmakecache | #C6C6816e | — |
| constant.character | #13DD8Dde | — |
| constant.character.character-class.regexp | #7BA9EDde | — |
| constant.character.escape | #F69E9Ede | — |
| constant.character.set.regexp | #EC8787de | — |
| constant.language | #C8C814de | — |
| constant.numeric | #97BCF4de | — |
| constant.numeric.dec.python | #FEA6E4de | — |
| constant.other.caps.python | #C6A6F7de | — |
| constant.other.character-class.regexp | #82AEEFde | — |
| constant.other.character-class.set.regexp | #0EDD88de | — |
| constant.other.color.rgb-value | #EA80CAde | — |
| constant.other.placeholder | #EF8585de | — |
| constant.other.rgb-value | #ED8686de | — |
| constant.regexp | #10DD8Bde | — |
| constant.sha.git-rebase | #D2B4FEde | — |
| emphasis | #D0B5FAde | — |
| entity.name.class | #FEABABde | — |
| entity.name.function | #F7A6DFde | — |
| entity.name.function.preprocessor | #25E110de | — |
| entity.name.function.python | #12DE8Cde | — |
| entity.name.label | #76A5EBde | — |
| entity.name.namespace | #0CDE8Ade | — |
| entity.name.operator | #F49797de | — |
| entity.name.operator.custom-literal | #9FC4FEde | — |
| entity.name.scope-resolution | #EC8787de | — |
| entity.name.tag | #FEA6E4de | — |
| entity.name.tag.css | #C9C910de | — |
| entity.name.type | #EB7FCBde | — |
| entity.name.variable | #ED8686de | — |
| entity.other.attribute | #24E10Ede | — |
| entity.other.attribute-name | #EC8787de | — |
| entity.other.attribute-name.class.css | #82AEEFde | — |
| entity.other.attribute-name.class.mixin.css | #F69EDCde | — |
| entity.other.attribute-name.id | #F7A6DFde | — |
| entity.other.attribute-name.id.css | #F390D5de | — |
| entity.other.attribute-name.parent-selector.css | #FEADADde | — |
| entity.other.attribute-name.pseudo-class.css | #C8C814de | — |
| entity.other.attribute-name.pseudo-element.css | #C9C912de | — |
| entity.other.attribute-name.scss | #0EDD88de | — |
| entity.other.document.begin.yaml | #C6C6776e | — |
| entity.other.inherited-class | #25DF11de | — |
| header | #12DD8Cde | — |
| invalid | #12DD8Cde | — |
| keyword | #76A5EBde | — |
| keyword.codetag.notation.python | #EC8787de | — |
| keyword.control | #C9C914de | — |
| keyword.control.anchor.regexp | #11DD8Ade | — |
| keyword.control.import.python | #22E10Cde | — |
| keyword.operator | #B793EEde | — |
| keyword.operator.alignas | #0CDE8Ade | — |
| keyword.operator.alignof | #C9C907de | — |
| keyword.operator.cast | #C9C914de | — |
| keyword.operator.delete | #26E012de | — |
| keyword.operator.documentation.powershell | #C6C6776e | — |
| keyword.operator.expression | #FEADADde | — |
| keyword.operator.instanceof | #ED7DCCde | — |
| keyword.operator.logical.python | #F39090de | — |
| keyword.operator.minus.exponent | #C8C813de | — |
| keyword.operator.negation.regexp | #F49797de | — |
| keyword.operator.new | #ED8686de | — |
| keyword.operator.noexcept | #11DD8Ade | — |
| keyword.operator.or.regexp | #C9C914de | — |
| keyword.operator.plus.exponent | #F390D5de | — |
| keyword.operator.quantifier.regexp | #B793EEde | — |
| keyword.operator.sizeof | #12DE8Dde | — |
| keyword.operator.typeid | #0CDD8Ade | — |
| keyword.operator.wordlike | #B891F1de | — |
| keyword.other.operator | #12DE8Cde | — |
| keyword.other.package.java | #C9C914de | — |
| keyword.other.unit | #EE8686de | — |
| keyword.other.using | #0CDD8Ade | — |
| markup.bold | #FEAEAEde | — |
| markup.changed | #12DD8Cde | — |
| markup.deleted | #C8C812de | — |
| markup.fenced_code.block.markdown | #C9C914de | — |
| markup.heading | #9EC1F6de | — |
| markup.inline.raw | #F497D8de | — |
| markup.inserted | #B891F1de | — |
| markup.italic | #A0C5FEde | — |
| markup.raw.block.markdown | #26E012de | — |
| markup.strikethrough | #10DD8Bde | — |
| markup.underline | #C9C914de | — |
| meta.block.c | #0CDD8Ade | — |
| meta.block.c | #12DD8Cde | — |
| meta.class.java | #22E00Dde | — |
| meta.definition.variable.name | #F7A6A6de | — |
| meta.diff.header | #F18989de | — |
| meta.embedded | #F7A6A6de | — |
| meta.embedded.assembly | #25E110de | — |
| meta.function-call.arguments.python | #25DF11de | — |
| meta.function-call.python | #ED7DCCde | — |
| meta.member.access.python | #ED7DCCde | — |
| meta.method.java | #11DD8Cde | — |
| meta.object-literal.key | #12DE8Dde | — |
| meta.paragraph.markdown | #E980CAde | — |
| meta.preprocessor | #25E112de | — |
| meta.preprocessor.numeric | #26E012de | — |
| meta.preprocessor.string | #FEA6E4de | — |
| meta.scope.prerequisites.makefile | #26E111de | — |
| meta.structure.dictionary.json.comments | #C6C67E6e | — |
| meta.structure.dictionary.key.python | #C8C814de | — |
| meta.structure.dictionary.value.json.comments | #C6C6816e | — |
| meta.template.expression | #C19EF6de | — |
| meta.type.cast.expr | #B892F1de | — |
| meta.type.new.expr | #F390D5de | — |
| parameter | #FEADADde | — |
| punctuation.character.set.begin.regexp | #23E00Cde | — |
| punctuation.character.set.end.regexp | #C8C814de | — |
| punctuation.definition.array.begin.json | #FEABABde | — |
| punctuation.definition.character-class.regexp | #B793EDde | — |
| punctuation.definition.comment | #C6C6776e | — |
| punctuation.definition.comment.json.comments | #C6C67E6e | — |
| punctuation.definition.comment.python | #C6C6776e | — |
| punctuation.definition.dictionary.begin.json | #11DD8Ade | — |
| punctuation.definition.dictionary.end.json | #10DE8Dde | — |
| punctuation.definition.group.assertion.regexp | #EC8787de | — |
| punctuation.definition.group.regexp | #FEA2E3de | — |
| punctuation.definition.list.begin.json | #FEA6E3de | — |
| punctuation.definition.list.begin.markdown | #82AEEFde | — |
| punctuation.definition.list.begin.python | #0ADF88de | — |
| punctuation.definition.list.end.json | #F69E9Ede | — |
| punctuation.definition.list.end.markdown | #F189D2de | — |
| punctuation.definition.list.end.python | #B793EEde | — |
| punctuation.definition.parameters.begin.python | #ED8686de | — |
| punctuation.definition.parameters.end.bracket.round.java | #EF8585de | — |
| punctuation.definition.quote.begin.markdown | #26E012de | — |
| punctuation.definition.tag | #97BCF4de | — |
| punctuation.definition.template-expression.begin | #D0B5FAde | — |
| punctuation.definition.template-expression.end | #C9C914de | — |
| punctuation.section.class.begin.bracket.curly.java | #CBADF9de | — |
| punctuation.section.embedded | #C8C812de | — |
| punctuation.section.embedded.begin.php | #D0B5FAde | — |
| punctuation.section.embedded.end.php | #C8C814de | — |
| punctuation.terminator.java | #0EDD88de | — |
| source.cmake | #25DF11de | — |
| source.coffee.embedded | #89B3F1de | — |
| source.cpp | #F7A6A6de | — |
| source.css.less | #EC8787de | — |
| source.groovy.embedded | #EF82CEde | — |
| source.java | #27E012de | — |
| source.java-properties | #0ADF88de | — |
| source.json.comments | #C6C6816e | — |
| source.makefile | #F49797de | — |
| source.powershell | #A0C5FEde | — |
| source.powershell.variable.other.member | #F49797de | — |
| source.python | #9EC1F6de | — |
| storage | #9EC1F6de | — |
| storage.modifier | #BC97F4de | — |
| storage.modifier.import.java | #ED7DCCde | — |
| storage.modifier.package.java | #A0C5FEde | — |
| storage.type | #FEADADde | — |
| storage.type.annotation.groovy | #FEA7E4de | — |
| storage.type.annotation.java | #11DD8Ade | — |
| storage.type.boolean.go | #21E10Ade | — |
| storage.type.byte.go | #11DD8Cde | — |
| storage.type.cs | #0CDD8Ade | — |
| storage.type.error.go | #C8C810de | — |
| storage.type.generic.cs | #25DF11de | — |
| storage.type.generic.groovy | #13DD8Dde | — |
| storage.type.generic.java | #F39090de | — |
| storage.type.groovy | #B793EDde | — |
| storage.type.java | #EF82CEde | — |
| storage.type.modifier.cs | #FEA6E3de | — |
| storage.type.numeric.go | #CBADF9de | — |
| storage.type.object.array.groovy | #25E110de | — |
| storage.type.object.array.java | #9EC1F6de | — |
| storage.type.parameters.groovy | #28E112de | — |
| storage.type.primitive.array.groovy | #21E10Ade | — |
| storage.type.primitive.array.java | #C8C814de | — |
| storage.type.primitive.groovy | #25DF11de | — |
| storage.type.primitive.java | #F39090de | — |
| storage.type.rune.go | #97BCF4de | — |
| storage.type.string.go | #F7A6DFde | — |
| storage.type.token.java | #12DE8Dde | — |
| storage.type.uintptr.go | #C9C907de | — |
| storage.type.variable.cs | #A0C5FEde | — |
| string | #F69EDCde | — |
| string.quoted.docstring.multi.python | #C6C6816e | — |
| string.regexp | #12DD8Cde | — |
| string.tag | #FEADADde | — |
| string.value | #11DD8Ade | — |
| strong | #A0C5FEde | — |
| support.class | #11DD8Cde | — |
| support.constant.color | #78A5E9de | — |
| support.constant.dom | #C9C914de | — |
| support.constant.font-name | #27E112de | — |
| support.constant.handlebars | #D2B4FEde | — |
| support.constant.json | #EB7FCBde | — |
| support.constant.math | #FEADADde | — |
| support.constant.media | #A0C5FEde | — |
| support.constant.media-type | #FEADADde | — |
| support.constant.property-value | #FEADADde | — |
| support.function | #F69EDCde | — |
| support.function.git-rebase | #FEADADde | — |
| support.other.parenthesis.regexp | #EE8686de | — |
| support.type | #EA80CAde | — |
| support.type.property-name | #FEA2E3de | — |
| support.type.vendored.property-name | #F69E9Ede | — |
| support.variable | #28E112de | — |
| token.debug-token | #F18989de | — |
| token.error-token | #ED7DCCde | — |
| token.info-token | #F497D8de | — |
| token.warn-token | #25E110de | — |
| variable | #12DE8Dde | — |
| variable.css | #ED7DCCde | — |
| variable.language | #24E10Ede | — |
| variable.language.wildcard.java | #9EC1F6de | — |
| variable.other.constant | #B891F1de | — |
| variable.other.definition.java | #13DD8Dde | — |
| variable.other.enummember | #23E00Cde | — |
| variable.other.less | #78A5EAde | — |
| variable.other.object.java | #27E012de | — |
| variable.other.object.property.java | #B793EEde | — |
| variable.parameter.c | #12DE8Dde | — |
| variable.parameter.function.language.python | #A0C5FEde | — |
| variable.parameter.java | #FEABABde | — |
| variable.scss | #B793EDde | — |
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}!`;
}