Create any theme for Twitter
Description
X (Twitter) Starter Template
A ready-to-paste starting point for your own X theme. X is built with React Native Web, whose .r-* utility classes rotate between deploys — so this starter ignores them and builds only on the anchors that survive: semantic landmarks (header, main), ARIA labels and data-testid hooks. It recolors the canvas, navigation, timeline and the Post button, and deliberately leaves reply, repost, like and share controls exactly as they are.
/*
* CoolStyles Starter Template — X (Twitter)
* X renders with React Native Web utility classes that rotate
* between builds, so this starter builds only on the durable
* anchors: semantic landmarks (header, main), ARIA labels and
* data-testid hooks. Change the --cs-* colors to make it yours,
* paste into the CoolStyles CSS Editor on x.com, Preview, then
* Save. Reply, repost, like and share controls are deliberately
* left untouched — they have no verified hooks yet.
*/
:root {
--cs-bg: #101623;
--cs-surface: #182234;
--cs-ink: #eef3fb;
--cs-muted: #93a5c4;
--cs-accent: #4f9cf9;
--cs-line: #26314d;
--cs-focus: #ffd166;
}
/* 01 · Page canvas + main timeline region */
body {
background-color: var(--cs-bg);
color: var(--cs-ink);
}
main {
background-color: var(--cs-bg);
}
/* 02 · Left application region + primary navigation */
header {
background-color: var(--cs-bg);
border-color: var(--cs-line);
}
nav[aria-label="Primary"] a {
color: var(--cs-ink);
}
nav[aria-label="Primary"] a:hover {
color: var(--cs-accent);
}
/* 03 · Home timeline surface */
div[aria-label="Home timeline"] {
background-color: transparent;
}
/* 04 · Posts: card chrome only */
article[data-testid="tweet"] {
border-color: var(--cs-line);
}
article[data-testid="tweet"]:hover {
background-color: rgba(255, 255, 255, .03);
}
/* 05 · Post (compose) call-to-action — X sets inline colors, hence !important */
a[data-testid="SideNav_NewTweet_Button"] {
background-color: var(--cs-accent) !important;
border-color: var(--cs-accent) !important;
color: #0b1526 !important;
}
/* 06 · Account menu button */
button[data-testid="SideNav_AccountSwitcher_Button"]:hover {
background-color: var(--cs-surface);
}
/* 07 · Keyboard focus — keep it clearly visible */
a:focus-visible,
button:focus-visible,
div[aria-label="Home timeline"]: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: if you extend this template, anchor new rules to data-testid or ARIA attributes first. A rule aimed at an .r-* class may work today and silently stop matching at the next X deploy.
How to Use This Template
Install the free CoolStyles extension in your browser.
Open x.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 x.com.
Selector Reference
The hooks below were recorded from a live X session and are listed with the treatments each one safely allows. The durable core is the data-testid and ARIA anchors; the full observed hooks also carry utility-class chains, which are evidence for those exact elements only.
| Area | Selector | What it styles |
|---|---|---|
| Layout | header |
Left application region: background and border only — never its layout |
| Navigation | nav[aria-label="Primary"] |
Primary navigation: surface, text and border treatment |
| Navigation | a[data-testid="AppTabBar_Home_Link"] |
Home navigation item: text, hover and keyboard-focus treatment |
| Timeline | main |
Main application region: background and surface treatment; preserve scrolling |
| Timeline | div[aria-label="Home timeline"] |
Home timeline wrapper: background and border; preserve its keyboard focus and scrolling |
| Timeline | section[aria-labelledby="accessible-list-0"][role="region"] |
Timeline list region: background only — preserve list semantics and content |
| Composer | div.css-g5y9jx.r-14lw9ot.r-184en5c |
Composer surface (observed compound): background, border and text — typing, attachments and submission stay untouched |
| Posts | article[data-testid="tweet"] |
A post: card chrome, border, background and hover/focus outline only |
| Actions | a[data-testid="SideNav_NewTweet_Button"] |
Side-nav Post button: background, border, text/icon color, hover and focus — it carries inline colors, so overrides need !important |
| Actions | button[data-testid="SideNav_AccountSwitcher_Button"] |
Account menu button: background, border, icon/text color, hover and focus |
| Actions | div.r-1cwvpvk > button |
Follow button, scoped by its observed wrapper: colors and states only — never the wrapper's layout or min-width |
| Right rail | aside[aria-label="Subscribe to Premium"] |
Premium card: background, border, shadow and text — keep subscription controls intact |
| Base class | .css-g5y9jx |
Shared flex/reset base class — never override its display, sizing, margin, padding or stacking; use it only inside exact documented compounds |
.css-g5y9jx base class on its own: half the app inherits its layout from it.
data-testid and ARIA anchors, and always use the extension's Preview on the current x.com before saving.
Example Themes Built From This Template
Every theme below was generated from this same documentation — a name, a short description and the observed anchor map above. Use them as inspiration for your own palette and mood.
X - Aurora Birdwatch Theme
NatureAurora Birdwatch turns X into a calm night-sky field station, pairing midnight blues with soft aurora light for a timeline that feels made for quiet…
X - Block Builder Studio Theme
GamingBuild your timeline like a studio project with the X - Block Builder Studio Theme, a Roblox-inspired compact skin in graphite, chrome and builder red.
X - Blue Blur Speedline Theme
GamingBoost through your timeline with the X - Blue Blur Speedline Theme, a Sonic-inspired compact skin in cobalt, cyan and ring gold.
X - Capsule Power Arena Theme
AnimeTurn X into a battle stage with the X - Capsule Power Arena Theme, a Dragon Ball-inspired full skin in deep cobalt, capsule cyan and energetic orange.
X - Cartoon Chase Theme
CartoonStart a merry chase on X with the X - Cartoon Chase Theme, a playful Tom and Jerry-inspired compact skin in cheese yellow, sky blue and cartoon red.
X - Chiikawa Tiny Friends Theme
CuteMake X tiny and gentle with the X - Chiikawa Tiny Friends Theme, a soft sticker-book skin in milk cream, peach pink and warm cocoa.
X - Cosmic Crew Room Theme
GamingTake your post in the crew room with the X - Cosmic Crew Room Theme, an Among Us-inspired compact skin in navy space, cyan signals and alert red.
X - Creeper Craftwall Theme
GamingCraft your timeline block by block with the X - Creeper Craftwall Theme, a Minecraft-inspired compact skin in creeper green, grass and coal.
X - Dragon Warrior Dojo Theme
CartoonFind your calm in the X - Dragon Warrior Dojo Theme, a Kung Fu Panda-inspired full skin in ink charcoal, bamboo green, vermilion and warm gold.
X - Grand Line Maproom Theme
AnimeChart your course with the X - Grand Line Maproom Theme, a One Piece-inspired full skin that turns X into a nautical chart room — and a rare light…
X - Haunted Night Feed Theme
HolidayScroll carefully after dark with the X - Haunted Night Feed Theme, a Halloween-inspired compact skin in haunted violet, pumpkin orange and ghostly…
X - Kawaii Café Theme
CuteTake a sweet seat on X with the X - Kawaii Café Theme, a Sanrio-inspired compact skin in strawberry pink, milk cream, mint and cocoa.
X - Lantern Premiere Night Theme
HolidayLight the lanterns on X with the X - Lantern Premiere Night Theme, a Lunar New Year-inspired compact skin in festival red, lantern gold, jade and…
X - Mischief Toybox Theme
ToysTip out the toybox on X with the X - Mischief Toybox Theme, a Labubu-inspired compact skin in violet, tangerine and mint.
X - Mushroom Kingdom Arcade Theme
GamingInsert a coin on X with the X - Mushroom Kingdom Arcade Theme, a Super Mario-inspired compact skin in mushroom red, sky blue and coin gold.
X - Neon Diner Theme
RetroPull into a booth on X with the X - Neon Diner Theme, an original retro compact skin in ketchup red, fries yellow, chrome and teal.
X - Sunny Muddy Puddles Theme
CartoonPut on your boots on X with the X - Sunny Muddy Puddles Theme, a Peppa Pig-inspired cheerful skin in pink, sky blue, sunshine yellow and grass green.
X - Trainer Scrapbook Theme
AnimePaste your journey into X with the X - Trainer Scrapbook Theme, a Pokémon-inspired compact skin in Poké blue, electric yellow, paper-white cards and…
See a complete example — X - Aurora Birdwatch Theme (full CSS)
Pure CSS on the documented anchors — no external images, fonts or scripts. Copy it into the CSS Editor as-is, or mine it for techniques.
/* X.com — Aurora Birdwatch | USER_OBSERVED / UNVERIFIED */
:root {
--cs-x-sky-deep: #071a2b;
--cs-x-sky-mid: #0d3042;
--cs-x-surface: #103d50;
--cs-x-surface-hover: #164f62;
--cs-x-feather: #ecfbf8;
--cs-x-mist: #b9e0dc;
--cs-x-menu-text: #d5fff1;
--cs-x-aurora: #78e5c5;
--cs-x-aurora-violet: #a9a8ff;
--cs-x-focus: #fff1a8;
--cs-x-line: rgb(167 215 213 / 24%);
--cs-x-radius: 22px;
--cs-x-shadow: 0 18px 38px rgb(1 14 23 / 38%), 0 0 22px rgb(120 229 197 / 6%);
}
/* The navigation becomes a quiet midnight birdwatching station. */
header {
background:
radial-gradient(circle at 18% 8%, rgb(120 229 197 / 15%), transparent 18rem),
linear-gradient(180deg, var(--cs-x-sky-deep), #06131f) !important;
border-right: 1px solid var(--cs-x-line) !important;
color: var(--cs-x-feather) !important;
}
nav[aria-label="Primary"][role="navigation"].css-g5y9jx.r-eqz5dr.r-13qz1uu.r-1habvwh {
background: transparent !important;
color: var(--cs-x-feather) !important;
}
a[data-testid="AppTabBar_Home_Link"].css-g5y9jx.r-6koalj.r-eqz5dr.r-16y2uox.r-1habvwh.r-13qz1uu.r-1mkv55d.r-1ny4l3l.r-1loqt21 {
border-radius: 999px !important;
color: var(--cs-x-feather) !important;
transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
span.css-1jxf684.r-bcqeeo.r-1ttztb7.r-qvutc0.r-poiln3 {
color: var(--cs-x-menu-text) !important;
font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif !important;
font-weight: 600 !important;
letter-spacing: 0.01em;
}
svg.r-4qtqp9.r-yyyyoo.r-dnmrzs.r-bnwqim.r-lrvibr.r-m6rgpd.r-18jsvk2.r-lwhw9o.r-cnnz9e {
color: var(--cs-x-menu-text) !important;
fill: currentColor !important;
}
a[data-testid="AppTabBar_Home_Link"].css-g5y9jx.r-6koalj.r-eqz5dr.r-16y2uox.r-1habvwh.r-13qz1uu.r-1mkv55d.r-1ny4l3l.r-1loqt21:hover {
background-color: rgb(120 229 197 / 14%) !important;
box-shadow: 0 0 0 1px rgb(120 229 197 / 12%) inset;
color: var(--cs-x-aurora) !important;
}
a[data-testid="AppTabBar_Home_Link"].css-g5y9jx.r-6koalj.r-eqz5dr.r-16y2uox.r-1habvwh.r-13qz1uu.r-1mkv55d.r-1ny4l3l.r-1loqt21:hover span.css-1jxf684.r-bcqeeo.r-1ttztb7.r-qvutc0.r-poiln3 {
color: var(--cs-x-aurora) !important;
}
a[data-testid="AppTabBar_Home_Link"].css-g5y9jx.r-6koalj.r-eqz5dr.r-16y2uox.r-1habvwh.r-13qz1uu.r-1mkv55d.r-1ny4l3l.r-1loqt21:hover svg.r-4qtqp9.r-yyyyoo.r-dnmrzs.r-bnwqim.r-lrvibr.r-m6rgpd.r-18jsvk2.r-lwhw9o.r-cnnz9e {
color: var(--cs-x-aurora) !important;
}
/* Post is the luminous primary action; Follow stays a quieter glass action. */
a[data-testid="SideNav_NewTweet_Button"][aria-label="Post"][role="link"].css-g5y9jx.r-sdzlij.r-1phboty.r-rs99b7.r-lrvibr.r-19yznuf.r-64el8z.r-1fkl15p.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21 {
background: linear-gradient(135deg, #65dbbd 0%, var(--cs-x-aurora) 48%, var(--cs-x-aurora-violet) 130%) !important;
border: 1px solid rgb(236 251 248 / 43%) !important;
border-radius: 999px !important;
box-shadow: 0 10px 24px rgb(42 182 152 / 27%), inset 0 1px 0 rgb(255 255 255 / 32%) !important;
color: #062031 !important;
transition: box-shadow 160ms ease, filter 160ms ease;
}
a[data-testid="SideNav_NewTweet_Button"] div.css-146c3p1.r-qvutc0.r-37j5jr.r-q4m81j.r-a023e6.r-rjixqe.r-b88u0q.r-1awozwy.r-6koalj.r-18u37iz.r-16y2uox.r-bcqeeo.r-1777fci,
a[data-testid="SideNav_NewTweet_Button"] span.css-1jxf684.r-bcqeeo.r-1ttztb7.r-qvutc0.r-poiln3 {
color: #062031 !important;
}
a[data-testid="SideNav_NewTweet_Button"][aria-label="Post"][role="link"].css-g5y9jx.r-sdzlij.r-1phboty.r-rs99b7.r-lrvibr.r-19yznuf.r-64el8z.r-1fkl15p.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21:hover {
box-shadow: 0 13px 29px rgb(42 182 152 / 39%), 0 0 19px rgb(169 168 255 / 26%), inset 0 1px 0 rgb(255 255 255 / 40%) !important;
filter: brightness(1.07);
}
a[data-testid="SideNav_NewTweet_Button"][aria-label="Post"][role="link"].css-g5y9jx.r-sdzlij.r-1phboty.r-rs99b7.r-lrvibr.r-19yznuf.r-64el8z.r-1fkl15p.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21:active {
filter: brightness(0.96);
}
a[data-testid="SideNav_NewTweet_Button"][aria-label="Post"][role="link"].css-g5y9jx.r-sdzlij.r-1phboty.r-rs99b7.r-lrvibr.r-19yznuf.r-64el8z.r-1fkl15p.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21:focus-visible,
div.css-g5y9jx.r-1cwvpvk > button:focus-visible {
outline: 2px solid var(--cs-x-focus) !important;
outline-offset: 3px;
}
div.css-g5y9jx.r-1cwvpvk > button {
background: linear-gradient(135deg, rgb(120 229 197 / 18%), rgb(169 168 255 / 13%)) !important;
border: 1px solid rgb(120 229 197 / 52%) !important;
border-radius: 999px !important;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 5px 14px rgb(1 14 23 / 16%) !important;
color: var(--cs-x-menu-text) !important;
transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
div.css-g5y9jx.r-1cwvpvk > button:hover {
background: linear-gradient(135deg, rgb(120 229 197 / 30%), rgb(169 168 255 / 23%)) !important;
border-color: var(--cs-x-aurora) !important;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 8px 19px rgb(1 14 23 / 24%), 0 0 15px rgb(120 229 197 / 13%) !important;
}
/* Scope the circular aurora frame to the account-menu logo wrapper only. */
button[data-testid="SideNav_AccountSwitcher_Button"] > div.css-g5y9jx:first-child {
background: radial-gradient(circle at 30% 20%, rgb(236 251 248 / 19%), rgb(120 229 197 / 10%) 44%, rgb(169 168 255 / 13%) 100%) !important;
border: 2px solid rgb(120 229 197 / 70%) !important;
border-radius: 50% !important;
box-shadow: 0 0 0 3px rgb(169 168 255 / 10%), 0 7px 18px rgb(1 14 23 / 30%), inset 0 1px 0 rgb(255 255 255 / 24%) !important;
}
button[data-testid="SideNav_AccountSwitcher_Button"]:hover > div.css-g5y9jx:first-child {
border-color: var(--cs-x-focus) !important;
box-shadow: 0 0 0 4px rgb(120 229 197 / 14%), 0 9px 22px rgb(1 14 23 / 36%), 0 0 19px rgb(120 229 197 / 21%), inset 0 1px 0 rgb(255 255 255 / 30%) !important;
}
a[data-testid="AppTabBar_Home_Link"].css-g5y9jx.r-6koalj.r-eqz5dr.r-16y2uox.r-1habvwh.r-13qz1uu.r-1mkv55d.r-1ny4l3l.r-1loqt21:focus-visible,
article[data-testid="tweet"][role="article"].css-g5y9jx.r-18u37iz.r-1udh08x.r-1c4vpko.r-1c7gwzm.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21:focus-visible {
outline: 2px solid var(--cs-x-focus) !important;
outline-offset: 3px;
}
/* Aurora stays in the application canvas and never affects user media. */
main.css-g5y9jx.r-16y2uox.r-1wbh5a2.r-1habvwh {
background:
radial-gradient(ellipse at 92% 4%, rgb(169 168 255 / 17%), transparent 29rem),
radial-gradient(ellipse at 4% 26%, rgb(120 229 197 / 12%), transparent 24rem),
linear-gradient(150deg, var(--cs-x-sky-deep) 0%, var(--cs-x-sky-mid) 54%, #081f30 100%) !important;
border: 0 !important;
color: var(--cs-x-feather) !important;
}
/* Let the timeline list inherit the main aurora canvas instead of a separate surface. */
section[aria-labelledby="accessible-list-0"][role="region"].css-g5y9jx {
background: transparent !important;
}
/* Tabs sit on their own quiet aurora strip while keeping native tab behavior. */
div.css-g5y9jx.r-1e5uvyk.r-6026j {
background: linear-gradient(135deg, rgb(120 229 197 / 9%), rgb(169 168 255 / 7%)) !important;
border: 1px solid rgb(185 224 220 / 18%) !important;
border-radius: var(--cs-x-radius) !important;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%) !important;
margin-bottom: 15px !important;
}
div.css-g5y9jx.r-1awozwy.r-j5o65s.r-rull8r.r-qklmqi.r-18u37iz {
border-bottom: none !important;
}
/* Composer uses the same translucent aurora surface as the timeline cards. */
div.css-g5y9jx.r-14lw9ot.r-184en5c {
background:
linear-gradient(135deg, rgb(120 229 197 / 10%), rgb(169 168 255 / 7%)),
rgb(7 31 44 / 76%) !important;
border: 1px solid rgb(185 224 220 / 22%) !important;
border-radius: var(--cs-x-radius) !important;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%) !important;
color: var(--cs-x-feather) !important;
margin: 15px 0 !important;
padding: 15px !important;
}
/* Premium and right-rail cards share the same readable frosted aurora treatment. */
aside[aria-label="Subscribe to Premium"][role="complementary"].css-g5y9jx.r-1habvwh.r-eqz5dr.r-uaa2di.r-w7s2jr.r-u9wvl5.r-bnwqim,
div.css-g5y9jx.r-14lw9ot.r-jxzhtn.r-1867qdf.r-1phboty.r-rs99b7.r-1ifxtd0.r-1udh08x {
background:
radial-gradient(circle at 18% 12%, rgb(236 251 248 / 15%), transparent 31%),
linear-gradient(135deg, rgb(122 225 209 / 11%), rgb(169 168 255 / 8%)) !important;
border: 1px solid rgb(185 224 220 / 28%) !important;
box-shadow: 0 12px 28px rgb(1 14 23 / 20%), inset 0 1px 0 rgb(255 255 255 / 14%) !important;
color: var(--cs-x-feather) !important;
-webkit-backdrop-filter: blur(8px) saturate(118%);
backdrop-filter: blur(8px) saturate(118%);
}
article[data-testid="tweet"][role="article"].css-g5y9jx.r-18u37iz.r-1udh08x.r-1c4vpko.r-1c7gwzm.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21 {
background:
linear-gradient(120deg, rgb(120 229 197 / 8%), transparent 38%),
rgb(7 31 44 / 84%) !important;
border: 1px solid var(--cs-x-line) !important;
border-radius: var(--cs-x-radius) !important;
box-shadow: var(--cs-x-shadow) !important;
color: var(--cs-x-feather) !important;
margin: 15px 0 !important;
transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
article[data-testid="tweet"][role="article"].css-g5y9jx.r-18u37iz.r-1udh08x.r-1c4vpko.r-1c7gwzm.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21:hover {
background:
linear-gradient(120deg, rgb(120 229 197 / 13%), transparent 42%),
var(--cs-x-surface-hover) !important;
border-color: rgb(120 229 197 / 46%) !important;
box-shadow: 0 22px 45px rgb(1 14 23 / 45%), 0 0 28px rgb(120 229 197 / 13%), inset 0 1px 0 rgb(236 251 248 / 8%) !important;
}
@media(prefers-reduced-motion: reduce) {
a[data-testid="AppTabBar_Home_Link"].css-g5y9jx.r-6koalj.r-eqz5dr.r-16y2uox.r-1habvwh.r-13qz1uu.r-1mkv55d.r-1ny4l3l.r-1loqt21,
article[data-testid="tweet"][role="article"].css-g5y9jx.r-18u37iz.r-1udh08x.r-1c4vpko.r-1c7gwzm.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21,
a[data-testid="SideNav_NewTweet_Button"][aria-label="Post"][role="link"].css-g5y9jx.r-sdzlij.r-1phboty.r-rs99b7.r-lrvibr.r-19yznuf.r-64el8z.r-1fkl15p.r-o7ynqc.r-6416eg.r-1ny4l3l.r-1loqt21,
div.css-g5y9jx.r-1cwvpvk > button {
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 navigation, the composer, timeline controls or any post action. - Keep composing, posting, scrolling and keyboard navigation 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 X (Twitter) 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>
x.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!