跳过导航
Announcing Monochrome, an accessible UI component library in 2.2kB. HTML-first.
0:00 / 0:27

Announcing Monochrome, an accessible UI component library in 2.2kB. HTML-first.

Colin

@cvaneenige2015 位关注者

在 X 上查看
609 个赞下载原帖

52,184 次观看

Announcing Monochrome, an accessible UI component library in 2.2kB. HTML-first. Works with any framework. Zero dependencies.

26 条评论

评论来自 X (Twitter) 上的原帖

  • Colin 的头像

    @cvaneenige

    The entire library is minimal event listeners that handle everything. No per-component initialization and no internal state. The DOM is the source of truth.

    8 个赞

  • Colin 的头像

    @cvaneenige

    React wrappers are included, but React on the client is not required. The components render the correct HTML structure, all interactivity comes from the same 2kB core. No state, no useEffect, no hydration.

    6 个赞

  • Colin 的头像

    @cvaneenige

    Docs: Source:

    23 个赞

  • Terkel 的头像

    @terkelg

    Code poetry

    2 个赞

  • Colin 的头像

    @cvaneenige

    Means a lot, thank you.

    1 个赞

  • D7460N 的头像

    @D7460N

    Seeing more and more like this, standards driven, zero dependencies, and data-agnostic out-of-the-box. "Have UI, bring data." Great job!

    2 个赞

  • Cog_ 的头像

    @SMchustle

    Interesting and love ppl open sourcing libraries. The functionality is simplistic. Does someone really need a library for this?

    2 个赞

  • Colin 的头像

    @cvaneenige

    While it looks simple, there is actually a lot of logic under the hood to make it accessible. The menu alone comes in at 175 automated tests. The real complexity is the one you can't see.

    5 个赞

  • Zouhir 的头像

    @_zouhir

    Clean 🧼 ✨

    1 个赞

  • Josh Billington 的头像

    @joshthedevguy

    love this

    1 个赞

  • rusty.wtf 的头像

    @rustydotwtf

    ooo i will definitely be using this

    1 个赞

  • polihedge 的头像

    @polihedge

    Nice!

    1 个赞

  • Tim Mikeladze 的头像

    @linesofcode

    Cool! What’s the overlap between this and htmx?

    1 个赞

  • Colin 的头像

    @cvaneenige

    They're different and should pair nicely! HTMX does the server-driven updates in HTML, while Monochrome can be seen as the lightweight accessibility layer on top. I should make a demo with both combined.

    1 个赞

  • Tim Mikeladze 的头像

    @linesofcode

    Would be curious to see it! Keep crushing it.

    1 个赞

  • Adriano Fernandes 的头像

    @djadriano

    oh man, this is amazing, using the standards and keeping it clean. Good work

    1 个赞

  • Kehinde 的头像

    @adeleke5140

    Love lightweight libraries.

    1 个赞

  • neesh chaudhary~* 的头像

    @losingmyego

    👑

  • myf (formerly myf) 的头像

    @myfonj

    Do I understand correctly, that at this point, all components optimistically assume that JS is enabled and work, and that without JS they produce technically unreachable content? Is addressing this and turning it into truly progressive enhanced project in the backlog?

  • Bogdan 的头像

    @hellobogdan

    yo, what do you use to make your videos?