Ebay
www.ebay.com
Description
eBay Starter Template
A ready-to-paste starting point for your own eBay theme. It builds on the landmarks that have anchored eBay for years — the global header, the #gh-ac search input, the results item classes and the #glbfooter footer — and recolors those. Item photos, prices and bid/buy controls are never restyled.
/*
* CoolStyles Starter Template — eBay
* Built on eBay's long-lived landmarks: the global header, the
* #gh-ac search input, and the search-results item classes.
* Change the --cs-* colors to make it yours, paste into the
* CoolStyles CSS Editor on ebay.com, Preview, then Save. Item
* photos, prices and bid controls are never restyled.
*/
:root {
--cs-bg: #f5f7fa;
--cs-surface: #ffffff;
--cs-ink: #191919;
--cs-muted: #5d5d5d;
--cs-accent: #0064d2;
--cs-accent-warm: #f5af02;
--cs-line: #dddddd;
--cs-focus: #e53238;
}
/* 01 · Page canvas */
body {
background-color: var(--cs-bg);
color: var(--cs-ink);
}
/* 02 · Global header */
.gh-header {
background: var(--cs-surface);
border-bottom: 1px solid var(--cs-line);
}
/* 03 · Search box */
#gh-ac {
border-radius: 999px;
color: var(--cs-ink);
}
#gh-btn {
border-radius: 999px;
}
/* 04 · Results: item cards, photos untouched */
.srp-results .s-item {
background: var(--cs-surface);
border: 1px solid var(--cs-line);
border-radius: 14px;
}
.srp-results .s-item__title {
color: var(--cs-ink);
}
/* 05 · Primary buttons */
.btn--primary {
background: var(--cs-accent);
border-radius: 999px;
}
/* 06 · Footer */
#glbfooter {
background: var(--cs-surface);
border-top: 1px solid var(--cs-line);
}
/* 07 · Keyboard focus — keep it clearly visible */
a:focus-visible,
button:focus-visible,
input:focus-visible {
outline: 3px solid var(--cs-focus) !important;
outline-offset: 2px;
}
/* 08 · Reduced motion */
@media(prefers-reduced-motion: reduce) {
* {
transition: none !important;
animation: none !important;
}
}
Tip: eBay serves several header generations side by side. If a header rule does not bite on some page, that page is on the other generation — the results and footer hooks are the steady layer.
How to Use This Template
Install the free CoolStyles extension in your browser.
Open ebay.com in a tab and keep it active.
Click the CoolStyles icon and open the CSS Editor tab.
Paste the starter template (or a full example below) and give your style a name.
Press Preview to try it live on the page, then Save Style to keep it. Your style is stored in the extension and applied automatically every time you visit ebay.com.
Selector Reference
There is no eBay reference theme to extract from, so this table lists the structural landmarks that have remained stable across eBay's redesigns — the global-header family, the search IDs, and the results classes.
| Area | Selector | What it styles |
|---|---|---|
| Page | body |
Page background and base text color |
| Header | .gh-header |
The global header wrapper (logo, categories, search, account) |
| Search | #gh-ac |
The header search input — stable for many years |
| Search | #gh-btn |
The header search button |
| Results | .srp-results |
The search-results list container |
| Results | .srp-results .s-item |
One result item card: surface, border, radius — item photos stay untouched |
| Results | .s-item__title |
Result item titles |
| Buttons | .btn--primary |
Primary buttons from eBay's design system (Bid, Buy It Now family) |
| Footer | #glbfooter |
The global footer — a very long-lived ID |
Theme Ideas for eBay
eBay does not have a generated theme pack yet, so instead of finished themes, here are curated concepts to build from the starter — plus one complete example theme written from it, below.
eBay - Auction Night
DarkInk-blue after-dark bidding with a gavel-gold accent. Full CSS below.
eBay - Retro Market
VintageFlea-market warmth: cream cards, brick accents and catalog typography.
eBay - Sky Bid
BlueThe classic eBay blue, refreshed — lighter canvas, friendlier cards.
eBay - Paper Catalog
LightA quiet, print-catalog light theme for long comparison sessions.
eBay - Neon Deals
NeonDark shelves with neon price-tag energy for deal hunting at night.
See a complete example — eBay - Auction Night (full CSS)
A complete example theme written from the starter template above — pure CSS on the documented landmarks, no external assets. Copy it into the CSS Editor as-is, or mine it for techniques.
/*
* eBay — Auction Night
* After-dark bidding: ink-blue canvas, pale cards, signal-red
* focus and a gavel-gold accent. Landmark hooks only.
*/
:root {
--an-bg: #0f1420;
--an-surface: #1b2436;
--an-ink: #eef2f8;
--an-muted: #9fb0c7;
--an-accent: #5ea2ff;
--an-gold: #f5af02;
--an-line: #2c3a55;
--an-focus: #ff6b61;
}
body {
background-color: var(--an-bg);
color: var(--an-ink);
}
.gh-header,
#glbfooter {
background: var(--an-surface);
border-color: var(--an-line);
}
#gh-ac {
background: var(--an-bg);
color: var(--an-ink);
border-radius: 999px;
}
.srp-results .s-item {
background: var(--an-surface);
border: 1px solid var(--an-line);
border-radius: 14px;
box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.srp-results .s-item__title {
color: var(--an-ink);
}
.btn--primary {
background: var(--an-accent);
border-radius: 999px;
color: #0a1526;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
outline: 3px solid var(--an-focus) !important;
outline-offset: 2px;
}
@media(prefers-reduced-motion: reduce) {
* {
transition: none !important;
animation: none !important;
}
}
Theme Quality Rules
-
Define your palette once as CSS variables in
:root— recoloring then takes seconds and stays consistent. -
Never hide essential UI: no
display: noneon the header, search box, bid/buy buttons or watchlist controls. - Keep searching, bidding, buying and watchlists fully functional — keyboard navigation, Enter and Escape must behave as usual.
- Keep text readable: check the contrast of your text and link colors against your backgrounds.
-
Always style
:focus-visibleso keyboard users can see where they are. -
Respect
prefers-reduced-motionfor transitions and animations. -
Avoid deep
nth-childselector chains — they are the first thing to break when eBay shuffles its markup. -
Prefer the documented hooks over global rules such as
a { color: ... !important; }, which recolor every link on the page.
Specifications
<div></div>
ebay.com
Fast Deployment
Ready to use in seconds
DO YOU LIKE CUTE THEMES FOR WEBSITES ?
Choose from 1000+ unique themes and personalize your favourite websites.
Style Added
Failed. Please try again.
Click on the button below to install the extension!