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 | #C0C0C06e | — |
| comment.block.html | #C1C1C16e | — |
| comment.block.java | #C0C0C06e | — |
| comment.block.javadoc.java | #C1C1C16e | — |
| comment.block.powershell | #C1C1C16e | — |
| comment.block.xml | #C1C1C16e | — |
| comment.line.double-slash.c | #C1C1C16e | — |
| comment.line.double-slash.cpp | #C1C1C16e | — |
| comment.line.double-slash.java | #C1C1C16e | — |
| comment.line.double-slash.js | #C0C0C06e | — |
| comment.line.number-sign.makefile | #C1C1C16e | — |
| comment.line.number-sign.python | #C1C1C16e | — |
| comment.line.number-sign.yaml | #C1C1C16e | — |
| comment.line.percentage.erlang | #C1C1C16e | — |
| comment.line.powershell | #C1C1C16e | — |
| comment.source.cmake | #C1C1C16e | — |
| comment.source.cmakecache | #C1C1C16e | — |
| constant.character | #D482EDde | — |
| constant.character.character-class.regexp | #EE7FA6de | — |
| constant.character.escape | #C1C1C1de | — |
| constant.character.set.regexp | #EC80A6de | — |
| constant.language | #0CDE31de | — |
| constant.numeric | #0DD3EDde | — |
| constant.numeric.dec.python | #85D611de | — |
| constant.other.caps.python | #10DE34de | — |
| constant.other.character-class.regexp | #C1C1C1de | — |
| constant.other.character-class.set.regexp | #C1C1C1de | — |
| constant.other.color.rgb-value | #959BF4de | — |
| constant.other.placeholder | #84D50Cde | — |
| constant.other.rgb-value | #D681F0de | — |
| constant.regexp | #0EDE34de | — |
| constant.sha.git-rebase | #0EDF32de | — |
| emphasis | #D681F0de | — |
| entity.name.class | #E5A6F8de | — |
| entity.name.function | #D482EDde | — |
| entity.name.function.preprocessor | #84D510de | — |
| entity.name.function.python | #E29FF7de | — |
| entity.name.label | #AAAAAAde | — |
| entity.name.namespace | #B9BCFEde | — |
| entity.name.operator | #10DE34de | — |
| entity.name.operator.custom-literal | #9FA4F7de | — |
| entity.name.scope-resolution | #AEB2F9de | — |
| entity.name.tag | #B4B9FEde | — |
| entity.name.tag.css | #969CF3de | — |
| entity.name.type | #B8B8B8de | — |
| entity.name.variable | #B9BCFEde | — |
| entity.other.attribute | #0CD4EDde | — |
| entity.other.attribute-name | #E29FF7de | — |
| entity.other.attribute-name.class.css | #EBA9FEde | — |
| entity.other.attribute-name.class.mixin.css | #EBA9FEde | — |
| entity.other.attribute-name.id | #81D70Bde | — |
| entity.other.attribute-name.id.css | #84D70Fde | — |
| entity.other.attribute-name.parent-selector.css | #DA89F3de | — |
| entity.other.attribute-name.pseudo-class.css | #969BF2de | — |
| entity.other.attribute-name.pseudo-element.css | #A6A6A6de | — |
| entity.other.attribute-name.scss | #EF80A6de | — |
| entity.other.document.begin.yaml | #C1C1C16e | — |
| entity.other.inherited-class | #C1C1C1de | — |
| header | #C1C1C1de | — |
| invalid | #F07EA6de | — |
| keyword | #84D50Dde | — |
| keyword.codetag.notation.python | #969BF0de | — |
| keyword.control | #FEA7C7de | — |
| keyword.control.anchor.regexp | #E29FF7de | — |
| keyword.control.import.python | #DD90F5de | — |
| keyword.operator | #D681F0de | — |
| keyword.operator.alignas | #959BF4de | — |
| keyword.operator.alignof | #85D610de | — |
| keyword.operator.cast | #ED80A7de | — |
| keyword.operator.delete | #0EDE34de | — |
| keyword.operator.documentation.powershell | #C1C1C16e | — |
| keyword.operator.expression | #D482EEde | — |
| keyword.operator.instanceof | #AAAAAAde | — |
| keyword.operator.logical.python | #C1C1C1de | — |
| keyword.operator.minus.exponent | #969BF2de | — |
| keyword.operator.negation.regexp | #11D4F0de | — |
| keyword.operator.new | #B9BCFEde | — |
| keyword.operator.noexcept | #EAA9FEde | — |
| keyword.operator.or.regexp | #D581EFde | — |
| keyword.operator.plus.exponent | #0ED3EDde | — |
| keyword.operator.quantifier.regexp | #C1C1C1de | — |
| keyword.operator.sizeof | #10DE34de | — |
| keyword.operator.typeid | #B4B9FEde | — |
| keyword.operator.wordlike | #B8B8B8de | — |
| keyword.other.operator | #B4B9FEde | — |
| keyword.other.package.java | #0FD4EFde | — |
| keyword.other.unit | #0BDD31de | — |
| keyword.other.using | #FEA7C6de | — |
| markup.bold | #EF80A6de | — |
| markup.changed | #FEA7C6de | — |
| markup.deleted | #F79FBEde | — |
| markup.fenced_code.block.markdown | #85D611de | — |
| markup.heading | #A6A6A6de | — |
| markup.inline.raw | #EAA9FEde | — |
| markup.inserted | #0ED4EDde | — |
| markup.italic | #0FD4EDde | — |
| markup.raw.block.markdown | #969CF3de | — |
| markup.strikethrough | #83D60Ede | — |
| markup.underline | #08D3EFde | — |
| meta.block.c | #84D70Fde | — |
| meta.block.c | #0CDE31de | — |
| meta.class.java | #B5B9FAde | — |
| meta.definition.variable.name | #A6ABF8de | — |
| meta.diff.header | #D681F0de | — |
| meta.embedded | #9FA4F7de | — |
| meta.embedded.assembly | #C1C1C1de | — |
| meta.function-call.arguments.python | #AEB2F9de | — |
| meta.function-call.python | #BCBCBCde | — |
| meta.member.access.python | #EF80A6de | — |
| meta.method.java | #0FD4EDde | — |
| meta.object-literal.key | #B5B9FAde | — |
| meta.paragraph.markdown | #0AD3EBde | — |
| meta.preprocessor | #B4B9FEde | — |
| meta.preprocessor.numeric | #81D70Bde | — |
| meta.preprocessor.string | #969CF3de | — |
| meta.scope.prerequisites.makefile | #0FD3EEde | — |
| meta.structure.dictionary.json.comments | #C1C1C16e | — |
| meta.structure.dictionary.key.python | #0FD4EFde | — |
| meta.structure.dictionary.value.json.comments | #C1C1C16e | — |
| meta.template.expression | #B4B9FEde | — |
| meta.type.cast.expr | #A6ABF8de | — |
| meta.type.new.expr | #0CD4EDde | — |
| parameter | #FEA7C6de | — |
| punctuation.character.set.begin.regexp | #C1C1C1de | — |
| punctuation.character.set.end.regexp | #0CD4EDde | — |
| punctuation.definition.array.begin.json | #AFAFAFde | — |
| punctuation.definition.character-class.regexp | #0ED3EDde | — |
| punctuation.definition.comment | #C0C0C06e | — |
| punctuation.definition.comment.json.comments | #C1C1C16e | — |
| punctuation.definition.comment.python | #C1C1C16e | — |
| punctuation.definition.dictionary.begin.json | #B6BBFEde | — |
| punctuation.definition.dictionary.end.json | #0DD3EDde | — |
| punctuation.definition.group.assertion.regexp | #C1C1C1de | — |
| punctuation.definition.group.regexp | #85D611de | — |
| punctuation.definition.list.begin.json | #D681F0de | — |
| punctuation.definition.list.begin.markdown | #9FA4F7de | — |
| punctuation.definition.list.begin.python | #08DF2Cde | — |
| punctuation.definition.list.end.json | #F389AFde | — |
| punctuation.definition.list.end.markdown | #0ED3EDde | — |
| punctuation.definition.list.end.python | #EC80A6de | — |
| punctuation.definition.parameters.begin.python | #10DF35de | — |
| punctuation.definition.parameters.end.bracket.round.java | #BCBCBCde | — |
| punctuation.definition.quote.begin.markdown | #FEA7C5de | — |
| punctuation.definition.tag | #84D50Fde | — |
| punctuation.definition.template-expression.begin | #0DDE34de | — |
| punctuation.definition.template-expression.end | #0DD3EDde | — |
| punctuation.section.class.begin.bracket.curly.java | #959BF4de | — |
| punctuation.section.embedded | #DA89F3de | — |
| punctuation.section.embedded.begin.php | #B4B9FEde | — |
| punctuation.section.embedded.end.php | #C1C1C1de | — |
| punctuation.terminator.java | #F07EA6de | — |
| source.cmake | #F07EA6de | — |
| source.coffee.embedded | #0BDD31de | — |
| source.cpp | #0ED3EDde | — |
| source.css.less | #10DF35de | — |
| source.groovy.embedded | #F8A6C3de | — |
| source.java | #D581EFde | — |
| source.java-properties | #FEA3C4de | — |
| source.json.comments | #C0C0C06e | — |
| source.makefile | #0ED4EEde | — |
| source.powershell | #0FDF34de | — |
| source.powershell.variable.other.member | #84D50Cde | — |
| source.python | #EE7FA6de | — |
| storage | #F590B4de | — |
| storage.modifier | #11D4F0de | — |
| storage.modifier.import.java | #0FDE32de | — |
| storage.modifier.package.java | #AEB2F9de | — |
| storage.type | #D782F2de | — |
| storage.type.annotation.groovy | #F07EA6de | — |
| storage.type.annotation.java | #86D610de | — |
| storage.type.boolean.go | #0ED3EDde | — |
| storage.type.byte.go | #E9A8FEde | — |
| storage.type.cs | #0FDE32de | — |
| storage.type.error.go | #E5A6F8de | — |
| storage.type.generic.cs | #0DD3EDde | — |
| storage.type.generic.groovy | #B3B3B3de | — |
| storage.type.generic.java | #C1C1C1de | — |
| storage.type.groovy | #FEA7C6de | — |
| storage.type.java | #0ED4EDde | — |
| storage.type.modifier.cs | #84D50Dde | — |
| storage.type.numeric.go | #0FDF32de | — |
| storage.type.object.array.groovy | #C1C1C1de | — |
| storage.type.object.array.java | #969BF1de | — |
| storage.type.parameters.groovy | #83D60Fde | — |
| storage.type.primitive.array.groovy | #B3B3B3de | — |
| storage.type.primitive.array.java | #C1C1C1de | — |
| storage.type.primitive.groovy | #D482EDde | — |
| storage.type.primitive.java | #C1C1C1de | — |
| storage.type.rune.go | #10DE35de | — |
| storage.type.string.go | #ED80A7de | — |
| storage.type.token.java | #AFAFAFde | — |
| storage.type.uintptr.go | #EBA9FEde | — |
| storage.type.variable.cs | #85D60Ede | — |
| string | #D782F2de | — |
| string.quoted.docstring.multi.python | #C1C1C16e | — |
| string.regexp | #F389AFde | — |
| string.tag | #C1C1C1de | — |
| string.value | #F282AAde | — |
| strong | #C1C1C1de | — |
| support.class | #0FD3ECde | — |
| support.constant.color | #83D60Fde | — |
| support.constant.dom | #9FA4F7de | — |
| support.constant.font-name | #EBA9FEde | — |
| support.constant.handlebars | #10DE35de | — |
| support.constant.json | #0ED4EDde | — |
| support.constant.math | #B6BBFEde | — |
| support.constant.media | #949AF5de | — |
| support.constant.media-type | #0ED4EDde | — |
| support.constant.property-value | #ED80A7de | — |
| support.function | #AAAAAAde | — |
| support.function.git-rebase | #0FDF34de | — |
| support.other.parenthesis.regexp | #C1C1C1de | — |
| support.type | #FEA7C5de | — |
| support.type.property-name | #0FD3ECde | — |
| support.type.vendored.property-name | #F8A6C3de | — |
| support.variable | #959BF4de | — |
| token.debug-token | #C1C1C1de | — |
| token.error-token | #949BF4de | — |
| token.info-token | #B3B3B3de | — |
| token.warn-token | #C1C1C1de | — |
| variable | #C1C1C1de | — |
| variable.css | #DA89F3de | — |
| variable.language | #7FD605de | — |
| variable.language.wildcard.java | #11D4F0de | — |
| variable.other.constant | #86D610de | — |
| variable.other.definition.java | #0BDD31de | — |
| variable.other.enummember | #FEA7C7de | — |
| variable.other.less | #B6BBFEde | — |
| variable.other.object.java | #0DDE34de | — |
| variable.other.object.property.java | #0FD3ECde | — |
| variable.parameter.c | #85D611de | — |
| variable.parameter.function.language.python | #FEA3C4de | — |
| variable.parameter.java | #FEA7C5de | — |
| variable.scss | #DA89F3de | — |
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}!`;
}