CSS and stored data

Updated November 10, 2026

CSS classes

ElementClasses
The field (.gfield)kchoices-field, kchoices-field--{mode} (and gfield--kchoices-image-choice on Image Choice fields)
The choices containerkchoices, kc-mode-{mode}, kc-s-{style-id}, plus classes from the style’s settings
One choicekc-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 cardkc-media (kc-media--image, --swatch, --icon), kc-text, kc-label, kc-sub, kc-left, kc-badge (kc-badge--{look}), kc-check
Around a cardkc-desc (hover description), kc-zoom (enlarge button), kc-qty (stepper), kc-group-heading, kc-counter
Visual dropdownkc-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; }.

PropertyStyle setting
--kc-accentSelected color
--kc-sel-bg, --kc-sel-bw, --kc-sel-label-cSelected background, outline width, label color
--kc-card-bg, --kc-border-c, --kc-border-w, --kc-radius, --kc-shadowCard background, outline color and width, corner curve, shadow
--kc-pad, --kc-pad-b, --kc-gap, --kc-inner-gap, --kc-min-wPadding, 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-scalePicture, icon and swatch settings
--kc-label-size, --kc-label-w, --kc-label-c, --kc-sub-size, --kc-sub-c, --kc-price-cText settings
--kc-check-size, --kc-check-c, --kc-badge-r, --kc-dis-opCheckmark, badge and unavailable settings

Stored data

DataWhere
Field and choice settingsInside the form, as properties starting kchoices (field) and kc (choice). They’re exported with the form.
StylesOption kchoices_styles; site default in kchoices_default_style
Choice libraryOption kchoices_lists
Image Choice site settingOption kchoices_image_choice_auto
QuantitiesEntry meta kchoices_qty_{field ID} (JSON: value → quantity)
Was this page helpful?
Scroll to top