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 | #77D6D66e | — |
| comment.block.html | #7FD4D46e | — |
| comment.block.java | #77D6D66e | — |
| comment.block.javadoc.java | #7FD4D46e | — |
| comment.block.powershell | #79D6D66e | — |
| comment.block.xml | #7ED6D66e | — |
| comment.line.double-slash.c | #77D6D66e | — |
| comment.line.double-slash.cpp | #7ED6D66e | — |
| comment.line.double-slash.java | #79D6D66e | — |
| comment.line.double-slash.js | #7ED6D66e | — |
| comment.line.number-sign.makefile | #7ED6D66e | — |
| comment.line.number-sign.python | #77D6D66e | — |
| comment.line.number-sign.yaml | #77D6D66e | — |
| comment.line.percentage.erlang | #7FD4D46e | — |
| comment.line.powershell | #79D6D66e | — |
| comment.source.cmake | #77D6D66e | — |
| comment.source.cmakecache | #7FD4D46e | — |
| constant.character | #C7C7C7de | — |
| constant.character.character-class.regexp | #FCBB70de | — |
| constant.character.escape | #FEB2C6de | — |
| constant.character.set.regexp | #10E53Bde | — |
| constant.language | #8BDC10de | — |
| constant.numeric | #A8A8A8de | — |
| constant.numeric.dec.python | #2FDAF5de | — |
| constant.other.caps.python | #FEB2C7de | — |
| constant.other.character-class.regexp | #8CDD11de | — |
| constant.other.character-class.set.regexp | #88DB0Cde | — |
| constant.other.color.rgb-value | #10E53Bde | — |
| constant.other.placeholder | #FDBA6Ede | — |
| constant.other.rgb-value | #2BDAF6de | — |
| constant.regexp | #08E637de | — |
| constant.sha.git-rebase | #0EE539de | — |
| emphasis | #AEAEAEde | — |
| entity.name.class | #C4C4C4de | — |
| entity.name.function | #DA8AEEde | — |
| entity.name.function.preprocessor | #8DDD11de | — |
| entity.name.function.python | #FCBB73de | — |
| entity.name.label | #08E637de | — |
| entity.name.namespace | #8ADC12de | — |
| entity.name.operator | #0CE63Ade | — |
| entity.name.operator.custom-literal | #0CE63Ade | — |
| entity.name.scope-resolution | #A8A8A8de | — |
| entity.name.tag | #FEB2C7de | — |
| entity.name.tag.css | #EAAEF9de | — |
| entity.name.type | #F598B1de | — |
| entity.name.variable | #BCBCBCde | — |
| entity.other.attribute | #A8A8A8de | — |
| entity.other.attribute-name | #8CDD11de | — |
| entity.other.attribute-name.class.css | #C7C7C7de | — |
| entity.other.attribute-name.class.mixin.css | #B3B3B3de | — |
| entity.other.attribute-name.id | #C0C0C0de | — |
| entity.other.attribute-name.id.css | #DA89EFde | — |
| entity.other.attribute-name.parent-selector.css | #C7C7C7de | — |
| entity.other.attribute-name.pseudo-class.css | #E59FF7de | — |
| entity.other.attribute-name.pseudo-element.css | #FEB2C7de | — |
| entity.other.attribute-name.scss | #FEACC2de | — |
| entity.other.document.begin.yaml | #79D6D66e | — |
| entity.other.inherited-class | #2FDAF5de | — |
| header | #2BDAF6de | — |
| invalid | #DB89F0de | — |
| keyword | #DA8AEEde | — |
| keyword.codetag.notation.python | #2BDAF6de | — |
| keyword.control | #0AE736de | — |
| keyword.control.anchor.regexp | #DC87F1de | — |
| keyword.control.import.python | #2DDAF5de | — |
| keyword.operator | #EDB576de | — |
| keyword.operator.alignas | #A8A8A8de | — |
| keyword.operator.alignof | #FCBB72de | — |
| keyword.operator.cast | #C7C7C7de | — |
| keyword.operator.delete | #88DB0Cde | — |
| keyword.operator.documentation.powershell | #7ED6D66e | — |
| keyword.operator.expression | #F598B1de | — |
| keyword.operator.instanceof | #2DDAF5de | — |
| keyword.operator.logical.python | #C4C4C4de | — |
| keyword.operator.minus.exponent | #EFB2FEde | — |
| keyword.operator.negation.regexp | #EBB16Fde | — |
| keyword.operator.new | #C7C7C7de | — |
| keyword.operator.noexcept | #DC87F1de | — |
| keyword.operator.or.regexp | #BCBCBCde | — |
| keyword.operator.plus.exponent | #8ADD10de | — |
| keyword.operator.quantifier.regexp | #FCBB72de | — |
| keyword.operator.sizeof | #FEACC2de | — |
| keyword.operator.typeid | #EEB2FEde | — |
| keyword.operator.wordlike | #EAAEF9de | — |
| keyword.other.operator | #8ADC12de | — |
| keyword.other.package.java | #AAAAAAde | — |
| keyword.other.unit | #F491ABde | — |
| keyword.other.using | #11E53Cde | — |
| markup.bold | #FCBB72de | — |
| markup.changed | #08E637de | — |
| markup.deleted | #B3B3B3de | — |
| markup.fenced_code.block.markdown | #B7B7B7de | — |
| markup.heading | #1DDAF6de | — |
| markup.inline.raw | #11E53Ade | — |
| markup.inserted | #B3B3B3de | — |
| markup.italic | #2DDAF5de | — |
| markup.raw.block.markdown | #B7B7B7de | — |
| markup.strikethrough | #F1BE83de | — |
| markup.underline | #11E53Cde | — |
| meta.block.c | #EFB97Cde | — |
| meta.block.c | #FDBA6Ede | — |
| meta.class.java | #C7C7C7de | — |
| meta.definition.variable.name | #EF89A3de | — |
| meta.diff.header | #0EE53Ade | — |
| meta.embedded | #FDBA6Bde | — |
| meta.embedded.assembly | #2DDAF5de | — |
| meta.function-call.arguments.python | #FCBB70de | — |
| meta.function-call.python | #C0C0C0de | — |
| meta.member.access.python | #B3B3B3de | — |
| meta.method.java | #A8A8A8de | — |
| meta.object-literal.key | #10E53Bde | — |
| meta.paragraph.markdown | #89DD0Ede | — |
| meta.preprocessor | #8CDD11de | — |
| meta.preprocessor.numeric | #8DDD11de | — |
| meta.preprocessor.string | #10E53Bde | — |
| meta.scope.prerequisites.makefile | #DA8AEEde | — |
| meta.structure.dictionary.json.comments | #7FD4D46e | — |
| meta.structure.dictionary.key.python | #C4C4C4de | — |
| meta.structure.dictionary.value.json.comments | #7ED6D66e | — |
| meta.template.expression | #10E53Bde | — |
| meta.type.cast.expr | #C7C7C7de | — |
| meta.type.new.expr | #FEACC2de | — |
| parameter | #11E53Cde | — |
| punctuation.character.set.begin.regexp | #C7C7C7de | — |
| punctuation.character.set.end.regexp | #FEB2C7de | — |
| punctuation.definition.array.begin.json | #62D5E7de | — |
| punctuation.definition.character-class.regexp | #89DD08de | — |
| punctuation.definition.comment | #77D6D66e | — |
| punctuation.definition.comment.json.comments | #7FD4D46e | — |
| punctuation.definition.comment.python | #7ED6D66e | — |
| punctuation.definition.dictionary.begin.json | #DB89F0de | — |
| punctuation.definition.dictionary.end.json | #2DDAF5de | — |
| punctuation.definition.group.assertion.regexp | #E091F4de | — |
| punctuation.definition.group.regexp | #F189A4de | — |
| punctuation.definition.list.begin.json | #F1BE83de | — |
| punctuation.definition.list.begin.markdown | #F089A4de | — |
| punctuation.definition.list.begin.python | #F8A7BCde | — |
| punctuation.definition.list.end.json | #8DDD11de | — |
| punctuation.definition.list.end.markdown | #FEACC2de | — |
| punctuation.definition.list.end.python | #DA89EFde | — |
| punctuation.definition.parameters.begin.python | #FCBB73de | — |
| punctuation.definition.parameters.end.bracket.round.java | #2DDAF5de | — |
| punctuation.definition.quote.begin.markdown | #AAAAAAde | — |
| punctuation.definition.tag | #C7C7C7de | — |
| punctuation.definition.template-expression.begin | #FCBB72de | — |
| punctuation.definition.template-expression.end | #2EDAF5de | — |
| punctuation.section.class.begin.bracket.curly.java | #2BDAF6de | — |
| punctuation.section.embedded | #E091F4de | — |
| punctuation.section.embedded.begin.php | #C0C0C0de | — |
| punctuation.section.embedded.end.php | #AAAAAAde | — |
| punctuation.terminator.java | #8ADC0Dde | — |
| source.cmake | #EAAEF9de | — |
| source.coffee.embedded | #A8A8A8de | — |
| source.cpp | #2ADAF5de | — |
| source.css.less | #FCBB73de | — |
| source.groovy.embedded | #0AE736de | — |
| source.java | #27DAF6de | — |
| source.java-properties | #10E53Bde | — |
| source.json.comments | #7ED6D66e | — |
| source.makefile | #0DE536de | — |
| source.powershell | #FEB2C6de | — |
| source.powershell.variable.other.member | #EF89A3de | — |
| source.python | #FCBB70de | — |
| storage | #8ADD0Ede | — |
| storage.modifier | #F28AA6de | — |
| storage.modifier.import.java | #DB89F0de | — |
| storage.modifier.package.java | #A8A8A8de | — |
| storage.type | #FCBB73de | — |
| storage.type.annotation.groovy | #0DE536de | — |
| storage.type.annotation.java | #DD8AF2de | — |
| storage.type.boolean.go | #E398F5de | — |
| storage.type.byte.go | #EFB2FEde | — |
| storage.type.cs | #8BDD0Fde | — |
| storage.type.error.go | #EDACFEde | — |
| storage.type.generic.cs | #10E53Bde | — |
| storage.type.generic.groovy | #EDB576de | — |
| storage.type.generic.java | #2EDAF5de | — |
| storage.type.groovy | #F9AEC2de | — |
| storage.type.java | #EAAEF9de | — |
| storage.type.modifier.cs | #F598B1de | — |
| storage.type.numeric.go | #11E53Cde | — |
| storage.type.object.array.groovy | #E398F5de | — |
| storage.type.object.array.java | #E9AD69de | — |
| storage.type.parameters.groovy | #27DAF6de | — |
| storage.type.primitive.array.groovy | #0CE63Ade | — |
| storage.type.primitive.array.java | #8BDC11de | — |
| storage.type.primitive.groovy | #F089A4de | — |
| storage.type.primitive.java | #EFB97Cde | — |
| storage.type.rune.go | #2DDAF5de | — |
| storage.type.string.go | #C0C0C0de | — |
| storage.type.token.java | #C7C7C7de | — |
| storage.type.uintptr.go | #F089A4de | — |
| storage.type.variable.cs | #2BDAF5de | — |
| string | #AEAEAEde | — |
| string.quoted.docstring.multi.python | #7ED6D66e | — |
| string.regexp | #FCBB72de | — |
| string.tag | #8CDD11de | — |
| string.value | #10E53Bde | — |
| strong | #F1BE83de | — |
| support.class | #C7C7C7de | — |
| support.constant.color | #8ADC0Dde | — |
| support.constant.dom | #2DDAF5de | — |
| support.constant.font-name | #10E53Bde | — |
| support.constant.handlebars | #2BDAF6de | — |
| support.constant.json | #C7C7C7de | — |
| support.constant.math | #88DB0Cde | — |
| support.constant.media | #0CE63Ade | — |
| support.constant.media-type | #F598B1de | — |
| support.constant.property-value | #FEB2C7de | — |
| support.function | #B3B3B3de | — |
| support.function.git-rebase | #F8A7BCde | — |
| support.other.parenthesis.regexp | #EFB0FEde | — |
| support.type | #2ADAF5de | — |
| support.type.property-name | #0EE539de | — |
| support.type.vendored.property-name | #E091F4de | — |
| support.variable | #C7C7C7de | — |
| token.debug-token | #F089A4de | — |
| token.error-token | #8ADC0Dde | — |
| token.info-token | #89DD08de | — |
| token.warn-token | #EE8AA5de | — |
| variable | #FDBA6Ede | — |
| variable.css | #FCBB73de | — |
| variable.language | #F9AEC2de | — |
| variable.language.wildcard.java | #FEACC2de | — |
| variable.other.constant | #AEAEAEde | — |
| variable.other.definition.java | #11E53Cde | — |
| variable.other.enummember | #8BDC10de | — |
| variable.other.less | #E9AD69de | — |
| variable.other.object.java | #2BDAF6de | — |
| variable.other.object.property.java | #FCBB72de | — |
| variable.parameter.c | #FEACC2de | — |
| variable.parameter.function.language.python | #31DAF5de | — |
| variable.parameter.java | #0EE53Ade | — |
| variable.scss | #EDACFEde | — |
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}!`;
}