Nitro Kit for Rails

Nitro Kit

Nitro Kit is a purposefully modest set of Phlex UI components for Rails, composed directly in Ruby.

The idea

Nitro Kit owns the reusable parts: component markup, the CSS, and a little behavior where the browser needs help. Your app themes it with CSS custom properties, composes or subclasses the pieces, and keeps every product decision to itself.

The rules

  • Compose in Ruby. APIs are explicit and validated, so a wrong option tells you instead of rendering something odd.
  • Prefer the platform. Rails, native HTML and CSS, and browser features come before custom JavaScript.
  • Keep ownership clear. Nitro Kit owns the reusable UI; your app owns its data, routes, authorization, and decisions.
  • Build up. Components combine into blocks and whole application layouts. Keep it simple and go fast.