Matcha.css – 纯 CSS 中的嵌入式语义样式库
Matcha.css – Drop-in semantic styling library in pure CSS

原始链接: https://matcha.mizu.sh/

export class Context<T extends record> extends EventTarget { #dispatch(type: string, detail: Omit<detail, "type">) { Object.assign(detail, { type }) this.dispatchEvent(new Context.Event(type, { 详细信息 })) if ((type === "set") || (type === "删除") || (type === "call")) { this.dispatchEvent(new Context.Event( "change", {detail })) } for (const child of this.#children) { if (!Reflect.has(child.#target,detail.path[0] ??detail.property)) { child.#调度(类型,详细信息) } } } }

本文讨论了作者对简化 HTML 作为文档布局的唯一来源的欣赏。 然而,他们对默认设计表示担忧,特别提到了颜色和“抛光”。 他们建议与专业设计师合作或利用已建立的免费开源设计项目。 尽管最初对该设计感到担忧,但作者发现该项目对爱好者很有吸引力,并同意它改进了默认 CSS。 他们提出了更完善的默认设置以及在创建过程中进行自定义的能力。 一些建议包括改进的配色方案和可访问的设计考虑因素,特别是解决有关隐藏链接指示器的问题。 文本引用了几个相关的库,并邀请读者探索类似的工具。 作者最后讨论了 Web 界面开发的历史以及维护可用性和可访问性的重要性。
相关文章

原文
export class Context<T extends record> extends EventTarget {

  
  #dispatch(type: string, detail: Omit<detail, "type">) {
    Object.assign(detail, { type })
    this.dispatchEvent(new Context.Event(type, { detail }))
    if ((type === "set") || (type === "delete") || (type === "call")) {
      this.dispatchEvent(new Context.Event("change", { detail }))
    }
    for (const child of this.#children) {
      if (!Reflect.has(child.#target, detail.path[0] ?? detail.property)) {
        child.#dispatch(type, detail)
      }
    }
  }

}
联系我们 contact @ memedata.com