Skip to content

Designsystemet / Hotwire spike

This development-only preview is available at /design-preview. It contains fictional, in-memory data and does not access the database, implement login or offer real product actions. The route is unavailable outside development.

The preview vendors the unmodified MIT-licensed CSS and default theme from @digdir/designsystemet-css 1.24.1 in apps/web/public/vendor/designsystemet. The upstream license is included there. This is a scoped spike, not a decision to vendor future releases or use the default theme as NotiFi’s final identity. No React, third-party CDN or Designsystemet web JavaScript package is required for this experiment. A native HTML dialog is controlled by local Stimulus code.

The filter submits a GET request within a Turbo Frame. The dialog, filter and table are intended to test Rails HTML and Designsystemet CSS together, not to assert production readiness or validate the entire Designsystemet web package.

Before adoption, check in a real browser at 320, 375, 768, 1024 and 1440 CSS pixels, 200% zoom and on touch: keyboard access, focus restoration, Escape, Turbo updates, empty results, contrast and overflow. Test the official web package and its lifecycle separately before using interactive components from it. Confirm asset strategy, versions and a custom theme in the subsequent UI PR.