Project-specific UI and styling guidance for Evorto, including when to use viewport queries versus Tailwind v4 container queries.
Use viewport queries for page-level layout changes and container queries for component-level adaptation.
sm:, md:, lg:) for global structure (page grids, shell layout, top-level navigation behavior).@container and @sm:, @md:, @lg:) for reusable components that should adapt to their parent width.@container; avoid deep or unnecessary nested containers.<section class="@container">
<div class="grid gap-4 @lg:grid-cols-2">
<article class="rounded-2xl p-4">
<h3 class="text-base @md:text-lg">Card title</h3>
<p class="@sm:line-clamp-3">Component content adapts to container width.</p>
</article>
</div>
</section>
In this project, Material theming is consumed primarily through Tailwind tokens defined in /Users/hedde/code/evorto/src/tailwind.css, not through Angular Material utility classes.
src/tailwind.css as the theming bridge from Material system tokens (--mat-sys-*) to Tailwind tokens (--color-*, --radius-*, font tokens).bg-surface, text-on-surface, bg-primary-container, and rounded-2xl.var(--mat-sys-*) directly only when a style cannot be expressed cleanly with existing Tailwind utilities.src/tailwind.css instead of introducing hardcoded hex values.bg-*, text-*, rounded-*).src/tailwind.css when coverage is missing.Reference: Angular Material - Theming your components (focus on CSS variables/system tokens).