Design properties

Configure design properties for content elements, including text, background, border, media, size, and placement settings.

View as Markdown

Configure design properties in the right sidebar when configuring content elements.

Setting colors

To set a color in the Scenes editor, complete the following steps:

  1. Configure an option:
  2. Enter an opacity percentage.
  3. Select Done.

By default, the color you select and its opacity apply to both light and dark modes, and the link icon () between the Light and Dark cards shows this. A color set supplies its own light and dark values, which the cards display, and a custom color applies the same value to both modes.

To set a different color or opacity for each mode, select the icon to unlink them. The icon changes to a broken link (), and you can then configure each mode. To use the same color and opacity for both modes again, select the broken link icon. Dark mode then uses the light mode settings.

Background and border

Under Background and Border, configure design properties for backgrounds and borders for buttons, containers, NPS scales, and input fields:

PropertyDescription
Background color and opacityThe background color and transparency level.
Border color and opacityThe border color and transparency level.
Border widthThe border width in pixels.
Border corner radiusGoverns rounding corners.

To set the radius of each corner individually, select the corners icon (). iOS SDK 19.6+Android SDK 19.9+Web SDK 2+

Grid and spacing

Under Grid and spacing, configure design properties for the Icon Rating element:

PropertyDescription
Icon sizeThe size of each icon.
Wrap to new rowsMoves icons to new rows when the width cannot hold them all. When enabled, also set Max per row and Row spacing to determine the maximum number of icons in a row when icons wrap and the space between rows.
Item spacingThe space between icons in a row.
Spread across the widthSpaces the icons evenly across the width of the view.
Item alignmentThe horizontal position of the icons.

Icon styling

Under Icon styling, configure design properties for the Icon Rating element:

PropertyDescription
Icon styleThe appearance of the icons in the unselected state, either outline or filled.
Unselected color and opacityThe color and transparency level of the icons in the unselected state.
Selected fill color and opacityThe fill color and transparency level of the icons in the selected state.
Add outline strokeAdds an outline to the icons in the selected state. Set the outline color and transparency level.

Layout

Configure design properties that control the size and placement of content elements:

PropertyDescription
Size (All content elements except Custom View)Resizes the element based on height and width settings, which can be set in pixels or as a percentage of the screen or Container size. You can also select Auto to automatically adjust the size based on the content. Available options vary based on the parent and child elements. See Sizing and Media scaling and cropping.
Size (For Custom View only)Resizes the preview placeholder of the Custom View based on height and width settings. If set to Auto width, the preview will display at 100%. If set to Auto height, it will display at 200px.
Aspect ratio (For Container, Custom View, and Media only)Keeps the element at a fixed proportion on every device screen size and orientation. You can set a custom ratio or select from presets: 1:1, 4:3, 3:4, 16:9, or 9:16. When you set an aspect ratio, the height is calculated from the width, or the width from the height, so you set only one of the two. iOS SDK 21.2+Android SDK 21.2+Web SDK 2+
Flow direction (For Container only)Determines whether content elements within the Container are arranged vertically, horizontally, or stacked. In a stacked Container, elements are placed on top of each other, front to back. The first element you add is at the back, and the last is in front.
Scrollable content (For Container only)Determines whether content inside the Container scrolls when it exceeds the Container’s height or width. When enabled, content scrolls in the direction set by Flow direction. When disabled, content that exceeds the Container’s bounds is clipped.

Keep it enabled for Containers that contain text so users can scroll to read text that would otherwise be cut off or overlap other elements when they increase their device font size.

For Containers where you need precise alignment, such as vertical centering, disable this setting and set Flow direction to Stacked. To keep text scrollable for accessibility, place text inside a nested scrollable Container. See Alignment impact.

Item spacing (For Containers, Lists, and Questions with single or multiple choice answers)The space between items, in points. For Questions, the space between answers. For Containers, available when Flow direction is set to horizontal or vertical. iOS SDK 21.1+Android SDK 21.1+Web SDK 2+
AlignmentDetermines the horizontal and vertical positions of content elements within a screen or Container: left, middle, or right, and top, middle, or bottom.

See Alignment impact for more information.

MarginDetermines the spacing between the element and the Scene edges and proximity to other elements, set in pixels. For Questions, this setting is labeled Outer margin and applies to the entire Question, including the question text and the answers or answer field.
Question margin and Answer margin (For Questions only)Determines the spacing around the question text and around the answers, set in pixels. Answer margin applies to the answer field in an open question and to each answer in a single or multiple choice question.

Media fit or Image

Configure design properties for background media and for the List and Media content elements:

PropertyDescription
FitResizes media to fit within a viewable area, maintaining its original aspect ratio. For background media, the viewable area is the entire screen as determined by the selected view style. For Lists, the viewable area is the bullet for each item in a list. Fit is not available when using YouTube or Vimeo URLs.

Center inside resizes the media to fit entirely within the viewable area. The width and height of the media will be equal to or less than the width and height of the area. The media will not be cropped.

Center crop and Crop resize the media to fill the viewable area. The width and height of the media will be equal to or greater than the width and height of the view. The sides or top and bottom of the media will be cropped to fill the entire view.

When Crop is selected and the media does not fit within its viewable area, also set a Position. Center crop is equivalent to using Crop with Position set to Center-Center.

See Media scaling and cropping for more information.

PositionWhen Crop is selected for Fit, Position controls the vertical and horizontal alignment of media within its viewable area. The default position is Center-Center. Depending on the sizes of the media and the viewable area, the preview may not accurately reflect the selected position.

Video controls

Configure design properties for video in the Media content element:

PropertyDescription
Controls (For video Media only)Show video controls displays player controls, information, and options at the bottom of a video: play/pause, time elapsed and total time, mute, fullscreen, download, playback speed, picture in picture, and a progress bar. Autoplay and Loop control playback. Muted loads the video muted. Show video controls and Muted are enabled by default.

Typography

Under Typography, configure design properties for text:

PropertyDescription
Font familyThe font of the text: serif, sans-serif, or a custom font stack.
Font sizeThe size of the font in points.
Font weightThe thickness of the font, from 100 to 900. Common values are 300 for light, 400 for normal, and 700 for bold. Available weights depend on the selected font family. For SDK versions older than the required minimums, weights 100–600 fall back to 400 (normal), and weights 700–900 fall back to 700 (bold). iOS SDK 20.1+Android SDK 20.1+Web SDK 2+
Line heightThe vertical spacing between lines of text, as a multiplier. For example, 1.2 is 120% of the font size. iOS SDK 20.1+Android SDK 20.1+Web SDK 2+
Letter spacingThe horizontal spacing between characters, in points. iOS SDK 20.1+Android SDK 20.1+Web SDK 2+
Color, or input color, and opacityThe color and transparency level of the text. “Input color” specifies the text entered by a user when answering an open question.
AlignmentThe horizontal position of the text: left, middle, or right.
EmphasisThe format of the text: italic or underline.
Accessibility heading levelOptional, for Text only. The heading level of the text as an H1 to H6, for navigation using assistive technology such as screen readers. iOS SDK 18.13+Android SDK 18.5+Web SDK 2+

Appendix

The following is supplemental information related to design properties.

Alignment impact

The alignment of a content element will not always be apparent in a screen’s layout. The impact depends on the layout direction of the parent screen or Container, the elements added, and the size settings for both the element and its parent.

A screen or Container can align its elements only across the direction they are arranged in:

  • Vertical: Elements are arranged top to bottom, so you can align them horizontally (left, middle, or right) but not vertically.
  • Horizontal: Elements are arranged left to right, so you can align them vertically (top, middle, or bottom) but not horizontally.
  • Stacked: Elements are placed on top of each other with no direction, so you can align them both horizontally and vertically.

For example, to vertically center content within a non-scrollable Container, set the Container’s Flow direction to Stacked.

Size settings can also mask alignment. When a Container’s height is Auto, aligning content elements vertically will not change the layout because the Container will always be the same height as the content. Similarly, if you have a Media element in a Container and the media fills 100% of the Container width, setting the media’s horizontal alignment will not change the layout.

Sizing

When setting the Size of a content element, the Width and Height options depend on the Size settings of its parent Container. A percentage set along the direction the parent Container scrolls behaves like Auto, because the Container has no fixed size in that direction.

For example, in a vertically scrolling Container, setting a child element’s Height to 50% behaves like Auto. In a horizontally scrolling Container, the same applies to Width.

Size settings for content elements:

SettingDescription
AutoThe width or height of the element will automatically adjust its size based on the content within it.
Percentage (%)The width or height of the element will be equal to the percentage of the size of its parent Container. For example, if an element’s height is set to 50% and its parent Container is set to 100 pixels, the element’s height will be 50 pixels.
Pixels (px)The width or height of the element will be exactly the fixed number of pixels you set.

Setting rules:

  • If a Container’s height or width is set to Auto, the same setting in its child Containers or other elements can be set using Auto or pixels.
  • If a Container’s height or width is set using percentages or pixels, the same setting in its child Containers or other elements can be set using percentage, pixels, or Auto.
  • A parent Container’s height or width cannot be changed to Auto if any of its immediate child elements have height or width set using percentage.

For example, for a parent Container with a fixed height (set by pixels) that contains an image with a percentage height, you cannot change the Container height to Auto until after you change the nested image’s height to Auto or pixels.

Media scaling and cropping

When setting Size for Media, images scale as follows:

  • If Width is 100% and Height is Auto, the image scales to fit the width of the viewable area.
  • If the image is shorter than the viewable area, the image scales to fill the height of the area.
  • If the image is taller than the viewable area, the image scales to fill the width of the area.

When an image is scaled to fit the width of a viewable area, the vertical Position setting determines if the image will be placed at the top, center, or bottom of the area. When an image is scaled to fit the height of a viewable area, the horizontal Position setting aligns the image to the left, center, or right of the area.

Scaled media typically must be cropped to fit a viewable area. When configuring background media and the List and Media elements, you can decide how the media should be cropped: using the Fit option, select Crop, and then set a Position.

Generally, the only times scaling occurs without cropping is when one of the selected dimensions is Auto or when a viewable area happens to match the aspect ratio of the media.