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 | #C5C5356e | — |
| comment.block.html | #B6B6326e | — |
| comment.block.java | #C9C9366e | — |
| comment.block.javadoc.java | #B1B1336e | — |
| comment.block.powershell | #BABA336e | — |
| comment.block.xml | #BFBF336e | — |
| comment.line.double-slash.c | #C5C5366e | — |
| comment.line.double-slash.cpp | #BFBF336e | — |
| comment.line.double-slash.java | #BFBF336e | — |
| comment.line.double-slash.js | #B5B5336e | — |
| comment.line.number-sign.makefile | #B5B5336e | — |
| comment.line.number-sign.python | #ADAD366e | — |
| comment.line.number-sign.yaml | #BBBB356e | — |
| comment.line.percentage.erlang | #C4C4326e | — |
| comment.line.powershell | #C8C8336e | — |
| comment.source.cmake | #ADAD366e | — |
| comment.source.cmakecache | #B6B6326e | — |
| constant.character | #C7A229de | — |
| constant.character.character-class.regexp | #F9A8F0de | — |
| constant.character.escape | #F696A2de | — |
| constant.character.set.regexp | #F58F9Bde | — |
| constant.language | #D5A508de | — |
| constant.numeric | #2CD67Cde | — |
| constant.numeric.dec.python | #D6AE2Cde | — |
| constant.other.caps.python | #F799ECde | — |
| constant.other.character-class.regexp | #59B1E6de | — |
| constant.other.character-class.set.regexp | #82C8F2de | — |
| constant.other.color.rgb-value | #F693EBde | — |
| constant.other.placeholder | #B7A3F8de | — |
| constant.other.rgb-value | #6DBCECde | — |
| constant.regexp | #6FDA34de | — |
| constant.sha.git-rebase | #D09F06de | — |
| emphasis | #29BF70de | — |
| entity.name.class | #07C661de | — |
| entity.name.function | #D9B132de | — |
| entity.name.function.preprocessor | #FAADB6de | — |
| entity.name.function.python | #74C0EEde | — |
| entity.name.label | #BCA9F9de | — |
| entity.name.namespace | #F89EEDde | — |
| entity.name.operator | #74C0EEde | — |
| entity.name.operator.custom-literal | #C7A229de | — |
| entity.name.scope-resolution | #47B9FCde | — |
| entity.name.tag | #DBB538de | — |
| entity.name.tag.css | #F58F9Bde | — |
| entity.name.type | #07DA6Bde | — |
| entity.name.variable | #C7A229de | — |
| entity.other.attribute | #60B5E8de | — |
| entity.other.attribute-name | #64D02Ade | — |
| entity.other.attribute-name.class.css | #42B6FCde | — |
| entity.other.attribute-name.class.mixin.css | #7ECEFEde | — |
| entity.other.attribute-name.id | #F695A0de | — |
| entity.other.attribute-name.id.css | #32AFFBde | — |
| entity.other.attribute-name.parent-selector.css | #80C7F1de | — |
| entity.other.attribute-name.pseudo-class.css | #54E107de | — |
| entity.other.attribute-name.pseudo-element.css | #EAB407de | — |
| entity.other.attribute-name.scss | #B49FF8de | — |
| entity.other.document.begin.yaml | #CCCC346e | — |
| entity.other.inherited-class | #F382E5de | — |
| header | #F48B98de | — |
| invalid | #50D507de | — |
| keyword | #F8A1ABde | — |
| keyword.codetag.notation.python | #F488E7de | — |
| keyword.control | #D0A92Ade | — |
| keyword.control.anchor.regexp | #08E36Fde | — |
| keyword.control.import.python | #D4A308de | — |
| keyword.operator | #B49FF8de | — |
| keyword.operator.alignas | #F38794de | — |
| keyword.operator.alignof | #D0A92Ade | — |
| keyword.operator.cast | #51D807de | — |
| keyword.operator.delete | #F798EBde | — |
| keyword.operator.documentation.powershell | #ADAD356e | — |
| keyword.operator.expression | #EDB607de | — |
| keyword.operator.instanceof | #F79BA6de | — |
| keyword.operator.logical.python | #BEACFAde | — |
| keyword.operator.minus.exponent | #51DA08de | — |
| keyword.operator.negation.regexp | #DCA907de | — |
| keyword.operator.new | #09C361de | — |
| keyword.operator.noexcept | #66B9EAde | — |
| keyword.operator.or.regexp | #8DCEF4de | — |
| keyword.operator.plus.exponent | #F5909Cde | — |
| keyword.operator.quantifier.regexp | #06E06Cde | — |
| keyword.operator.sizeof | #41DF8Cde | — |
| keyword.operator.typeid | #F38794de | — |
| keyword.operator.wordlike | #29BF70de | — |
| keyword.other.operator | #75DD3Cde | — |
| keyword.other.package.java | #B09AF7de | — |
| keyword.other.unit | #07DE6Bde | — |
| keyword.other.using | #C6B6FBde | — |
| markup.bold | #88CBF3de | — |
| markup.changed | #51D906de | — |
| markup.deleted | #F89FEDde | — |
| markup.fenced_code.block.markdown | #3EDE89de | — |
| markup.heading | #F9A5AFde | — |
| markup.inline.raw | #4ACC06de | — |
| markup.inserted | #F696EBde | — |
| markup.italic | #61B6E9de | — |
| markup.raw.block.markdown | #72C9FEde | — |
| markup.strikethrough | #73CAFEde | — |
| markup.underline | #61C729de | — |
| meta.block.c | #BEACFAde | — |
| meta.block.c | #6DBCECde | — |
| meta.class.java | #B6A1F8de | — |
| meta.definition.variable.name | #F58FE9de | — |
| meta.diff.header | #BAA7F9de | — |
| meta.embedded | #FAB2BAde | — |
| meta.embedded.assembly | #B9A6F9de | — |
| meta.function-call.arguments.python | #F8A2ADde | — |
| meta.function-call.python | #3EDE89de | — |
| meta.member.access.python | #79C3F0de | — |
| meta.method.java | #D6AE2Cde | — |
| meta.object-literal.key | #2AD078de | — |
| meta.paragraph.markdown | #F79CA6de | — |
| meta.preprocessor | #63B7E9de | — |
| meta.preprocessor.numeric | #72DB38de | — |
| meta.preprocessor.string | #4CCB08de | — |
| meta.scope.prerequisites.makefile | #72DB38de | — |
| meta.structure.dictionary.json.comments | #B7B7356e | — |
| meta.structure.dictionary.key.python | #E1AD08de | — |
| meta.structure.dictionary.value.json.comments | #C8C8336e | — |
| meta.template.expression | #FAACF1de | — |
| meta.type.cast.expr | #FAADB7de | — |
| meta.type.new.expr | #07E06Ede | — |
| parameter | #D0A92Ade | — |
| punctuation.character.set.begin.regexp | #09C661de | — |
| punctuation.character.set.end.regexp | #F9ABB4de | — |
| punctuation.definition.array.begin.json | #B09AF7de | — |
| punctuation.definition.character-class.regexp | #F89EEDde | — |
| punctuation.definition.comment | #B6B6326e | — |
| punctuation.definition.comment.json.comments | #ADAD356e | — |
| punctuation.definition.comment.python | #BABA336e | — |
| punctuation.definition.dictionary.begin.json | #6DBCECde | — |
| punctuation.definition.dictionary.end.json | #BAA6F9de | — |
| punctuation.definition.group.assertion.regexp | #AF99F7de | — |
| punctuation.definition.group.regexp | #F384E6de | — |
| punctuation.definition.list.begin.json | #07D166de | — |
| punctuation.definition.list.begin.markdown | #2DD77Dde | — |
| punctuation.definition.list.begin.python | #5DBC29de | — |
| punctuation.definition.list.end.json | #06D868de | — |
| punctuation.definition.list.end.markdown | #59B1E6de | — |
| punctuation.definition.list.end.python | #F3BC07de | — |
| punctuation.definition.parameters.begin.python | #DAA907de | — |
| punctuation.definition.parameters.end.bracket.round.java | #7BC4F0de | — |
| punctuation.definition.quote.begin.markdown | #7EC6F0de | — |
| punctuation.definition.tag | #66B9EAde | — |
| punctuation.definition.template-expression.begin | #65B8E9de | — |
| punctuation.definition.template-expression.end | #48BE09de | — |
| punctuation.section.class.begin.bracket.curly.java | #F9A5EFde | — |
| punctuation.section.embedded | #4AC308de | — |
| punctuation.section.embedded.begin.php | #BDABF9de | — |
| punctuation.section.embedded.end.php | #DAB233de | — |
| punctuation.terminator.java | #85C9F2de | — |
| source.cmake | #F79DA8de | — |
| source.coffee.embedded | #6DD932de | — |
| source.cpp | #DAB335de | — |
| source.css.less | #74C0EEde | — |
| source.groovy.embedded | #7AC4F0de | — |
| source.java | #64D02Ade | — |
| source.java-properties | #E5C251de | — |
| source.json.comments | #CCCC386e | — |
| source.makefile | #F8A3ADde | — |
| source.powershell | #CCBDFCde | — |
| source.powershell.variable.other.member | #F58D99de | — |
| source.python | #F283E5de | — |
| storage | #DBB538de | — |
| storage.modifier | #D4A206de | — |
| storage.modifier.import.java | #6DBCECde | — |
| storage.modifier.package.java | #39DC86de | — |
| storage.type | #F697ECde | — |
| storage.type.annotation.groovy | #AF9AF7de | — |
| storage.type.annotation.java | #2AD078de | — |
| storage.type.boolean.go | #06CC62de | — |
| storage.type.byte.go | #BFACFAde | — |
| storage.type.cs | #C1AFFAde | — |
| storage.type.error.go | #52DD08de | — |
| storage.type.generic.cs | #DEB83Ede | — |
| storage.type.generic.groovy | #4FD408de | — |
| storage.type.generic.java | #FAB0B9de | — |
| storage.type.groovy | #07DF6Cde | — |
| storage.type.java | #F5909Cde | — |
| storage.type.modifier.cs | #CBBCFBde | — |
| storage.type.numeric.go | #F696A2de | — |
| storage.type.object.array.groovy | #F9A9B2de | — |
| storage.type.object.array.java | #BAA7F9de | — |
| storage.type.parameters.groovy | #73C0EEde | — |
| storage.type.primitive.array.groovy | #F8A3ADde | — |
| storage.type.primitive.array.java | #D0A208de | — |
| storage.type.primitive.groovy | #F9A5EFde | — |
| storage.type.primitive.java | #29C774de | — |
| storage.type.rune.go | #FAAEB7de | — |
| storage.type.string.go | #D4A306de | — |
| storage.type.token.java | #F6949Fde | — |
| storage.type.uintptr.go | #F283E5de | — |
| storage.type.variable.cs | #07D768de | — |
| string | #C5B5FBde | — |
| string.quoted.docstring.multi.python | #BBBB366e | — |
| string.regexp | #5FB4E8de | — |
| string.tag | #C0AFFAde | — |
| string.value | #4ECD07de | — |
| strong | #F79CEDde | — |
| support.class | #F58EE9de | — |
| support.constant.color | #E3BF4Bde | — |
| support.constant.dom | #B6A2F8de | — |
| support.constant.font-name | #50D307de | — |
| support.constant.handlebars | #D2A307de | — |
| support.constant.json | #C1AFFAde | — |
| support.constant.math | #F9A6B0de | — |
| support.constant.media | #E3C04Bde | — |
| support.constant.media-type | #85CAF2de | — |
| support.constant.property-value | #88CBF3de | — |
| support.function | #F9A9B3de | — |
| support.function.git-rebase | #F17BE3de | — |
| support.other.parenthesis.regexp | #F79CA7de | — |
| support.type | #30D880de | — |
| support.type.property-name | #F38692de | — |
| support.type.vendored.property-name | #59B1E6de | — |
| support.variable | #E3AE07de | — |
| token.debug-token | #DAB333de | — |
| token.error-token | #F695A0de | — |
| token.info-token | #F48894de | — |
| token.warn-token | #48BE09de | — |
| variable | #CABAFBde | — |
| variable.css | #81C7F1de | — |
| variable.language | #F0BA07de | — |
| variable.language.wildcard.java | #F695A0de | — |
| variable.other.constant | #72DB38de | — |
| variable.other.definition.java | #4CC809de | — |
| variable.other.enummember | #F17FE4de | — |
| variable.other.less | #32D981de | — |
| variable.other.object.java | #B19CF7de | — |
| variable.other.object.property.java | #2CD67Cde | — |
| variable.parameter.c | #F27CE4de | — |
| variable.parameter.function.language.python | #08CD65de | — |
| variable.parameter.java | #07D868de | — |
| variable.scss | #F79AECde | — |
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}!`;
}