Shopify Spotlight Theme: Master Custom Blue Outlines for Your Email Form's Focus State
Hey there, fellow store owners! As someone who spends a lot of time diving into the Shopify community forums, I often see recurring questions about making those small, impactful design tweaks that really make a store shine. Recently, a great discussion popped up that I thought we absolutely had to talk about: how to get that slick blue outline around your email signup form, specifically for those of you rocking the popular Spotlight theme.
Our friend qbhood kicked off the thread, asking for help to achieve a specific look: a blue outline that appears around their email form only when someone is typing in it. You know, that subtle visual cue that says, “Hey, you’re active here!” It’s a small detail, but it makes a huge difference in user experience and perceived professionalism.

The Challenge: Customizing Your Spotlight Email Form
The beauty of Shopify themes like Spotlight (which is based on Dawn) is their flexibility, but sometimes getting that exact custom look requires a little peek under the hood. The community discussion highlighted a few key points that can trip people up:
- Where to put the code: Many themes offer a “Custom CSS” box within the theme editor for specific sections. However, as Ploqo, one of our helpful experts in the thread, clarified, the Spotlight theme doesn’t actually have this custom CSS box for its email signup section. This means we’ll need to go directly into the theme’s code files.
- Targeting the right state: qbhood’s core request was for the outline to appear only while typing. This is known as a “focus state” in CSS. Simply adding a border to the field will make it always visible, which wasn’t the goal.
- Which CSS property to use: “Border,” “outline,” and “box-shadow” were all discussed. For that soft, glowing edge effect that doesn’t shift your layout,
box-shadowis often the best choice for focus states.
Initially, qbhood tried adding just a box-shadow line, but it didn’t work:

Ploqo explained that a CSS rule needs a “selector” wrapped around it, otherwise the browser ignores it. Also, on Spotlight, the blue that shows while typing is drawn on the email field itself, not on the box behind it, so the rule has to point at the field’s typing state.
Your Step-by-Step Guide to a Dynamic Blue Outline
Based on the invaluable insights from Ploqo and others in the community, here’s the most effective way to achieve that dynamic blue outline on your Spotlight theme’s email signup form, specifically for the typing (focus) state.
Here’s what the email box looks like at rest, then with the blue ring while typing:


1. Access Your Theme Code
This is where we’ll be making our changes. Don’t worry, it’s straightforward!
- From your Shopify admin, go to Online Store > Themes.
- Find your current Spotlight theme, click the … (three dots) button, and then select Edit code.

2. Locate and Edit base.css
The base.css file is a good place for global custom styles. Some in the thread suggested component-newsletter.css for tidiness, but for simplicity and broad application, base.css works perfectly.
- In the Assets folder, open
base.css(ortheme.cssorcustom.cssif your theme uses a different primary CSS file). - Scroll to the very bottom of the file.
- If you’ve previously added any newsletter-related custom code, it’s a good idea to remove it to avoid conflicts.
3. Paste the CSS Code for Focus State
This is the magic part! This code specifically targets the email input field when it’s in focus (i.e., when someone is typing).
.newsletter-form .field__input:focus,
.newsletter-form .field__input:focus-visible {
box-shadow: 0 0 0 0.3rem #0b63f6;
border-radius: 0.4rem;
outline: 0;
}
After pasting, click Save.
4. Adjust to Your Liking
You’ve got full control over the look:
0.3rem: This controls the thickness of the blue ring. Want it thicker? Increase the number. Thinner? Decrease it.0.4rem: This is for the corner rounding. A higher number makes it more rounded, a lower number makes it sharper.#0b63f6: This is the blue color. You can swap this out for any hex color code that matches your brand!
Exploring Other Approaches & Advanced Tips
The community discussion also touched on several other ways to achieve similar effects, and it’s worth understanding them:
Alternative Code Snippets
While the box-shadow approach for focus state is generally preferred for its clean look, other methods were suggested:
Using outline (One-Sun1995):
input[type="email"] {
outline: 2px solid #1e40ff;
outline-offset: 2px;
border-radius: 6px;
}
This uses the outline property, which paints on top of existing elements. It’s a valid approach, but outline-offset can sometimes crowd fields on mobile, as noted in the thread.
Using border for always-on (shopplaza_team):
.newsletter-form__field-wrapper input[type="email"] {
border: 2px solid #1a73e8;
border-radius: 8px;
outline: none;
}
This code adds a permanent border. If you wanted this to only appear on focus, you’d add :focus-visible:
.newsletter-form__field-wrapper input[type="email"]:focus-visible {
border: 2px solid #1a73e8;
border-radius: 8px;
outline: none;
}
The border property can sometimes cause slight layout shifts compared to box-shadow, which is why box-shadow is often favored for focus rings.
General email signup styling (Samcreativity04):
email-signup {
border: 2px solid #0066ff;
padding: 20px;
border-radius: 8px;
}
This snippet provides a general idea, but as Samcreativity04 wisely cautioned, don’t use all three selectors blindly as it could put multiple blue borders around different parts of the signup form. Always inspect your element to get the correct class names!
Comprehensive Styling (Resting, Hover, Typing)
Ploqo also provided a more comprehensive solution that styles the email box in three ways: default, with a border, and with the proposed fix, covering resting, hover, and typing states. This is useful if you want the blue outline to be visible even before typing, or on hover:

The code for this “always-on” or “hover” effect (not qbhood’s original request, but good to know) looks like this:
.newsletter-form .field:after,
.newsletter-form .field:hover.field:after {
box-shadow: 0 0 0 0.3rem #0b63f6;
border-radius: 0.8rem;
}
.newsletter-form .field__input,
.newsletter-form .field__input:focus,
.newsletter-form .field__input:focus-visible {
border-radius: 0.8rem;
box-shadow: none;
outline: 0;
}
This code covers the resting state, hover, and typing. Without the hover and focus rules, the outline flicks back to the theme color as soon as the cursor touches it. Remember, if you want blue only while typing, stick to the simpler :focus rule we covered first and drop the first rule from this longer snippet.
Here’s how it could look on an “Opening soon” page:

Important Considerations & Troubleshooting
- Third-Party Popups (e.g., Klaviyo): If your email form is part of a third-party app’s popup (like Klaviyo), theme CSS won’t reach it. You’ll need to style those forms directly within the app’s settings. This is a common oversight!
-
Targeting Specific Pages: If you only want this blue outline on a particular page (e.g., an “Opening Soon” page), you can prepend
body.passwordto your selectors. For example:body.password .newsletter-form .field__input:focus. - Theme Updates: Any direct code edits mean you’ll need to re-apply them if you update your theme to a new version. Always keep a backup of your custom CSS snippets!
Customizing your Shopify store with these small details can significantly enhance the user experience and make your brand stand out. It’s all about making those little touches count, and understanding how to tweak your theme’s CSS is a powerful skill for any store owner. If you're looking to start your own Shopify store, don't shy away from these kinds of customizations – they really do make a difference!
So go ahead, give your Spotlight theme’s email form that professional polish. Happy customizing!