Hi all,
Is there a way to easily add a thin black border only to the body and logo text on my password page to help with text visibility?
password not needed, its only the password page that needs the change
A user seeks to add a thin black border to body and logo text on their Shopify store’s password page to improve visibility against the background.
Multiple CSS Solutions Provided:
Several developers offered custom CSS approaches:
text-shadow with multiple offsets to create a stroke effect around text (works only for text, not image-based logos).background-image-container and .jumbo-text__container elementsImplementation Steps:
base.css file (or use Custom CSS in theme settings)Key Considerations:
The discussion remains open with no confirmed resolution from the original poster.
Hi all,
Is there a way to easily add a thin black border only to the body and logo text on my password page to help with text visibility?
password not needed, its only the password page that needs the change
Hi @vvyan ,
Yes — you can add a thin black border (stroke) to the text on your password page using a small piece of custom CSS.
Here’s how you can do it:
/* Adds black border (outline) to text */
##MainContent {
color: white; /* adjust if needed */
text-shadow:
-1px -1px 0 black,
1px -1px 0 black,
-1px 1px 0 black,
1px 1px 0 black;
}
Tip:
If your logo is an image instead of text, this method won’t apply — you’d need to edit the image itself or upload a version with an outline.
This will make your body and logo text more visible against the background without affecting the rest of your site.
Result:
If this solution helps, don’t forget to mark it as an Accepted Solution so others can find it easily!
Hi @vvyan
You want like this ?
.jumbo-text__container {
display: inline-block;
padding: 8px 16px;
border: 1px solid #000;
border-radius: 6px;
background: rgba(255, 255, 255, 0.9);
color: #000 !important;
position: relative;
z-index: 2;
}
.section-content-wrapper {
border: 1px solid #000;
border-radius: 8px;
background: rgba(255, 255, 255, 0.9);
padding: 32px 24px;
box-sizing: border-box;
max-width: 600px;
margin: 0 auto;
position: relative;
z-index: 1;
}
@media (max-width: 768px) {
.section-content-wrapper {
max-width: 90%;
padding: 20px;
}
.jumbo-text__container {
padding: 6px 12px;
font-size: clamp(24px, 8vw, 60px);
}
}
Hi @vvyan
Please add below CSS in base.css:
.background-image-container {
overflow: hidden;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: var(–image-opacity);
border: 1px solid #000;
}
.jumbo-text__container {
width: 100%;
border: 1px solid #000;
padding: 20px;
}
It will be look like below screenshot:
Hi @vvyan,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
.section.section--password * {
text-shadow: 1px 0 #000000, -1px 0 #000000, 0 1px #000000, 0 -1px #000000, 0.5px 0.5px #000000, -0.5px -0.5px #000000, 0.5px -0.5px #000000, -0.5px 0.5px #000000;
}