Пропустить навигацию
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

@cvaneenige2 тыс. подписчиков

Открыть в X
610 отметок «Нравится»СкачатьОригинальный пост

52 082 просмотра

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?