Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic

Browser support

Prismora is built on what current browsers do themselves, and says exactly which versions that means.

Supported versions

BrowserFrom versionReleased
Chrome, Edge and other Chromium browsers123March 2024
Firefox128July 2024
Safari (macOS, iOS, iPadOS)17.5May 2024

The automated suites (behaviour, accessibility, right-to-left, phone layouts, templates and this site) run in Chrome on every push, and in Firefox and in WebKit, the engine of Safari, before a release (BROWSER=firefox bun test tests/components.test.ts). The WebKit runs are on Linux: they find what differs in the engine, but they are not Safari on a Mac or an iPhone, which is checked by hand. If something differs in one browser, that is a bug: please report it.

What those versions are for

These features are used everywhere and have no fallback. The newest of them sets the versions above.

FeatureUsed forChromeFirefoxSafari
light-dark()Every colour token, in light and dark12312017.5
Popover APIMenus, selects, tooltips, toasts11412517
@propertyTyped tokens, animated values8512816.4
:has()States that depend on content10512115.4
CSS nesting, cascade layers, container queriesAll component CSS12011717.2
oklch() and color-mix()Theme colours11111316.2
Form-associated custom elementsEvery form control779816.4
<dialog>Dialogs and drawers379815.4

Used when the browser has it

Newer features only improve what already works. Each has a fallback, so a browser without it loses polish, not function.

FeatureWith itWithout it
@starting-style, transition-behaviorOverlays animate in and outThey appear and disappear at once
Anchor positioningThe marker of the selected tab slides between tabsEach tab draws its own underline
Customizable select (appearance: base-select)The native select is styledpm-select draws its own list
View transitionsPages and app screens slide or fadeThey change at once
Scroll-driven animationsReveals and progress follow the scrollContent is shown without the effect
interpolate-size, ::details-contentAccordions animate their heightThey open at once
field-sizingText areas grow with their textThey keep their rows and scroll
corner-shape, sibling-index()Squircle corners; lists of any length staggerRound corners; the first items stagger
CloseWatcherThe Android back gesture closes overlaysEsc and the close button do
ariaNotify()Toasts are announced directlyA live region announces them
EyeDropperThe colour picker can pick from the screenThe button is not shown

User and device settings

  • Reduced motion: movement stops; loading indicators slow down instead.
  • More contrast and forced colours (Windows high contrast): borders and focus rings get stronger; tokens map to system colours.
  • Reduced transparency: glass surfaces become opaque.
  • Touch: targets are at least 44 px, and text fields are 16 px on touch screens so iOS does not zoom.
  • Right-to-left: every component uses logical properties; all templates are tested with dir="rtl".
  • Without JavaScript: @prismora/css styles plain HTML (buttons, inputs, tables, cards) by class; the elements need their script.

How the versions move

A feature becomes required once it is Baseline Widely available (in every engine for about two and a half years) or when all three engines have had it for over a year. Raising a version in the first table is a breaking change: it is announced in the changelog and follows the versioning policy.

Servers and build tools

  • Server rendering: every package can be imported in Node without a DOM. See server rendering.
  • CLI and MCP server: Node 20 or newer, or Bun.
  • Bundlers: anything that reads package exports (Vite, webpack 5, Rollup, esbuild, Turbopack, Parcel). No plugin is needed.
  • TypeScript: 5.0 or newer, with moduleResolution set to bundler, node16 or nodenext.