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 | #9DC6F06e | — |
| comment.block.html | #9CC7F16e | — |
| comment.block.java | #9DC6F06e | — |
| comment.block.javadoc.java | #9CC7F16e | — |
| comment.block.powershell | #9CC7F16e | — |
| comment.block.xml | #9CC7F16e | — |
| comment.line.double-slash.c | #A5C4F26e | — |
| comment.line.double-slash.cpp | #A5C4F26e | — |
| comment.line.double-slash.java | #A0C6F56e | — |
| comment.line.double-slash.js | #9DC6F06e | — |
| comment.line.number-sign.makefile | #A0C6F56e | — |
| comment.line.number-sign.python | #9CC7F16e | — |
| comment.line.number-sign.yaml | #A5C4F26e | — |
| comment.line.percentage.erlang | #9CC7F16e | — |
| comment.line.powershell | #A0C6F56e | — |
| comment.source.cmake | #A5C4F26e | — |
| comment.source.cmakecache | #9CC7F16e | — |
| constant.character | #EF98EFde | — |
| constant.character.character-class.regexp | #A4A4F3de | — |
| constant.character.escape | #E68B8Bde | — |
| constant.character.set.regexp | #E280E2de | — |
| constant.language | #FEAEAEde | — |
| constant.numeric | #9C9CECde | — |
| constant.numeric.dec.python | #E88989de | — |
| constant.other.caps.python | #B9B9F8de | — |
| constant.other.character-class.regexp | #9B9BEFde | — |
| constant.other.character-class.set.regexp | #B6B6FEde | — |
| constant.other.color.rgb-value | #FEA3FEde | — |
| constant.other.placeholder | #ABABF5de | — |
| constant.other.rgb-value | #EB8BEBde | — |
| constant.regexp | #E68B8Bde | — |
| constant.sha.git-rebase | #9B9BEFde | — |
| emphasis | #18E118de | — |
| entity.name.class | #FEA3FEde | — |
| entity.name.function | #B2B2F7de | — |
| entity.name.function.preprocessor | #15E115de | — |
| entity.name.function.python | #F3A4F3de | — |
| entity.name.label | #0DE00Dde | — |
| entity.name.namespace | #F3A4A4de | — |
| entity.name.operator | #16E116de | — |
| entity.name.operator.custom-literal | #9D9DEEde | — |
| entity.name.scope-resolution | #BCBCFEde | — |
| entity.name.tag | #9C9CECde | — |
| entity.name.tag.css | #B9B9F8de | — |
| entity.name.type | #18E018de | — |
| entity.name.variable | #ED9191de | — |
| entity.other.attribute | #FEADADde | — |
| entity.other.attribute-name | #18E018de | — |
| entity.other.attribute-name.class.css | #F3A4A4de | — |
| entity.other.attribute-name.class.mixin.css | #F3A4F3de | — |
| entity.other.attribute-name.id | #E48B8Bde | — |
| entity.other.attribute-name.id.css | #FEADADde | — |
| entity.other.attribute-name.parent-selector.css | #E48B8Bde | — |
| entity.other.attribute-name.pseudo-class.css | #18E118de | — |
| entity.other.attribute-name.pseudo-element.css | #9D9DEBde | — |
| entity.other.attribute-name.scss | #9D9DEEde | — |
| entity.other.document.begin.yaml | #A0C6F56e | — |
| entity.other.inherited-class | #EF9898de | — |
| header | #18E118de | — |
| invalid | #EB8BEBde | — |
| keyword | #F5ABABde | — |
| keyword.codetag.notation.python | #FEADADde | — |
| keyword.control | #E680E6de | — |
| keyword.control.anchor.regexp | #B9B9F8de | — |
| keyword.control.import.python | #16E016de | — |
| keyword.operator | #E88A8Ade | — |
| keyword.operator.alignas | #F29E9Ede | — |
| keyword.operator.alignof | #E280E2de | — |
| keyword.operator.cast | #E47FE4de | — |
| keyword.operator.delete | #FEA3FEde | — |
| keyword.operator.documentation.powershell | #A0C6F56e | — |
| keyword.operator.expression | #9C9CECde | — |
| keyword.operator.instanceof | #E47FE4de | — |
| keyword.operator.logical.python | #EF9898de | — |
| keyword.operator.minus.exponent | #0EE10Ede | — |
| keyword.operator.negation.regexp | #0EE10Ede | — |
| keyword.operator.new | #13E113de | — |
| keyword.operator.noexcept | #9D9DEBde | — |
| keyword.operator.or.regexp | #FEA3FEde | — |
| keyword.operator.plus.exponent | #9D9DEEde | — |
| keyword.operator.quantifier.regexp | #E68B8Bde | — |
| keyword.operator.sizeof | #9D9DE8de | — |
| keyword.operator.typeid | #EB8B8Bde | — |
| keyword.operator.wordlike | #BCBCFEde | — |
| keyword.other.operator | #10DF10de | — |
| keyword.other.package.java | #FEA3FEde | — |
| keyword.other.unit | #F5ABABde | — |
| keyword.other.using | #F3A4A4de | — |
| markup.bold | #EF9898de | — |
| markup.changed | #ED9191de | — |
| markup.deleted | #F5ABABde | — |
| markup.fenced_code.block.markdown | #9C9CEDde | — |
| markup.heading | #18E118de | — |
| markup.inline.raw | #10DF10de | — |
| markup.inserted | #ABABF5de | — |
| markup.italic | #9B9BEFde | — |
| markup.raw.block.markdown | #E88A8Ade | — |
| markup.strikethrough | #18E118de | — |
| markup.underline | #F5ABABde | — |
| meta.block.c | #18E018de | — |
| meta.block.c | #9E9EF2de | — |
| meta.class.java | #FEAEAEde | — |
| meta.definition.variable.name | #18E118de | — |
| meta.diff.header | #FEA3FEde | — |
| meta.embedded | #FEA3FEde | — |
| meta.embedded.assembly | #15E115de | — |
| meta.function-call.arguments.python | #FEA3FEde | — |
| meta.function-call.python | #FEADADde | — |
| meta.member.access.python | #9B9BEFde | — |
| meta.method.java | #FEA3FEde | — |
| meta.object-literal.key | #16E016de | — |
| meta.paragraph.markdown | #FEAEAEde | — |
| meta.preprocessor | #18E118de | — |
| meta.preprocessor.numeric | #FEA2FEde | — |
| meta.preprocessor.string | #EF9898de | — |
| meta.scope.prerequisites.makefile | #16E016de | — |
| meta.structure.dictionary.json.comments | #9DC6F06e | — |
| meta.structure.dictionary.key.python | #F29E9Ede | — |
| meta.structure.dictionary.value.json.comments | #A0C6F56e | — |
| meta.template.expression | #FE9DFEde | — |
| meta.type.cast.expr | #16E116de | — |
| meta.type.new.expr | #F5ABABde | — |
| parameter | #16E016de | — |
| punctuation.character.set.begin.regexp | #BCBCFEde | — |
| punctuation.character.set.end.regexp | #16E016de | — |
| punctuation.definition.array.begin.json | #E88989de | — |
| punctuation.definition.character-class.regexp | #B2B2F7de | — |
| punctuation.definition.comment | #9DC6F06e | — |
| punctuation.definition.comment.json.comments | #A0C6F56e | — |
| punctuation.definition.comment.python | #9CC7F16e | — |
| punctuation.definition.dictionary.begin.json | #BCBCFEde | — |
| punctuation.definition.dictionary.end.json | #18E018de | — |
| punctuation.definition.group.assertion.regexp | #F29E9Ede | — |
| punctuation.definition.group.regexp | #FEAEAEde | — |
| punctuation.definition.list.begin.json | #E88A8Ade | — |
| punctuation.definition.list.begin.markdown | #18E018de | — |
| punctuation.definition.list.begin.python | #9E9EF2de | — |
| punctuation.definition.list.end.json | #18E118de | — |
| punctuation.definition.list.end.markdown | #FEA3FEde | — |
| punctuation.definition.list.end.python | #0DE00Dde | — |
| punctuation.definition.parameters.begin.python | #FEADADde | — |
| punctuation.definition.parameters.end.bracket.round.java | #9D9DEEde | — |
| punctuation.definition.quote.begin.markdown | #ABABF5de | — |
| punctuation.definition.tag | #9D9DE8de | — |
| punctuation.definition.template-expression.begin | #18E018de | — |
| punctuation.definition.template-expression.end | #9D9DEBde | — |
| punctuation.section.class.begin.bracket.curly.java | #FEA5A5de | — |
| punctuation.section.embedded | #E885E8de | — |
| punctuation.section.embedded.begin.php | #FEAEAEde | — |
| punctuation.section.embedded.end.php | #18E018de | — |
| punctuation.terminator.java | #E280E2de | — |
| source.cmake | #E88989de | — |
| source.coffee.embedded | #10DF10de | — |
| source.cpp | #16E116de | — |
| source.css.less | #9C9CEDde | — |
| source.groovy.embedded | #FEAEAEde | — |
| source.java | #BCBCFEde | — |
| source.java-properties | #F5ABABde | — |
| source.json.comments | #9CC7F16e | — |
| source.makefile | #FEAEAEde | — |
| source.powershell | #F5ABABde | — |
| source.powershell.variable.other.member | #EF98EFde | — |
| source.python | #13E113de | — |
| storage | #A4A4F3de | — |
| storage.modifier | #B6B6FEde | — |
| storage.modifier.import.java | #18E118de | — |
| storage.modifier.package.java | #E68B8Bde | — |
| storage.type | #A4A4F3de | — |
| storage.type.annotation.groovy | #B9B9F8de | — |
| storage.type.annotation.java | #E88989de | — |
| storage.type.boolean.go | #18E018de | — |
| storage.type.byte.go | #BCBCFEde | — |
| storage.type.cs | #E88A8Ade | — |
| storage.type.error.go | #18E118de | — |
| storage.type.generic.cs | #FEADADde | — |
| storage.type.generic.groovy | #9C9CECde | — |
| storage.type.generic.java | #F29E9Ede | — |
| storage.type.groovy | #9C9CECde | — |
| storage.type.java | #F29E9Ede | — |
| storage.type.modifier.cs | #18E018de | — |
| storage.type.numeric.go | #18E018de | — |
| storage.type.object.array.groovy | #13E013de | — |
| storage.type.object.array.java | #18E118de | — |
| storage.type.parameters.groovy | #16E116de | — |
| storage.type.primitive.array.groovy | #9C9CEAde | — |
| storage.type.primitive.array.java | #9C9CEDde | — |
| storage.type.primitive.groovy | #18E118de | — |
| storage.type.primitive.java | #9C9CEDde | — |
| storage.type.rune.go | #9C9CEDde | — |
| storage.type.string.go | #E68B8Bde | — |
| storage.type.token.java | #FEAEAEde | — |
| storage.type.uintptr.go | #B6B6FEde | — |
| storage.type.variable.cs | #E88A8Ade | — |
| string | #13E013de | — |
| string.quoted.docstring.multi.python | #9DC6F06e | — |
| string.regexp | #E47FE4de | — |
| string.tag | #16E116de | — |
| string.value | #E68B8Bde | — |
| strong | #EF9898de | — |
| support.class | #FEA3FEde | — |
| support.constant.color | #FE9DFEde | — |
| support.constant.dom | #FEAEAEde | — |
| support.constant.font-name | #FEA5A5de | — |
| support.constant.handlebars | #F3A4A4de | — |
| support.constant.json | #13E013de | — |
| support.constant.math | #E280E2de | — |
| support.constant.media | #0DE00Dde | — |
| support.constant.media-type | #BCBCFEde | — |
| support.constant.property-value | #BCBCFEde | — |
| support.function | #9E9EF2de | — |
| support.function.git-rebase | #9C9CEDde | — |
| support.other.parenthesis.regexp | #0DE00Dde | — |
| support.type | #E68B8Bde | — |
| support.type.property-name | #ED9191de | — |
| support.type.vendored.property-name | #FEA3FEde | — |
| support.variable | #E68B8Bde | — |
| token.debug-token | #FEAEAEde | — |
| token.error-token | #18E018de | — |
| token.info-token | #0EE10Ede | — |
| token.warn-token | #9C9CECde | — |
| variable | #18E018de | — |
| variable.css | #BCBCFEde | — |
| variable.language | #18E018de | — |
| variable.language.wildcard.java | #ED9191de | — |
| variable.other.constant | #18E018de | — |
| variable.other.definition.java | #F5ABABde | — |
| variable.other.enummember | #F3A4A4de | — |
| variable.other.less | #BCBCFEde | — |
| variable.other.object.java | #EB8B8Bde | — |
| variable.other.object.property.java | #15E115de | — |
| variable.parameter.c | #ED91EDde | — |
| variable.parameter.function.language.python | #FEA3FEde | — |
| variable.parameter.java | #E88A8Ade | — |
| variable.scss | #18E118de | — |
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}!`;
}