Snow, lights and a countdown to bring cheer to your site
December 1, 2026
•
4 min
•
by
Therese Alburg
Your site deserves some Christmas cheer. Add falling snow, blinking lights and a countdown to the holidays with a few snippets of code. Here's how we did it.
It's that time of year again. Mariah is defrosted, daylight is a myth, and your colleagues have started booking meetings called "quick sync before the break?"
Your site is the page people open every morning, so give it some Christmas cheer too.
Here are four ways to deck your digital halls, plus the code we used to turn the Refined intranet into a winter wonderland. (It took some questionable coding decisions and a sprinkle of definitely-not-supported custom code.)
1. Let it snow, let it snow, let it snow
Snowflakes drifting gently across every page are the quickest way to make your site feel festive. People notice it the second they log in.
How we did it
A few lines of CSS and some Unicode snowflakes later, our intranet looked like a screensaver from a very cozy 1998.
Is it functional? No.
Is it festive? Extremely.
Does it make you feel like you should be holding hot chocolate during standup? Absolutely.
2. Give your logo (or co-workers) a Santa hat
Every workplace has holiday traditions. Some hang wreaths. Some wear matching sweaters. Yours can put a Santa hat on your logo, mascot, or pictures of co-workers. Make festive versions, upload them for December, and swap them back in January.
How we did it
We gave our co-workers Santa hats. Digitally, so nobody had to wear one to standup.
Is it flattering? Mostly.
Did anyone ask for it? No.
Does it spark joy? 100%.
Pro tip: ask before you hat someone. Most people say yes, and the ones who say no will still enjoy seeing everyone else in one.
3. String up some Christmas lights
Nothing says "corporate holiday spirit" like a blinking light chain across your navigation bar.
The lights don't improve usability. They don't improve productivity. But they do improve vibes, and that's basically an OKR in December.
How we did it
Our light strand uses a lovingly chaotic CSS animation that would make any front-end developer whisper, "well… technically it works."
And that, friends, is the real meaning of Christmas.
4. Count down to Christmas
A countdown banner tells everyone exactly how many days, hours, minutes and seconds stand between them and the break. Put it at the top of a landing page and nobody can miss it.
Count down to December 24 or 25. You change one number in the code.
On the day itself, the timer is replaced by a "Merry Christmas!" message.
It counts down in each visitor's own time zone.
How we did it
Ours sits right above the hub cards on our intranet landing page. It counts down to the 24th, because we're a Swedish company and in Sweden Christmas happens on Christmas Eve, with the food, the presents and Donald Duck on TV at 3 pm.
Add the code to your site
Everything above runs on a few small snippets:
Snow and lights go in your site's custom code settings, so they show on every page.
The countdown goes in an HTML module, so it only shows on the landing page you choose.
Snow and lights (whole site)
Go to the Refined Administration and click Sites.
Select your site and open the Configuration tab.
Scroll down to Custom code.
Paste the CSS into Custom CSS and the HTML into Custom HTML. Keep each in its own field, because the CSS field ignores HTML tags.
Make sure the HTML module is on. In Configuration, under Security, toggle Enable HTML module on.
Open the landing page, click Edit page, and add an HTML module where you want the banner.
Paste the whole snippet into the module.
In the module settings, set Background to None and Padding inside to Tight. The banner has its own background, so this avoids a box inside a box.
Change the four --rf-xmas-* colors to match your site.
Set DAY to 25 if you celebrate on Christmas Day.
HTML
Christmas countdown banner
<!-- Christmas countdown banner. Colors are in the --rf-xmas-* variables; date and wording are in the script. -->
<div class="rf-xmas" id="rf-xmas" role="timer" aria-live="off">
<div class="rf-xmas__intro">
<p class="rf-xmas__title"></p>
<p class="rf-xmas__sub"></p>
</div>
<div class="rf-xmas__grid">
<div class="rf-xmas__cell"><span class="rf-xmas__num" data-unit="days">--</span><span class="rf-xmas__unit" data-label="days">days</span></div>
<div class="rf-xmas__cell"><span class="rf-xmas__num" data-unit="hours">--</span><span class="rf-xmas__unit" data-label="hours">hours</span></div>
<div class="rf-xmas__cell"><span class="rf-xmas__num" data-unit="minutes">--</span><span class="rf-xmas__unit" data-label="minutes">minutes</span></div>
<div class="rf-xmas__cell"><span class="rf-xmas__num" data-unit="seconds">--</span><span class="rf-xmas__unit" data-label="seconds">seconds</span></div>
</div>
<p class="rf-xmas__done" hidden></p>
</div>
<style>
.rf-xmas {
--rf-xmas-green-dark: #064a3e;
--rf-xmas-green-light: #11805f;
--rf-xmas-text: #0b4d40;
--rf-xmas-surface: #eef6f2;
font-family: inherit;
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 28px 36px;
background: var(--rf-xmas-surface);
color: var(--rf-xmas-text);
border-radius: 16px;
box-shadow: 0 1px 4px rgba(6, 74, 62, 0.10);
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px 40px;
flex-wrap: wrap;
}
.rf-xmas *, .rf-xmas *::before, .rf-xmas *::after { box-sizing: border-box; }
.rf-xmas__intro { min-width: 0; }
.rf-xmas__title { margin: 0; color: var(--rf-xmas-green-dark); font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.2; }
.rf-xmas__sub { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.4; }
.rf-xmas__grid { display: grid; grid-template-columns: repeat(4, minmax(84px, 1fr)); gap: 12px; }
.rf-xmas__cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rf-xmas__num {
display: block;
width: 100%;
padding: 14px 10px;
border-radius: 10px;
text-align: center;
color: #ffffff;
background: linear-gradient(180deg, var(--rf-xmas-green-dark), var(--rf-xmas-green-light));
font-size: clamp(1.8rem, 3vw, 2.4rem);
font-weight: 700;
line-height: 1;
font-variant-numeric: tabular-nums;
}
.rf-xmas__unit { font-size: 0.95rem; line-height: 1.2; }
.rf-xmas__done { margin: 0; color: var(--rf-xmas-green-dark); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
@media (max-width: 700px) {
.rf-xmas { padding: 22px 20px; border-radius: 12px; }
.rf-xmas__grid { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}
</style>
<script>
(function () {
// ---- Settings ----------------------------------------------------------
var DAY = 24; // 24 = Christmas Eve, 25 = Christmas Day
var TEXT = {
title: "Countdown to Christmas Eve", // use "Countdown to Christmas" if DAY is 25
sub: "December " + DAY,
done: "Merry Christmas!", // shown all day on the target day
units: { days: ["day", "days"], hours: ["hour", "hours"], minutes: ["minute", "minutes"], seconds: ["second", "seconds"] }
};
// Swedish version:
// title: "Nedräkning till julafton", sub: DAY + " december", done: "God jul!",
// units: { days: ["dag","dagar"], hours: ["timme","timmar"], minutes: ["minut","minuter"], seconds: ["sekund","sekunder"] }
// -----------------------------------------------------------------------
var root = document.getElementById("rf-xmas");
if (!root) return;
var grid = root.querySelector(".rf-xmas__grid");
var intro = root.querySelector(".rf-xmas__intro");
var done = root.querySelector(".rf-xmas__done");
root.querySelector(".rf-xmas__title").textContent = TEXT.title;
root.querySelector(".rf-xmas__sub").textContent = TEXT.sub;
done.textContent = TEXT.done;
function target(now) {
// Midnight at the start of the target day, in the visitor's own time zone.
var y = now.getFullYear();
var t = new Date(y, 11, DAY);
if (now >= new Date(y, 11, DAY + 1)) t = new Date(y + 1, 11, DAY);
return t;
}
function set(unit, value) {
root.querySelector('[data-unit="' + unit + '"]').textContent = unit === "days" ? String(value) : String(value).padStart(2, "0");
root.querySelector('[data-label="' + unit + '"]').textContent = TEXT.units[unit][value === 1 ? 0 : 1];
}
function tick() {
var now = new Date();
var isDay = now.getMonth() === 11 && now.getDate() === DAY;
grid.hidden = isDay;
intro.hidden = isDay;
done.hidden = !isDay;
if (isDay) return;
var s = Math.floor(Math.max(0, target(now) - now) / 1000);
set("days", Math.floor(s / 86400));
set("hours", Math.floor((s % 86400) / 3600));
set("minutes", Math.floor((s % 3600) / 60));
set("seconds", s % 60);
}
tick();
setInterval(tick, 1000);
})();
</script>
Before you paste
Custom code isn't covered by Refined support, and we may change the site's HTML structure at any time. But gingerbread houses built at 1 am aren't supported either, and we all make those anyway.
Set a calendar reminder to take it all down in January. Snow in February is less charming.
What happened when we did it
Within minutes of decorating our intranet, we received:
"Wait, why is it snowing on the intranet?"
"Did my colleague always wear a Santa hat?"
"Only 26 days?? I haven't bought a single present."
"My computer isn't broken, right?"
"LOL."
That's exactly the kind of cross-company engagement every intranet manager dreams of.
'Tis the season for play
The holidays are hectic, but they're also a perfect excuse to add some fun to everyday tools, especially the ones people open every single morning.
A festive site:
boosts morale
spreads cheer
makes the HR policies page feel 23% more magical
reminds everyone that the break is coming soon… soonish… eventually
So go ahead: Give your logo a hat. Add some snow. Blink some lights. Start the countdown. Bring joy.
And if anyone asks? It was absolutely part of the 2026 Internal Engagement Strategy.
Your turn
Copy the snippets above and decorate your own Refined site.