Shopify Dawn Theme: Master Multicolumn Layouts & Header Icon Effects with CSS

Hey there, fellow store owners! It's your Shopify migration expert here, diving into another fantastic discussion from the community forums. This time, we're tackling a couple of common customization headaches with the ever-popular Dawn theme: getting your multicolumn sections to look just right and adding a little pizzazz to your header icons.

The Dawn theme is a powerhouse, no doubt, offering incredible flexibility right out of the box. But sometimes, you need that extra tweak, that perfect pixel adjustment, or that subtle animation to truly make your brand shine. That's exactly what one of our community members, "filials," was looking for when they recently asked for a hand with their multicolumn section and header icons. And as always, the community delivered!

The Multicolumn Mystery: Sizing & Spacing Solved!

Filials initially wanted to adjust the padding/spacing between those "white boxes" (the individual items in a multicolumn section) and even make them about 50% smaller. They couldn't quite figure out where to make those changes in the theme editor, which is a super common challenge. The good news? It's definitely doable with a few lines of Custom CSS!

Our resident CSS guru, "tim_tairli," jumped in with some brilliant insights. It turns out, the widths of your multicolumn items aren't just fixed numbers; they're dynamically calculated based on the overall section width and the gaps between items. Here's a peek at how Dawn typically calculates this:

@media screen and (min-width: 990px) {
  .grid--5-col-desktop .grid__item {
    width: calc(20% - var(--grid-desktop-horizontal-spacing) * 4 / 5);
    max-width: calc(20% - var(--grid-desktop-horizontal-spacing) * 4 / 5);
  }
}

See that calc() function? It means for a 5-column grid, each item takes up 20% of the space, minus a portion of the horizontal spacing. Understanding this helps us realize that to truly control the size and spacing, we need to adjust the variables that feed into this calculation.

How to Adjust the Overall Multicolumn Section Width

If you want to influence the overall width of your multicolumn section, making the items collectively larger or smaller by giving them more or less room, you can target the .multicolumn class and adjust the --page-width variable. This is a powerful variable that controls the maximum width of many sections on your Dawn theme.

Here's what you need to do:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find your Dawn theme and click Customize.
  3. Navigate to the page where your multicolumn section is visible.
  4. Click on the Multicolumn section in the left sidebar.
  5. Scroll down to the bottom of the section settings and click on Custom CSS.
  6. Add the following code, adjusting the 90rem value to your liking (a smaller value will make the section narrower, and vice-versa):
    .multicolumn {
      --page-width: 90rem;
    }
    

90rem is a good starting point, but feel free to experiment with values like 70rem for a narrower look or 100rem for wider. This will effectively adjust the canvas on which your columns are drawn, influencing their overall size.

Fine-Tuning the Gaps: Horizontal and Vertical Spacing

The core of filials' original question was about the spacing *between* the boxes. This is where those handy CSS variables for grid spacing come into play. Tim_tairli pointed us to these specific variables:

  • --grid-desktop-horizontal-spacing
  • --grid-desktop-vertical-spacing
  • --grid-mobile-horizontal-spacing
  • --grid-mobile-vertical-spacing

By adjusting these, you gain precise control over the visual separation between your multicolumn items, both on desktop and mobile.

To adjust the multicolumn spacing:

  1. Follow steps 1-5 from above to navigate to your Multicolumn section's Custom CSS.
  2. Add this code block, modifying the pixel values to increase or decrease the spacing:
    .multicolumn-list {
      --grid-desktop-horizontal-spacing: 40px;
      --grid-desktop-vertical-spacing: 40px;
      --grid-mobile-horizontal-spacing: 10px;
      --grid-mobile-vertical-spacing: 10px;
    }
    

Remember, smaller pixel values mean less space between items, and larger values increase the gap. This directly addresses the "left/right padding between each one" request. While the thread didn't provide a direct "make boxes 50% smaller" CSS, controlling the --page-width and these spacing variables will significantly impact the perceived size and arrangement of your multicolumn items.

Here's a visual from tim_tairli highlighting where you'd typically find the Custom CSS section:

Adding a Touch of Flair: Hover Effects for Header Icons

Filials also asked about adding a subtle hover effect to their custom account, cart, and search icons in the header, making them "a little bit bigger on hover." This is a fantastic way to add interactivity and a polished feel to your store!

Tim_tairli provided a straightforward CSS snippet using the transform: scale() property, which is perfect for this:

To add a hover effect to header icons:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find your Dawn theme and click Customize.
  3. In the theme editor, click on Theme settings (the gear icon in the bottom left).
  4. Scroll down and click on Custom CSS.
  5. Add the following code. You can change the 1.1 value to make the icon scale more (e.g., 1.2) or less (e.g., 1.05) on hover:
    .header__icon:hover {
      transform: scale(1.1);
    }
    

Alternatively, you could place this code in the "Custom CSS" section of your Header section settings if you prefer to keep your CSS organized by section. Both locations will work!

It's always amazing to see how a few lines of CSS, combined with the collective wisdom of the Shopify community, can transform your store's design. Filials confirmed these solutions worked perfectly, which is the best outcome we could hope for! Don't be afraid to experiment with these values and see what looks best for your brand. That&s the beauty of having access to Custom CSS – you're in control!

Happy customizing!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools