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 | #A2A2A26e | — |
| comment.block.html | #A3A3A36e | — |
| comment.block.java | #A2A2A26e | — |
| comment.block.javadoc.java | #A2A2A26e | — |
| comment.block.powershell | #A1A1A16e | — |
| comment.block.xml | #A2A2A26e | — |
| comment.line.double-slash.c | #A2A2A26e | — |
| comment.line.double-slash.cpp | #A3A3A36e | — |
| comment.line.double-slash.java | #A2A2A26e | — |
| comment.line.double-slash.js | #A2A2A26e | — |
| comment.line.number-sign.makefile | #A2A2A26e | — |
| comment.line.number-sign.python | #A1A1A16e | — |
| comment.line.number-sign.yaml | #A2A2A26e | — |
| comment.line.percentage.erlang | #A3A3A36e | — |
| comment.line.powershell | #A2A2A26e | — |
| comment.source.cmake | #A1A1A16e | — |
| comment.source.cmakecache | #A2A2A26e | — |
| constant.character | #46B946de | — |
| constant.character.character-class.regexp | #57CB57de | — |
| constant.character.escape | #E37AE3de | — |
| constant.character.set.regexp | #9A9AF0de | — |
| constant.language | #9A9AF0de | — |
| constant.numeric | #9A9AF0de | — |
| constant.numeric.dec.python | #ABABF5de | — |
| constant.other.caps.python | #53C753de | — |
| constant.other.character-class.regexp | #9999F0de | — |
| constant.other.character-class.set.regexp | #9999F0de | — |
| constant.other.color.rgb-value | #4FC24Fde | — |
| constant.other.placeholder | #53C753de | — |
| constant.other.rgb-value | #0AD50Ade | — |
| constant.regexp | #E88585de | — |
| constant.sha.git-rebase | #9999EFde | — |
| emphasis | #46B946de | — |
| entity.name.class | #9999F0de | — |
| entity.name.function | #ABABF5de | — |
| entity.name.function.preprocessor | #E88585de | — |
| entity.name.function.python | #FC61FCde | — |
| entity.name.label | #E88585de | — |
| entity.name.namespace | #E88585de | — |
| entity.name.operator | #E37AE3de | — |
| entity.name.operator.custom-literal | #E88585de | — |
| entity.name.scope-resolution | #0DCD0Dde | — |
| entity.name.tag | #9999F0de | — |
| entity.name.tag.css | #0DD30Dde | — |
| entity.name.type | #E98585de | — |
| entity.name.variable | #E37AE3de | — |
| entity.other.attribute | #46B946de | — |
| entity.other.attribute-name | #9999F0de | — |
| entity.other.attribute-name.class.css | #53C753de | — |
| entity.other.attribute-name.class.mixin.css | #E88585de | — |
| entity.other.attribute-name.id | #0DD00Dde | — |
| entity.other.attribute-name.id.css | #E88585de | — |
| entity.other.attribute-name.parent-selector.css | #46B946de | — |
| entity.other.attribute-name.pseudo-class.css | #46B946de | — |
| entity.other.attribute-name.pseudo-element.css | #9A9AF1de | — |
| entity.other.attribute-name.scss | #F29EF2de | — |
| entity.other.document.begin.yaml | #A2A2A26e | — |
| entity.other.inherited-class | #9999F0de | — |
| header | #F5ABABde | — |
| invalid | #E88585de | — |
| keyword | #45B945de | — |
| keyword.codetag.notation.python | #9A9AF0de | — |
| keyword.control | #E88585de | — |
| keyword.control.anchor.regexp | #F29E9Ede | — |
| keyword.control.import.python | #E88585de | — |
| keyword.operator | #E98585de | — |
| keyword.operator.alignas | #EB8BEBde | — |
| keyword.operator.alignof | #EB8BEBde | — |
| keyword.operator.cast | #9999F0de | — |
| keyword.operator.delete | #E88585de | — |
| keyword.operator.documentation.powershell | #A3A3A36e | — |
| keyword.operator.expression | #9A9AF0de | — |
| keyword.operator.instanceof | #9E9EF2de | — |
| keyword.operator.logical.python | #4BBE4Bde | — |
| keyword.operator.minus.exponent | #9999EFde | — |
| keyword.operator.negation.regexp | #ED9191de | — |
| keyword.operator.new | #9999EFde | — |
| keyword.operator.noexcept | #9999F0de | — |
| keyword.operator.or.regexp | #E37AE3de | — |
| keyword.operator.plus.exponent | #9999F0de | — |
| keyword.operator.quantifier.regexp | #9A9AF1de | — |
| keyword.operator.sizeof | #65D665de | — |
| keyword.operator.typeid | #E88585de | — |
| keyword.operator.wordlike | #0CCE0Cde | — |
| keyword.other.operator | #E88585de | — |
| keyword.other.package.java | #0CDA0Cde | — |
| keyword.other.unit | #A4A4F3de | — |
| keyword.other.using | #9999F0de | — |
| markup.bold | #F5ABABde | — |
| markup.changed | #53C753de | — |
| markup.deleted | #0AD50Ade | — |
| markup.fenced_code.block.markdown | #9999F0de | — |
| markup.heading | #0BBC0Bde | — |
| markup.inline.raw | #9999F0de | — |
| markup.inserted | #47BA47de | — |
| markup.italic | #9999F0de | — |
| markup.raw.block.markdown | #EF9898de | — |
| markup.strikethrough | #0CCE0Cde | — |
| markup.underline | #ED9191de | — |
| meta.block.c | #9999EFde | — |
| meta.block.c | #E88585de | — |
| meta.class.java | #E88585de | — |
| meta.definition.variable.name | #9A9AF1de | — |
| meta.diff.header | #57CB57de | — |
| meta.embedded | #E88585de | — |
| meta.embedded.assembly | #47BA47de | — |
| meta.function-call.arguments.python | #E88585de | — |
| meta.function-call.python | #57CB57de | — |
| meta.member.access.python | #9A9AF1de | — |
| meta.method.java | #9999F0de | — |
| meta.object-literal.key | #0DCD0Dde | — |
| meta.paragraph.markdown | #5CCF5Cde | — |
| meta.preprocessor | #0DD60Dde | — |
| meta.preprocessor.numeric | #E37BE3de | — |
| meta.preprocessor.string | #E88585de | — |
| meta.scope.prerequisites.makefile | #9999F0de | — |
| meta.structure.dictionary.json.comments | #A2A2A26e | — |
| meta.structure.dictionary.key.python | #45B945de | — |
| meta.structure.dictionary.value.json.comments | #A1A1A16e | — |
| meta.template.expression | #0CDA0Cde | — |
| meta.type.cast.expr | #E37AE3de | — |
| meta.type.new.expr | #E98585de | — |
| parameter | #E98686de | — |
| punctuation.character.set.begin.regexp | #46B846de | — |
| punctuation.character.set.end.regexp | #9A9AF0de | — |
| punctuation.definition.array.begin.json | #E88585de | — |
| punctuation.definition.character-class.regexp | #0CCE0Cde | — |
| punctuation.definition.comment | #A1A1A16e | — |
| punctuation.definition.comment.json.comments | #A3A3A36e | — |
| punctuation.definition.comment.python | #A3A3A36e | — |
| punctuation.definition.dictionary.begin.json | #9A9AF0de | — |
| punctuation.definition.dictionary.end.json | #9A9AF0de | — |
| punctuation.definition.group.assertion.regexp | #4FC24Fde | — |
| punctuation.definition.group.regexp | #F5ABABde | — |
| punctuation.definition.list.begin.json | #ABABF5de | — |
| punctuation.definition.list.begin.markdown | #0BBB0Bde | — |
| punctuation.definition.list.begin.python | #0AD50Ade | — |
| punctuation.definition.list.end.json | #E88585de | — |
| punctuation.definition.list.end.markdown | #53C753de | — |
| punctuation.definition.list.end.python | #9A9AF0de | — |
| punctuation.definition.parameters.begin.python | #0DD60Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #F5ABABde | — |
| punctuation.definition.quote.begin.markdown | #9999F0de | — |
| punctuation.definition.tag | #9E9EF2de | — |
| punctuation.definition.template-expression.begin | #0BBC0Bde | — |
| punctuation.definition.template-expression.end | #E88585de | — |
| punctuation.section.class.begin.bracket.curly.java | #0CD40Cde | — |
| punctuation.section.embedded | #E88585de | — |
| punctuation.section.embedded.begin.php | #9A9AF0de | — |
| punctuation.section.embedded.end.php | #9999F0de | — |
| punctuation.terminator.java | #E88585de | — |
| source.cmake | #E98686de | — |
| source.coffee.embedded | #E88585de | — |
| source.cpp | #E88585de | — |
| source.css.less | #9999F0de | — |
| source.groovy.embedded | #E88585de | — |
| source.java | #E98585de | — |
| source.java-properties | #53C753de | — |
| source.json.comments | #A3A3A36e | — |
| source.makefile | #57CB57de | — |
| source.powershell | #ED91EDde | — |
| source.powershell.variable.other.member | #9999F0de | — |
| source.python | #9A9AF0de | — |
| storage | #9999F0de | — |
| storage.modifier | #0DD60Dde | — |
| storage.modifier.import.java | #9A9AF0de | — |
| storage.modifier.package.java | #0CCE0Cde | — |
| storage.type | #E37AE3de | — |
| storage.type.annotation.groovy | #E88585de | — |
| storage.type.annotation.java | #46B846de | — |
| storage.type.boolean.go | #9A9AF1de | — |
| storage.type.byte.go | #EF98EFde | — |
| storage.type.cs | #E37AE3de | — |
| storage.type.error.go | #60D260de | — |
| storage.type.generic.cs | #0DCD0Dde | — |
| storage.type.generic.groovy | #E98686de | — |
| storage.type.generic.java | #9999F0de | — |
| storage.type.groovy | #E88585de | — |
| storage.type.java | #EB8B8Bde | — |
| storage.type.modifier.cs | #F3A4A4de | — |
| storage.type.numeric.go | #9A9AF0de | — |
| storage.type.object.array.groovy | #E98686de | — |
| storage.type.object.array.java | #9999F0de | — |
| storage.type.parameters.groovy | #9E9EF2de | — |
| storage.type.primitive.array.groovy | #E37AE3de | — |
| storage.type.primitive.array.java | #ABABF5de | — |
| storage.type.primitive.groovy | #9999F0de | — |
| storage.type.primitive.java | #0BBC0Bde | — |
| storage.type.rune.go | #9999F0de | — |
| storage.type.string.go | #4FC24Fde | — |
| storage.type.token.java | #0DD10Dde | — |
| storage.type.uintptr.go | #47BA47de | — |
| storage.type.variable.cs | #46B946de | — |
| string | #E88585de | — |
| string.quoted.docstring.multi.python | #A2A2A26e | — |
| string.regexp | #ED91EDde | — |
| string.tag | #E88585de | — |
| string.value | #0CDE0Cde | — |
| strong | #F3A4A4de | — |
| support.class | #E37AE3de | — |
| support.constant.color | #0CD40Cde | — |
| support.constant.dom | #9999F0de | — |
| support.constant.font-name | #47BA47de | — |
| support.constant.handlebars | #F5ABABde | — |
| support.constant.json | #E88585de | — |
| support.constant.math | #F5ABABde | — |
| support.constant.media | #E88585de | — |
| support.constant.media-type | #F29EF2de | — |
| support.constant.property-value | #E37AE3de | — |
| support.function | #9999F0de | — |
| support.function.git-rebase | #9999F0de | — |
| support.other.parenthesis.regexp | #9999F0de | — |
| support.type | #0CCE0Cde | — |
| support.type.property-name | #E88585de | — |
| support.type.vendored.property-name | #E37AE3de | — |
| support.variable | #9999F0de | — |
| token.debug-token | #9A9AF1de | — |
| token.error-token | #45B945de | — |
| token.info-token | #E88585de | — |
| token.warn-token | #E88585de | — |
| variable | #9999F0de | — |
| variable.css | #E88585de | — |
| variable.language | #9999EFde | — |
| variable.language.wildcard.java | #E37AE3de | — |
| variable.other.constant | #0BBB0Bde | — |
| variable.other.definition.java | #53C753de | — |
| variable.other.enummember | #E88585de | — |
| variable.other.less | #9999F0de | — |
| variable.other.object.java | #0CDE0Cde | — |
| variable.other.object.property.java | #9A9AF0de | — |
| variable.parameter.c | #0CCE0Cde | — |
| variable.parameter.function.language.python | #E88585de | — |
| variable.parameter.java | #F29E9Ede | — |
| variable.scss | #0CDE0Cde | — |
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}!`;
}