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 | #CAD4FE6e | — |
| comment.block.html | #C3D2FD6e | — |
| comment.block.java | #ACBCFB6e | — |
| comment.block.javadoc.java | #B5CDFD6e | — |
| comment.block.powershell | #9CBBF96e | — |
| comment.block.xml | #C1D5FC6e | — |
| comment.line.double-slash.c | #ABC5F96e | — |
| comment.line.double-slash.cpp | #ACBCFB6e | — |
| comment.line.double-slash.java | #C6D9FE6e | — |
| comment.line.double-slash.js | #C6D1FD6e | — |
| comment.line.number-sign.makefile | #CFD8FE6e | — |
| comment.line.number-sign.python | #B8CFFB6e | — |
| comment.line.number-sign.yaml | #B9D0FD6e | — |
| comment.line.percentage.erlang | #AABEFA6e | — |
| comment.line.powershell | #C5D8FD6e | — |
| comment.source.cmake | #BDD2FC6e | — |
| comment.source.cmakecache | #AABEFA6e | — |
| constant.character | #9AE880de | — |
| constant.character.character-class.regexp | #89ECBBde | — |
| constant.character.escape | #7FD862de | — |
| constant.character.set.regexp | #DBD0FCde | — |
| constant.language | #67DBA1de | — |
| constant.numeric | #F8B7E8de | — |
| constant.numeric.dec.python | #76D158de | — |
| constant.other.caps.python | #0CD570de | — |
| constant.other.character-class.regexp | #76D158de | — |
| constant.other.character-class.set.regexp | #94C2EFde | — |
| constant.other.color.rgb-value | #FBC5C5de | — |
| constant.other.placeholder | #F9BCEAde | — |
| constant.other.rgb-value | #D3C6FBde | — |
| constant.regexp | #89DF6Cde | — |
| constant.sha.git-rebase | #9BE981de | — |
| emphasis | #FBC7EEde | — |
| entity.name.class | #E7CD7Dde | — |
| entity.name.function | #E1C672de | — |
| entity.name.function.preprocessor | #B5D7F8de | — |
| entity.name.function.python | #C1AFF7de | — |
| entity.name.label | #62F831de | — |
| entity.name.namespace | #62D89Dde | — |
| entity.name.operator | #C8B8F9de | — |
| entity.name.operator.custom-literal | #D4C6FBde | — |
| entity.name.scope-resolution | #F7AFAFde | — |
| entity.name.tag | #93E577de | — |
| entity.name.tag.css | #76E4ADde | — |
| entity.name.type | #99E87Fde | — |
| entity.name.variable | #AACFF6de | — |
| entity.other.attribute | #F7AFE5de | — |
| entity.other.attribute-name | #78D259de | — |
| entity.other.attribute-name.class.css | #A7CEF5de | — |
| entity.other.attribute-name.class.mixin.css | #67DBA1de | — |
| entity.other.attribute-name.id | #78E4AEde | — |
| entity.other.attribute-name.id.css | #F7B0B0de | — |
| entity.other.attribute-name.parent-selector.css | #D1C3FAde | — |
| entity.other.attribute-name.pseudo-class.css | #BFADF6de | — |
| entity.other.attribute-name.pseudo-element.css | #9BE981de | — |
| entity.other.attribute-name.scss | #D0C1FAde | — |
| entity.other.document.begin.yaml | #A2B7F86e | — |
| entity.other.inherited-class | #76D158de | — |
| header | #E4C978de | — |
| invalid | #F9B9E9de | — |
| keyword | #40E50Ade | — |
| keyword.codetag.notation.python | #F6ADADde | — |
| keyword.control | #0BDE74de | — |
| keyword.control.anchor.regexp | #F4A2DFde | — |
| keyword.control.import.python | #F8B7E8de | — |
| keyword.operator | #F5A9E2de | — |
| keyword.operator.alignas | #0ADD75de | — |
| keyword.operator.alignof | #A0EC88de | — |
| keyword.operator.cast | #0AE779de | — |
| keyword.operator.delete | #F5A6A6de | — |
| keyword.operator.documentation.powershell | #A2B7F86e | — |
| keyword.operator.expression | #BAD9F9de | — |
| keyword.operator.instanceof | #F6A9A9de | — |
| keyword.operator.logical.python | #D8CCFCde | — |
| keyword.operator.minus.exponent | #FAC3EDde | — |
| keyword.operator.negation.regexp | #E4C775de | — |
| keyword.operator.new | #F9BAEAde | — |
| keyword.operator.noexcept | #F9B8B8de | — |
| keyword.operator.or.regexp | #98E77Dde | — |
| keyword.operator.plus.exponent | #60D79Bde | — |
| keyword.operator.quantifier.regexp | #95E67Bde | — |
| keyword.operator.sizeof | #53CD90de | — |
| keyword.operator.typeid | #E1C46Fde | — |
| keyword.operator.wordlike | #F6C11Ede | — |
| keyword.other.operator | #8EE272de | — |
| keyword.other.package.java | #B8D9F9de | — |
| keyword.other.unit | #EAD084de | — |
| keyword.other.using | #9BE981de | — |
| markup.bold | #A1CBF4de | — |
| markup.changed | #F4A3E0de | — |
| markup.deleted | #A0CAF3de | — |
| markup.fenced_code.block.markdown | #67DBA1de | — |
| markup.heading | #7FD862de | — |
| markup.inline.raw | #D3C6FBde | — |
| markup.inserted | #6CDFA5de | — |
| markup.italic | #F5A8A8de | — |
| markup.raw.block.markdown | #FBD14Ede | — |
| markup.strikethrough | #88ECBAde | — |
| markup.underline | #F8B5B5de | — |
| meta.block.c | #90E374de | — |
| meta.block.c | #E1C572de | — |
| meta.class.java | #EAD083de | — |
| meta.definition.variable.name | #F6ABABde | — |
| meta.diff.header | #ECD388de | — |
| meta.embedded | #DACFFCde | — |
| meta.embedded.assembly | #30F895de | — |
| meta.function-call.arguments.python | #A3CCF4de | — |
| meta.function-call.python | #DED4FCde | — |
| meta.member.access.python | #F6ADADde | — |
| meta.method.java | #58D194de | — |
| meta.object-literal.key | #D5B75Dde | — |
| meta.paragraph.markdown | #F29EDEde | — |
| meta.preprocessor | #FCCDCDde | — |
| meta.preprocessor.numeric | #F3A2DFde | — |
| meta.preprocessor.string | #D3C5FBde | — |
| meta.scope.prerequisites.makefile | #B8D8F9de | — |
| meta.structure.dictionary.json.comments | #BFCEFC6e | — |
| meta.structure.dictionary.key.python | #C4B2F8de | — |
| meta.structure.dictionary.value.json.comments | #C3D2FD6e | — |
| meta.template.expression | #90BFEEde | — |
| meta.type.cast.expr | #FAC2EDde | — |
| meta.type.new.expr | #F6ADE4de | — |
| parameter | #C1DDFAde | — |
| punctuation.character.set.begin.regexp | #AED2F7de | — |
| punctuation.character.set.end.regexp | #D5B75Dde | — |
| punctuation.definition.array.begin.json | #DFC26Cde | — |
| punctuation.definition.character-class.regexp | #F8B6E8de | — |
| punctuation.definition.comment | #99B9F86e | — |
| punctuation.definition.comment.json.comments | #CAD4FE6e | — |
| punctuation.definition.comment.python | #B8CFFB6e | — |
| punctuation.definition.dictionary.begin.json | #E1C571de | — |
| punctuation.definition.dictionary.end.json | #8AEDBBde | — |
| punctuation.definition.group.assertion.regexp | #D1C4FAde | — |
| punctuation.definition.group.regexp | #84DB67de | — |
| punctuation.definition.list.begin.json | #23F78Dde | — |
| punctuation.definition.list.begin.markdown | #82DA64de | — |
| punctuation.definition.list.begin.python | #92C1EFde | — |
| punctuation.definition.list.end.json | #75D056de | — |
| punctuation.definition.list.end.markdown | #93C1EFde | — |
| punctuation.definition.list.end.python | #8EE272de | — |
| punctuation.definition.parameters.begin.python | #86DD68de | — |
| punctuation.definition.parameters.end.bracket.round.java | #F9BBBBde | — |
| punctuation.definition.quote.begin.markdown | #D1C3FAde | — |
| punctuation.definition.tag | #DCD1FCde | — |
| punctuation.definition.template-expression.begin | #A6CDF5de | — |
| punctuation.definition.template-expression.end | #DDD2FCde | — |
| punctuation.section.class.begin.bracket.curly.java | #C6B5F8de | — |
| punctuation.section.embedded | #E2C672de | — |
| punctuation.section.embedded.begin.php | #94E578de | — |
| punctuation.section.embedded.end.php | #78E4AEde | — |
| punctuation.terminator.java | #FBC5EEde | — |
| source.cmake | #6ADDA3de | — |
| source.coffee.embedded | #FAC3EDde | — |
| source.cpp | #0CF37Fde | — |
| source.css.less | #F29CDDde | — |
| source.groovy.embedded | #B3D5F8de | — |
| source.java | #8EE272de | — |
| source.java-properties | #DDC06Ade | — |
| source.json.comments | #B0BFFB6e | — |
| source.makefile | #DBD0FCde | — |
| source.powershell | #FBC4EDde | — |
| source.powershell.variable.other.member | #D5C9FBde | — |
| source.python | #FBC5C5de | — |
| storage | #F3A2DFde | — |
| storage.modifier | #93E577de | — |
| storage.modifier.import.java | #EFB80Ade | — |
| storage.modifier.package.java | #8BBCECde | — |
| storage.type | #EED790de | — |
| storage.type.annotation.groovy | #58D194de | — |
| storage.type.annotation.java | #F29CDDde | — |
| storage.type.boolean.go | #41DF0Bde | — |
| storage.type.byte.go | #F7B0B0de | — |
| storage.type.cs | #92E477de | — |
| storage.type.error.go | #BAD9F9de | — |
| storage.type.generic.cs | #76D158de | — |
| storage.type.generic.groovy | #94E579de | — |
| storage.type.generic.java | #90BFEEde | — |
| storage.type.groovy | #F6ADE4de | — |
| storage.type.java | #5DD599de | — |
| storage.type.modifier.cs | #F29CDDde | — |
| storage.type.numeric.go | #CABAF9de | — |
| storage.type.object.array.groovy | #DCD1FCde | — |
| storage.type.object.array.java | #F4A3E0de | — |
| storage.type.parameters.groovy | #F3A2A2de | — |
| storage.type.primitive.array.groovy | #91C0EFde | — |
| storage.type.primitive.array.java | #E1C570de | — |
| storage.type.primitive.groovy | #BBDAF9de | — |
| storage.type.primitive.java | #C1B0F7de | — |
| storage.type.rune.go | #6ADDA4de | — |
| storage.type.string.go | #E1C470de | — |
| storage.type.token.java | #41DE0Bde | — |
| storage.type.uintptr.go | #D2C5FBde | — |
| storage.type.variable.cs | #DEC26Bde | — |
| string | #91C0EFde | — |
| string.quoted.docstring.multi.python | #B4CCFB6e | — |
| string.regexp | #B4D6F8de | — |
| string.tag | #F8B7E8de | — |
| string.value | #CBBBF9de | — |
| strong | #67DCA1de | — |
| support.class | #62D89Dde | — |
| support.constant.color | #DFC26Cde | — |
| support.constant.dom | #BADAF9de | — |
| support.constant.font-name | #C8B7F8de | — |
| support.constant.handlebars | #D3B55Ade | — |
| support.constant.json | #F7ADE4de | — |
| support.constant.math | #ABD0F6de | — |
| support.constant.media | #FCCCCCde | — |
| support.constant.media-type | #F8B3E7de | — |
| support.constant.property-value | #72CF53de | — |
| support.function | #C2B0F7de | — |
| support.function.git-rebase | #FABFECde | — |
| support.other.parenthesis.regexp | #A2EC89de | — |
| support.type | #72E2AAde | — |
| support.type.property-name | #E6CA79de | — |
| support.type.vendored.property-name | #78E4AEde | — |
| support.variable | #72CD53de | — |
| token.debug-token | #F4A2A2de | — |
| token.error-token | #F4A3A3de | — |
| token.info-token | #F8B3E6de | — |
| token.warn-token | #62D89Dde | — |
| variable | #A2EC89de | — |
| variable.css | #B6D7F8de | — |
| variable.language | #F6ADADde | — |
| variable.language.wildcard.java | #DDC168de | — |
| variable.other.constant | #55CF91de | — |
| variable.other.definition.java | #8CBCEDde | — |
| variable.other.enummember | #86EBB8de | — |
| variable.other.less | #EAD083de | — |
| variable.other.object.java | #D8BA61de | — |
| variable.other.object.property.java | #A3CCF4de | — |
| variable.parameter.c | #8BBCEDde | — |
| variable.parameter.function.language.python | #F39EDDde | — |
| variable.parameter.java | #F6ADE4de | — |
| variable.scss | #78E4AEde | — |
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}!`;
}