← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 125
  1. Articol fără titlu

    Working on some updates to make it easier to theme Clerk components from your existing CSS variables.

  2. type Cat = { kind: 'cat' } type Dog = { kind: 'dog' } type Pet = Cat | Dog function example(pet: Pet) { switch (pet.kind) { case: 'cat': return ...

  3. let animationRange = [0, 62]; if (!

  4. The Prettify Helper

    The Prettify helper is a utility type that takes an object type and makes the hover overlay more readable. type Prettify<T> = { [K in keyof T]: T[K]; } & {};

  5. Articol fără titlu

    Automatic foreground color contrast based on the provided background color. button { --background: black; --foreground: color( from var(--background) xyz round(up, min(1, max(0, 0.18 - y))) round(up, min(1, max(0, 0.18 - y))) round(up, min(1,

  6. Evil Martions Harmonizer

    Harmonizer is a tool for generating accessible, consistent color palettes for user interfaces.

  7. never just

    it’s never just that simple

  8. CSS Spring Easing Generator

    Also the companion tailwindcss-spring plugin.

  9. useMaskedScroll hook

    Very nice scroll mask implementation using registered @ properties by Sam Becker.

  10. Articol fără titlu

    Not uncommon to see folks add form submit handlers on the submit buttons click event vs on the forms submit handler.

  11. Adaptive dotted pattern

  12. The Wet Codebase

  13. Articol fără titlu

    Quick little improvement for wrapping highlighted text.

  14. Articol fără titlu

    Quick little improvement for elements that render dark even in light mode and have overflow, force the color-scheme to dark to blend the native form controls a bit better. pre { color-scheme: dark; } View demo on Twitter.

  15. Articol fără titlu

    Stop vertically aligning your checkboxes with center.

  16. Articol fără titlu

    This was a fun layout challenge for some dashboard UI we’ve been working on at Clerk.

  17. const tags = ["HTML", "CSS", "JavaScript"]; { new Intl.ListFormat("en-US").formatToParts(tags).map(({ type, value }) => { if (type === "element") { return <a href={`/${slugify(value)}`}>{value}</a>; } return value; }); } which retu…

  18. Animate height from 0 to auto

    .element { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s ease-in-out; } .element.open { grid-template-rows: 1fr; } References: How to animate an element’s height with CSS grid Animating CSS Grid (How To + Examples)

  19. Sanding UI

  20. Articol fără titlu

    React Aria exposing state through the className is super handy.

  21. The "everything bagel" of components

  22. Just use children