Skip to content

Commit 29dca11

Browse files
committed
style: cleanup tailwind
1 parent 143d642 commit 29dca11

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ Use a single-context domain-doc layout. See `.agents/config/domain.md`.
8787
and `user-event`; avoid CSS selectors and `data-*` locators.
8888
- New web styles should use Tailwind semantic colors from
8989
`packages/web/src/index.css`, not raw colors like `bg-blue-300`.
90+
- Prefer canonical Tailwind scale utilities over arbitrary values when an
91+
equivalent exists. Treat VS Code Tailwind IntelliSense
92+
`suggestCanonicalClasses` warnings as actionable cleanup before finishing
93+
changes.
9094
- Do not test login flows without the required backend setup.
9195
- Keep React components in their own files.
9296
- Do not add or use barrel files such as `index.ts` / `index.tsx`. Import from

packages/web/src/views/Life/LifeView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function ZoomControls({
7777
-
7878
</span>
7979
</ZoomButton>
80-
<span className="min-w-[80px] text-center font-medium text-sm text-text-light">
80+
<span className="min-w-20 text-center font-medium text-sm text-text-light">
8181
{Math.round(zoom * 100)}%
8282
</span>
8383
<ZoomButton
@@ -335,7 +335,7 @@ export function LifeView({ enableDotTooltips = true, today }: LifeViewProps) {
335335
style={{ transform: `scale(${effectiveScale})` }}
336336
>
337337
<div
338-
className="grid gap-[2px]"
338+
className="grid gap-0.5"
339339
data-total-dots={totalDots}
340340
style={{
341341
gridTemplateColumns: `repeat(${columns}, ${DOT_SIZE}px)`,

0 commit comments

Comments
 (0)