Newsdesk

Documentation

DOCUMENTATION

Newsdesk documentation

How to run the live widgets, work with the design system and stay within the licences of the assets that ship with the template.

CUSTOM CODE

Custom code overview

Newsdesk ships with five code files in Assets › Code. Each file exports code overrides: small functions you attach to an existing text layer or component. The layer keeps its styling, and the override only swaps in live data on the published site.

•

Weather.tsx Temperature, forecast, condition icon and the date line in the header. Data: Open-Meteo.

•

AirQuality.tsx US AQI value, category and PM2.5. Data: Open-Meteo Air Quality.

•

Earthquake.tsx The latest earthquake inside a region you define. Data: USGS.

•

Football.tsx One featured match for the data strip on the home page. Data: openfootball.

•

Scores.tsx Five league cards in the Sport section. Data: openfootball.

Change a setting

1

Open Assets › Code and double-click the file.

2

Find the Settings block at the top of the file.

3

Change the value, save, then preview or publish. Nothing else in the file needs editing.

Apply an override

1

Select a text layer (or a Weather Icon instance).

2

In the right panel, open Code Overrides.

3

Pick the file and the override, for example Weather › withTemperature.

Canvas text is the fallback

What you type on the canvas is what the editor shows. Live values replace it in Preview and on the published site, and the canvas text stays visible while data loads or if a request fails.

Weather

Powers the weather tile, the forecast line, the condition icon and the “Today’s paper” line in the header.

Setting

Default

What it does

CITY

Metro City

Name shown next to the data. It does not change the location.

LATITUDE / LONGITUDE

-6.2 / 106.85

The place the forecast is fetched for.

UNIT

celsius

Use “celsius” or “fahrenheit”.

TIMEZONE

Asia/Jakarta

IANA time zone used for forecast hours, e.g. Europe/London.

REFRESH_MINUTES

15

How often the data is refreshed.

PAPER_LABEL

Today’s paper

First part of the header line.

Override

Shows

withTemperature

Live temperature, e.g. 31°C

withForecast

Short forecast, e.g. Thunderstorms after 3 PM

withCondition

Current condition, e.g. Partly cloudy

withPaperLine

Header line, e.g. Today’s paper · Metro City 31°C

withWeatherIcon

Switches a Weather Icon instance to the matching variant

withTodayDate

Today’s date, e.g. Friday, November 27, 2026

Finding coordinates

In Google Maps, right-click a place and click the numbers at the top of the menu to copy them. The first number is LATITUDE, the second is LONGITUDE.

Air quality

Shows the US Air Quality Index and the PM2.5 level for one location.

Setting

Default

What it does

CITY

Metro City

Name shown in the tile label.

LATITUDE / LONGITUDE

-6.2 / 106.85

The place the readings come from.

REFRESH_MINUTES

30

How often the data is refreshed.

Override

Shows

withAirLabel

Label, e.g. Air quality · Metro City

withAirValue

Index value, e.g. AQI 87

withAirDetail

Category and PM2.5, e.g. Moderate · PM2.5 28 µg/m³

Categories follow the US AQI scale: Good (0–50), Moderate (51–100), Unhealthy for sensitive groups (101–150), Unhealthy (151–200), Very unhealthy (201–300) and Hazardous (above 300).

Commercial use

The free Open-Meteo API is for non-commercial use only. A commercial site needs an Open-Meteo subscription or another data provider. This also applies to Weather.tsx.

Earthquakes

Shows the most recent earthquake above a minimum magnitude inside a rectangle on the map.

Setting

Default

What it does

MIN_LATITUDE / MAX_LATITUDE

-11.5 / 6.5

South and north edges of the area.

MIN_LONGITUDE / MAX_LONGITUDE

94.5 / 141.5

West and east edges of the area.

MIN_MAGNITUDE

4.5

Smaller quakes are ignored.

REFRESH_MINUTES

5

How often the feed is checked.

COUNTRY_SUFFIX

/, *Indonesia$/i

Removes a country name from the end of the place text. Change it to your country.

Override

Shows

withQuakeMagnitude

Magnitude of the latest quake, e.g. M 5.1

withQuakeDetail

Place and time, e.g. 42 km SW of the coast · 12 min ago

Place names come straight from the USGS feed, so they always describe the real location of the quake.

Football card

One featured match for the data strip at the top of the home page. It shows the latest result, or the next fixture before kickoff.

Setting

Default

What it does

LEAGUE_FILE

en.1.json

The league to follow. See the list below.

COMPETITION_LABEL

Premier League

Name shown on the card.

SOURCE_TIMEZONE

Europe/London

Time zone of the kickoff times in the data.

TIMEZONE

Asia/Jakarta

Time zone shown to your visitors.

LOCALE

en-GB

Date format.

REFRESH_MINUTES

60

How often the data is refreshed.

League file

League

en.1.json

Premier League

es.1.json

La Liga

de.1.json

Bundesliga

it.1.json

Serie A

fr.1.json

Ligue 1

Override

Shows

withMatchLabel

e.g. Premier League · FT · 13 Sep

withMatchScore

e.g. ARS 3 – 0 COV, or ARS vs COV before kickoff

withMatchDetail

e.g. Matchday 5 · Updated daily

Not a live feed

The openfootball data is updated about once a day, so results can lag behind real matches. The card never shows “LIVE”. Clubs appear as three-letter codes with no crests, which keeps the template free of club trademarks.

Scores

Five league cards in the Sport section. Each card shows the latest result, or the next fixture when it kicks off within 36 hours.

Setting

Default

What it does

LEAGUES

5 league files

Card 1 to card 5, in this order.

TIMEZONE

Asia/Jakarta

Time zone shown to your visitors.

TIMEZONE_LABEL

local time

Text shown after kickoff times.

LOCALE

en-GB

Date format.

REFRESH_MINUTES

60

How often the data is refreshed.

Each card has five overrides: withCard1Home, withCard1HomeScore, withCard1Away, withCard1AwayScore and withCard1Status, and the same for cards 2 to 5. When you change a league in LEAGUES, also change the league name text on that card on the canvas.

Troubleshooting

•

Only placeholder text in the editor. This is expected. Overrides run in Preview and on the published site.

•

Still placeholder text after publishing. The data service may be down or blocked by a browser extension. The canvas text stays as a fallback, and the next refresh tries again.

•

Times are a few hours off. Set TIMEZONE to your own IANA time zone, for example Europe/Berlin.

•

A tile shows the wrong place. Check LATITUDE and LONGITUDE. CITY only changes the label.

DESIGN SYSTEM

Colors

Every color on the site comes from these color styles. Change one in Assets › Color and it updates everywhere.

BRAND

Purple

#7047EB

Purple Dark

#4316CA

Purple Tint

#F4F1FD

Purple Light

#8D6CEF

Purple Lighter

#A991F3

TEXT

Heading

#121217

Muted

#6C6C89

Body

#3F3F50

On Dark

#FFFFFF

On Dark Muted

RGBA(255,255,255,0.8)

BACKGROUND

Page

#FFFFFF

Subtle

#F7F7F8

Dark

#121217

Dark Raised

RGB(37, 37, 44)

Dark Hover

RGB(59, 59, 74)

BORDER

Subtle

#EBEBEF

Default

#D1D1DB

On Dark

RGBA(255,255,255,0.3)

ICON

Muted

#8A8AA3

CATEGORY

Blue

#0075AD

Blue Tint

#F0FAFF

Green

#17663A

Green Tint

#EEFBF4

Orange

#B82E00

Orange Tint

#FFF2EE

Gray

#3F3F50

Gray Tint

#F7F7F8

STATUS

Live

#D50B3E

AVATAR

Fallback

#FF7D52

Typography

Headlines use Source Serif 4. Everything else uses Inter. Apply a text style from the Styles panel instead of setting sizes by hand.

Morning edition

Headline/Article

44px / 52px

Morning edition

Headline/XL

40px / 48px

Morning edition

Headline/L

36px / 44px

Morning edition

Headline/M

28px / 36px

Morning edition

Headline/S

22px / 30px

Morning edition

Headline/XS

20px / 28px

Morning edition

Headline/XXS

19px / 26px

7,312

Data/Rank

26px / 30px

Morning edition

Body/Article

19px / 32px

Morning edition

Body/Pull Quote

24px / 34px

Morning edition

Body/Lead

20px / 30px

Morning edition

Body/Lead Small

18px / 28px

Morning edition

Body/Default

16px / 24px

Morning edition

Body/Small

15px / 22px

Morning edition

Title/Section

24px / 32px

Morning edition

Title/Sidebar

20px / 28px

Morning edition

Link/Headline List

16px / 24px

Morning edition

Link/Headline List Small

15px / 22px

Morning edition

Meta/Default

14px / 20px

Morning edition

Meta/Strong

14px / 20px

Morning edition

Meta/Overline

12px / 16px

Morning edition

Display/Logo

50px / 44px

7,312

Data/Value

22px / 28px

7,312

Data/Score

15px / 22px

Morning edition

Decor/Quote Mark

48px / 32px

Morning edition

Meta/Badge

12px / 16px

Components

Components live in Assets › Components, grouped by folder. Sizes come from padding, not fixed heights, so longer text never breaks a layout.

Folder

Components

Buttons

Button, Ghost Button, Load More, Submit

Navigation

Nav Item, Region Tab, Filter Chip, Billing Toggle

Cards

Hero Story, Story Card, Inline Story, Latest Item, List Item, Most Read Item, Briefing Item

Forms

Newsletter Box

Widgets

Badge, FAQ Item, Weather Icon

Icons

Social Icon, Accordion Icon

Active menu item

The header menu highlights the page you are on. Each page sets the Active nav value in its page settings, and the Nav Item whose title matches it switches to the Active variant. When you add a page to the menu, set Active nav on that page to the exact menu title.

LICENSING

Assets & data

Newsdesk’s design, layout, components and code are covered by your licence. Third-party assets keep their own licences.

Asset

Licence

What it means

Photos (Unsplash)

Unsplash License

Free for commercial use. Do not sell the photos on their own. Photographer credits are in the CMS.

Fonts (Source Serif 4, Inter, JetBrains Mono)

SIL Open Font License

Free for any use, including commercial.

Sample videos (Blender Foundation)

CC BY

Keep the credit line, or replace the videos with your own.

Weather and air quality (Open-Meteo)

CC BY 4.0

The free API is non-commercial only. Commercial sites need a paid plan.

Earthquakes (USGS)

Public domain

Free to use, no key needed.

Football data (openfootball)

CC0

Free to use, including commercially.

Demo content

Metro City, its neighbourhoods, clubs, authors and stories are fictional placeholders. Replace them with your own content before you launch.

Newsdesk template · Documentation

Last updated December 2026

Create a free website with Framer, the website builder loved by startups, designers and agencies.