Class: Pinnacle::Types::FormBackgroundSolid
- Inherits:
-
Internal::Types::Model
- Object
- Internal::Types::Model
- Pinnacle::Types::FormBackgroundSolid
- Defined in:
- lib/pinnacle/types/form_background_solid.rb
Overview
No background effect — the form page is filled with a single flat color. The color itself isn’t specified on this object; it’s read from the sibling ‘colors` field on the same `theme_override` object (i.e. `theme_override.colors.light.background` in light mode, `theme_override.colors.dark.background` in dark mode). If you don’t override ‘colors`, the color falls back to the one your team has configured in the [Pinnacle Dashboard](app.pinnacle.sh/dashboard/forms).
Complete example — a POST ‘/forms` body that sets a white form in light mode and near-black in dark mode with no background effect:
“‘json {
"name": "Contact request",
"fields": [
{ "type": "text", "key": "full_name", "label": "Full name", "required": true }
],
"theme_override": {
"background": { "type": "solid" },
"colors": {
"light": { "background": "#ffffff" },
"dark": { "background": "#0a0a0a" }
}
}
} “‘
Pick ‘solid` when you want a clean one-color page with no gradient / image / pattern overlay. Use `gradient`, `image`, or `pattern` instead when you want something layered on top of the base color.
Method Summary
Methods inherited from Internal::Types::Model
#==, ===, add_extra_field_definition, coerce, extra_fields, field, fields, #initialize, #inspect, literal, load, #to_h
Methods included from Internal::Types::Type
Methods included from Internal::JSON::Serializable
Constructor Details
This class inherits a constructor from Pinnacle::Internal::Types::Model