Blog / Development

How to add a holiday theme to your app without a redesign

A seasonal theme should be a switch, not a redesign. With a few CSS variables, a date range and a set of seasonal illustrations, you can turn it on and off every year in minutes.

By Abdullah NomanDecember 3, 20263 min read

String lights, hairline isometric illustration

Short answer: put your accent colour and seasonal assets behind CSS variables and a single data-season attribute, set it from a date range, let users turn it off, and keep the season list in one config file so next year is a one-line change.

1. Put the accent in a variable

:root { --accent: #3a57ff; }
[data-season="christmas"] { --accent: #c8322e; }
[data-season="lunar-new-year"] { --accent: #c8322e; }
[data-season="ramadan"] { --accent: #1f7a5c; }

Everything that uses var(--accent) (buttons, links, the accent stroke in your SVG illustrations) changes at once. If your illustrations use currentColor or a CSS variable for their accent, they follow automatically. See how to recolour SVG illustrations.

2. Turn it on by date

const SEASONS = [
  { id: 'christmas', from: '12-10', to: '12-26' },
  { id: 'new-year',  from: '12-27', to: '01-03' },
];
function currentSeason(d = new Date()) {
  const md = String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0');
  return SEASONS.find(s => s.from <= s.to ? md >= s.from && md <= s.to : md >= s.from || md <= s.to)?.id;
}
const s = currentSeason();
if (s && localStorage.getItem('seasonal') !== 'off') document.documentElement.dataset.season = s;

Ramadan, Eid and Lunar New Year move every year on the Gregorian calendar, so give them full dates per year in the config instead of month-day ranges.

3. Swap illustrations, not layouts

Keep the same image slots and change only the file. A hero that normally shows your product scene can show a decorated tree; an empty state can show string lights. Same size, same position, no layout shift.

String lights, hairline isometric illustration
Seasonal art in an existing slot: no layout change needed. String lights garland

4. Let people opt out

Add a small "Seasonal theme: on / off" toggle in settings. Some users do not celebrate, some find it distracting, and some just want their tool to look the same every day.

5. Respect motion and performance

  • No falling snow over content. If you animate, animate once, and honour prefers-reduced-motion.
  • Lazy-load seasonal images so they cost nothing outside the season.
  • Test contrast: a red accent on a dark background may fail where your normal accent passed.

Seasonal assets

Liniqo has seasonal packs in the same hairline isometric style as its other 5,074 illustrations: Christmas & New Year pack, Valentine & Mother’s Day pack, Ramadan & Eid pack and Lunar New Year pack. Because the style matches, a seasonal piece can replace a regular one without looking out of place.

Questions

How do I add a Christmas theme to my website?

Put the accent colour and seasonal images behind CSS variables and a data-season attribute, and set that attribute from a date range in JavaScript.

Should users be able to turn off a holiday theme?

Yes. A simple on/off toggle in settings respects users who do not celebrate or prefer a stable interface.

How do I handle holidays that move every year?

Store exact start and end dates per year for Ramadan, Eid and Lunar New Year in a config file instead of month-day ranges.

Is falling snow animation bad for UX?

Usually. It covers content, distracts and costs battery. If you animate, do it once and respect prefers-reduced-motion.

Keep reading