Madeira Weather documentation

How to set it up, and every setting, step by step.

Looks and the theme editor

Every widget draws itself from one set of design tokens: its colours, corners, shadow, glass, spacing, fonts, icon set and pattern. A look is a set of values for those tokens, in a light and a dark version. Choose one look for the whole site, change it in the theme editor, save looks of your own, and give any single widget another look with theme="".

The seven looks

LookIdWhat it is
Atlântico (the default)atlanticoOcean blues, a slow swell along the bottom of each card and a sunny yellow badge. Outfit, Meteocons Fill.
LaurissilvalaurissilvaThe laurel forest: deep moss green, a fern in the corner and a lime accent. Fraunces with Figtree, Meteocons Line.
Pôr do Solpor-do-solApricot to pink to orchid, a low sun with a striped horizon and a berry badge. Bricolage Grotesque with Figtree.
NoitenoiteDark glass over a starry sky, light numbers and line icons that glow. Dark in both versions. Sora, Lucide.
LevadalevadaSoft paper, a dashed trail inside each card and line icons. Newsreader with IBM Plex Mono.
PostalpostalA retro postcard: perforated stamp edges, a postmark, slab numbers and a typewriter. Tinted icons.
AzulejoazulejoGlazed white and cobalt, a band of tiles on every card and painted icons. Young Serif with Figtree.

Each has a light and a dark version. Auto (the default for most looks) shows the dark one when the visitor's device asks for dark mode, or when your theme's own dark mode switch is on (themes that set data-theme="dark" or a dark class on the page).

The theme editor

Under Madeira Weather, Theme:

  • Start from a look: the seven looks and the looks you saved. The one marked On the site is the site's look.
  • Colours: background, text and accent, for the version you are editing (light or dark; switch with the toggle when the look is Auto). The picker offers a row of Madeira colours. A colour can also be one of your theme's, written exactly as var(--name).
  • Shape: corner radius, shadow depth, glass (see-through cards with a blur), card padding, and density (the space between cards).
  • Type and icons: the font pair, the icon set (Icon sets), the temperature colours (bars, dots and the map coloured by temperature level), the weather backgrounds (Weather backgrounds) and the look's pattern (waves, fern, tiles, stamp edges).
  • Dark mode: Auto, Light or Dark.

The preview on the right shows your real widgets with the weather the site has now (a sample day before the first refresh): a card, the cards grid, the forecast, the sun, a comparison and the map, on a desktop or in a phone frame. It follows every change as you make it.

Under the preview:

  • The contrast check says whether the text reads well on the cards: the main text, the small labels and the badge text on the accent, each against WCAG's 4.5:1. When it does not, Fix it picks the text colour that reads best.
  • Save as my look, with a name: the look joins the list, and becomes the site's look.
  • Copy shortcode: the widget you are previewing, in this look.

Save keeps your choice as the site's look. A preset you changed is saved as a look of your own (named "My look" unless you name it), so the presets always stay as they ship. Delete this look removes a look you saved.

Fonts

The fonts ship with the plugin, as woff2 files under their SIL Open Font License. Nothing is loaded from Google Fonts, so no visitor's address is sent to Google (a German court found that to breach the GDPR in 2022). A page loads only the fonts of the looks it shows, and a browser downloads only the letters it needs.

My theme's fonts uses your theme's font instead; System fonts uses the visitor's device fonts.

Sites that had version 2

A site updated from 2.x keeps exactly the colours it had: the Design settings become a saved look called My look, based on Atlântico, with your card, text, accent and map colours, your corner radius and spacing, the amCharts icons, your theme's fonts, light only, and no pattern or animated sky. It is the site's look until you choose another, which takes one click.

Your own CSS

Every token is a CSS custom property on the widget's .mw element, so your theme can change one value for every look:

.mw { --mw-accent: #e11d48; --mw-radius: 12px; }

The main ones: --mw-bg, --mw-ink, --mw-accent, --mw-accent-ink, --mw-radius, --mw-pad, --mw-gap, --mw-shadow, --mw-font-display, --mw-font-body, --mw-font-num, and the temperature levels --mw-lv-hot, --mw-lv-warm, --mw-lv-mild, --mw-lv-cool, --mw-lv-cold. The 2.x level variables (--mw-color-hot...) are still set on the page.

Temperature levels

Under Temperature levels, each level has its colour, used on the cards' bars, the forecast, the legend and the map. Sites new to 3.0 start with colours that read well on light and dark cards; sites that had 2.x keep theirs.

Motion

Visitors whose device asks for less motion see still icons, still skies and no animated patterns.

Help

Stuck on something in Madeira Weather?

Write to us. The people who build the plugin answer you.