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 | #E6BF846e | — |
| comment.block.html | #E6BF846e | — |
| comment.block.java | #E6BF8B6e | — |
| comment.block.javadoc.java | #E6BF8B6e | — |
| comment.block.powershell | #E3C0856e | — |
| comment.block.xml | #E6BF846e | — |
| comment.line.double-slash.c | #E6BF846e | — |
| comment.line.double-slash.cpp | #E6BF8B6e | — |
| comment.line.double-slash.java | #E3C08B6e | — |
| comment.line.double-slash.js | #E6BF846e | — |
| comment.line.number-sign.makefile | #E6BF8B6e | — |
| comment.line.number-sign.python | #E3C08B6e | — |
| comment.line.number-sign.yaml | #E3C0856e | — |
| comment.line.percentage.erlang | #E6BF846e | — |
| comment.line.powershell | #E3C0856e | — |
| comment.source.cmake | #E6BF8B6e | — |
| comment.source.cmakecache | #E6BF8B6e | — |
| constant.character | #F7B3B3de | — |
| constant.character.character-class.regexp | #18E418de | — |
| constant.character.escape | #B9B9F8de | — |
| constant.character.set.regexp | #10E410de | — |
| constant.language | #BFBFFEde | — |
| constant.numeric | #E681E6de | — |
| constant.numeric.dec.python | #A5A5F4de | — |
| constant.other.caps.python | #18E418de | — |
| constant.other.character-class.regexp | #13E413de | — |
| constant.other.character-class.set.regexp | #C0C0FEde | — |
| constant.other.color.rgb-value | #13E413de | — |
| constant.other.placeholder | #9F9FEEde | — |
| constant.other.rgb-value | #18E418de | — |
| constant.regexp | #18E418de | — |
| constant.sha.git-rebase | #EB8C8Cde | — |
| emphasis | #B3B3F7de | — |
| entity.name.class | #FEB0B0de | — |
| entity.name.function | #9F9FEDde | — |
| entity.name.function.preprocessor | #F5ACF5de | — |
| entity.name.function.python | #9F9FEEde | — |
| entity.name.label | #ACACF5de | — |
| entity.name.namespace | #F5ACF5de | — |
| entity.name.operator | #18E318de | — |
| entity.name.operator.custom-literal | #9F9FEAde | — |
| entity.name.scope-resolution | #E681E6de | — |
| entity.name.tag | #B9B9F8de | — |
| entity.name.tag.css | #FEA8FEde | — |
| entity.name.type | #E58E8Ede | — |
| entity.name.variable | #9F9FF2de | — |
| entity.other.attribute | #F29F9Fde | — |
| entity.other.attribute-name | #E681E6de | — |
| entity.other.attribute-name.class.css | #B7B7FEde | — |
| entity.other.attribute-name.class.mixin.css | #9F9FEAde | — |
| entity.other.attribute-name.id | #15E315de | — |
| entity.other.attribute-name.id.css | #16E516de | — |
| entity.other.attribute-name.parent-selector.css | #F4A5A5de | — |
| entity.other.attribute-name.pseudo-class.css | #FEA7FEde | — |
| entity.other.attribute-name.pseudo-element.css | #E986E9de | — |
| entity.other.attribute-name.scss | #FEA7FEde | — |
| entity.other.document.begin.yaml | #E6BF846e | — |
| entity.other.inherited-class | #16E516de | — |
| header | #16E516de | — |
| invalid | #9F9FEAde | — |
| keyword | #B3B3F7de | — |
| keyword.codetag.notation.python | #18E418de | — |
| keyword.control | #F5ACACde | — |
| keyword.control.anchor.regexp | #E986E9de | — |
| keyword.control.import.python | #18E418de | — |
| keyword.operator | #B9B9F8de | — |
| keyword.operator.alignas | #16E516de | — |
| keyword.operator.alignof | #ED9292de | — |
| keyword.operator.cast | #9F9FEAde | — |
| keyword.operator.delete | #13E413de | — |
| keyword.operator.documentation.powershell | #E6BF8B6e | — |
| keyword.operator.expression | #FEA8FEde | — |
| keyword.operator.instanceof | #F29F9Fde | — |
| keyword.operator.logical.python | #18E318de | — |
| keyword.operator.minus.exponent | #A5A5F4de | — |
| keyword.operator.negation.regexp | #F29F9Fde | — |
| keyword.operator.new | #0FE30Fde | — |
| keyword.operator.noexcept | #13E413de | — |
| keyword.operator.or.regexp | #B9B9F8de | — |
| keyword.operator.plus.exponent | #C0C0FEde | — |
| keyword.operator.quantifier.regexp | #0FE30Fde | — |
| keyword.operator.sizeof | #FEB0B0de | — |
| keyword.operator.typeid | #10E410de | — |
| keyword.operator.wordlike | #18E418de | — |
| keyword.other.operator | #18E318de | — |
| keyword.other.package.java | #F5ACACde | — |
| keyword.other.unit | #18E418de | — |
| keyword.other.using | #18E318de | — |
| markup.bold | #EB8C8Cde | — |
| markup.changed | #18E418de | — |
| markup.deleted | #B7B7FEde | — |
| markup.fenced_code.block.markdown | #9F9FEAde | — |
| markup.heading | #E88D8Dde | — |
| markup.inline.raw | #0FE30Fde | — |
| markup.inserted | #BFBFFEde | — |
| markup.italic | #15E415de | — |
| markup.raw.block.markdown | #EA8C8Cde | — |
| markup.strikethrough | #9E9EF0de | — |
| markup.underline | #F29F9Fde | — |
| meta.block.c | #FEA8FEde | — |
| meta.block.c | #15E315de | — |
| meta.class.java | #FEA8FEde | — |
| meta.definition.variable.name | #15E315de | — |
| meta.diff.header | #16E516de | — |
| meta.embedded | #BFBFFEde | — |
| meta.embedded.assembly | #13E413de | — |
| meta.function-call.arguments.python | #18E418de | — |
| meta.function-call.python | #F4A5A5de | — |
| meta.member.access.python | #0DE50Dde | — |
| meta.method.java | #E58E8Ede | — |
| meta.object-literal.key | #F09898de | — |
| meta.paragraph.markdown | #10E410de | — |
| meta.preprocessor | #E482E4de | — |
| meta.preprocessor.numeric | #18E418de | — |
| meta.preprocessor.string | #18E318de | — |
| meta.scope.prerequisites.makefile | #15E415de | — |
| meta.structure.dictionary.json.comments | #E6BF846e | — |
| meta.structure.dictionary.key.python | #9E9EEFde | — |
| meta.structure.dictionary.value.json.comments | #E3C0856e | — |
| meta.template.expression | #9F9FE9de | — |
| meta.type.cast.expr | #E88D8Dde | — |
| meta.type.new.expr | #9E9EEFde | — |
| parameter | #C0C0FEde | — |
| punctuation.character.set.begin.regexp | #16E516de | — |
| punctuation.character.set.end.regexp | #F5ACACde | — |
| punctuation.definition.array.begin.json | #C0C0FEde | — |
| punctuation.definition.character-class.regexp | #16E516de | — |
| punctuation.definition.comment | #E6BF846e | — |
| punctuation.definition.comment.json.comments | #E3C08B6e | — |
| punctuation.definition.comment.python | #E3C0856e | — |
| punctuation.definition.dictionary.begin.json | #13E413de | — |
| punctuation.definition.dictionary.end.json | #16E516de | — |
| punctuation.definition.group.assertion.regexp | #9F9FE9de | — |
| punctuation.definition.group.regexp | #FEADADde | — |
| punctuation.definition.list.begin.json | #FEB2B2de | — |
| punctuation.definition.list.begin.markdown | #ED9292de | — |
| punctuation.definition.list.begin.python | #FEB0B0de | — |
| punctuation.definition.list.end.json | #E681E6de | — |
| punctuation.definition.list.end.markdown | #9F9FEAde | — |
| punctuation.definition.list.end.python | #FEB1B1de | — |
| punctuation.definition.parameters.begin.python | #9F9FEAde | — |
| punctuation.definition.parameters.end.bracket.round.java | #FEB2B2de | — |
| punctuation.definition.quote.begin.markdown | #EB8C8Cde | — |
| punctuation.definition.tag | #EB8CEBde | — |
| punctuation.definition.template-expression.begin | #E986E9de | — |
| punctuation.definition.template-expression.end | #9F9FF2de | — |
| punctuation.section.class.begin.bracket.curly.java | #9F9FE9de | — |
| punctuation.section.embedded | #ED92EDde | — |
| punctuation.section.embedded.begin.php | #9F9FEBde | — |
| punctuation.section.embedded.end.php | #13E413de | — |
| punctuation.terminator.java | #18E318de | — |
| source.cmake | #9F9FEEde | — |
| source.coffee.embedded | #18E318de | — |
| source.cpp | #18E318de | — |
| source.css.less | #FEA6FEde | — |
| source.groovy.embedded | #C0C0FEde | — |
| source.java | #FEA7FEde | — |
| source.java-properties | #E78E8Ede | — |
| source.json.comments | #E3C0856e | — |
| source.makefile | #13E413de | — |
| source.powershell | #E986E9de | — |
| source.powershell.variable.other.member | #ACACF5de | — |
| source.python | #18E318de | — |
| storage | #E482E4de | — |
| storage.modifier | #F4A5F4de | — |
| storage.modifier.import.java | #13E413de | — |
| storage.modifier.package.java | #F4A5A5de | — |
| storage.type | #16E516de | — |
| storage.type.annotation.groovy | #9F9FEBde | — |
| storage.type.annotation.java | #F4A5F4de | — |
| storage.type.boolean.go | #16E516de | — |
| storage.type.byte.go | #13E413de | — |
| storage.type.cs | #FEADADde | — |
| storage.type.error.go | #F5ACACde | — |
| storage.type.generic.cs | #9F9FEBde | — |
| storage.type.generic.groovy | #E58E8Ede | — |
| storage.type.generic.java | #15E415de | — |
| storage.type.groovy | #E78E8Ede | — |
| storage.type.java | #BFBFFEde | — |
| storage.type.modifier.cs | #F7B3B3de | — |
| storage.type.numeric.go | #9E9EF0de | — |
| storage.type.object.array.groovy | #F4A5A5de | — |
| storage.type.object.array.java | #16E516de | — |
| storage.type.parameters.groovy | #C0C0FEde | — |
| storage.type.primitive.array.groovy | #B9B9F8de | — |
| storage.type.primitive.array.java | #13E413de | — |
| storage.type.primitive.groovy | #13E413de | — |
| storage.type.primitive.java | #18E418de | — |
| storage.type.rune.go | #EA8C8Cde | — |
| storage.type.string.go | #F09898de | — |
| storage.type.token.java | #FEADADde | — |
| storage.type.uintptr.go | #FEA7FEde | — |
| storage.type.variable.cs | #E88D8Dde | — |
| string | #13E413de | — |
| string.quoted.docstring.multi.python | #E3C08B6e | — |
| string.regexp | #FEB0B0de | — |
| string.tag | #FEADADde | — |
| string.value | #9F9FEEde | — |
| strong | #FEB1B1de | — |
| support.class | #0FE30Fde | — |
| support.constant.color | #F5ACACde | — |
| support.constant.dom | #A5A5F4de | — |
| support.constant.font-name | #B3B3F7de | — |
| support.constant.handlebars | #ED92EDde | — |
| support.constant.json | #0DE50Dde | — |
| support.constant.math | #9E9EEFde | — |
| support.constant.media | #E986E9de | — |
| support.constant.media-type | #9E9EF0de | — |
| support.constant.property-value | #E58E8Ede | — |
| support.function | #15E315de | — |
| support.function.git-rebase | #F7B3B3de | — |
| support.other.parenthesis.regexp | #F4A5A5de | — |
| support.type | #16E516de | — |
| support.type.property-name | #B3B3F7de | — |
| support.type.vendored.property-name | #FEADADde | — |
| support.variable | #EB8C8Cde | — |
| token.debug-token | #0DE50Dde | — |
| token.error-token | #9F9FEAde | — |
| token.info-token | #9E9EEFde | — |
| token.warn-token | #FEA7FEde | — |
| variable | #16E516de | — |
| variable.css | #FEA6FEde | — |
| variable.language | #9F9FEDde | — |
| variable.language.wildcard.java | #FEB0B0de | — |
| variable.other.constant | #18E418de | — |
| variable.other.definition.java | #18E418de | — |
| variable.other.enummember | #C0C0FEde | — |
| variable.other.less | #FEB0B0de | — |
| variable.other.object.java | #13E413de | — |
| variable.other.object.property.java | #9E9EEFde | — |
| variable.parameter.c | #18E418de | — |
| variable.parameter.function.language.python | #18E418de | — |
| variable.parameter.java | #0DE50Dde | — |
| variable.scss | #EA8C8Cde | — |
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}!`;
}