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 | #412A136e | — |
| comment.block.html | #3E2C146e | — |
| comment.block.java | #3E2B136e | — |
| comment.block.javadoc.java | #412A136e | — |
| comment.block.powershell | #412A136e | — |
| comment.block.xml | #3E2C146e | — |
| comment.line.double-slash.c | #3E2C146e | — |
| comment.line.double-slash.cpp | #3E2B136e | — |
| comment.line.double-slash.java | #3D2C126e | — |
| comment.line.double-slash.js | #3E2B136e | — |
| comment.line.number-sign.makefile | #412A136e | — |
| comment.line.number-sign.python | #3E2C146e | — |
| comment.line.number-sign.yaml | #3E2C146e | — |
| comment.line.percentage.erlang | #412A136e | — |
| comment.line.powershell | #412A136e | — |
| comment.source.cmake | #3E2B136e | — |
| comment.source.cmakecache | #3E2C146e | — |
| constant.character | #4B2E1Cde | — |
| constant.character.character-class.regexp | #521F02de | — |
| constant.character.escape | #603921de | — |
| constant.character.set.regexp | #2F2F2Fde | — |
| constant.language | #0C5111de | — |
| constant.numeric | #521B33de | — |
| constant.numeric.dec.python | #0C370Ede | — |
| constant.other.caps.python | #2A3210de | — |
| constant.other.character-class.regexp | #202967de | — |
| constant.other.character-class.set.regexp | #293212de | — |
| constant.other.color.rgb-value | #414141de | — |
| constant.other.placeholder | #3C4B0Cde | — |
| constant.other.rgb-value | #043708de | — |
| constant.regexp | #202963de | — |
| constant.sha.git-rebase | #4E0270de | — |
| emphasis | #273303de | — |
| entity.name.class | #043708de | — |
| entity.name.function | #2F2F2Fde | — |
| entity.name.function.preprocessor | #414141de | — |
| entity.name.function.python | #672341de | — |
| entity.name.label | #5B0F31de | — |
| entity.name.namespace | #0C5111de | — |
| entity.name.operator | #5E0D2Ede | — |
| entity.name.operator.custom-literal | #591333de | — |
| entity.name.scope-resolution | #4A0A6Dde | — |
| entity.name.tag | #4A2610de | — |
| entity.name.tag.css | #0C370Ede | — |
| entity.name.type | #303030de | bold |
| entity.name.variable | #541933de | — |
| entity.other.attribute | #212963de | — |
| entity.other.attribute-name | #521F02de | — |
| entity.other.attribute-name.class.css | #383838de | — |
| entity.other.attribute-name.class.mixin.css | #591333de | — |
| entity.other.attribute-name.id | #551733de | — |
| entity.other.attribute-name.id.css | #0C370Ede | — |
| entity.other.attribute-name.parent-selector.css | #1B441Dde | — |
| entity.other.attribute-name.pseudo-class.css | #2F2F2Fde | — |
| entity.other.attribute-name.pseudo-element.css | #3B4B0Dde | — |
| entity.other.attribute-name.scss | #763108de | — |
| entity.other.document.begin.yaml | #412A136e | — |
| entity.other.inherited-class | #551733de | — |
| header | #242D6Fde | — |
| invalid | #2F2F2Fde | — |
| keyword | #043708de | bold |
| keyword.codetag.notation.python | #49175Ede | bold |
| keyword.control | #2F2F2Fde | bold |
| keyword.control.anchor.regexp | #511C33de | bold |
| keyword.control.import.python | #60213Dde | bold |
| keyword.operator | #4E0270de | bold |
| keyword.operator.alignas | #043708de | bold |
| keyword.operator.alignof | #091A92de | bold |
| keyword.operator.cast | #0E5112de | bold |
| keyword.operator.delete | #52321Ede | bold |
| keyword.operator.documentation.powershell | #3E2C146e | bold |
| keyword.operator.expression | #511C33de | bold |
| keyword.operator.instanceof | #182478de | bold |
| keyword.operator.logical.python | #1E276Cde | bold |
| keyword.operator.minus.exponent | #4A2610de | bold |
| keyword.operator.negation.regexp | #222968de | bold |
| keyword.operator.new | #4A2610de | bold |
| keyword.operator.noexcept | #462714de | bold |
| keyword.operator.or.regexp | #3B4B0Ade | bold |
| keyword.operator.plus.exponent | #441E55de | bold |
| keyword.operator.quantifier.regexp | #343434de | bold |
| keyword.operator.sizeof | #212962de | bold |
| keyword.operator.typeid | #441E55de | bold |
| keyword.operator.wordlike | #212962de | bold |
| keyword.other.operator | #4E0270de | bold |
| keyword.other.package.java | #103613de | bold |
| keyword.other.unit | #212963de | bold |
| keyword.other.using | #47195Cde | bold |
| markup.bold | #1B2574de | — |
| markup.changed | #1B441Dde | — |
| markup.deleted | #4B2E1Cde | — |
| markup.fenced_code.block.markdown | #043708de | — |
| markup.heading | #672341de | — |
| markup.inline.raw | #551733de | — |
| markup.inserted | #0B510Fde | — |
| markup.italic | #2F3717de | — |
| markup.raw.block.markdown | #48260Fde | — |
| markup.strikethrough | #522367de | — |
| markup.underline | #4E0270de | — |
| meta.block.c | #222968de | — |
| meta.block.c | #2A320Fde | — |
| meta.class.java | #2F2F2Fde | — |
| meta.definition.variable.name | #4E0270de | — |
| meta.diff.header | #2F2F2Fde | — |
| meta.embedded | #0B510Fde | — |
| meta.embedded.assembly | #202963de | — |
| meta.function-call.arguments.python | #033807de | — |
| meta.function-call.python | #091A92de | — |
| meta.member.access.python | #2F2F2Fde | — |
| meta.method.java | #4C0D66de | — |
| meta.object-literal.key | #1F2868de | — |
| meta.paragraph.markdown | #0E5112de | — |
| meta.preprocessor | #263300de | — |
| meta.preprocessor.numeric | #1E276Cde | — |
| meta.preprocessor.string | #0F3612de | — |
| meta.scope.prerequisites.makefile | #222968de | — |
| meta.structure.dictionary.json.comments | #412A136e | — |
| meta.structure.dictionary.key.python | #212962de | — |
| meta.structure.dictionary.value.json.comments | #3E2C146e | — |
| meta.template.expression | #521E35de | — |
| meta.type.cast.expr | #4C0B69de | bold |
| meta.type.new.expr | #2F2F2Fde | bold |
| parameter | #5F072Ede | — |
| punctuation.character.set.begin.regexp | #343D19de | — |
| punctuation.character.set.end.regexp | #2F3717de | — |
| punctuation.definition.array.begin.json | #2F2F2Fde | — |
| punctuation.definition.character-class.regexp | #521E35de | — |
| punctuation.definition.comment | #3E2C146e | — |
| punctuation.definition.comment.json.comments | #3E2C146e | — |
| punctuation.definition.comment.python | #3D2C126e | — |
| punctuation.definition.dictionary.begin.json | #103613de | — |
| punctuation.definition.dictionary.end.json | #603921de | — |
| punctuation.definition.group.assertion.regexp | #2F2F2Fde | — |
| punctuation.definition.group.regexp | #4C0D66de | — |
| punctuation.definition.list.begin.json | #2F2F2Fde | — |
| punctuation.definition.list.begin.markdown | #3A441Bde | — |
| punctuation.definition.list.begin.python | #091A90de | — |
| punctuation.definition.list.end.json | #293212de | — |
| punctuation.definition.list.end.markdown | #1E276Cde | — |
| punctuation.definition.list.end.python | #4B1262de | — |
| punctuation.definition.parameters.begin.python | #043708de | — |
| punctuation.definition.parameters.end.bracket.round.java | #591333de | — |
| punctuation.definition.quote.begin.markdown | #4A0A6Dde | — |
| punctuation.definition.tag | #451D57de | — |
| punctuation.definition.template-expression.begin | #60213Dde | — |
| punctuation.definition.template-expression.end | #461B58de | — |
| punctuation.section.class.begin.bracket.curly.java | #091A90de | — |
| punctuation.section.embedded | #47195Cde | — |
| punctuation.section.embedded.begin.php | #2F2F2Fde | — |
| punctuation.section.embedded.end.php | #121F85de | — |
| punctuation.terminator.java | #1C4B1Fde | — |
| source.cmake | #521B33de | — |
| source.coffee.embedded | #273303de | — |
| source.cpp | #6F2445de | — |
| source.css.less | #61032Cde | — |
| source.groovy.embedded | #4C0B69de | — |
| source.java | #091A90de | — |
| source.java-properties | #521F02de | — |
| source.json.comments | #412A136e | — |
| source.makefile | #4C0B69de | — |
| source.powershell | #432818de | — |
| source.powershell.variable.other.member | #182478de | — |
| source.python | #091A92de | — |
| storage | #451D57de | — |
| storage.modifier | #3C4B10de | — |
| storage.modifier.import.java | #2F2F2Fde | — |
| storage.modifier.package.java | #2A320Fde | — |
| storage.type | #57246Fde | bold |
| storage.type.annotation.groovy | #2F2F2Fde | bold |
| storage.type.annotation.java | #1E276Cde | bold |
| storage.type.boolean.go | #541933de | bold |
| storage.type.byte.go | #303030de | bold |
| storage.type.cs | #3C4B0Fde | bold |
| storage.type.error.go | #033807de | bold |
| storage.type.generic.cs | #61032Cde | bold |
| storage.type.generic.groovy | #3C4B0Fde | bold |
| storage.type.generic.java | #60213Dde | bold |
| storage.type.groovy | #2A320Fde | bold |
| storage.type.java | #4A2511de | bold |
| storage.type.modifier.cs | #61032Cde | bold |
| storage.type.numeric.go | #09510Dde | bold |
| storage.type.object.array.groovy | #3A441Bde | bold |
| storage.type.object.array.java | #2F2F2Fde | bold |
| storage.type.parameters.groovy | #242D6Fde | bold |
| storage.type.primitive.array.groovy | #113613de | bold |
| storage.type.primitive.array.java | #2F2F2Fde | bold |
| storage.type.primitive.groovy | #5E0D2Ede | bold |
| storage.type.primitive.java | #432818de | bold |
| storage.type.rune.go | #2A3210de | bold |
| storage.type.string.go | #2F2F2Fde | bold |
| storage.type.token.java | #4A0A6Dde | bold |
| storage.type.uintptr.go | #57246Fde | bold |
| storage.type.variable.cs | #273303de | bold |
| string | #5F072Ede | — |
| string.quoted.docstring.multi.python | #3D2C126e | — |
| string.regexp | #121F85de | — |
| string.tag | #2A320Fde | — |
| string.value | #303030de | — |
| strong | #592039de | — |
| support.class | #283308de | — |
| support.constant.color | #451D57de | — |
| support.constant.dom | #442A1Bde | — |
| support.constant.font-name | #2F2F2Fde | — |
| support.constant.handlebars | #521E35de | — |
| support.constant.json | #383838de | — |
| support.constant.math | #033807de | — |
| support.constant.media | #4E0270de | — |
| support.constant.media-type | #043708de | bold |
| support.constant.property-value | #512103de | — |
| support.function | #603921de | — |
| support.function.git-rebase | #2F2F2Fde | — |
| support.other.parenthesis.regexp | #2A320Fde | — |
| support.type | #2F2F2Fde | bold |
| support.type.property-name | #033807de | bold |
| support.type.vendored.property-name | #303030de | bold |
| support.variable | #3C4B10de | — |
| token.debug-token | #672341de | — |
| token.error-token | #49175Ede | — |
| token.info-token | #2A320Fde | — |
| token.warn-token | #461B58de | — |
| variable | #57246Fde | — |
| variable.css | #4B1262de | — |
| variable.language | #521E35de | — |
| variable.language.wildcard.java | #182478de | — |
| variable.other.constant | #103613de | — |
| variable.other.definition.java | #47195Cde | — |
| variable.other.enummember | #3C4B0Fde | — |
| variable.other.less | #09510Dde | — |
| variable.other.object.java | #0F5114de | — |
| variable.other.object.property.java | #5B0F31de | — |
| variable.parameter.c | #462714de | — |
| variable.parameter.function.language.python | #782F05de | — |
| variable.parameter.java | #202963de | — |
| variable.scss | #343434de | — |
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}!`;
}