CSS and stored data
Updated November 10, 2026
CSS classes
| Element | Classes |
|---|---|
The field (.gfield) | kchoices-field, kchoices-field--{mode} (and gfield--kchoices-image-choice on Image Choice fields) |
| The choices container | kchoices, kc-mode-{mode}, kc-s-{style-id}, plus classes from the style’s settings |
| One choice | kc-choice, plus kc-has-media or kc-no-media, kc-disabled, kc-soldout, kc-exclusive, kc-pin, kc-other, kc-has-qty, kc-logic-hidden |
| The card (the label) | kc-card |
| Parts of a card | kc-media (kc-media--image, --swatch, --icon), kc-text, kc-label, kc-sub, kc-left, kc-badge (kc-badge--{look}), kc-check |
| Around a card | kc-desc (hover description), kc-zoom (enlarge button), kc-qty (stepper), kc-group-heading, kc-counter |
| Visual dropdown | kc-dd-button, kc-dd-value, kc-dd-panel, kc-dd-search, kc-dd-list, kc-dd-option, kc-dd-chips, kc-dd-chip |
CSS custom properties
Each style sets custom properties on its container, so you can change one thing for one form without a new style. For example, #gform_wrapper_7 .kchoices { --kc-accent: #0f766e; }.
| Property | Style setting |
|---|---|
--kc-accent | Selected color |
--kc-sel-bg, --kc-sel-bw, --kc-sel-label-c | Selected background, outline width, label color |
--kc-card-bg, --kc-border-c, --kc-border-w, --kc-radius, --kc-shadow | Card background, outline color and width, corner curve, shadow |
--kc-pad, --kc-pad-b, --kc-gap, --kc-inner-gap, --kc-min-w | Padding, padding below, gaps, card width for Auto columns |
--kc-ratio, --kc-fit, --kc-media-size, --kc-media-r, --kc-media-bg, --kc-icon-c, --kc-icon-scale | Picture, icon and swatch settings |
--kc-label-size, --kc-label-w, --kc-label-c, --kc-sub-size, --kc-sub-c, --kc-price-c | Text settings |
--kc-check-size, --kc-check-c, --kc-badge-r, --kc-dis-op | Checkmark, badge and unavailable settings |
Stored data
| Data | Where |
|---|---|
| Field and choice settings | Inside the form, as properties starting kchoices (field) and kc (choice). They’re exported with the form. |
| Styles | Option kchoices_styles; site default in kchoices_default_style |
| Choice library | Option kchoices_lists |
| Image Choice site setting | Option kchoices_image_choice_auto |
| Quantities | Entry meta kchoices_qty_{field ID} (JSON: value → quantity) |
Was this page helpful?
Thanks for letting us know.
