Almost every component in Replo can have a background, which can be a color (solid, or a gradient) or an image.
Background Colors
To add a background color to a component:
- Select the component you want to give the background color to.
- Scroll down on the right side of the editor to "Background".
- If you want to enter the color as a hex code directly, you can type it into the input field.
- You can also click on the icon on the left to open a color picker. From there, you can choose a color from the color wheel, or you can click on the "Linear" button to add a gradient.
To add a background image to a component:
- Select the component you want to give the background color to.
- Scroll down on the right side of the editor to "Background".
- Click "Choose Image".
- Click "Select Background" to open the image library. Here, you can choose an image from your Shopify Store's theme, or simply add an image via URL.
Adjusting the Background Image's Positioning
After you've added a background image, you have a few options to adjust it's positioning and sizing.
- The "Size" dropdown lets you specify how the image should be adjusted to fill the background of the container.
- "Cover" will resize the image fill the entire background of the container. This is usually a good first choice!
- "Contain" will resize the image to fit inside the container, but might not fill the entire background.
- "Default" means the image won't be resized at all, even if it doesn't cover the entire background.
- The "Repeat" dropdown lets you control what happens when the background is big enough that the entire image is too small to fit inside it.
- "Tile" means the image will be repeated in order to fill the background.
- "No Repeat" means the image will not be repeated, even if it doesn't fill the whole background.
- "Repeat X" means the same thing as "Tile", but only in the horizontal direction.
- "Repeat Y" means the same thing as "Tile", but only in the vertical direction.
- The "X Position" and "Y Position" fields let you control how the image is positioned. To nudge the image left and right, you can increase or decrease these values. This is usually the most useful when the "Size" option is set to "Cover".