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 | #3ED43E6e | — |
| comment.block.html | #33D1336e | — |
| comment.block.java | #50E2506e | — |
| comment.block.javadoc.java | #48D9486e | — |
| comment.block.powershell | #45D8456e | — |
| comment.block.xml | #36D3366e | — |
| comment.line.double-slash.c | #45DB456e | — |
| comment.line.double-slash.cpp | #3FD83F6e | — |
| comment.line.double-slash.java | #30C7306e | — |
| comment.line.double-slash.js | #3ED83E6e | — |
| comment.line.number-sign.makefile | #48D9486e | — |
| comment.line.number-sign.python | #30C7306e | — |
| comment.line.number-sign.yaml | #3FD83F6e | — |
| comment.line.percentage.erlang | #33D1336e | — |
| comment.line.powershell | #3ED43E6e | — |
| comment.source.cmake | #4ADF4A6e | — |
| comment.source.cmakecache | #30CF306e | — |
| constant.character | #8DBDEDde | — |
| constant.character.character-class.regexp | #F198F1de | — |
| constant.character.escape | #F29B9Bde | — |
| constant.character.set.regexp | #65C246de | — |
| constant.language | #0CD972de | — |
| constant.numeric | #EA83EAde | — |
| constant.numeric.dec.python | #72CD53de | — |
| constant.other.caps.python | #58D194de | — |
| constant.other.character-class.regexp | #96C3F0de | — |
| constant.other.character-class.set.regexp | #53CD90de | — |
| constant.other.color.rgb-value | #64DA9Fde | — |
| constant.other.placeholder | #BEABF6de | — |
| constant.other.rgb-value | #87BAECde | — |
| constant.regexp | #67C548de | — |
| constant.sha.git-rebase | #BCA8F5de | — |
| emphasis | #C3B2F7de | — |
| entity.name.class | #F4A3A3de | — |
| entity.name.function | #76ADE4de | — |
| entity.name.function.preprocessor | #C0ADF6de | — |
| entity.name.function.python | #F5A3A3de | — |
| entity.name.label | #F096F0de | — |
| entity.name.namespace | #0BD26Fde | — |
| entity.name.operator | #7CD65Dde | — |
| entity.name.operator.custom-literal | #EA86EAde | — |
| entity.name.scope-resolution | #F5A6F5de | — |
| entity.name.tag | #3DD90Ade | — |
| entity.name.tag.css | #46C284de | — |
| entity.name.type | #EF9090de | — |
| entity.name.variable | #89BAECde | — |
| entity.other.attribute | #F6AAAAde | — |
| entity.other.attribute-name | #43C082de | — |
| entity.other.attribute-name.class.css | #55D093de | — |
| entity.other.attribute-name.class.mixin.css | #BBBB0Ede | — |
| entity.other.attribute-name.id | #0DC96Ade | — |
| entity.other.attribute-name.id.css | #A0CAF3de | — |
| entity.other.attribute-name.parent-selector.css | #F6A9A9de | — |
| entity.other.attribute-name.pseudo-class.css | #ADAD0Ede | — |
| entity.other.attribute-name.pseudo-element.css | #7DB1E7de | — |
| entity.other.attribute-name.scss | #F09595de | — |
| entity.other.document.begin.yaml | #41DA416e | — |
| entity.other.inherited-class | #0DCC6Cde | — |
| header | #52CD8Fde | — |
| invalid | #0CC76Bde | — |
| keyword | #39C50Cde | — |
| keyword.codetag.notation.python | #B09AF2de | — |
| keyword.control | #7DB2E7de | — |
| keyword.control.anchor.regexp | #F19797de | — |
| keyword.control.import.python | #72CD53de | — |
| keyword.operator | #F5A6A6de | — |
| keyword.operator.alignas | #B29CF2de | — |
| keyword.operator.alignof | #8FBEEEde | — |
| keyword.operator.cast | #89BBECde | — |
| keyword.operator.delete | #6DCA4Ede | — |
| keyword.operator.documentation.powershell | #4EDD4E6e | — |
| keyword.operator.expression | #F39FF3de | — |
| keyword.operator.instanceof | #F6ADADde | — |
| keyword.operator.logical.python | #C2B0F7de | — |
| keyword.operator.minus.exponent | #B1B140de | — |
| keyword.operator.negation.regexp | #CCCC0Cde | — |
| keyword.operator.new | #ED8C8Cde | — |
| keyword.operator.noexcept | #F7AFAFde | — |
| keyword.operator.or.regexp | #5FD79Ade | — |
| keyword.operator.plus.exponent | #F6ADF6de | — |
| keyword.operator.quantifier.regexp | #B6B60Dde | — |
| keyword.operator.sizeof | #7BD55Dde | — |
| keyword.operator.typeid | #F095F0de | — |
| keyword.operator.wordlike | #F5A6F5de | — |
| keyword.other.operator | #3DCD0Dde | — |
| keyword.other.package.java | #F5A4A4de | — |
| keyword.other.unit | #F7AFAFde | — |
| keyword.other.using | #B09AF1de | — |
| markup.bold | #EE8EEEde | — |
| markup.changed | #ED8D8Dde | — |
| markup.deleted | #62D89Dde | — |
| markup.fenced_code.block.markdown | #B0B00Ede | — |
| markup.heading | #0BD26Fde | — |
| markup.inline.raw | #8CC6FEde | — |
| markup.inserted | #F8B4B4de | — |
| markup.italic | #C2C246de | — |
| markup.raw.block.markdown | #EA85EAde | — |
| markup.strikethrough | #F39E9Ede | — |
| markup.underline | #C4B2F8de | — |
| meta.block.c | #F7AEF7de | — |
| meta.block.c | #3BC70Bde | — |
| meta.class.java | #C6C60Dde | — |
| meta.definition.variable.name | #3DCD0Dde | — |
| meta.diff.header | #B29CF2de | — |
| meta.embedded | #F39F9Fde | — |
| meta.embedded.assembly | #BDABF6de | — |
| meta.function-call.arguments.python | #B6A1F3de | — |
| meta.function-call.python | #CCCC0Dde | — |
| meta.member.access.python | #88BAECde | — |
| meta.method.java | #0CD971de | — |
| meta.object-literal.key | #F19696de | — |
| meta.paragraph.markdown | #BCBC0Cde | — |
| meta.preprocessor | #B19BF2de | — |
| meta.preprocessor.numeric | #EA83EAde | — |
| meta.preprocessor.string | #C1C144de | — |
| meta.scope.prerequisites.makefile | #C0ADF7de | — |
| meta.structure.dictionary.json.comments | #41DA416e | — |
| meta.structure.dictionary.key.python | #3BC70Cde | — |
| meta.structure.dictionary.value.json.comments | #50DF506e | — |
| meta.template.expression | #CCCC0Cde | — |
| meta.type.cast.expr | #F4A2A2de | — |
| meta.type.new.expr | #83DB65de | — |
| parameter | #8BBBECde | — |
| punctuation.character.set.begin.regexp | #68C549de | — |
| punctuation.character.set.end.regexp | #41E10Cde | — |
| punctuation.definition.array.begin.json | #B5B541de | — |
| punctuation.definition.character-class.regexp | #F6ABF6de | — |
| punctuation.definition.comment | #3FD83F6e | — |
| punctuation.definition.comment.json.comments | #41DA416e | — |
| punctuation.definition.comment.python | #4EE04E6e | — |
| punctuation.definition.dictionary.begin.json | #0AD571de | — |
| punctuation.definition.dictionary.end.json | #C1C144de | — |
| punctuation.definition.group.assertion.regexp | #BEABF6de | — |
| punctuation.definition.group.regexp | #EE8DEEde | — |
| punctuation.definition.list.begin.json | #EC89ECde | — |
| punctuation.definition.list.begin.markdown | #F29C9Cde | — |
| punctuation.definition.list.begin.python | #53CE90de | — |
| punctuation.definition.list.end.json | #0CD570de | — |
| punctuation.definition.list.end.markdown | #42E20Cde | — |
| punctuation.definition.list.end.python | #70B8FDde | — |
| punctuation.definition.parameters.begin.python | #40DA0Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #B2B20Ede | — |
| punctuation.definition.quote.begin.markdown | #F19696de | — |
| punctuation.definition.tag | #EE8E8Ede | — |
| punctuation.definition.template-expression.begin | #B2B20Dde | — |
| punctuation.definition.template-expression.end | #7FD862de | — |
| punctuation.section.class.begin.bracket.curly.java | #F19595de | — |
| punctuation.section.embedded | #B6A1F3de | — |
| punctuation.section.embedded.begin.php | #F4A0A0de | — |
| punctuation.section.embedded.end.php | #78AEE4de | — |
| punctuation.terminator.java | #F8B5B5de | — |
| source.cmake | #76D158de | — |
| source.coffee.embedded | #F4A1A1de | — |
| source.cpp | #47C486de | — |
| source.css.less | #B09AF1de | — |
| source.groovy.embedded | #C2B0F7de | — |
| source.java | #B8B80Ede | — |
| source.java-properties | #F19696de | — |
| source.json.comments | #39D0396e | — |
| source.makefile | #F095F0de | — |
| source.powershell | #4ECA8Cde | — |
| source.powershell.variable.other.member | #C0ADF6de | — |
| source.python | #60BD41de | — |
| storage | #93C1EFde | — |
| storage.modifier | #7FB3E7de | — |
| storage.modifier.import.java | #F09494de | — |
| storage.modifier.package.java | #95C2F0de | — |
| storage.type | #74BAFDde | — |
| storage.type.annotation.groovy | #C5C50Cde | — |
| storage.type.annotation.java | #EE8D8Dde | — |
| storage.type.boolean.go | #83DB66de | — |
| storage.type.byte.go | #B7A2F4de | — |
| storage.type.cs | #EE8DEEde | — |
| storage.type.error.go | #75ACE3de | — |
| storage.type.generic.cs | #EE9090de | — |
| storage.type.generic.groovy | #BCBC0Ade | — |
| storage.type.generic.java | #F09494de | — |
| storage.type.groovy | #9CC7F2de | — |
| storage.type.java | #7FB4E8de | — |
| storage.type.modifier.cs | #42BF80de | — |
| storage.type.numeric.go | #0CCE6Dde | — |
| storage.type.object.array.groovy | #F4A3F4de | — |
| storage.type.object.array.java | #F5A8F5de | — |
| storage.type.parameters.groovy | #ED8EEDde | — |
| storage.type.primitive.array.groovy | #78AEE4de | — |
| storage.type.primitive.array.java | #EF91EFde | — |
| storage.type.primitive.groovy | #0DC469de | — |
| storage.type.primitive.java | #82B5E9de | — |
| storage.type.rune.go | #B29CF2de | — |
| storage.type.string.go | #0DD06Ede | — |
| storage.type.token.java | #EC8AECde | — |
| storage.type.uintptr.go | #C6C64Ade | — |
| storage.type.variable.cs | #BABA0Ede | — |
| string | #C5C548de | — |
| string.quoted.docstring.multi.python | #4EE04E6e | — |
| string.regexp | #3ED90Cde | — |
| string.tag | #B29CF2de | — |
| string.value | #B8B840de | — |
| strong | #53CD90de | — |
| support.class | #F29C9Cde | — |
| support.constant.color | #0CC668de | — |
| support.constant.dom | #66C347de | — |
| support.constant.font-name | #0BDE74de | — |
| support.constant.handlebars | #61BF41de | — |
| support.constant.json | #F39E9Ede | — |
| support.constant.math | #91BFEFde | — |
| support.constant.media | #A2CBF4de | — |
| support.constant.media-type | #B2B20Ede | — |
| support.constant.property-value | #BFBF0Dde | — |
| support.function | #B7A3F4de | — |
| support.function.git-rebase | #F7B0B0de | — |
| support.other.parenthesis.regexp | #C3C30Ede | — |
| support.type | #B4B40Ede | — |
| support.type.property-name | #9DC7F2de | — |
| support.type.vendored.property-name | #58D194de | — |
| support.variable | #89BBECde | — |
| token.debug-token | #EF9292de | — |
| token.error-token | #F29CF2de | — |
| token.info-token | #B8B80Dde | — |
| token.warn-token | #9CC7F2de | — |
| variable | #0CE076de | — |
| variable.css | #78AFE5de | — |
| variable.language | #9AC6F1de | — |
| variable.language.wildcard.java | #B5B541de | — |
| variable.other.constant | #3FD60Bde | — |
| variable.other.definition.java | #CCBDF9de | — |
| variable.other.enummember | #58D194de | — |
| variable.other.less | #0ACC6Dde | — |
| variable.other.object.java | #C8C80Ade | — |
| variable.other.object.property.java | #B4B40Ede | — |
| variable.parameter.c | #F7AEAEde | — |
| variable.parameter.function.language.python | #76D158de | — |
| variable.parameter.java | #A2CBF4de | — |
| variable.scss | #F29C9Cde | — |
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}!`;
}