0.0
The project is in a healthy, maintained state
A Rails engine for semantic HTML forms with enforced internationalization. Provides reusable form components with built-in accessibility, validation states, and strict i18n requirements.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.0
~> 3.0
~> 13.0
~> 0.21
~> 1.0
~> 0.5
~> 0.16

Runtime

>= 8.0.0
 Project Readme

Chobble Forms

Semantic Rails forms with strict i18n enforcement.

Installation

Add this line to your application's Gemfile:

gem 'chobble-forms'

And then execute:

bundle install

Type Safety with Sorbet

ChobbleForms is fully typed with Sorbet (typed: strict) providing compile-time type safety and runtime validation. All field parameters must be symbols for a clean, consistent API.

Type Checking

bundle exec srb tc

Development Setup

  1. Install dependencies: bundle install
  2. Generate RBI files: bundle exec rake sorbet_rbi
  3. Run type checking: bundle exec rake typecheck

CSS Styles

ChobbleForms includes CSS for styling the form components. To use the included styles, add this to your application.css:

/*
 *= require chobble_forms
 */

The CSS includes:

  • Form Grids: Responsive grid layouts for various form field combinations
  • Form Fields: Styling for inputs, textareas, and labels
  • Radio Buttons: Custom radio button appearance with pass/fail color coding
  • Flash Messages: Styled success, error, notice, and alert messages

CSS Variables

The CSS uses the following CSS variables that you can override in your application:

  • --color-primary: Primary color for hover states (default: #118bee)
  • --color-pass: Pass/success color (default: #00a94f)
  • --color-fail: Fail/error color (default: #d32f2f)
  • --color-disabled: Disabled state color (default: #959495)