Package Exports
- device-agnostic-ui
- device-agnostic-ui/package
- device-agnostic-ui/package.json
Readme
Device Agnostic UI
Device agnostic styles, components and hooks for React and Next.js apps β deviceagnosticui.com. One design for any viewport (size, orientation, resolution), input method (touch, mouse) or network speed. Simple to build, test and use.
- π¦ Tiny bundle size. JS tested to be < 3 kB minified and gzipped, before tree shaking.
- π± Mobile first. Intuitive layouts suitable for any screen size, without media queries.
- β¨οΈ Keyboard ok. Interactive components have clearly discernable
:focusstyles. - π¨ Native UI. Lightweight, pretty and accessible form field validation messages.
- π Dark mode. The color scheme adapts to the operating systemβs light or dark mode.
- π¨ CSS variables. Easily tweak the theme globally or in your components.
- π Few global styles. No intrusive normalization or resets; just the
:rootessentials. - π Style raw HTML. Special
<Html>component to style rendered markdown. - π§ Semantic markup. Lean use of semantically appropriate HTML elements.
- βοΈ Modern React. Elegant use of React hooks, refs and fragments makes for a great DX.
Setup
To install from npm run:
npm install device-agnostic-uiThen load the styles.
API
Support
- Node.js
^10.17.0 || ^12.0.0 || >= 13.7.0 - Browsers
> 0.5%, not OperaMini all, not IE > 0, not dead