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 | #4C4C4C6e | — |
| comment.block.html | #4E4E4E6e | — |
| comment.block.java | #4E4E4E6e | — |
| comment.block.javadoc.java | #4E4E4E6e | — |
| comment.block.powershell | #4E4E4E6e | — |
| comment.block.xml | #4D4D4D6e | — |
| comment.line.double-slash.c | #4C4C4C6e | — |
| comment.line.double-slash.cpp | #4E4E4E6e | — |
| comment.line.double-slash.java | #4C4C4C6e | — |
| comment.line.double-slash.js | #4C4C4C6e | — |
| comment.line.number-sign.makefile | #4E4E4E6e | — |
| comment.line.number-sign.python | #4E4E4E6e | — |
| comment.line.number-sign.yaml | #4E4E4E6e | — |
| comment.line.percentage.erlang | #4E4E4E6e | — |
| comment.line.powershell | #4E4E4E6e | — |
| comment.source.cmake | #4C4C4C6e | — |
| comment.source.cmakecache | #4E4E4E6e | — |
| constant.character | #093294de | — |
| constant.character.character-class.regexp | #8B2162de | — |
| constant.character.escape | #8B2261de | — |
| constant.character.set.regexp | #98075Ede | — |
| constant.language | #7004C8de | — |
| constant.numeric | #942703de | — |
| constant.numeric.dec.python | #074907de | — |
| constant.other.caps.python | #085808de | — |
| constant.other.character-class.regexp | #4B5305de | — |
| constant.other.character-class.set.regexp | #990960de | — |
| constant.other.color.rgb-value | #942703de | — |
| constant.other.placeholder | #083090de | — |
| constant.other.rgb-value | #22489Dde | — |
| constant.regexp | #823921de | — |
| constant.sha.git-rebase | #4B5308de | — |
| emphasis | #08594Dde | — |
| entity.name.class | #224493de | — |
| entity.name.function | #08584Cde | — |
| entity.name.function.preprocessor | #912B09de | — |
| entity.name.function.python | #095A09de | — |
| entity.name.label | #1C571Cde | — |
| entity.name.namespace | #07584Cde | — |
| entity.name.operator | #2349A3de | — |
| entity.name.operator.custom-literal | #97085Ede | — |
| entity.name.scope-resolution | #7006C6de | — |
| entity.name.tag | #8B2260de | — |
| entity.name.tag.css | #4A5108de | — |
| entity.name.type | #922A08de | bold |
| entity.name.variable | #08584Cde | — |
| entity.other.attribute | #6F23ADde | — |
| entity.other.attribute-name | #572183de | — |
| entity.other.attribute-name.class.css | #7F3820de | — |
| entity.other.attribute-name.class.mixin.css | #823921de | — |
| entity.other.attribute-name.id | #095B09de | — |
| entity.other.attribute-name.id.css | #97085Ede | — |
| entity.other.attribute-name.parent-selector.css | #4B5208de | — |
| entity.other.attribute-name.pseudo-class.css | #184F47de | — |
| entity.other.attribute-name.pseudo-element.css | #8C2262de | — |
| entity.other.attribute-name.scss | #813820de | — |
| entity.other.document.begin.yaml | #4D4D4D6e | — |
| entity.other.inherited-class | #09584Cde | — |
| header | #15413Ade | — |
| invalid | #942703de | — |
| keyword | #4A5108de | bold |
| keyword.codetag.notation.python | #1C591Cde | bold |
| keyword.control | #52207Bde | bold |
| keyword.control.anchor.regexp | #06493Fde | bold |
| keyword.control.import.python | #4B5208de | bold |
| keyword.operator | #7F381Fde | bold |
| keyword.operator.alignas | #65239Bde | bold |
| keyword.operator.alignof | #7006C9de | bold |
| keyword.operator.cast | #7006C6de | bold |
| keyword.operator.delete | #6E24ACde | bold |
| keyword.operator.documentation.powershell | #4C4C4C6e | bold |
| keyword.operator.expression | #08584Cde | bold |
| keyword.operator.instanceof | #7B2057de | bold |
| keyword.operator.logical.python | #922806de | bold |
| keyword.operator.minus.exponent | #073090de | bold |
| keyword.operator.negation.regexp | #602293de | bold |
| keyword.operator.new | #085B08de | bold |
| keyword.operator.noexcept | #073298de | bold |
| keyword.operator.or.regexp | #922A08de | bold |
| keyword.operator.plus.exponent | #8B2162de | bold |
| keyword.operator.quantifier.regexp | #08594Dde | bold |
| keyword.operator.sizeof | #4A5208de | bold |
| keyword.operator.typeid | #813820de | bold |
| keyword.operator.wordlike | #095B09de | bold |
| keyword.other.operator | #4B5307de | bold |
| keyword.other.package.java | #7024AEde | bold |
| keyword.other.unit | #095B09de | bold |
| keyword.other.using | #922A06de | bold |
| markup.bold | #4C5307de | — |
| markup.changed | #23479Bde | — |
| markup.deleted | #7024AEde | — |
| markup.fenced_code.block.markdown | #1C571Cde | — |
| markup.heading | #4B5208de | — |
| markup.inline.raw | #184718de | — |
| markup.inserted | #902A08de | — |
| markup.italic | #7B2057de | — |
| markup.raw.block.markdown | #1C571Cde | — |
| markup.strikethrough | #4B5208de | — |
| markup.underline | #6E24ACde | — |
| meta.block.c | #08594Dde | — |
| meta.block.c | #932704de | — |
| meta.class.java | #23499Ede | — |
| meta.definition.variable.name | #4A4F18de | — |
| meta.diff.header | #2349A3de | — |
| meta.embedded | #184718de | — |
| meta.embedded.assembly | #942602de | — |
| meta.function-call.arguments.python | #15413Ade | — |
| meta.function-call.python | #095C09de | — |
| meta.member.access.python | #095A09de | — |
| meta.method.java | #09584Cde | — |
| meta.object-literal.key | #912B09de | — |
| meta.paragraph.markdown | #8B2162de | — |
| meta.preprocessor | #97085Ede | — |
| meta.preprocessor.numeric | #912B09de | — |
| meta.preprocessor.string | #23499Ede | — |
| meta.scope.prerequisites.makefile | #4B5208de | — |
| meta.structure.dictionary.json.comments | #4E4E4E6e | — |
| meta.structure.dictionary.key.python | #065146de | — |
| meta.structure.dictionary.value.json.comments | #4C4C4C6e | — |
| meta.template.expression | #902A08de | — |
| meta.type.cast.expr | #803820de | bold |
| meta.type.new.expr | #063095de | bold |
| parameter | #97085Ede | — |
| punctuation.character.set.begin.regexp | #08594Dde | — |
| punctuation.character.set.end.regexp | #1C551Cde | — |
| punctuation.definition.array.begin.json | #7023ABde | — |
| punctuation.definition.character-class.regexp | #8B2162de | — |
| punctuation.definition.comment | #4D4D4D6e | — |
| punctuation.definition.comment.json.comments | #4D4D4D6e | — |
| punctuation.definition.comment.python | #4D4D4D6e | — |
| punctuation.definition.dictionary.begin.json | #1C591Cde | — |
| punctuation.definition.dictionary.end.json | #942602de | — |
| punctuation.definition.group.assertion.regexp | #08584Cde | — |
| punctuation.definition.group.regexp | #7005C8de | — |
| punctuation.definition.list.begin.json | #065146de | — |
| punctuation.definition.list.begin.markdown | #1A4E1Ade | — |
| punctuation.definition.list.begin.python | #6C1E4Dde | — |
| punctuation.definition.list.end.json | #4A5108de | — |
| punctuation.definition.list.end.markdown | #074E43de | — |
| punctuation.definition.list.end.python | #184F47de | — |
| punctuation.definition.parameters.begin.python | #08594Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #8E2163de | — |
| punctuation.definition.quote.begin.markdown | #4A4F18de | — |
| punctuation.definition.tag | #2449A1de | — |
| punctuation.definition.template-expression.begin | #09584Cde | — |
| punctuation.definition.template-expression.end | #4B5208de | — |
| punctuation.section.class.begin.bracket.curly.java | #22499Ede | — |
| punctuation.section.embedded | #085B08de | — |
| punctuation.section.embedded.begin.php | #4B5208de | — |
| punctuation.section.embedded.end.php | #652F1Cde | — |
| punctuation.terminator.java | #095A09de | — |
| source.cmake | #5E2C1Bde | — |
| source.coffee.embedded | #2449A1de | — |
| source.cpp | #6A24A3de | — |
| source.css.less | #1F3874de | — |
| source.groovy.embedded | #23499Fde | — |
| source.java | #8E2163de | — |
| source.java-properties | #912B08de | — |
| source.json.comments | #4E4E4E6e | — |
| source.makefile | #4C5218de | — |
| source.powershell | #8F2A09de | — |
| source.powershell.variable.other.member | #4B5208de | — |
| source.python | #4A4F18de | — |
| storage | #08584Cde | — |
| storage.modifier | #99095Fde | — |
| storage.modifier.import.java | #08584Cde | — |
| storage.modifier.package.java | #7B3720de | — |
| storage.type | #08594Dde | bold |
| storage.type.annotation.groovy | #095C09de | bold |
| storage.type.annotation.java | #99065Ede | bold |
| storage.type.boolean.go | #651C48de | bold |
| storage.type.byte.go | #7006C6de | bold |
| storage.type.cs | #4B5208de | bold |
| storage.type.error.go | #4B5307de | bold |
| storage.type.generic.cs | #922A08de | bold |
| storage.type.generic.groovy | #7F3820de | bold |
| storage.type.generic.java | #99075Fde | bold |
| storage.type.groovy | #6E24ABde | bold |
| storage.type.java | #8C2262de | bold |
| storage.type.modifier.cs | #08453Cde | bold |
| storage.type.numeric.go | #4B5308de | bold |
| storage.type.object.array.groovy | #073298de | bold |
| storage.type.object.array.java | #7F381Fde | bold |
| storage.type.parameters.groovy | #902A09de | bold |
| storage.type.primitive.array.groovy | #8F2A09de | bold |
| storage.type.primitive.array.java | #902A08de | bold |
| storage.type.primitive.groovy | #08584Cde | bold |
| storage.type.primitive.java | #23479Bde | bold |
| storage.type.rune.go | #7001CBde | bold |
| storage.type.string.go | #83215Cde | bold |
| storage.type.token.java | #902A09de | bold |
| storage.type.uintptr.go | #095C09de | bold |
| storage.type.variable.cs | #07584Cde | bold |
| string | #98075Ede | — |
| string.quoted.docstring.multi.python | #4E4E4E6e | — |
| string.regexp | #434817de | — |
| string.tag | #97085Ede | — |
| string.value | #74341Fde | — |
| strong | #085C08de | — |
| support.class | #08584Cde | — |
| support.constant.color | #8D2262de | — |
| support.constant.dom | #7F381Fde | — |
| support.constant.font-name | #912A08de | — |
| support.constant.handlebars | #22418Bde | — |
| support.constant.json | #4B5308de | — |
| support.constant.math | #99035Dde | — |
| support.constant.media | #912A08de | — |
| support.constant.media-type | #064F06de | bold |
| support.constant.property-value | #093294de | — |
| support.function | #074907de | — |
| support.function.git-rebase | #08453Cde | — |
| support.other.parenthesis.regexp | #8B2260de | — |
| support.type | #6F24ACde | bold |
| support.type.property-name | #1C591Cde | bold |
| support.type.vendored.property-name | #912B08de | bold |
| support.variable | #4B5308de | — |
| token.debug-token | #063095de | — |
| token.error-token | #912B09de | — |
| token.info-token | #97085Ede | — |
| token.warn-token | #095C09de | — |
| variable | #6A24A3de | — |
| variable.css | #1A564Dde | — |
| variable.language | #09359Cde | — |
| variable.language.wildcard.java | #1A564Dde | — |
| variable.other.constant | #08584Cde | — |
| variable.other.definition.java | #97085Ede | — |
| variable.other.enummember | #99095Fde | — |
| variable.other.less | #4B5208de | — |
| variable.other.object.java | #6C311Ede | — |
| variable.other.object.property.java | #08594Dde | — |
| variable.parameter.c | #4B5308de | — |
| variable.parameter.function.language.python | #52207Bde | — |
| variable.parameter.java | #073298de | — |
| variable.scss | #4A4F18de | — |
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}!`;
}