Sauces report

Login (1440), Login (390)

Built for web-react · plan approved by eval

Summary

What was built, how much of the existing code was reused, and how close it is to the design.

1
screens built
0
components reused
2
components extended
2
new components
50%
reuse rate
97.9
mean fidelity (6/6 ≥ 90)
3
TODOs
Project
Platformweb-react
Architecturenext-app-router-tailwind
State managementhooks
Localizationjs-i18n · en, ar
Modeexisting

Fidelity by state

StateScoreResultIterations
login@1440--default99.3passed1
login@1440--error96.5passed1
login@1440--loading99.3passed1
login@390--default97.5passed1
login@390--error97.3passed1
login@390--loading97.5passed1

Visual fidelity

Each screen state rendered with the project's own tooling and scored 0–100 against its design reference (pixel similarity + SSIM).

Rendered with playwright 1.61.1 (npx, next dev, fixture app/[locale]/sauces-fixtures/login).

login@1440--default99.3

1 iteration(s): 99.3 · threshold 90

design
design
built
built
difference
difference
  • Field values are seeded test data (alex@example.com and a sample password), not copy.
  • The Next.js dev-mode indicator badge appears in the bottom start corner of every capture (dev server only, not in production builds).
  • Inter is not loaded by the project (rec-design-theme-1 kept), so text renders in the installed Inter/system fallback; small glyph differences remain.
  • Responsive: widths 390–1439 px use the single-column layout and are not designed, not verified.
login@1440--error96.5

1 iteration(s): 96.5 · threshold 90

design
design
built
built
difference
difference
  • Field values are seeded test data (alex@example.com and a sample password), not copy.
  • The Next.js dev-mode indicator badge appears in the bottom start corner of every capture (dev server only, not in production builds).
  • Inter is not loaded by the project (rec-design-theme-1 kept), so text renders in the installed Inter/system fallback; small glyph differences remain.
  • The desktop form is vertically centered, so the error state sits 10 px higher than the reference (form top fixed at 300 in the design).
  • Responsive: widths 390–1439 px use the single-column layout and are not designed, not verified.
login@1440--loading99.3

1 iteration(s): 99.3 · threshold 90

design
design
built
built
difference
difference
  • Field values are seeded test data (alex@example.com and a sample password), not copy.
  • The Next.js dev-mode indicator badge appears in the bottom start corner of every capture (dev server only, not in production builds).
  • Inter is not loaded by the project (rec-design-theme-1 kept), so text renders in the installed Inter/system fallback; small glyph differences remain.
  • Responsive: widths 390–1439 px use the single-column layout and are not designed, not verified.
  • The spinner is captured static (reduced motion); its arc start angle may differ slightly from the design.
login@390--default97.5

1 iteration(s): 97.5 · threshold 90

design
design
built
built
difference
difference
RTL
RTL
  • Field values are seeded test data (alex@example.com and a sample password), not copy.
  • The Next.js dev-mode indicator badge appears in the bottom start corner of every capture (dev server only, not in production builds).
  • Inter is not loaded by the project (rec-design-theme-1 kept), so text renders in the installed Inter/system fallback; small glyph differences remain.
  • RTL: The ar catalog still holds the English copy (translation TODO), so in RTL the trailing '?' of 'Forgot password?' is reordered by the bidi algorithm to read '?Forgot password'; resolves once translated.
  • RTL: The email value is right-aligned in RTL; consider dir="ltr" on the email input so addresses read naturally (not shown in the design).
login@390--error97.3

1 iteration(s): 97.3 · threshold 90

design
design
built
built
difference
difference
RTL
RTL
  • Field values are seeded test data (alex@example.com and a sample password), not copy.
  • The Next.js dev-mode indicator badge appears in the bottom start corner of every capture (dev server only, not in production builds).
  • Inter is not loaded by the project (rec-design-theme-1 kept), so text renders in the installed Inter/system fallback; small glyph differences remain.
  • RTL: The ar catalog still holds the English copy (translation TODO), so in RTL the trailing '?' of 'Forgot password?' is reordered by the bidi algorithm to read '?Forgot password'; resolves once translated.
  • RTL: The email value is right-aligned in RTL; consider dir="ltr" on the email input so addresses read naturally (not shown in the design).
login@390--loading97.5

1 iteration(s): 97.5 · threshold 90

design
design
built
built
difference
difference
RTL
RTL
  • Field values are seeded test data (alex@example.com and a sample password), not copy.
  • The Next.js dev-mode indicator badge appears in the bottom start corner of every capture (dev server only, not in production builds).
  • Inter is not loaded by the project (rec-design-theme-1 kept), so text renders in the installed Inter/system fallback; small glyph differences remain.
  • The spinner is captured static (reduced motion); its arc start angle may differ slightly from the design.
  • RTL: The ar catalog still holds the English copy (translation TODO), so in RTL the trailing '?' of 'Forgot password?' is reordered by the bidi algorithm to read '?Forgot password'; resolves once translated.
  • RTL: The email value is right-aligned in RTL; consider dir="ltr" on the email input so addresses read naturally (not shown in the design).

Design system

Where new components live, and how each design element maps to code.

Structure: Follow the project's structure (recommended)

Components by layer

LayerComponentDecisionFileDesign elementConfidence
app--text-title (28/36)tokenapp/globals.csstokens#title100%
app--breakpoint-desktop (1440)tokenapp/globals.csstokens#breakpoint-desktop100%
componentsBrandMarknewcomponents/BrandMark.tsxlogin@1440/default#brand-mark100%
componentsButtonextendcomponents/Button.tsxlogin@390/default#button70%
componentsTextFieldextendcomponents/TextField.tsxlogin@390/default#email-field55%
componentsPasswordFieldnewcomponents/PasswordField.tsxlogin@390/default#password-field40%
componentsLoginViewnewcomponents/LoginView.tsxlogin@390/default#screen100%

Existing components found

ComponentFileIn this design
Buttoncomponents/Button.tsxused
Cardcomponents/Card.tsxnot used
TextFieldcomponents/TextField.tsxused

Component graph

Screens → components → tokens.

ScreensComponentsTokensLoginViewBrandMark (new)Button (extend)TextField (extend)PasswordField (new)--text-title (28/36)--breakpoint-desktop (1440)
Graph source (mermaid syntax)
graph LR
  s_login["LoginView login@390 and login@1440"] --> c_item_3["BrandMark"]
  s_login --> c_item_4["Button extend loading"]
  s_login --> c_item_5["TextField extend outlined error trailing"]
  s_login --> c_item_6["PasswordField"]
  c_item_6 --> c_item_5
  s_login --> t_title["text-title 28/36"]
  s_login --> t_desktop["breakpoint desktop 1440"]
  c_item_4 --> t_brand["brand 3D5AFE"]
  c_item_4 --> t_radius["radius m 12"]
  c_item_5 --> t_outline["outline 79747E"]
  c_item_5 --> t_error["error B3261E"]
  c_item_5 --> t_text["text 1B1B1F"]
  c_item_5 --> t_text_variant["text variant 49454F"]
  c_item_5 --> t_radius
  c_item_3 --> t_on_brand["on brand FFFFFF"]
  s_login --> t_brand

Localization & resources

Strings, locales, right-to-left checks and assets.

8
keys added
0
keys reused
2
locales
0
strings to translate
6
RTL issues
0
assets created
0
design assets

System: js-i18n · files in messages · right-to-left: yes

LocaleKeys addedKeys reusedStatus
en80complete
ar80complete

Strings

KeyTextScreen
Login.titleWelcome backloginadded
Login.emailLabelEmailloginadded
Login.passwordLabelPasswordloginadded
Login.forgotPasswordForgot password?loginadded
Login.signInSign inloginadded
Login.errorInvalidCredentialsIncorrect email or passwordloginadded
Login.showPasswordShow passwordloginadded
Login.hidePasswordHide passwordloginadded

Right-to-left

Design audit

Measured facts about the design itself, and the suggestions you kept or applied.

Palette

#FFFFFF
surface
#3D5AFE
primary
#1B1B1F
on-surface
#49454F
on-surface-variant
#79747E
outline
#B3261E
error

Measured findings

SeverityCategoryWhereFindingGuideline
mediumaccessibilitylogin@1440/default (+1 more)icon-button "eye (show password)" has a touch target of height 15 px, width 22 px: under Material 48 dp and HIG 44 pt; spacing unknown, likely passes WCAG 2.5.8 by its spacing exception.
height: 15 width: 22 minimum: 48
Material 3 accessibility: touch targets at least 48 x 48 dp; Apple HIG: at least 44 x 44 pt. WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA: 24 x 24 CSS px, unless a 24 px circle centered on each undersized target does not intersect another target or its circle (spacing exception), or the target is an inline link in a sentence, among other exceptions
mediumaccessibilitylogin@1440/default (+1 more)link "Forgot password?" has a touch target of height 20 px: under Material 48 dp and HIG 44 pt; spacing unknown, likely passes WCAG 2.5.8 by its spacing exception.
height: 20 minimum: 48
Material 3 accessibility: touch targets at least 48 x 48 dp; Apple HIG: at least 44 x 44 pt. WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA: 24 x 24 CSS px, unless a 24 px circle centered on each undersized target does not intersect another target or its circle (spacing exception), or the target is an inline link in a sentence, among other exceptions
mediumaccessibilitylogin@1440/loadingicon-button "eye (show password)" has a touch target of height 24 px, width 24 px: under Material 48 dp and HIG 44 pt; meets the WCAG 2.5.8 24 px minimum.
height: 24 width: 24 minimum: 48
Material 3 accessibility: touch targets at least 48 x 48 dp; Apple HIG: at least 44 x 44 pt. WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA: 24 x 24 CSS px, unless a 24 px circle centered on each undersized target does not intersect another target or its circle (spacing exception), or the target is an inline link in a sentence, among other exceptions
mediumaccessibilitylogin@1440/loadinglink "Forgot password?" has a touch target of height 20 px: under Material 48 dp and HIG 44 pt; passes WCAG 2.5.8 by its spacing exception.
height: 20 minimum: 48
Material 3 accessibility: touch targets at least 48 x 48 dp; Apple HIG: at least 44 x 44 pt. WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA: 24 x 24 CSS px, unless a 24 px circle centered on each undersized target does not intersect another target or its circle (spacing exception), or the target is an inline link in a sentence, among other exceptions
mediumaccessibilitylogin@390/defaulticon-button "eye (show password)" has a touch target of height 15 px, width 21 px: under Material 48 dp and HIG 44 pt; spacing unknown, likely passes WCAG 2.5.8 by its spacing exception.
height: 15 width: 21 minimum: 48
Material 3 accessibility: touch targets at least 48 x 48 dp; Apple HIG: at least 44 x 44 pt. WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA: 24 x 24 CSS px, unless a 24 px circle centered on each undersized target does not intersect another target or its circle (spacing exception), or the target is an inline link in a sentence, among other exceptions
mediumaccessibilitylogin@390/default (+2 more)link "Forgot password?" has a touch target of height 20 px: under Material 48 dp and HIG 44 pt; spacing unknown, likely passes WCAG 2.5.8 by its spacing exception.
height: 20 minimum: 48
Material 3 accessibility: touch targets at least 48 x 48 dp; Apple HIG: at least 44 x 44 pt. WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA: 24 x 24 CSS px, unless a 24 px circle centered on each undersized target does not intersect another target or its circle (spacing exception), or the target is an inline link in a sentence, among other exceptions
mediumaccessibilitylogin@390/error (+1 more)icon-button "eye (show password)" has a touch target of height 24 px, width 24 px: under Material 48 dp and HIG 44 pt; meets the WCAG 2.5.8 24 px minimum.
height: 24 width: 24 minimum: 48
Material 3 accessibility: touch targets at least 48 x 48 dp; Apple HIG: at least 44 x 44 pt. WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA: 24 x 24 CSS px, unless a 24 px circle centered on each undersized target does not intersect another target or its circle (spacing exception), or the target is an inline link in a sentence, among other exceptions
lowconsistencylogin@1440/errorpadding value 6 px is off the 4-pt grid (nearest 8 px), used 1 time(s).
value: 6 grid: 4 nearest_on_grid: 8 occurrences: 1
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@1440/default (+3 more)radius value 10 px is off the 4-pt grid (nearest 8 px), used 12 time(s).
value: 10 grid: 4 nearest_on_grid: 8 occurrences: 12
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@1440/default (+2 more)padding value 14 px is off the 4-pt grid (nearest 16 px), used 3 time(s).
value: 14 grid: 4 nearest_on_grid: 16 occurrences: 3
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@390/errorgap value 7 px is off the 4-pt grid (nearest 8 px), used 1 time(s).
value: 7 grid: 4 nearest_on_grid: 8 occurrences: 1
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@390/default (+1 more)padding value 14.5 px is off the 4-pt grid (nearest 16 px), used 2 time(s).
value: 14.5 grid: 4 nearest_on_grid: 16 occurrences: 2
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@390/errorpadding value 17 px is off the 4-pt grid (nearest 16 px), used 1 time(s).
value: 17 grid: 4 nearest_on_grid: 16 occurrences: 1
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@390/default (+1 more)padding value 17.5 px is off the 4-pt grid (nearest 16 px), used 3 time(s).
value: 17.5 grid: 4 nearest_on_grid: 16 occurrences: 3
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@390/errorpadding value 19 px is off the 4-pt grid (nearest 20 px), used 1 time(s).
value: 19 grid: 4 nearest_on_grid: 20 occurrences: 1
Material Design spacing: a 4 dp grid for small elements and an 8 dp baseline grid for layout. A 4-pt spacing grid is also common practice on iOS (a convention, not an Apple HIG rule). Off-grid values usually mean a measurement or intent gap
lowconsistencylogin@390Screen login@390 uses 7 text styles (size/weight); sizes 29 px are on neither the Material 3 nor the HIG scale.
count: 7 maximum: 6
Material 3 type scale: 15 roles (display, headline, title, body, label in large, medium, small) with fixed sizes; on iOS, Apple HIG Dynamic Type text styles (large title 34 ... caption 2 11 pt). Using more than 6 size/weight styles on one screen, or sizes on neither scale, suggests type-scale sprawl (common practice)

Design suggestions

SuggestionChangeGuidelineSeverityDecision
Give the password visibility toggle a 48 px hit area
login@1440/default: row > stack > column > text-field "Password" > icon-button "eye (show password)" — 22 × 15 px, minimum 48 (also in login@1440/error); login@1440/loading — 24 × 24; login@390/default — 21 × 15; login@390/error — 24 × 24 (also in login@390/loading)
Keep the 24 px eye icon and extend the toggle button's hit area to 48 × 48 px (size-12 button centered on the icon inside the 56 px field); no visual change.
A tiny toggle is hard to hit on touch screens, especially for users with motor impairments. It meets WCAG 2.5.8 at 24 px or by spacing, but misses the 48 dp / 44 pt platform minimums.
Material 3 touch targets 48 × 48 dp; Apple HIG 44 × 44 pt; WCAG 2.2 SC 2.5.8 Target Size (Minimum)mediumkeep
Give "Forgot password?" a 48 px touch target
login@1440/default: row > stack > column > link "Forgot password?" — height 20 px (from line height), minimum 48 (also in login@1440/error, login@1440/loading, where WCAG 2.5.8 spacing passes); login@390/default — 20 px (also in login@390/error, login@390/loading)
Keep the 14/20 text and its position; extend the link's hit area to 48 px high with vertical padding (py-3.5) offset by an equal negative margin (-my-3.5) so the layout does not move.
A 20 px tall link is easy to miss on touch screens; it passes WCAG 2.5.8 by spacing but misses the platform minimums.
Material 3 touch targets 48 × 48 dp; Apple HIG 44 × 44 pt; WCAG 2.2 SC 2.5.8 (spacing exception)mediumkeep
Snap off-grid paddings and gaps to the 4 px grid
Measured from the images: login@1440/error error text padding 6 px; login@1440 password field end padding 14 px (default, error, loading); login@390/error gap 7 px; login@390 password end padding 14.5 px; error text inset 17 px; field start padding 17.5 px and 19 px
padding 6 → 8 px, 14 / 14.5 → 16 px, 17 / 17.5 → 16 px, 19 → 20 px, gap 7 → 8 px (Tailwind spacing steps 2, 4, 5).
Values on one grid keep spacing consistent; these are most likely image measurement noise, so snapping costs no visible fidelity.
Material Design spacing: 4 dp grid for small elements, 8 dp baseline gridlowkeep
Use one 12 px radius for fields and button
login@1440/default: column > button, text-field "Email", text-field "Password" — radius 10 px, 12 uses (also in login@1440/error, login@1440/loading, login@390/loading); login@390/default and error measured 12 px
radius 10 → 12 px for fields and button, which is the existing rounded-m token.
One radius for every control reads as one system; the 10/12 split comes from measuring the same shapes in different images.
Material 3 shape scale (medium 12 dp); Material Design 4 dp gridlowkeep
Reduce the login type styles to five scale roles
login@390: 7 text styles 12/400, 14/500, 16/400, 16/600, 17/600, 28/700, 29/700; 29 px is on neither the Material 3 nor the HIG scale
29/700 and 28/700 → title 28/36 600 (headline medium 28); 17/600 → 16/24 600 (button, label large); keep 16/400 body, 14/500 link, 12/400 label: five styles.
Fewer, on-scale styles keep hierarchy clear and match the tokens the build uses; the 29 and 17 readings are measurement variance of the same text.
Material 3 type scale (headline medium 28/36, body large 16/24, label large 14/20, body small 12/16)lowkeep

Files written

Everything Sauces created or changed in your project.

5 created, 5 changed. Generated code carries no markers, so use this list to review or revert Sauces' work.

File
components/BrandMark.tsxnew
components/PasswordField.tsxnew
components/LoginView.tsxnew
app/[locale]/login/page.tsxnew
app/[locale]/sauces-fixtures/login/page.tsxnew
app/globals.csschanged
components/Button.tsxchanged
components/TextField.tsxchanged
messages/en.jsonchanged
messages/ar.jsonchanged

TODOs for a human

Behavior the design doesn't show. Sauces marked it instead of guessing.

WhereWhat
components/LoginView.tsx:25submit the credentials to your auth API, then redirect on success or render error={true} on failure.
components/LoginView.tsx:52link "Forgot password?" to your password-reset route.
messages/ar.json:10translate 8 new strings

Best practices & next steps

Each practice is checked against this run's results. With no evidence it says “not checked”. Then what to do next.

Practices checked against this run (web-react)

  • ✓ followed Design values come from the project's tokens and theme, not literals. lint: no color literal(s)
  • ✓ followed User-facing strings live in the project's string resources. lint: no hardcoded string(s)
  • not checked Existing components are extended, never silently replaced. needs a code review; the report cannot verify it

Next steps

  1. Resolve 2 TODO(sauces) item(s), starting with components/LoginView.tsx.
  2. Fix 6 right-to-left issue(s) listed under Localization.
  3. Add .sauces/verify/ to .gitignore.

Recommendations

Changes to the existing project that Sauces offered at the plan step, and what you chose.

RecommendationDecisionChosen option
Make Card's indent direction-aware
components/Card.tsx:9 uses the physical ml-2 utility, so in the ar (right-to-left) locale the body indent stays on the left. The new login UI does not use Card, but it ships in the same RTL app.
kept as isKeep as is
Add previews for the shared components
components/Button.tsx, components/Card.tsx and components/TextField.tsx have no Storybook or other previews, so their variants (including the new Button loading and TextField outlined/error variants) can only be seen inside a screen.
kept as isKeep as is
Add screenshot tests
package.json has no test script and no Playwright, Vitest or Jest dependency, so nothing guards the login screen's states or its RTL layout against regressions.
kept as isKeep as is
Load the Inter font the theme declares
app/globals.css:14 sets --font-sans to "Inter", system-ui, but nothing loads Inter (no next/font, no @font-face), so on machines without Inter the whole app, including the new login screen, renders in the system font and verify scores a type difference against the Inter design. keep means the new UI uses var(--font-sans) as is.
kept as isKeep as is