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

  • Reworks index.html to use Tailwind utility classes instead of custom CSS classes (.header, .content, .welcome-heading, .welcome-message), using arbitrary-value bracket syntax to reproduce every px/rem/color/gradient value exactly, plus a portrait: variant for the existing @media (orientation: portrait) overrides.
  • Slims src/css/style.css down to just the layered Tailwind + design-system import (theme/base/utilities), matching the pattern from the other migrated apps.
  • Bumps @screenly/edge-apps to ^1.3.0 in package.json for the upcoming Tailwind CSS support release (not yet published).
  • Regenerates all screenshots/*.webp to reflect the (visually identical) markup change.

No JS/TS behavior changed — src/app.ts and src/app.test.ts only reference the #welcome-heading / #welcome-message IDs, which are untouched.

Reference implementations (pilot migrations for this company-wide rollout):

Test plan

  • bun run type-check passes
  • bun run build succeeds (built against the local unpublished @screenly/edge-apps@1.3.0 tailwind-support tarball, then reverted package.json/bun.lock to the committed dependency version before committing — only the ^1.3.0 version bump is retained)
  • bun test --pass-with-no-tests src/ — 4/4 tests pass
  • bun run screenshots regenerated all 10 screenshots; visually spot-checked landscape (1920x1080) and portrait (1080x1920) — layout, text, and background 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