Getting started
Fiesta is one stylesheet and a handful of optional scripts. Everything works with scripts off; the scripts are enhancements, each its own file, so you load the ones your page uses and nothing else.
The stylesheets
fiesta.css is core.css, extras.css and the Day theme joined, with comments and white space stripped, under 17 KiB gzipped. core.css holds the components every page has, and extras.css the ones fewer pages use; the theme paints them. fiesta-plain.css and fiesta-signal.css are the same with the Plain and Signal themes. A page in the sidebar, console or topbar shell links that shell's file after it: shell-sidebar.css, shell-console.css or shell-topbar.css. A page with a data table or a chart links data.css last.
The scripts
fiesta.js closes menus, lets a switch's knob be dragged, gives iOS its pressed state and runs the colour-scheme menu; load it first. busy.js, light.js, anchor.js, shell.js, transition.js, copy.js, select.js, datetime.js and calendar.js are each inert until a page uses what they enhance, and each deletable on its own. Load calendar.js last.
What each file weighs
Sizes in KiB. Gzipped is what a visitor downloads.
- fiesta.csscore.css, extras.css and the day theme in one file: every component, every scale, and the colours, each declared once as a light-dark() pair. The shells and the data table have files of their own.104 as written · 17 gzipped
- fiesta-plain.csscore.css, extras.css and the plain theme in one file: every component, every scale, and the colours, each declared once as a light-dark() pair. The shells and the data table have files of their own.101 as written · 16 gzipped
- fiesta-signal.csscore.css, extras.css and the signal theme in one file: every component, every scale, and the colours, each declared once as a light-dark() pair. The shells and the data table have files of their own.101 as written · 16 gzipped
- core.cssThe tokens and the components every page has: the page, the stack, boxes, buttons, fields, callouts, badges, lists and rows, the page header, the empty state, forms and the meter, with every scale and no colour literal anywhere. With a theme, it stands alone.47 as written · 7.7 gzipped
- extras.cssThe components fewer pages use: menus, the select and date pickers, pagination, the bulk bar, sign-in, the media grid, the modal, tabs, search, stats, the snippet and the switch. Link it after core.css. An enhanced date, time or select field needs it, since its script builds the picker from these parts.50 as written · 8.5 gzipped
- day.cssColour, type family and shape for the day theme: one :root block where every colour is declared once as a light-dark() pair.6.8 as written · 1.7 gzipped
- plain.cssColour, type family and shape for the plain theme: one :root block where every colour is declared once as a light-dark() pair.4.0 as written · 1.1 gzipped
- signal.cssColour, type family and shape for the signal theme: one :root block where every colour is declared once as a light-dark() pair.4.1 as written · 1.2 gzipped
- shell-console.cssEverything one shell needs: the rules the shells share, this shell's layout, and its slide between the index and a page on a phone. A page in this shell links it after fiesta.css, or after the theme.25 as written · 4.0 gzipped
- shell-topbar.cssEverything one shell needs: the rules the shells share, this shell's layout, and its slide between the index and a page on a phone. A page in this shell links it after fiesta.css, or after the theme.21 as written · 3.5 gzipped
- data.cssThe data table and the charts: bars, a line and a sparkline. A page that shows one links it last, after the theme and any shell file; nothing else needs it.6.2 as written · 1.6 gzipped
- fiesta.jsThe enhancements most pages want: menus that close on an outside click and on Escape, the switch's drag, iOS's pressed state, and the colour-scheme menu. Load it first.6.2 as written · 2.1 gzipped
- busy.jsThe busy rule: while a form sends, it refuses a second submit. Its button shows a spinner at once for a POST, for at least 650ms; for a GET only if the answer takes more than 500ms. Back hands it back.5.4 as written · 1.5 gzipped
- light.jsThe light the depth styles read: shadows lit by the hour, and a sheen on the button under the pointer. Delete it for the still design.6.7 as written · 2.1 gzipped
- anchor.jsKeeps a dropdown's menu on the screen in browsers without CSS anchor positioning. It does nothing where they have it: delete it once every browser you support does.1.4 as written · 0.7 gzipped
- shell.jsPhone navigation for the sidebar, console and topbar shells: the slide between the index and a page, Back that reuses history, and focus returned to the section you left. Deletable on its own.4.7 as written · 1.8 gzipped
- transition.jsPrevents an error when the browser skips a page transition on column and stage pages, and on topbar pages made before Fiesta 1.4. Load it before the stylesheets, without defer. Sidebar and console pages, and topbar pages that load shell.js, don't need it.0.8 as written · 0.4 gzipped
- copy.jsThe snippet's Copy button: it copies the code, says Copied, and stays hidden where the browser has no clipboard. Deletable on its own.3.3 as written · 1.2 gzipped
- select.jsfield-select's searchable combobox. Inert until a select opts in with data-rst-select, and deletable on its own.31 as written · 8.4 gzipped
- datetime.jsThe date fields' natural-language input. Inert until a field opts in with data-rst-date or data-rst-time, and deletable on its own.45 as written · 12 gzipped
- calendar.jsThe month grid that field's calendar button opens. Inert until datetime.js asks it for a panel, and deletable on its own: without it the button falls back to the browser's own picker.12 as written · 3.1 gzipped
- icons.svgA sprite with one symbol per icon, for a site that serves its own copy of Fiesta. From the CDN, inline the SVG from icons/<slug>.svg instead.3.8 as written · 0.7 gzipped
- i18n/ar.jsThe words select.js, datetime.js and copy.js put on screen, in العربية. Load the one that matches your page's lang.1.9 as written · 0.8 gzipped
- i18n/bn.jsThe words select.js, datetime.js and copy.js put on screen, in বাংলা. Load the one that matches your page's lang.2.0 as written · 0.7 gzipped
- i18n/en.jsThe words select.js, datetime.js and copy.js put on screen, in English. Load the one that matches your page's lang.1.3 as written · 0.5 gzipped
- i18n/es.jsThe words select.js, datetime.js and copy.js put on screen, in Español. Load the one that matches your page's lang.1.5 as written · 0.7 gzipped
- i18n/ga.jsThe words select.js, datetime.js and copy.js put on screen, in Gaeilge. Load the one that matches your page's lang.1.6 as written · 0.7 gzipped
- i18n/hi.jsThe words select.js, datetime.js and copy.js put on screen, in हिन्दी. Load the one that matches your page's lang.2.1 as written · 0.8 gzipped
- i18n/ja.jsThe words select.js, datetime.js and copy.js put on screen, in 日本語. Load the one that matches your page's lang.1.5 as written · 0.7 gzipped
- i18n/pt-PT.jsThe words select.js, datetime.js and copy.js put on screen, in Português. Load the one that matches your page's lang.1.5 as written · 0.7 gzipped
- i18n/ru.jsThe words select.js, datetime.js and copy.js put on screen, in Русский. Load the one that matches your page's lang.2.0 as written · 0.8 gzipped
- i18n/vi.jsThe words select.js, datetime.js and copy.js put on screen, in Tiếng Việt. Load the one that matches your page's lang.1.4 as written · 0.7 gzipped
- i18n/yue.jsThe words select.js, datetime.js and copy.js put on screen, in 廣東話. Load the one that matches your page's lang.1.4 as written · 0.7 gzipped
- i18n/zh-Hans.jsThe words select.js, datetime.js and copy.js put on screen, in 简体中文. Load the one that matches your page's lang.1.4 as written · 0.7 gzipped
A page that links fiesta.css and every script gets 220 KiB of CSS and JavaScript as written, 50 KiB gzipped.
The one link
Link fiesta.css from the CDN and your markup is styled. /2/ is the newest 2.x; a change that would break existing markup is a new major. /1/ keeps serving 1.10.0, the last 1.x. Pin the exact version when you need bytes that never move.
<link rel ="stylesheet" href ="https://fiesta.rastrillo.org/2/fiesta.css" >
Serving your own copy
Take the files from a release and serve them with your site; the files under releases/<version>/ in the repository carry a SHA256SUMS. Split, the order is core.css, then extras.css if the page uses its components, then the theme, then the shell's file, then data.css.
<link rel ="stylesheet" href ="core.css" >
<link rel ="stylesheet" href ="extras.css" >
<link rel ="stylesheet" href ="signal.css" >
Upgrading
A page on /2/ picks up every 2.x release the day it ships; the changelog says what changed. A page pinned to an exact version moves when you change the link, and not before. To move from 1.x, run fiesta migrate and follow UPGRADING.md: https://amadan.net/rastrillo/fiesta?ref=main&path=UPGRADING.md