<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdelkarim Omar Mtit</title>
    <description>The latest articles on DEV Community by Abdelkarim Omar Mtit (@ctrlcheese).</description>
    <link>https://dev.to/ctrlcheese</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3878801%2Fe8663d23-f6fb-4032-9850-a9ad25bf8299.png</url>
      <title>DEV Community: Abdelkarim Omar Mtit</title>
      <link>https://dev.to/ctrlcheese</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ctrlcheese"/>
    <language>en</language>
    <item>
      <title>Google Play's '12 testers for 14 days' rule nearly killed my launch — so I built a marketplace to fix it</title>
      <dc:creator>Abdelkarim Omar Mtit</dc:creator>
      <pubDate>Sun, 15 Nov 2026 21:52:42 +0000</pubDate>
      <link>https://dev.to/ctrlcheese/google-plays-12-testers-for-14-days-rule-nearly-killed-my-launch-so-i-built-a-marketplace-to-479o</link>
      <guid>https://dev.to/ctrlcheese/google-plays-12-testers-for-14-days-rule-nearly-killed-my-launch-so-i-built-a-marketplace-to-479o</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — If you have a &lt;em&gt;personal&lt;/em&gt; Google Play developer account, you can't publish your app until &lt;strong&gt;12 testers have been opted into a closed test for 14 continuous days&lt;/strong&gt;. Finding those testers alone is slow and unreliable, and the "tester farm" shortcuts are a compliance landmine. I built &lt;strong&gt;&lt;a href="https://twlvr.de" rel="noopener noreferrer"&gt;twlvr&lt;/a&gt;&lt;/strong&gt; — a mutual-exchange marketplace where you test other developers' apps and they test yours — to make it a fast, fair, human exchange. This is the story and the build.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The rule nobody warned me about
&lt;/h2&gt;

&lt;p&gt;I finished an Android app. Signed build, store listing, screenshots, the whole thing. I hit publish and Google Play said, essentially: &lt;em&gt;not yet&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Since Google tightened the rules for &lt;strong&gt;personal developer accounts&lt;/strong&gt;, you now have to run a &lt;strong&gt;closed test&lt;/strong&gt; before you're allowed anywhere near production:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;12 testers&lt;/strong&gt; opted into your closed track,&lt;/li&gt;
&lt;li&gt;for &lt;strong&gt;14 continuous days&lt;/strong&gt;,&lt;/li&gt;
&lt;li&gt;with &lt;strong&gt;real, ongoing engagement&lt;/strong&gt; — not 12 names on a list.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last requirement is the killer. It's not "collect 12 emails." It's "keep 12 real people actively opted in, without a break, for two weeks." If the test lapses, the clock resets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it's harder than it sounds
&lt;/h2&gt;

&lt;p&gt;The first time you read it, 12 people / 14 days sounds trivial. Then you try it.&lt;/p&gt;

&lt;p&gt;Most indie developers do &lt;strong&gt;not&lt;/strong&gt; have 12 friends with Android phones who will:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;install a half-finished app,&lt;/li&gt;
&lt;li&gt;keep it installed for two weeks, and&lt;/li&gt;
&lt;li&gt;actually open it now and then so the engagement looks real.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So you do what everyone does: you post in subreddits, Discord servers, Telegram groups, and Play Console tester-swap threads. It's slow, noisy, and worst of all &lt;strong&gt;flaky&lt;/strong&gt; — volunteers drop off around day 2 or 3, which breaks the &lt;em&gt;continuous&lt;/em&gt; part and sends you back to the start.&lt;/p&gt;

&lt;p&gt;You end up spending more energy recruiting testers than you spent building the feature you want feedback on.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tempting wrong answer: tester farms
&lt;/h2&gt;

&lt;p&gt;There's a whole grey market of "I'll be your tester, you be mine" and paid tester groups. Some of them are just a spreadsheet of accounts one person controls.&lt;/p&gt;

&lt;p&gt;I didn't want to go near that, for two reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It's against the spirit (and often the letter) of the policy.&lt;/strong&gt; The point of closed testing is &lt;em&gt;real&lt;/em&gt; feedback from &lt;em&gt;real&lt;/em&gt; devices. Faking engagement is exactly what Google is trying to screen out, and it puts your production review at risk.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's bad for the thing I actually care about&lt;/strong&gt; — shipping software people use. Twelve bots clicking once a day tell me nothing about my app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the constraint became: &lt;strong&gt;real humans only, no self-run multi-account farms.&lt;/strong&gt; That single rule shaped the entire product.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: reciprocity, turned into a marketplace
&lt;/h2&gt;

&lt;p&gt;Here's the insight that made it click: &lt;strong&gt;every developer stuck on this rule is also a perfect tester for someone else.&lt;/strong&gt; We all have the same problem at the same time. That's a classic two-sided market waiting to happen — except both sides are the &lt;em&gt;same people&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;So in &lt;a href="https://twlvr.de" rel="noopener noreferrer"&gt;twlvr&lt;/a&gt;, there's no "developer tier" and "tester tier." &lt;strong&gt;Every account is both.&lt;/strong&gt; You post your app that needs testers, and you test other people's apps. A lightweight &lt;strong&gt;points economy&lt;/strong&gt; balances giving and receiving so nobody can only take.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You test other apps        →   you earn points + reputation
You spend points           →   real testers join your closed test
Everyone checks in daily   →   the 14-day streak builds itself
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How it works, concretely
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One account, both roles.&lt;/strong&gt; Sign up on web or Android — same account, same streak across devices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post a request.&lt;/strong&gt; Drop your closed-test opt-in link and how many testers you need.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Browse the feed.&lt;/strong&gt; Apps that need testers, each with the developer's reliability and reputation score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test and check in.&lt;/strong&gt; A single daily tap logs continuous testing. You can watch the streak march toward day 14 — which is exactly the signal Play Console wants.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get matched back.&lt;/strong&gt; Your points and good standing bring real testers to &lt;em&gt;your&lt;/em&gt; app.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;p&gt;Since this is dev.to, here's the part you actually came for. It's a &lt;strong&gt;pnpm + Turborepo monorepo&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web&lt;/strong&gt; — &lt;strong&gt;Next.js 16&lt;/strong&gt; (App Router) with &lt;strong&gt;Tamagui&lt;/strong&gt;, deployed to &lt;strong&gt;Cloudflare Workers&lt;/strong&gt; via &lt;code&gt;@opennextjs/cloudflare&lt;/code&gt;. The marketing site (&lt;code&gt;twlvr.de&lt;/code&gt;) and the dashboard (&lt;code&gt;app.twlvr.de&lt;/code&gt;) ship from the same app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile&lt;/strong&gt; — &lt;strong&gt;Expo / React Native&lt;/strong&gt; (SDK 58), Android-first, built with &lt;strong&gt;EAS&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt; — &lt;strong&gt;Supabase&lt;/strong&gt; (Postgres, Auth, Storage, Realtime), pinned to the &lt;strong&gt;EU region (Frankfurt)&lt;/strong&gt; because the audience is global and I wanted GDPR to be the default, not an afterthought.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shared packages&lt;/strong&gt; — a framework-free &lt;code&gt;core&lt;/code&gt; package holds the actual logic (reputation, points, streak, matching, rotation), with &lt;code&gt;zod&lt;/code&gt; schemas shared between web and mobile so validation can't drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring&lt;/strong&gt; — &lt;strong&gt;Sentry&lt;/strong&gt; for errors and tracing on both surfaces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;i18n&lt;/strong&gt; — 10+ languages, including a right-to-left locale, because closed testing is a worldwide headache.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keeping the business logic in a pure &lt;code&gt;core&lt;/code&gt; package — no React, no network — turned out to be the single best decision. The reputation and points rules are just functions I can unit-test in isolation and reuse identically on web and mobile.&lt;/p&gt;

&lt;h2&gt;
  
  
  The genuinely hard parts
&lt;/h2&gt;

&lt;p&gt;The CRUD is easy. These were not.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Proving "14 continuous days"
&lt;/h3&gt;

&lt;p&gt;Google cares about &lt;em&gt;continuity&lt;/em&gt;, so the product has to make continuity cheap. The daily &lt;strong&gt;check-in + streak&lt;/strong&gt; is the whole mechanic: one tap, logged server-side, visualised as a 14-cell streak. Miss a day and you can see the gap — the same way Google will.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Matching, without starving anyone
&lt;/h3&gt;

&lt;p&gt;A naive feed ("newest first") means the loudest or earliest posters get all the testers and newcomers starve. Matching has to weigh &lt;em&gt;who needs testers now&lt;/em&gt;, &lt;em&gt;who has been reliable&lt;/em&gt;, and &lt;em&gt;who has given back&lt;/em&gt;, and rotate attention so every honest request gets served.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. A points economy that can't be gamed
&lt;/h3&gt;

&lt;p&gt;Points are what stop the market collapsing into pure takers. Earn by testing, spend to get tested. The hard design question is pricing: too expensive and new devs can never afford testers; too cheap and people hoard. It's an ongoing balancing act — very much &lt;em&gt;build in public&lt;/em&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Reputation &amp;amp; reliability to punish flakiness
&lt;/h3&gt;

&lt;p&gt;This is the anti-farm core. &lt;strong&gt;Reliability&lt;/strong&gt; tracks whether you actually check in on the apps you committed to; &lt;strong&gt;reputation&lt;/strong&gt; is the longer-term signal. Flaky testers lose standing and get matched slower; dependable ones rise. The incentive points one way: show up for real.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Real humans only
&lt;/h3&gt;

&lt;p&gt;No self-run multi-account farms — by policy and by design. Testers are matched to developers, consent is explicit, and the whole loop assumes a person on the other end, not a script. It makes growth slower and the product honest. I'll take that trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell myself at the start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model the policy as a feature, not a chore.&lt;/strong&gt; "14 continuous days" isn't paperwork — it's the core loop. Build the whole UX around making continuity effortless.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put logic in a pure package early.&lt;/strong&gt; Your scoring and economy rules will change weekly. Keep them out of components.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick your data region on day one.&lt;/strong&gt; Retrofitting GDPR/EU residency is miserable; choosing Frankfurt up front cost nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide your ethics before your growth hacks.&lt;/strong&gt; "No tester farms" slowed me down and is the reason the product is worth using.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it / who's building this
&lt;/h2&gt;

&lt;p&gt;If you're staring at the same closed-test wall right now: &lt;strong&gt;&lt;a href="https://twlvr.de" rel="noopener noreferrer"&gt;twlvr.de&lt;/a&gt;&lt;/strong&gt; — one account, both roles, free to start, no credit card, web and Android.&lt;/p&gt;

&lt;p&gt;twlvr is built by &lt;strong&gt;&lt;a href="https://ctrlcheese.de" rel="noopener noreferrer"&gt;ctrlCheese&lt;/a&gt;&lt;/strong&gt;, a small indie studio shipping in public. If you want to follow the build — the points-economy tuning, the matching experiments, the Cloudflare-Workers-plus-Next.js-16 war stories — that's where it happens.&lt;/p&gt;

&lt;p&gt;I'd genuinely love feedback from this community on the matching and reputation design. If you've shipped through Google Play's closed-testing requirement, how did you get your 12? Tell me in the comments. 👇&lt;/p&gt;

</description>
      <category>androiddev</category>
      <category>webdev</category>
      <category>buildinpublic</category>
      <category>startup</category>
    </item>
    <item>
      <title>How I Built a Premium SaaS Landing Page Template with Tailwind CSS and Vanilla JS</title>
      <dc:creator>Abdelkarim Omar Mtit</dc:creator>
      <pubDate>Tue, 14 Apr 2026 14:35:39 +0000</pubDate>
      <link>https://dev.to/ctrlcheese/how-i-built-a-premium-saas-landing-page-template-with-tailwind-css-and-vanilla-js-12k7</link>
      <guid>https://dev.to/ctrlcheese/how-i-built-a-premium-saas-landing-page-template-with-tailwind-css-and-vanilla-js-12k7</guid>
      <description>&lt;p&gt;Building landing pages for SaaS products is repetitive. Hero section, feature grid, pricing table, FAQ — the same pattern every time. So I built a template once, properly, and turned it into a product.&lt;/p&gt;

&lt;p&gt;Here's how I approached it and what I learned along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Goal
&lt;/h2&gt;

&lt;p&gt;Build a SaaS landing page template that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Looks premium out of the box&lt;/li&gt;
&lt;li&gt;Works without any build tools or frameworks&lt;/li&gt;
&lt;li&gt;Supports dark mode and multiple color themes&lt;/li&gt;
&lt;li&gt;Is modular enough to customize quickly&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;I kept it intentionally simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;HTML5 + Tailwind CSS (CDN) + Vanilla JavaScript
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Why no React/Next.js?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The buyer should be able to double-click &lt;code&gt;index.html&lt;/code&gt; and see the full page. No terminal, no &lt;code&gt;npm install&lt;/code&gt;, no configuration. The simpler the setup, the wider the audience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Tailwind via CDN?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For a template product, the Play CDN is perfect. Buyers can change classes directly in the HTML and see results instantly. For production, they can switch to a build setup later.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Sections
&lt;/h2&gt;

&lt;p&gt;The template has 11 sections, each as a standalone component:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Section&lt;/th&gt;
&lt;th&gt;Key Feature&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;01&lt;/td&gt;
&lt;td&gt;Navbar&lt;/td&gt;
&lt;td&gt;Sticky, scroll-aware, mobile slide-out menu&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;02&lt;/td&gt;
&lt;td&gt;Hero&lt;/td&gt;
&lt;td&gt;Dashboard mockup with metric cards and chart&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;03&lt;/td&gt;
&lt;td&gt;Logo Bar&lt;/td&gt;
&lt;td&gt;Infinite scroll marquee with fade masks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;04&lt;/td&gt;
&lt;td&gt;Features&lt;/td&gt;
&lt;td&gt;6-card grid with icons and hover effects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;05&lt;/td&gt;
&lt;td&gt;Stats&lt;/td&gt;
&lt;td&gt;Animated counters (Intersection Observer)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;06&lt;/td&gt;
&lt;td&gt;Showcase&lt;/td&gt;
&lt;td&gt;Alternating image/text with slide animations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;07&lt;/td&gt;
&lt;td&gt;Testimonials&lt;/td&gt;
&lt;td&gt;Star ratings, avatars, quotes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;08&lt;/td&gt;
&lt;td&gt;Pricing&lt;/td&gt;
&lt;td&gt;Monthly/yearly toggle with animated switch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;09&lt;/td&gt;
&lt;td&gt;FAQ&lt;/td&gt;
&lt;td&gt;Accordion with smooth expand/collapse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;CTA&lt;/td&gt;
&lt;td&gt;Gradient background with glow effects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;Footer&lt;/td&gt;
&lt;td&gt;Multi-column links, social icons&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each section lives in its own file in a &lt;code&gt;/sections/&lt;/code&gt; folder, so you can mix and match.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dark Mode Implementation
&lt;/h2&gt;

&lt;p&gt;Dark mode was the most time-consuming feature. Here's the approach:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS Custom Properties for all colors:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--bg-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#ffffff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--text-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#111827&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--border-default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#e5e7eb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;data-theme&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"dark"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--bg-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#0b1120&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--text-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#f1f5f9&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--border-default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#1e293b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;JavaScript for the toggle:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getTheme&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'theme-mode'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
    &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matchMedia&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'(prefers-color-scheme: dark)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;matches&lt;/span&gt; 
      &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'dark'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'light'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Apply immediately to prevent flash&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAttribute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'data-theme'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;getTheme&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key lessons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Apply the theme &lt;strong&gt;before&lt;/strong&gt; DOM load (in the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;) to prevent a white flash&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;localStorage&lt;/code&gt; to remember the user's choice&lt;/li&gt;
&lt;li&gt;Listen for system preference changes with &lt;code&gt;matchMedia&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Color Themes
&lt;/h2&gt;

&lt;p&gt;Four themes — Blue, Purple, Green, Orange — each defined in a tiny CSS file that only overrides &lt;code&gt;--primary-50&lt;/code&gt; through &lt;code&gt;--primary-900&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="cm"&gt;/* themes/purple.css */&lt;/span&gt;
&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--primary-50&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="mh"&gt;#f5f3ff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--primary-500&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#8b5cf6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--primary-600&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#7c3aed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--primary-900&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#4c1d95&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Switching themes means loading a different CSS file. A floating widget in the corner lets you preview all themes live.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scroll Animations
&lt;/h2&gt;

&lt;p&gt;All animations use the Intersection Observer API — no libraries:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;observer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;IntersectionObserver&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isIntersecting&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'animate-in'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;observer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unobserve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;threshold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.1&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'[data-animate]'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;observer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;observe&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Elements start with &lt;code&gt;opacity: 0&lt;/code&gt; and &lt;code&gt;transform: translateY(24px)&lt;/code&gt;, then transition to their final position when they enter the viewport. Simple, performant, no dependencies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing Toggle
&lt;/h2&gt;

&lt;p&gt;The monthly/yearly pricing toggle uses a CSS-only animated switch with JavaScript to swap the visible prices:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;pricingToggle&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'click'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toggle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'active'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;isYearly&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;contains&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'active'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'[data-price-monthly]'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;isYearly&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'none'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'[data-price-yearly]'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;isYearly&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'none'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  File Structure
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;stackly/
├── index.html              # Complete landing page
├── 404.html                # Custom 404 page
├── LICENSE.md
├── assets/
│   ├── css/
│   │   ├── styles.css      # Design system + animations
│   │   └── themes/         # 4 color themes
│   └── js/
│       ├── app.js          # Menu, pricing, FAQ
│       ├── animations.js   # Scroll reveal + counters
│       └── theme-switcher.js
├── sections/               # 11 standalone components
│   ├── 01-navbar.html
│   ├── 02-hero.html
│   └── ...
└── docs/
    ├── README.md
    └── CUSTOMIZATION.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I'd Do Differently
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start with dark mode from day one.&lt;/strong&gt; Retrofitting dark mode onto an existing design doubles the CSS work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build the theme system first.&lt;/strong&gt; CSS custom properties should be the foundation, not an afterthought.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write docs while building.&lt;/strong&gt; It's much harder to document code you wrote two weeks ago.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Preview:&lt;/strong&gt; &lt;a href="https://lucent-unicorn-2af3ba.netlify.app" rel="noopener noreferrer"&gt;lucent-unicorn-2af3ba.netlify.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get the template:&lt;/strong&gt; &lt;a href="https://ctrlcheese.gumroad.com/l/stackly" rel="noopener noreferrer"&gt;ctrlcheese.gumroad.com/l/stackly&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd love to hear your thoughts. What would you add or change?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by &lt;a href="https://ctrlcheese.de" rel="noopener noreferrer"&gt;ctrlCheese&lt;/a&gt; — We build software that lasts.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tailwindcss</category>
      <category>saas</category>
      <category>startup</category>
    </item>
  </channel>
</rss>
