@roprgm/ui0.8.4
InstallationColorsMaterialsDepthSizesUtilitiesWriting a theme
Actions7
ButtonIcon buttonCopy buttonChipKbdBadgeAvatar
Inputs14
InputNumber fieldTextareaFieldFieldsetCheckboxDrag toggleRadioSwitchToggle groupSelectComboboxSliderScrub input
Containers7
CardSeparatorCollapsibleAccordionScroll areaTableCode block
Navigation5
BreadcrumbPaginationTabsList itemTree
Overlays8
TooltipMenuContext menuPopoverDialogDrawerNoticeToast
Effects4
SpinnerProgressSkeletonScroll text
Photo editorForms
@roprgm/ui0.8.4

Fundamentals

What the library is, how to add it, and the rules its components follow.

InstallationAdd it as a package, or copy each component's source into your app.ColorsThe palette, and every color token as each container sets it.MaterialsWhat a box is made of, which any container can set again for what's inside it.DepthA card sets the colors of what sits on it, so its controls keep their contrast.SizesThree control heights a theme can scale, and corners from Tailwind's scale.UtilitiesWhat every control shares, and patterns too fiddly to write twice.Writing a themeA theme imports base.css and sets again only what it changes.