BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/optics/cursor-rule-web-interface-guidelines

Cursor Rule: Web Interface Guidelines

optics/cursor-rule-web-interface-guidelines
FreeUtility

Cursor rule file for web interface guidelines.

See it running

Open the demo on optics

optics.agusmayol.com.ar/components/cursor-rule-web-interface-guidelines
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://optics.agusmayol.com.ar/r/cursor-rule-web-interface-guidelines.json

Source

registry/optics/cursor/rules/web-interface-guidelines.mdcoptics.agusmayol.com.ar/r/cursor-rule-web-interface-guidelines.json · first 6 KB
1---
2description: Web Interface Guidelines
3globs: *
4alwaysApply: false
5---
6Concise rules for building accessible, fast, delightful UIs Use MUST/SHOULD/NEVER to guide decisions
7
8## Interactions
9
10- Keyboard
11 - MUST: Full keyboard support per [WAI-ARIA APG](https://www.w3.org/WAI/ARIA/apg/patterns/)
12 - MUST: Visible focus rings (`:focus-visible`; group with `:focus-within`)
13 - MUST: Manage focus (trap, move, and return) per APG patterns
14- Targets & input
15 - MUST: Hit target ≥24px (mobile ≥44px) If visual <24px, expand hit area
16 - MUST: Mobile `<input>` font-size ≥16px or set:
17 ```html
18 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover">
19 ```
20 - NEVER: Disable browser zoom
21 - MUST: `touch-action: manipulation` to prevent double-tap zoom; set `-webkit-tap-highlight-color` to match design
22- Inputs & forms (behavior)
23 - MUST: Hydration-safe inputs (no lost focus/value)
24 - NEVER: Block paste in `<input>/<textarea>`
25 - MUST: Loading buttons show spinner and keep original label
26 - MUST: Enter submits focused text input In `<textarea>`, ⌘/Ctrl+Enter submits; Enter adds newline
27 - MUST: Keep submit enabled until request starts; then disable, show spinner, use idempotency key
28 - MUST: Don’t block typing; accept free text and validate after
29 - MUST: Allow submitting incomplete forms to surface validation
30 - MUST: Errors inline next to fields; on submit, focus first error
31 - MUST: `autocomplete` + meaningful `name`; correct `type` and `inputmode`
32 - SHOULD: Disable spellcheck for emails/codes/usernames
33 - SHOULD: Placeholders end with ellipsis and show example pattern (eg, `+1 (123) 456-7890`, `sk-012345…`)
34 - MUST: Warn on unsaved changes before navigation
35 - MUST: Compatible with password managers & 2FA; allow pasting one-time codes
36 - MUST: Trim values to handle text expansion trailing spaces
37 - MUST: No dead zones on checkboxes/radios; label+control share one generous hit target
38- State & navigation
39 - MUST: URL reflects state (deep-link filters/tabs/pagination/expanded panels) Prefer libs like [nuqs](https://nuqs.dev)
40 - MUST: Back/Forward restores scroll
41 - MUST: Links are links—use `<a>/<Link>` for navigation (support Cmd/Ctrl/middle-click)
42- Feedback
43 - SHOULD: Optimistic UI; reconcile on response; on failure show error and rollback or offer Undo
44 - MUST: Confirm destructive actions or provide Undo window
45// … truncated

Files it writes

  • registry/optics/cursor/rules/web-interface-guidelines.mdc

Facts

Registry
optics
Type
registry:file
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
today

Go to the source

Docs on optics optics.agusmayol.com.ar AgusMayol/optics on GitHub Raw registry item This item as JSON

More from optics

All 79 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Cursor Rule: Back Endcursor-rule-back-endopticsUtilitiesFreeno deps
Cursor Rule: Bulk Processingcursor-rule-bulk-processingopticsUtilitiesFreeno deps
Cursor Rule: Commits Conventioncursor-rule-commits-conventionopticsUtilitiesFreeno deps
Cursor Rule: Front Endcursor-rule-front-endopticsUtilitiesFreeno deps
Cursor Rule: Generalcursor-rule-generalopticsUtilitiesFreeno deps
Cursor Rule: React Optimizationcursor-rule-react-optimizationopticsUtilitiesFreeno deps
Get strict contextget-strict-contextopticsUtilitiesFreeno deps
Use auto heightuse-auto-heightopticsUtilitiesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex