🎉 Black Friday deal! 30% off your first year of CodyHouse Pro →


Progress value is 30%


Edit the 📁 custom-style/_forms.scss file to create your custom form elements.

🔍 On this page:

  1. Form Control (.form-control) Component
  2. Fixed Size Inputs
  3. Custom Radio/Checkbox Buttons
  4. Custom Select
  5. Forms Visual Editor
  6. Useful Links

Form Control Component #

The .form-control class applies the basic style to all form elements.

You can also use one of the following class modifiers:

Class Description
.form-control basic style of all form elements
.form-control--error highlight form element where value entered is invalid
.form-control--disabled target disabled form elements

Other form classes:

Class Description
.form-legend <legend> element
.form-label <label> element

Fork the pen below or use the Forms Editor to create your custom form style:

Fixed Size Inputs #

If you want to create fixed-sized input variations (e.g., a .form-control element with a height equal to 40px), you can create class modifiers that set the desired size:

/* 👇 example: custom height utility classes */
.height-30, .height-40, .height-50 {
  height: var(--height);

  &.btn, &.form-control {
    line-height: var(--height);
    padding-top: 0;
    padding-bottom: 0;

.height-30 { --height: 30px; }
.height-40 { --height: 40px; }
.height-50 { --height: 50px; }

/* 👇 example: custom width utility classes */
.width-40, .width-120 {
  width: var(--width);

  &.btn {
    padding-left: 0;
    padding-right: 0;

.width-40  { --width: 40px; }
.width-120 { --width: 120px; }

Here's a live example:

Custom Radio/Checkbox Buttons #

To replace the native radio/checkbox buttons with custom ones, import the Radio Checkbox Buttons component.

Custom Select #

To replace the native select element with a custom one, import the Custom Select component.

Forms Editor #

The Forms Editor allows you to design and export form elements. The generated code should be pasted into CodyFrame's 📁 custom-style/_forms.scss file.

Project duplicated

Project created

Globals imported

There was an error while trying to export your project. Please try again or contact us.