Project

nitro_kit

0.02
The project is in a healthy, maintained state
WIP, not usable yet
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 2.1.0
>= 7.0.0
 Project Readme

Nitro Kit

Nitro Kit

Audience: Rails developers evaluating or installing Nitro Kit.

Nitro Kit is a gem-owned Phlex UI system for Rails. The 2.0.0.beta.3 prerelease is under active testing and is not stable.

RubyGems

Install

Pin the prerelease:

gem "nitro_kit", "2.0.0.beta.3"
bundle install
bin/rails generate nitro_kit:install
bin/rails nitro_kit:doctor

Commit Gemfile and Gemfile.lock. Before upgrading, review the changelog, run bundle update nitro_kit, rerun the installer, and test the application. Production applications should use a released gem with a committed lockfile.

Start with:

Nitro Kit targets maintained evergreen browsers from roughly the previous two years, with Mobile Safari as a first-class target. See the browser support policy for exact fallback behavior.

Prompting a coding agent

Add this to a product bootstrap prompt so the agent installs Nitro Kit, uses its guidance, and discovers optional product patterns when available:

Add Nitro Kit 2 to this Rails app and use it for the product's application UI.

Set up Nitro Kit before planning or implementing the product:
- Add and pin the current Nitro Kit 2 prerelease in the Gemfile, run bundle install, run bin/rails generate nitro_kit:install, and run bin/rails nitro_kit:doctor.
- Load the generated project-local Nitro Kit skills and installed, version-matched docs.
- Check whether Nitro Kit catalog or MCP tools are available. If they are, inventory and search them by product workflow, retrieve relevant patterns, and state what you will use, adapt, or defer.
- If no catalog is available, continue with the bundled docs and component contracts; catalog access is optional.

Maintaining Nitro Kit 1? Its frozen documentation remains at v1.nitrokit.dev.

Eject for source-level customization

Prefer tokens and composition. When you need to change a component's source:

bin/rails generate nitro_kit:eject Button

Render Ui::EjectedButton::Button.new("Save") and load ejected_button.css after nitro_kit.css. Ruby, CSS, and Stimulus dependencies become application-owned; keep the gem installed for the shared kernel and tokens. See Eject for integration, collision handling, and upgrade responsibilities.

License

Nitro Kit uses the custom NitroKit License.