JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 336
  • Score
    100M100P100Q97235F
  • License MIT

Device agnostic styles, components and hooks for React and Next.js apps.

Package Exports

  • device-agnostic-ui
  • device-agnostic-ui/package
  • device-agnostic-ui/package.json

Readme

Device Agnostic UI logo

Device Agnostic UI

npm version CI status

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 :focus styles.
  • 🚨 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 :root essentials.
  • πŸ–Œ 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-ui

Then load the styles.

API

Support