Skip to content

feat: adopt Tailwind CSS utility classes for styling - #35

Draft
nicomiguelino wants to merge 1 commit into
developmentfrom
chore/adopt-tailwind-css
Draft

feat: adopt Tailwind CSS utility classes for styling#35
nicomiguelino wants to merge 1 commit into
developmentfrom
chore/adopt-tailwind-css

Conversation

@nicomiguelino

Copy link
Copy Markdown
Contributor

Summary

Migrates this app's styling to Tailwind CSS utility classes, following the same pattern established by:

Changes:

  • index.html: replaced custom app-shell/error-screen classes with Tailwind utility classes (arbitrary-value bracket syntax used for exact px/rem values, colors, and the design-system --z-index-content token), using the portrait: variant for the existing @media (orientation: portrait) override on the error card.
  • src/render/report.ts, src/render/table.ts, src/render/utils.ts: dynamically-created elements (chart-card, chart-title, chart-container, report-stat*, metric-value, empty-state, table-scroll, data-table) now get Tailwind utility strings appended alongside their existing (preserved) class names. The per-row "no bottom divider on the last row" behavior (tbody tr:last-child td { background-image: none }) is now expressed with group on <tr> and group-last:bg-none on <td>, with no change to the render logic.
  • src/css/style.css: slimmed down to the standard Tailwind layer setup + @screenly/edge-apps/styles import.
  • package.json: bumped @screenly/edge-apps to ^1.3.0 (unpublished; ships Tailwind support).
  • Regenerated all screenshots under screenshots/.

No visual or behavioral changes are intended — this is a pure styling refactor.

Test plan

  • bun run type-check — passes
  • bun run build — succeeds (pre-existing warnings unrelated to this change)
  • bun test --isolate --pass-with-no-tests src/ — 57 pass / 0 fail
  • bun run screenshots — all 19 Playwright screenshot specs pass
  • Visually reviewed dashboard (landscape + portrait), report, and error screenshots — layout, colors, and the table's last-row divider behavior all match the pre-migration design
  • Temporary local-tarball @screenly/edge-apps install fully discarded afterward (package.json/lockfile reset to committed state, then only the version-string bump re-applied); lockfile is untouched in this PR

Rework index.html to use Tailwind utility classes instead of custom CSS
classes, keeping visual appearance and behavior unchanged. Slim the CSS
entry point down to just the design-system import. Bump
@screenly/edge-apps to ^1.3.0 for upcoming Tailwind CSS support.
Regenerate screenshots to reflect the change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant