The ideas that organize salle: how a skin turns a component’s intent into CSS classes, how theming layers a light/dark palette on top, and the useControllable hook every form control…
The ideas that organize salle: how a skin turns a component’s intent into CSS classes,
how theming layers a light/dark palette on top, and the useControllable hook every
form control shares.
Pages
The skin system— The idea that organizes salle: components describe intent, not appearance. A button doesn’t know it’s blue or rounded — it knows it’s a Color.Primary, Size.Md, ButtonVariant.Solid. A Skin translates that…
Light & dark theming— Skins decide which design system renders a component; themes decide its light/dark palette. They’re orthogonal: a single global theme name drives a data-theme attribute on the document root, and both…
useControllable— The hook every salle form control is built on, and one you can reuse for your own controlled/uncontrolled components. Given the optional controlled value, a default, and an onChange, it…