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 | #A2A2A26e | — |
| comment.block.html | #A2A2A26e | — |
| comment.block.java | #A2A2A26e | — |
| comment.block.javadoc.java | #A2A2A26e | — |
| comment.block.powershell | #A2A2A26e | — |
| comment.block.xml | #A2A2A26e | — |
| comment.line.double-slash.c | #A1A1A16e | — |
| comment.line.double-slash.cpp | #A2A2A26e | — |
| comment.line.double-slash.java | #A1A1A16e | — |
| comment.line.double-slash.js | #A3A3A36e | — |
| comment.line.number-sign.makefile | #A2A2A26e | — |
| comment.line.number-sign.python | #A2A2A26e | — |
| comment.line.number-sign.yaml | #A2A2A26e | — |
| comment.line.percentage.erlang | #A2A2A26e | — |
| comment.line.powershell | #A1A1A16e | — |
| comment.source.cmake | #A2A2A26e | — |
| comment.source.cmakecache | #A3A3A36e | — |
| constant.character | #A2A2A2de | — |
| constant.character.character-class.regexp | #909BF1de | — |
| constant.character.escape | #F5A2C7de | — |
| constant.character.set.regexp | #A2A2A2de | — |
| constant.language | #F49BC2de | — |
| constant.numeric | #7CB40Ade | — |
| constant.numeric.dec.python | #89AF39de | — |
| constant.other.caps.python | #CB87EEde | — |
| constant.other.character-class.regexp | #0BBC0Bde | — |
| constant.other.character-class.set.regexp | #CB87EEde | — |
| constant.other.color.rgb-value | #0ACE0Ade | — |
| constant.other.placeholder | #DF8D63de | — |
| constant.other.rgb-value | #0BCC0Bde | — |
| constant.regexp | #7CB50Bde | — |
| constant.sha.git-rebase | #EB7FAFde | — |
| emphasis | #7BB30Bde | — |
| entity.name.class | #CB86EEde | — |
| entity.name.function | #A2A2A2de | — |
| entity.name.function.preprocessor | #7BB20Bde | — |
| entity.name.function.python | #A1A1A1de | — |
| entity.name.label | #EC81B0de | — |
| entity.name.namespace | #909BF0de | — |
| entity.name.operator | #8BB33Ade | — |
| entity.name.operator.custom-literal | #AFAFAFde | — |
| entity.name.scope-resolution | #909BF1de | — |
| entity.name.tag | #0ACE0Ade | — |
| entity.name.tag.css | #0AD90Ade | — |
| entity.name.type | #9AC83Fde | — |
| entity.name.variable | #DDA9F7de | — |
| entity.other.attribute | #48CF48de | — |
| entity.other.attribute-name | #09BD09de | — |
| entity.other.attribute-name.class.css | #EC81B0de | — |
| entity.other.attribute-name.class.mixin.css | #90BC3Ade | — |
| entity.other.attribute-name.id | #CB86EDde | — |
| entity.other.attribute-name.id.css | #CB86EDde | — |
| entity.other.attribute-name.parent-selector.css | #A2A2A2de | — |
| entity.other.attribute-name.pseudo-class.css | #919BF1de | — |
| entity.other.attribute-name.pseudo-element.css | #CB87EEde | — |
| entity.other.attribute-name.scss | #E08D64de | — |
| entity.other.document.begin.yaml | #A1A1A16e | — |
| entity.other.inherited-class | #A1A1A1de | — |
| header | #E29169de | — |
| invalid | #A2A2A2de | — |
| keyword | #7CB40Cde | — |
| keyword.codetag.notation.python | #E08E64de | — |
| keyword.control | #0BCF0Bde | — |
| keyword.control.anchor.regexp | #919CF1de | — |
| keyword.control.import.python | #3ABC3Ade | — |
| keyword.operator | #CA86EDde | — |
| keyword.operator.alignas | #919CF0de | — |
| keyword.operator.alignof | #FB7E40de | — |
| keyword.operator.cast | #3AC43Ade | — |
| keyword.operator.delete | #909BF0de | — |
| keyword.operator.documentation.powershell | #A3A3A36e | — |
| keyword.operator.expression | #A1A1A1de | — |
| keyword.operator.instanceof | #0ABC0Ade | — |
| keyword.operator.logical.python | #EEA987de | — |
| keyword.operator.minus.exponent | #A1A1A1de | — |
| keyword.operator.negation.regexp | #7BB509de | — |
| keyword.operator.new | #7BB20Bde | — |
| keyword.operator.noexcept | #A1A1A1de | — |
| keyword.operator.or.regexp | #A1A1A1de | — |
| keyword.operator.plus.exponent | #87AE39de | — |
| keyword.operator.quantifier.regexp | #919CF1de | — |
| keyword.operator.sizeof | #0ACE0Ade | — |
| keyword.operator.typeid | #919CF0de | — |
| keyword.operator.wordlike | #CB86EDde | — |
| keyword.other.operator | #3ABC3Ade | — |
| keyword.other.package.java | #7BB509de | — |
| keyword.other.unit | #A1A1A1de | — |
| keyword.other.using | #919BF1de | — |
| markup.bold | #CC87EEde | — |
| markup.changed | #909BF0de | — |
| markup.deleted | #A2A2A2de | — |
| markup.fenced_code.block.markdown | #0BCE0Bde | — |
| markup.heading | #A2A2A2de | — |
| markup.inline.raw | #919CF1de | — |
| markup.inserted | #AFAFAFde | — |
| markup.italic | #EB7EAFde | — |
| markup.raw.block.markdown | #EB7FB0de | — |
| markup.strikethrough | #7AB20Dde | — |
| markup.underline | #CB85EEde | — |
| meta.block.c | #AFAFAFde | — |
| meta.block.c | #0ADC0Ade | — |
| meta.class.java | #DF8D63de | — |
| meta.definition.variable.name | #48CF48de | — |
| meta.diff.header | #53D653de | — |
| meta.embedded | #919CF1de | — |
| meta.embedded.assembly | #0ADC0Ade | — |
| meta.function-call.arguments.python | #A1A1A1de | — |
| meta.function-call.python | #0ABC0Ade | — |
| meta.member.access.python | #FB7F43de | — |
| meta.method.java | #CB86EDde | — |
| meta.object-literal.key | #7BB30Bde | — |
| meta.paragraph.markdown | #EB7EAEde | — |
| meta.preprocessor | #0ADC0Ade | — |
| meta.preprocessor.numeric | #E08E64de | — |
| meta.preprocessor.string | #919CF1de | — |
| meta.scope.prerequisites.makefile | #CB86EDde | — |
| meta.structure.dictionary.json.comments | #A3A3A36e | — |
| meta.structure.dictionary.key.python | #EB7FAFde | — |
| meta.structure.dictionary.value.json.comments | #A3A3A36e | — |
| meta.template.expression | #E08D64de | — |
| meta.type.cast.expr | #CB86EDde | — |
| meta.type.new.expr | #7CB50Bde | — |
| parameter | #909BF1de | — |
| punctuation.character.set.begin.regexp | #EB7EAFde | — |
| punctuation.character.set.end.regexp | #EB7EAFde | — |
| punctuation.definition.array.begin.json | #7BB30Bde | — |
| punctuation.definition.character-class.regexp | #A1A1A1de | — |
| punctuation.definition.comment | #A2A2A26e | — |
| punctuation.definition.comment.json.comments | #A3A3A36e | — |
| punctuation.definition.comment.python | #A2A2A26e | — |
| punctuation.definition.dictionary.begin.json | #A1A1A1de | — |
| punctuation.definition.dictionary.end.json | #CB86EDde | — |
| punctuation.definition.group.assertion.regexp | #7BB20Bde | — |
| punctuation.definition.group.regexp | #E79B74de | — |
| punctuation.definition.list.begin.json | #909BF0de | — |
| punctuation.definition.list.begin.markdown | #EB7EAEde | — |
| punctuation.definition.list.begin.python | #AFAFAFde | — |
| punctuation.definition.list.end.json | #919CF0de | — |
| punctuation.definition.list.end.markdown | #E08D64de | — |
| punctuation.definition.list.end.python | #909BF1de | — |
| punctuation.definition.parameters.begin.python | #7CB40Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #E08D64de | — |
| punctuation.definition.quote.begin.markdown | #87AE39de | — |
| punctuation.definition.tag | #919CF1de | — |
| punctuation.definition.template-expression.begin | #919BF1de | — |
| punctuation.definition.template-expression.end | #DF8D63de | — |
| punctuation.section.class.begin.bracket.curly.java | #A2A2A2de | — |
| punctuation.section.embedded | #A1A1A1de | — |
| punctuation.section.embedded.begin.php | #EB7EAEde | — |
| punctuation.section.embedded.end.php | #919CF1de | — |
| punctuation.terminator.java | #09BD09de | — |
| source.cmake | #9AC83Fde | — |
| source.coffee.embedded | #DF8D63de | — |
| source.cpp | #E08D64de | — |
| source.css.less | #7BB20Dde | — |
| source.groovy.embedded | #A1A1A1de | — |
| source.java | #DF8D64de | — |
| source.java-properties | #A2A2A2de | — |
| source.json.comments | #A2A2A26e | — |
| source.makefile | #EC81B0de | — |
| source.powershell | #CC87EEde | — |
| source.powershell.variable.other.member | #919CF0de | — |
| source.python | #DF8D63de | — |
| storage | #A1A1A1de | — |
| storage.modifier | #EC81B0de | — |
| storage.modifier.import.java | #96C43Ade | — |
| storage.modifier.package.java | #909BF1de | — |
| storage.type | #CB86EDde | — |
| storage.type.annotation.groovy | #0BCF0Bde | — |
| storage.type.annotation.java | #09BD09de | — |
| storage.type.boolean.go | #CB86EDde | — |
| storage.type.byte.go | #A1A1A1de | — |
| storage.type.cs | #EC81B0de | — |
| storage.type.error.go | #919CF1de | — |
| storage.type.generic.cs | #87AE39de | — |
| storage.type.generic.groovy | #D69BF4de | — |
| storage.type.generic.java | #7BB30Bde | — |
| storage.type.groovy | #E99F7Ade | — |
| storage.type.java | #CB87EEde | — |
| storage.type.modifier.cs | #89B039de | — |
| storage.type.numeric.go | #FB7F41de | — |
| storage.type.object.array.groovy | #7BB509de | — |
| storage.type.object.array.java | #EB7EAFde | — |
| storage.type.parameters.groovy | #96C43Ade | — |
| storage.type.primitive.array.groovy | #A1A1A1de | — |
| storage.type.primitive.array.java | #E08D64de | — |
| storage.type.primitive.groovy | #7CB40Cde | — |
| storage.type.primitive.java | #CB86EDde | — |
| storage.type.rune.go | #FB7E40de | — |
| storage.type.string.go | #A6A6A6de | — |
| storage.type.token.java | #0BCF0Bde | — |
| storage.type.uintptr.go | #A1A1A1de | — |
| storage.type.variable.cs | #A1A1A1de | — |
| string | #58D958de | — |
| string.quoted.docstring.multi.python | #A1A1A16e | — |
| string.regexp | #E08D63de | — |
| string.tag | #58D958de | — |
| string.value | #9ECC43de | — |
| strong | #E08D64de | — |
| support.class | #909BF1de | — |
| support.constant.color | #B7B7B7de | — |
| support.constant.dom | #CA86EDde | — |
| support.constant.font-name | #919CF1de | — |
| support.constant.handlebars | #A2CF48de | — |
| support.constant.json | #CB86EDde | — |
| support.constant.math | #3AC43Ade | — |
| support.constant.media | #ECA481de | — |
| support.constant.media-type | #7BB20Cde | — |
| support.constant.property-value | #A1A1A1de | — |
| support.function | #EB7FAFde | — |
| support.function.git-rebase | #D9A2F5de | — |
| support.other.parenthesis.regexp | #CC87EEde | — |
| support.type | #919BF1de | — |
| support.type.property-name | #EB7EAEde | — |
| support.type.vendored.property-name | #CC87EEde | — |
| support.variable | #EB7EAFde | — |
| token.debug-token | #EB7EAEde | — |
| token.error-token | #7BB20Dde | — |
| token.info-token | #CB86EDde | — |
| token.warn-token | #CC87EEde | — |
| variable | #A2A2A2de | — |
| variable.css | #919BF1de | — |
| variable.language | #EB7EAEde | — |
| variable.language.wildcard.java | #4DD34Dde | — |
| variable.other.constant | #EC81B0de | — |
| variable.other.definition.java | #89B039de | — |
| variable.other.enummember | #DF8D63de | — |
| variable.other.less | #7CB40Cde | — |
| variable.other.object.java | #EB7EAEde | — |
| variable.other.object.property.java | #DF8D64de | — |
| variable.parameter.c | #DDA9F7de | — |
| variable.parameter.function.language.python | #CC87EEde | — |
| variable.parameter.java | #909BF1de | — |
| variable.scss | #EB7EAFde | — |
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}!`;
}