Skip to content

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

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

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

Conversation

@nicomiguelino

Copy link
Copy Markdown
Contributor

Summary

  • Rework index.html to use Tailwind CSS utility classes (with arbitrary-value bracket syntax for exact px/em/gradients/shadows/colors) instead of custom CSS classes, keeping visual appearance and behavior pixel-identical to before.
  • Slim src/css/style.css down to the standard three-layer Tailwind + design-system import.
  • Bump @screenly/edge-apps to ^1.3.0 (unpublished; ships Tailwind support).
  • Regenerate screenshots/* to reflect the change.

This mirrors the pattern established in two pilot migrations:

Notes

  • All DOM hooks used by src/app.ts / tests are id selectors (#message-header, #message-body, #date-badge), none of which were renamed, so no JS changes were required.
  • portrait: variants replace the @media (orientation: portrait) block from the old stylesheet.
  • leading-[normal] / tracking-[normal] arbitrary values are used (rather than Tailwind's leading-normal/tracking-normal, which map to different fixed values) to exactly preserve the original line-height: normal / letter-spacing: normal behavior.

Test plan

  • bun run type-check — passes
  • bun run build — succeeds (pre-existing, unrelated import.meta/chunk-size warnings only)
  • bun test --pass-with-no-tests src/ — 5/5 tests pass
  • bun run screenshots — all 10 Playwright screenshot specs pass
  • Visually reviewed landscape (1920x1080), portrait (1080x1920), and a small landscape (800x480) screenshot — layout, text, and date badge render correctly with no regressions

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