Add Support for `css-zero`
Author: cb341Created May 14, 2025Updated May 14, 2025
Problem
simple_form works well with Bootstrap 5 and Foundation, providing easy form styling. However, it lacks built-in support for the css-zero framework (https://github.com/lazaronixon/css-zero), requiring manual setup.
Solution
Add official css-zero support by:
- Adding an initializer: A pre-configured file to style
simple_formoutput forcss-zero. - Creating a generator option: Allow users to run
rails generate simple_form:install --css-zeroto easily install the setup file. - Updating documentation: Provide clear instructions on using
simple_formwithcss-zero.
Why css-zero?
css-zero is a "no build" or class-light CSS approach for Rails, and supporting it would make simple_form more versatile for developers who prefer this framework.
This feature would simplify integrating simple_form into projects using css-zero.
Source: heartcombo/simple_form