Create any theme for Google
Description
Google Homepage Starter Template
A ready-to-paste starting point for your own Google theme. It restyles the homepage
background, header links, the search box, the autocomplete suggestions, the
Google Search / I'm Feeling Lucky buttons and the footer — using only
the documented hooks from the selector reference below, with every color collected in
one :root block so you can re-theme it in seconds. It changes appearance
only: searching, autocomplete and keyboard navigation keep working exactly as before.
/*
* CoolStyles Starter Template — Google Homepage
* 1. Change the colors in :root to make it yours.
* 2. Paste into the CoolStyles extension (CSS Editor tab) on google.com.
* 3. Preview, then Save. Appearance only — search behaviour never changes.
*/
:root {
--cs-bg: #101828;
--cs-surface: #ffffff;
--cs-ink: #f2f4f7;
--cs-text-on-surface: #1d2939;
--cs-accent: #7c6cf0;
--cs-accent-deep: #5b4bc4;
--cs-border: #d0d5dd;
--cs-focus: #f6b73c;
}
/* 01 · Page background (homepage) */
body {
background-color: var(--cs-bg);
background-image: linear-gradient(160deg, #1b2a4a, var(--cs-bg));
color: var(--cs-ink);
}
/* 02 · Header links */
#hptl a,
#gb a {
color: var(--cs-ink);
}
#gb {
background-color: transparent !important;
}
/* 03 · Search box */
form[role="search"] .RNNXgb {
background: var(--cs-surface) !important;
border: 2px solid var(--cs-border) !important;
border-radius: 999px !important;
box-shadow: 0 6px 24px rgba(0, 0, 0, .35) !important;
}
form[role="search"] .RNNXgb:hover,
form[role="search"] .RNNXgb:focus-within {
border-color: var(--cs-accent) !important;
}
form[role="search"] .gLFyf,
form[role="search"] textarea[name="q"][role="combobox"] {
color: var(--cs-text-on-surface) !important;
caret-color: var(--cs-accent);
}
/* 04 · Autocomplete suggestions */
.aajZCb {
background: var(--cs-surface) !important;
border-radius: 0 0 18px 18px !important;
overflow: hidden;
}
.aajZCb .sbhl,
.aajZCb li:hover {
background: #eef2ff !important;
}
.aajZCb .sbl2,
.aajZCb .wM6W7d {
color: var(--cs-text-on-surface) !important;
}
/* 05 · Buttons: Google Search / I'm Feeling Lucky */
.FPdoLc input[type="submit"] {
background: var(--cs-accent) !important;
border: 2px solid var(--cs-accent-deep) !important;
border-radius: 999px !important;
color: #fff !important;
font-weight: 700 !important;
transition: filter 140ms ease, transform 140ms ease;
}
.FPdoLc input[type="submit"]:hover {
filter: brightness(1.08);
transform: translateY(-1px);
}
/* 06 · Footer */
[role="contentinfo"] {
background: rgba(255, 255, 255, .06) !important;
border-top: 1px solid rgba(255, 255, 255, .14) !important;
}
[role="contentinfo"] a {
color: var(--cs-ink) !important;
}
/* 07 · Keyboard focus — keep it clearly visible */
.FPdoLc input[type="submit"]:focus-visible,
form[role="search"] textarea[name="q"][role="combobox"]:focus-visible,
[role="contentinfo"] a:focus-visible {
outline: 3px solid var(--cs-focus) !important;
outline-offset: 3px;
}
/* 08 · Small screens */
@media(max-width: 600px) {
form[role="search"] .RNNXgb { border-width: 1px !important; }
}
/* 09 · Reduced motion */
@media(prefers-reduced-motion: reduce) {
.FPdoLc input[type="submit"] { transition: none; }
}
Tip: you rarely need to touch the selectors. Recolor the whole theme from the
:root variables, then adjust individual modules only if you want a
different shape or effect.
How to Use This Template
Install the free CoolStyles extension in your browser.
Open google.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 google.com.
Selector Reference
The hooks below are extracted from the project's reference theme for Google. They are
the safest starting points for each part of the page — prefer them over guessing class
names, and scope search-box rules with form[role="search"] like the
examples do.
| Area | Selector | What it styles |
|---|---|---|
| Page | body |
Page background and base text color |
| Header | #hptl a, #gb a |
Top-left links (About, Store, Gmail, Images) |
| Header | #gb |
Header bar — make it transparent over a themed background |
| Search box | .RNNXgb, .sbibod |
The rounded search container (background, border, shadow) |
| Search box | .gLFyf |
The text you type into the search box |
| Suggestions | .aajZCb |
Autocomplete dropdown panel |
| Suggestions | .erkvQe li, .sbhl |
Suggestion rows and the highlighted row |
| Suggestions | .sbl2, .wM6W7d, .mus_tt20 |
Suggestion and hint text |
| Buttons | .FPdoLc input[type="submit"] |
Google Search and I'm Feeling Lucky buttons |
| Footer | [role="contentinfo"], .fbar |
Footer surface and footer links |
| Logo area | .k1zIA, #hplogo |
Historical logo hooks — style around the logo; never hide or replace the branding |
#hplogo { display: none; },
#footcnt { visibility: hidden; }, #searchform > div { display: none; } —
plus long form > div:nth-child(...) chains and a global
a { color: ... !important; }. Do not copy those: they hide essential UI,
recolor every link on the page, or break the moment Google shuffles its markup.
Example Themes Built From This Template
Every theme below was generated from this same documentation — a name, a short description and the selector reference. Use them as inspiration for your own palette and mood.
Google - Sakura Theme
NaturePastel cherry-blossom homepage: cream search pill in a plum frame, petal-pink buttons. Full CSS below.
Google - Ocean Twilight Theme
NatureDeep-sea dusk gradient with calm teal accents for relaxed evening browsing.
Google - Dragon Ball Theme
AnimeBold orange-and-blue energy for Dragon Ball fans, with a power-up glow on the search box.
Google - Naruto Theme
AnimeHidden-leaf orange and midnight blue, with headband-metal highlights.
Google - One Piece Theme
AnimeGrand-line adventure colors: straw-hat yellow, sea blue and sunny skies.
Google - Pokémon Theme
AnimeElectric yellow and Poké-ball red for trainers who gotta theme 'em all.
Google - Minecraft Theme
GamingBlocky greens and earthy browns with squared-off, pixel-friendly corners.
Google - Super Mario Theme
GamingMushroom-kingdom red, sky blue and coin gold — a cheerful platformer palette.
Google - Tom & Jerry Theme
CartoonClassic cartoon warmth: cheese yellow, cosy browns and playful contrasts.
Google - Halloween Theme
HolidayPumpkin orange on a midnight background — spooky season, search-friendly.
Google - Valentine Theme
HolidaySoft reds and blush pinks with a romantic, hearts-in-the-air mood.
Google - Labubu Theme
ToysMischievous plush-toy pastels with a cheeky, collectible feel.
See a complete example — Google - Sakura Theme (full CSS)
Homepage scope, pure CSS with CSS-only gradients — no external images, fonts or scripts. Copy it into the CSS Editor as-is, or mine it for techniques.
/*
* Google Sakura Theme
* Homepage scope. Uses verified Google homepage hooks and no external assets.
*/
:root {
--sakura-sky: #eaf7ff;
--sakura-petal: #f6b8cd;
--sakura-petal-deep: #df6f9a;
--sakura-plum: #863858;
--sakura-leaf: #7ca96c;
--sakura-cream: #fffafa;
--sakura-ink: #402837;
--sakura-focus: #6a4fa3;
}
body {
color: var(--sakura-ink);
background-color: var(--sakura-sky);
background-image:
radial-gradient(ellipse at 13% 20%, rgba(255,255,255,.88) 0 16px, transparent 17px),
radial-gradient(ellipse at 21% 20%, rgba(255,255,255,.88) 0 22px, transparent 23px),
radial-gradient(circle at 29% 20%, rgba(255,255,255,.88) 0 11px, transparent 12px),
radial-gradient(circle at 81% 76%, rgba(246,184,205,.65) 0 3px, transparent 4px),
radial-gradient(circle at 18% 63%, rgba(223,111,154,.4) 0 2px, transparent 3px),
linear-gradient(150deg, #fffafd, var(--sakura-sky));
background-size: 300px 170px, 300px 170px, 300px 170px, 31px 31px, 44px 44px, auto;
}
/* Soft blossom search surface; native Google input behavior remains untouched. */
form[role="search"] .RNNXgb {
border: 4px solid var(--sakura-plum) !important;
border-radius: 999px !important;
background: var(--sakura-cream) !important;
box-shadow: 0 5px 0 var(--sakura-plum), inset 0 0 0 4px var(--sakura-petal) !important;
transition: transform 150ms ease, box-shadow 150ms ease;
}
form[role="search"] .RNNXgb:hover,
form[role="search"] .RNNXgb:focus-within {
transform: translateY(-2px);
box-shadow: 0 8px 0 var(--sakura-plum), inset 0 0 0 4px #ffd8e7 !important;
}
form[role="search"] .gLFyf,
form[role="search"] textarea[name="q"][role="combobox"] {
color: var(--sakura-ink) !important;
caret-color: var(--sakura-petal-deep);
}
form[role="search"] textarea[name="q"][role="combobox"]:focus-visible {
outline: 3px solid var(--sakura-focus) !important;
outline-offset: 4px;
}
.FPdoLc input[type="submit"] {
border: 3px solid #a63e69 !important;
border-radius: 999px !important;
background: linear-gradient(#f29aba, var(--sakura-petal-deep)) !important;
color: #fff !important;
box-shadow: 0 4px 0 #a63e69 !important;
font-weight: 700 !important;
text-shadow: 1px 1px 0 rgba(0,0,0,.17);
transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.FPdoLc input[type="submit"]:hover {
filter: brightness(1.07);
transform: translateY(-1px);
box-shadow: 0 5px 0 #a63e69 !important;
}
.FPdoLc input[type="submit"]:active {
transform: translateY(3px);
box-shadow: 0 1px 0 #a63e69 !important;
}
.FPdoLc input[type="submit"]:focus-visible,
form[role="search"] button:focus-visible,
[role="contentinfo"] a:focus-visible {
outline: 3px solid var(--sakura-focus) !important;
outline-offset: 3px;
}
.aajZCb {
overflow: hidden;
border: 3px solid var(--sakura-plum) !important;
border-top: 0 !important;
border-radius: 0 0 17px 17px !important;
background: var(--sakura-cream) !important;
box-shadow: 0 5px 0 rgba(134,56,88,.33) !important;
}
.aajZCb .sbhl,
.aajZCb li:hover {
background: #ffe4ed !important;
}
/* A spring garden footer in plum, leaf green and blossom pink. */
[role="contentinfo"] {
border-top: 7px solid var(--sakura-petal-deep) !important;
background-color: var(--sakura-plum) !important;
background-image: radial-gradient(circle at 16px 12px, rgba(246,184,205,.5) 0 3px, transparent 4px);
background-size: 34px 28px;
color: #fff8fb !important;
}
[role="contentinfo"] a {
color: #fff8fb !important;
}
@media(max-width: 600px) {
form[role="search"] .RNNXgb { border-width: 3px !important; }
}
@media(prefers-reduced-motion: reduce) {
form[role="search"] .RNNXgb,
.FPdoLc input[type="submit"] { transition: none; }
}
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 logo, the footer, the suggestions list or any part of the search form. - Keep search, autocomplete and keyboard navigation fully functional — arrow keys, 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 Google 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>
google.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!