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 | #B4A3F96e | — |
| comment.block.html | #CCC0FE6e | — |
| comment.block.java | #CBC2FD6e | — |
| comment.block.javadoc.java | #BBABFA6e | — |
| comment.block.powershell | #CBC2FD6e | — |
| comment.block.xml | #C4B8FD6e | — |
| comment.line.double-slash.c | #C8BCFD6e | — |
| comment.line.double-slash.cpp | #B1A4FA6e | — |
| comment.line.double-slash.java | #B4A3F96e | — |
| comment.line.double-slash.js | #CFC5FE6e | — |
| comment.line.number-sign.makefile | #D1C4FE6e | — |
| comment.line.number-sign.python | #BAABFC6e | — |
| comment.line.number-sign.yaml | #C9BCFC6e | — |
| comment.line.percentage.erlang | #BDAFFC6e | — |
| comment.line.powershell | #BFAEFC6e | — |
| comment.source.cmake | #B4A9FA6e | — |
| comment.source.cmakecache | #CFC5FE6e | — |
| constant.character | #0ACA0Ade | — |
| constant.character.character-class.regexp | #C1CE41de | — |
| constant.character.escape | #CDA4F6de | — |
| constant.character.set.regexp | #A8B538de | — |
| constant.language | #B4C60Bde | — |
| constant.numeric | #F08DC9de | — |
| constant.numeric.dec.python | #5CDD5Cde | — |
| constant.other.caps.python | #F4AE9Cde | — |
| constant.other.character-class.regexp | #AFBEF8de | — |
| constant.other.character-class.set.regexp | #0BC39Ede | — |
| constant.other.color.rgb-value | #D9B9F9de | — |
| constant.other.placeholder | #0BC9A3de | — |
| constant.other.rgb-value | #B4C2F9de | — |
| constant.regexp | #F3AA97de | — |
| constant.sha.git-rebase | #BFCD41de | — |
| emphasis | #EE9B86de | — |
| entity.name.class | #C99DF4de | — |
| entity.name.function | #EE9B86de | — |
| entity.name.function.preprocessor | #C0D40Ade | — |
| entity.name.function.python | #B7C538de | — |
| entity.name.label | #F5B2A1de | — |
| entity.name.namespace | #B1BFF8de | — |
| entity.name.operator | #EE9984de | — |
| entity.name.operator.custom-literal | #C1CF44de | — |
| entity.name.scope-resolution | #B7C538de | — |
| entity.name.tag | #C79AF4de | — |
| entity.name.tag.css | #BCD00Bde | — |
| entity.name.type | #F08DC9de | — |
| entity.name.variable | #F6A3D4de | — |
| entity.other.attribute | #F396CEde | — |
| entity.other.attribute-name | #44D044de | — |
| entity.other.attribute-name.class.css | #9AACF4de | — |
| entity.other.attribute-name.class.mixin.css | #56DAC0de | — |
| entity.other.attribute-name.id | #48D2B7de | — |
| entity.other.attribute-name.id.css | #F08BC7de | — |
| entity.other.attribute-name.parent-selector.css | #CFA7F7de | — |
| entity.other.attribute-name.pseudo-class.css | #0AE10Ade | — |
| entity.other.attribute-name.pseudo-element.css | #9AACF4de | — |
| entity.other.attribute-name.scss | #0AE10Ade | — |
| entity.other.document.begin.yaml | #C4B8FD6e | — |
| entity.other.inherited-class | #67E367de | — |
| header | #D6B2F9de | — |
| invalid | #09C9A4de | — |
| keyword | #9AACF4de | — |
| keyword.codetag.notation.python | #09CDA8de | — |
| keyword.control | #F3A996de | — |
| keyword.control.anchor.regexp | #A8B437de | — |
| keyword.control.import.python | #D6B4F9de | — |
| keyword.operator | #EC9681de | — |
| keyword.operator.alignas | #F295CDde | — |
| keyword.operator.alignof | #0AC49Ede | — |
| keyword.operator.cast | #62E0C7de | — |
| keyword.operator.delete | #C79AF4de | — |
| keyword.operator.documentation.powershell | #B6A7FB6e | — |
| keyword.operator.expression | #38C7AAde | — |
| keyword.operator.instanceof | #62E0C7de | — |
| keyword.operator.logical.python | #D1ABF7de | — |
| keyword.operator.minus.exponent | #4CD44Cde | — |
| keyword.operator.negation.regexp | #CDA4F6de | — |
| keyword.operator.new | #FAB9E0de | — |
| keyword.operator.noexcept | #09E1B8de | — |
| keyword.operator.or.regexp | #0BD60Bde | — |
| keyword.operator.plus.exponent | #0BD8B0de | — |
| keyword.operator.quantifier.regexp | #F5A1D4de | — |
| keyword.operator.sizeof | #A7B7F7de | — |
| keyword.operator.typeid | #09E909de | — |
| keyword.operator.wordlike | #F08CC8de | — |
| keyword.other.operator | #F6B7A6de | — |
| keyword.other.package.java | #F9B8DFde | — |
| keyword.other.unit | #9AACF4de | — |
| keyword.other.using | #B7CB0Bde | — |
| markup.bold | #38C538de | — |
| markup.changed | #B5C3F9de | — |
| markup.deleted | #EF9E89de | — |
| markup.fenced_code.block.markdown | #0AE00Ade | — |
| markup.heading | #A9B8F7de | — |
| markup.inline.raw | #0AD40Ade | — |
| markup.inserted | #99ABF3de | — |
| markup.italic | #F5A1D3de | — |
| markup.raw.block.markdown | #F49CD1de | — |
| markup.strikethrough | #F4AC9Ade | — |
| markup.underline | #EE9B86de | — |
| meta.block.c | #5CDD5Cde | — |
| meta.block.c | #9BADF3de | — |
| meta.class.java | #F49DD2de | — |
| meta.definition.variable.name | #F294CCde | — |
| meta.diff.header | #5CDD5Cde | — |
| meta.embedded | #37C1A6de | — |
| meta.embedded.assembly | #A6B70Cde | — |
| meta.function-call.arguments.python | #B0BD38de | — |
| meta.function-call.python | #F6B3A2de | — |
| meta.member.access.python | #9AACF4de | — |
| meta.method.java | #F2A794de | — |
| meta.object-literal.key | #B1BFF8de | — |
| meta.paragraph.markdown | #0ACEA6de | — |
| meta.preprocessor | #F190CAde | — |
| meta.preprocessor.numeric | #67E367de | — |
| meta.preprocessor.string | #A1B2F5de | — |
| meta.scope.prerequisites.makefile | #ACBBF7de | — |
| meta.structure.dictionary.json.comments | #CFC5FE6e | — |
| meta.structure.dictionary.key.python | #F7B7A7de | — |
| meta.structure.dictionary.value.json.comments | #C2B4FB6e | — |
| meta.template.expression | #F2A794de | — |
| meta.type.cast.expr | #0AD70Ade | — |
| meta.type.new.expr | #AABAF7de | — |
| parameter | #52D9BEde | — |
| punctuation.character.set.begin.regexp | #F3AA98de | — |
| punctuation.character.set.end.regexp | #C799F3de | — |
| punctuation.definition.array.begin.json | #9CAEF4de | — |
| punctuation.definition.character-class.regexp | #B5C3F9de | — |
| punctuation.definition.comment | #CDBFFD6e | — |
| punctuation.definition.comment.json.comments | #C9BCFC6e | — |
| punctuation.definition.comment.python | #CCC0FE6e | — |
| punctuation.definition.dictionary.begin.json | #CBA1F5de | — |
| punctuation.definition.dictionary.end.json | #3DC93Dde | — |
| punctuation.definition.group.assertion.regexp | #CAA0F5de | — |
| punctuation.definition.group.regexp | #ACBE0Cde | — |
| punctuation.definition.list.begin.json | #C6D44Cde | — |
| punctuation.definition.list.begin.markdown | #47D047de | — |
| punctuation.definition.list.begin.python | #EC9680de | — |
| punctuation.definition.list.end.json | #9EB0F5de | — |
| punctuation.definition.list.end.markdown | #62E0C7de | — |
| punctuation.definition.list.end.python | #F190CBde | — |
| punctuation.definition.parameters.begin.python | #F2A591de | — |
| punctuation.definition.parameters.end.bracket.round.java | #62E0C7de | — |
| punctuation.definition.quote.begin.markdown | #0AD8AFde | — |
| punctuation.definition.tag | #0BCCA5de | — |
| punctuation.definition.template-expression.begin | #F5A1D4de | — |
| punctuation.definition.template-expression.end | #ADBA37de | — |
| punctuation.section.class.begin.bracket.curly.java | #F5A1D4de | — |
| punctuation.section.embedded | #B9C739de | — |
| punctuation.section.embedded.begin.php | #ED9782de | — |
| punctuation.section.embedded.end.php | #F08DC9de | — |
| punctuation.terminator.java | #A8B538de | — |
| source.cmake | #62E062de | — |
| source.coffee.embedded | #38C5A9de | — |
| source.cpp | #4CD44Cde | — |
| source.css.less | #B8C6FAde | — |
| source.groovy.embedded | #0ADCB1de | — |
| source.java | #6DE56Dde | — |
| source.java-properties | #F4AC9Ade | — |
| source.json.comments | #C6B7FC6e | — |
| source.makefile | #43CFB2de | — |
| source.powershell | #C79AF4de | — |
| source.powershell.variable.other.member | #0BD2ABde | — |
| source.python | #3BC93Bde | — |
| storage | #B7C4F9de | — |
| storage.modifier | #F08DC8de | — |
| storage.modifier.import.java | #C99EF4de | — |
| storage.modifier.package.java | #F1A28Ede | — |
| storage.type | #DDC0FBde | — |
| storage.type.annotation.groovy | #50D6BCde | — |
| storage.type.annotation.java | #F18ECAde | — |
| storage.type.boolean.go | #F7ABD9de | — |
| storage.type.byte.go | #D3ADF8de | — |
| storage.type.cs | #3DCAAEde | — |
| storage.type.error.go | #4CD4B9de | — |
| storage.type.generic.cs | #F8BCADde | — |
| storage.type.generic.groovy | #41CDB1de | — |
| storage.type.generic.java | #3CCB3Cde | — |
| storage.type.groovy | #5ADD5Ade | — |
| storage.type.java | #96A9F3de | — |
| storage.type.modifier.cs | #ED9882de | — |
| storage.type.numeric.go | #BECC3Ede | — |
| storage.type.object.array.groovy | #0ADE0Ade | — |
| storage.type.object.array.java | #0ADD0Ade | — |
| storage.type.parameters.groovy | #BECAFAde | — |
| storage.type.primitive.array.groovy | #F396CDde | — |
| storage.type.primitive.array.java | #41CDB1de | — |
| storage.type.primitive.groovy | #EC9680de | — |
| storage.type.primitive.java | #99AAF3de | — |
| storage.type.rune.go | #F5A1D4de | — |
| storage.type.string.go | #0ADCB1de | — |
| storage.type.token.java | #09E109de | — |
| storage.type.uintptr.go | #51D751de | — |
| storage.type.variable.cs | #F190CAde | — |
| string | #4CD44Cde | — |
| string.quoted.docstring.multi.python | #C2B4FB6e | — |
| string.regexp | #CA9FF5de | — |
| string.tag | #F18FCAde | — |
| string.value | #6DE56Dde | — |
| strong | #F08DC8de | — |
| support.class | #F6A4D6de | — |
| support.constant.color | #BCD00Bde | — |
| support.constant.dom | #A4B5F6de | — |
| support.constant.font-name | #CEA6F6de | — |
| support.constant.handlebars | #BFCD41de | — |
| support.constant.json | #4ED64Ede | — |
| support.constant.math | #F2A794de | — |
| support.constant.media | #DCBEFAde | — |
| support.constant.media-type | #F49AD0de | — |
| support.constant.property-value | #F3AB98de | — |
| support.function | #F6B5A5de | — |
| support.function.git-rebase | #B7C538de | — |
| support.other.parenthesis.regexp | #D9B8FAde | — |
| support.type | #B2C509de | — |
| support.type.property-name | #F294CCde | — |
| support.type.vendored.property-name | #C79BF4de | — |
| support.variable | #F8BFB0de | — |
| token.debug-token | #F7A7D7de | — |
| token.error-token | #F294CCde | — |
| token.info-token | #F396CDde | — |
| token.warn-token | #56DAC0de | — |
| variable | #CCA3F6de | — |
| variable.css | #38C5A9de | — |
| variable.language | #EE9B86de | — |
| variable.language.wildcard.java | #51D7BCde | — |
| variable.other.constant | #F7A6D7de | — |
| variable.other.definition.java | #62E062de | — |
| variable.other.enummember | #EC9680de | — |
| variable.other.less | #EF9F8Ade | — |
| variable.other.object.java | #A0B1F5de | — |
| variable.other.object.property.java | #62E0C7de | — |
| variable.parameter.c | #F09F8Bde | — |
| variable.parameter.function.language.python | #F6A4D5de | — |
| variable.parameter.java | #0BCCA5de | — |
| variable.scss | #C89DF4de | — |
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}!`;
}