Short Course NO. 191 Monday 23 November 2026, a six minute course in seven lessons
Safari's beta lets you name your own CSS functions

- Step 1--step(1)
- Step 2--step(2)
- Step 3--step(3)
- Step 4--step(4)
- Step 5--step(5)
Safari 27.3 beta adds @function, so a type scale or spacing ramp can live in CSS as one named call. It also takes margin-trim back from flex and grid.
You will leave with
- A type scale written as one CSS function you call by step
- A fallback pattern for browsers that cannot parse the call
- A fix for flex and grid rows that leaned on margin-trim
Today's Art Direction
The Cyanotype Course
A short course landing page for a printmaking class, set in violet-toned cyanotype on a pale lilac halftone.
A course page sells a sequence, so the layout is a sequence: a syllabus up front, then lessons that each open on a big wide numeral and a solid duration label in a sticky rail. The hero image is a cyanotype step wedge, the same leaf printed at five exposures, which is what a function does: one input, a predictable ramp of outputs. Anybody, set wide and heavy, carries the lesson numbers; Atkinson Hyperlegible Next keeps the reading plain.
- Lilac paper #E7E4EF
- Exposure three #9F8CC4
- Violet #54467F
- Aubergine #2C1D44
- Signal orange #C2461A
CSS gets functions you name and call yourself
Safari 27.3 beta, dated 16 November in Apple's release notes, adds the @function rule. You define a named function once in a stylesheet, give it arguments, and it returns a value anywhere a value can go. The same list adds if(), random-item(), calc-mix(), attr() and @supports at-rule() conditions.
For a design system, that turns a ramp of stored tokens into a rule. A type scale, a spacing ladder or a tint step becomes one call with a number in it, and the ratio lives in one place. The beta also carries the Adaptive Dark Mode setting that an earlier issue walked through, and it runs on the phones and laptops clients actually use.
A token that holds a value can only be looked up. A token that is a function can be asked.
| Feature | What it does | First thing to try |
|---|---|---|
| @function | A named function with arguments that returns a value | A type scale you call by step |
| if() | Picks a value inline from a media, supports or style condition | Card padding that tightens on narrow screens |
| calc-mix() | Blends two calculations by a progress amount | A size halfway between two breakpoint values |
| random-item() | Picks one value from a list | A rotating tint across a row of cards |
| hyphenate-limit-chars | Sets the minimum word length and the characters kept on each side of a break | Narrow columns that hyphenate without stubs |
| margin-trim | Now limited to block and multi-column containers | Check flex and grid rows that used it |
Write the type scale once and call it by step
Arguments are read inside the function with var(), and the body hands back its answer through a result descriptor. Write a plain size first on each rule: a browser that cannot parse the call drops that declaration and keeps the size above it.
/* one ratio, one base, every size a call */ @function --step(--n) { result: calc(1rem * pow(1.25, var(--n))); } h1 { font-size: 3rem; font-size: --step(5); } h2 { font-size: 1.95rem; font-size: --step(3); } .card { padding: if(media(width < 40rem): 1rem; else: 2rem); }
Safari 27.3 also adds @supports at-rule(), so a stylesheet can ask whether @function exists before leaning on it for a whole component.
margin-trim goes back to block layouts
The same beta removes margin-trim from flex and grid containers, following a CSS Working Group resolution that limits it to block and multi-column containers. A card row that trimmed its outer margins with it will show those margins again in Safari 27.3, so move the spacing into gap, which both layouts already have.
.row { display: flex;
margin-trim: inline; }
.row > * { margin-inline: 12px; }.row { display: flex;
gap: 24px; }
.row > * { margin-inline: 0; }Figma's agent moves into FigJam and Slides
Figma put its agent into FigJam and Slides on all paid plans today, per the release notes. In FigJam it pulls context from Hex, Slack and Asana into boards and diagrams, and can turn a messy board into a Spec with a summary and next steps.
In Slides it starts a deck from an attached outline in a Spec, the format developers can now query, and a brand template, splits crowded slides and drafts speaker notes. For a site project, that puts the kickoff board, the Spec and the client deck in one chain.
A fourth engine for the automated test pass
Ladybird shipped its first alpha for macOS and Linux today, an engine written from the ground up rather than a fork. It speaks WebDriver and the Firefox DevTools protocol, so a scripted check that already drives Chrome, Firefox and Safari can add it as a fourth run.
The post is plain that some sites will break and the browser will crash at times. Treat a failure there as a report to file from inside the browser, not a bug in your layout.
Borrow this pattern: a scale you call, not a list you keep
Store the ratio, not the sizes
Keep one base and one ratio, write one function, and call it by step wherever a size goes. Use it for type, spacing and radius ramps on any page with more than a handful of sizes.
- Keep the steps few, from minus one to five, and name them by role in components.
- Write a plain value before every call while the function is beta only.
- Change the ratio in one place and check the whole page, not one heading.
Try the scale (base 1rem, ratio 1.25)
- Lesson1.25rem
- Lesson1.56rem
- Lesson1.95rem
- Lesson2.44rem
- Lesson3.05rem
--step(1) returns 1.25rem--step(2) returns 1.56rem--step(3) returns 1.95rem--step(4) returns 2.44rem--step(5) returns 3.05rem
Build this course page from one prompt
Handout 07The Cyanotype Course landing page
Build a landing page for a short online course, art directed as a printmaking class prospectus with violet-toned cyanotype art. Layout, top to bottom: 1. A slim top bar: school name left, three text links right. 2. Hero: a one-line nameplate (school name in wide caps, a small solid ink edition label, then a plain sentence with the date and course length). Under it a wide heavy headline of at most two lines on desktop. 3. A full-width hero image in a 14px rounded frame: a cyanotype step wedge, one object printed in five frames that step from pale lilac to near black. Under it, five centred mono labels lined up with the five frames. 4. A two-column row: a large deck and an orange primary button plus a text link on the left; a 380px course card on the right with a dt/dd list (release, date, runs on, lessons, level). 5. A syllabus: a two-column ruled list of numbered lesson links, each with a wide numeral, a title and a duration. 6. Each lesson is a two-column row: a 170px sticky rail holding a huge wide numeral in mid violet, an outlined violet duration label and a small mono kind label; the content column at most 680px. Lessons hold reading prose, one italic pullquote under a 2px orange rule, a ruled facts card, a feature table with mono row headers, before/after code pairs and a final interactive bench. 7. Close: field note beside sources under a 2px ink rule, then previous/next tiles and a colophon. Palette: lilac paper #E7E4EF, card #FAF9FC, ink #1F1733, violet #54467F for labels, mid violet #7A67AA for lesson numerals, aubergine #2C1D44 for code and dark panels, signal orange #C2461A for the button, list markers and rules only. Give the course card a 4px ink top rule, square corners and thin crop marks at three corners instead of a rounded panel. Type: Anybody at width 130 and weight 800 for headlines and numerals; Atkinson Hyperlegible Next for body; IBM Plex Mono for labels and code. Ground: a halftone of 1.3px violet dots at 16 percent on a 10px offset pitch behind the hero only, fading out downward through a mask. Guardrails: body at least 19px with line height 1.7 and lines of 60 to 75 characters; small labels at WCAG AA against their real surface; one soft shadow on the hero frame only; radius 14px on cards, 8px on buttons and controls; no neon, glow, gradients on text or purple-blue gradients; no readable fake text inside images; real hover and focus states at about 150ms and a prefers-reduced-motion guard. On mobile, crop the image to 16:9, stack every two-column row, put the rail numeral beside its labels above the heading, and turn table rows into labelled stacks.
Works in Claude Code, Beaver Builder AI, Figma Make, v0, Lovable and Framer.
Field note
The scale used to live in a design file and get copied into tokens by hand. With a function, the ratio itself ships, and the browser does the arithmetic for every size.
Sources
- Safari 27.3 Beta Release Notes, Apple Developer, 16 November 2026
- Figma's agent is now in FigJam and Slides, Figma release notes, 23 November 2026
- Figma agent, Figma Help Center
- Ladybird alpha, Andreas Kling, Ladybird, 23 November 2026
- Safari can now repaint your light site dark, unless you say no, Art Direction Daily No. 175