Forms and data entry.

A form asks for what’s needed to get something done, in the order of a conversation. It says what’s missing before sending, never loses what was typed and brings the right keyboard to every field.

Available Updated December 2, 2026

cuenca.flouvia.com

Principles

Every field has a cost. A form asks for just enough, in the order a person would tell it, and never leaves them guessing.

  • Only what’s needed

    If a value isn’t used to respond, it isn’t asked for. What can wait, waits.

  • Required is the rule

    Almost everything you ask for is needed: what isn’t says “optional.” Nothing carries an asterisk.

  • In the order of a conversation

    First what the person wants, then how to reach them. Contact asks what to build before asking for a name.

  • It says what’s missing before sending

    Submit is never disabled: on submit, the form says how many values are missing and takes you to the first.

  • It never loses what was typed

    Not with an error, not with the network down. What’s sent is saved first and announced after.

  • The right keyboard

    Every field asks for its type of value and brings its keyboard, its autofill and its check.

Anatomy

A Cuenca form is a <form> with its fields, a summary above the actions and the actions at the end. Try it: submit it empty, fix it and submit again.

What you have today and what you want to achieve.

280 of 280 left

By submitting, you agree to our privacy policy.

Real Cuenca fields: the label on top, the example inside, “optional” next to what isn’t needed, the help and the counter below, and the legal line next to submit. With errors, the summary appears above the button and focus moves to the first one.
PartWhat it is
Group A fieldset with its legend: the question a set of fields answers. Screen readers hear it on entering. Below it, its help when it has one, and its error in place of the help; when the context already says the question, it’s hidden from view.
Field The label always visible on top, the example inside, the help below and its error in place of the help.
Optional The word “optional” next to the label of the field that isn’t needed.
Summary Above the actions, empty until the form is sent with errors: “2 fields need fixing.”
Actions The submit button at the end, with the legal line next to it: “By submitting, you agree to our privacy policy.”
Send error Below the actions, when what fails is the network or the server, with another way forward.

Options are Cuenca’s groups (checkboxes, radios and chips) and they join the same validation: the summary counts them, the error goes under their question, in place of its help and in the screen’s words when it brings them, and focus moves to the first one missing. When to use each, in Selection.

Layout

One column that reads top to bottom, in groups with their question.

  • One column

    Two short values that belong together (name and email) can share a row on a wide screen. On the phone, always one below the other.

  • Groups with their question

    What answers the same question goes in one group, with the question as its title.

  • Steps in view

    A long form splits into numbered steps, all in the same view: you see how much is left and go back without losing anything.

  • One size

    large in forms, with a button of the same height. Never mixed sizes.

  • The legal line, by submit

    The privacy notice sits next to the button, in one line. No boxes to check before you can send.

  • One submit

    One primary action per form. Cancel or back, when they exist, carry less weight.

Do: One column, with two short values that belong together on the same row.

https://

Don’t: Unrelated values in two columns: the eye zigzags and the keyboard order isn’t the reading order.

Validation

The rule belongs to the platform (required, type, pattern, minlength, maxlength). Cuenca decides when the error shows and what it says.

MomentWhat happens
While typing Nothing is marked. If the field had an error and the value is now valid, the error goes.
On leaving a field It validates, only if you typed in it. A field nobody touched isn’t marked.
On submit Everything validates. With errors, nothing is sent: the summary says how many are left, focus moves to the first and the error sounds once.
On fixing Each error goes as soon as the value is valid and the summary recounts without being announced again.
What the server knows An email that already has an account goes to its field, and clears on its own once fixed.
Without JavaScript The browser validates with the same rules and the error looks the same.

Enter your name.

Enter your email (name@company.com).

2 fields need fixing.

Do: Submit always responds: it says how many values are missing and marks each one.

Don’t: A disabled button says neither what’s missing nor where.

The right keyboard

Every type of value brings its keyboard, its autofill and its Return key. On a phone, it’s the difference between typing a value and fighting it.

ValueAsked for withKeyboardAutofillReturn
Name autoComplete="name"TextnameNext
Email type="email"emailemailNext
Phone type="tel" and countryteltel-national and the country codeNext
Website type="url"urlurlNext
Amount inputMode="decimal"decimalNo autofillNext
Password type="password"Textcurrent-password or new-passwordGo
Code autoComplete="one-time-code"numericone-time-codeGo
  • “Next” goes to the next field

    With a finger, the Return key says “Next” and focuses the next field, country code included. On the last one, it submits. On desktop, Return submits.

  • The last one can say “Send”

    When the last field is a text field, the page gives it enterKeyHint="send".

  • No autocorrect where it gets in the way

    Emails, addresses, passwords and codes go without autocorrect or auto-capitalization.

  • Pasted text is cleaned

    A code pasted with spaces or dashes (“123 456”) is cleaned, not cut off.

  • 16 px text under a finger

    A field’s text never goes below 16 px on a phone, so the browser doesn’t zoom in when you tap it.

  • The country code, apart

    The phone number is typed without its code; the code is picked from a list inside the field and sent separately. The page sets it; it’s never guessed.

Submitting

From the click to the reply, the person always knows what’s happening, and what they typed is never lost.

  • The button loads in place

    The spinner takes the label’s place without changing the width, screen readers hear “Sending…” and a second click doesn’t send again.

  • Saved first

    What arrives is saved before anyone is notified. A notice that fails is retried; the submission is never lost.

  • One submission, once

    Every submission carries its key: if the network repeats it, it isn’t duplicated.

  • If it fails, everything stays

    The values stay in place and the error offers another way forward: “Something went wrong. Try again or email hola@flouvia.com.”

  • Success takes its place

    The form leaves and the success message receives focus: screen readers hear its title and its text.

  • No tests for humans

    A public form is protected without asking anything of the person: an invisible trap, a minimum fill time and a limit per network.

Motion and sound

The form moves with Cauce and sounds with Onda, sparingly and at the right moment.

MomentMotionSound
Focus and hover The fill and the ring change with drop.None: typing never makes a sound.
An error appears It enters with bloom: it appears and settles 4 px down into place.None, when it’s on leaving the field.
Submitted with errors Focus moves to the first.error, once.
Submitted The button loads in place.send. Its button carries sound="none": the form sounds for it.
Success The check enters with bloom.success.
Cancelled The fields return to their values.close.

With reduced motion nothing moves: everything fades in place in 200 ms. With sound off, everything looks and is announced the same.

Accessibility

WCAG 2.2 AA in every field, with contrast measured in the Flouvia theme across its four layers and in every state. The number is the worst case.

What you readWorst caseMinimum
The typed value 8.6:14.5:1
The label 6.1:14.5:1
The error 5.9:14.5:1
The example and the prefix 4.6:14.5:1
The help, “optional” and the counter 4.6:14.5:1
The error ring 4.1:13:1
The field’s icon 3.6:13:1
The focus ring 3.3:13:1
  • A real label

    A <label> tied to its field, always visible: tapping it focuses the field. A field without a label doesn’t build.

  • Help and error, together

    The field and the group carry both in their description. The error replaces the help on screen, but screen readers hear both.

  • Never color alone

    An error carries a ring, an icon and text. In forced colors, the system border.

  • Nothing starts invalid

    On load, no field is announced as invalid. What can’t be typed in isn’t announced as required.

  • Everything by keyboard

    Tab moves through the fields in reading order, the country code before the number. The password eye is a toggle button.

  • 44 px targets

    The × and the eye have a 44 px target under a finger, and the country code can be tapped across the field’s full height.

WCAG 2.2How it’s met
1.3.1 · A Every field with its <label>; every group with its fieldset and legend.
1.3.5 · AA Every personal value carries its autofill: name, email, tel-national.
3.3.1 · A The error is stated in text, below its field, with aria-invalid.
3.3.2 · A The label always visible and “optional” where it applies.
3.3.3 · AA The error says how to fix it: “Add the @ (name@company.com).”
4.1.3 · AA The summary is announced once through the live region, without moving focus as it recounts.
2.5.8 · AA The smallest field is 36 px; the × and the eye, 44 px under a finger.

On phone and desktop

The same form, arranged for each hand.

PhoneDesktop
Columns One, always.One; two short values that belong together can share a row.
Return “Next” goes to the next field; on the last one, it submits.Submits the form.
Field text 16 px.16 px; 14 px in dense bars, with a fine pointer.
Actions Full width, one below the other.At the end, with the legal line beside them.
Targets 44 px on the ×, the eye and the country code.The control’s size.

The Contact form

The one on flouvia.com brings this whole guide together: five numbered steps in a single view, in the order of a conversation.

  • 01 · What do you want to build? One or more options, required.
  • 02 · How much do you plan to invest? Six ranges, with “Not sure yet”: its help says why it asks and its error, in its own words, what’s missing.
  • 03 · When do you need it? Optional, and it says so.
  • 04 · Tell us about the project. A text area with its help and its counter.
  • 05 · How do we reach you? Name and email on the same row; WhatsApp, optional and with its country code.

From a service’s page, Contact arrives with that service already selected. On submit, the button loads in place, success takes the form’s place and a person on the team replies.

In a client theme

A theme changes how a form looks; how it behaves stays.

  • What changes

    The field’s fill, its radius, the typeface, the focus color and the error color: its --cu-field-* tokens.

  • What stays

    When the error shows, the summary, focus on the first error, “optional,” the keyboards, the country code, submitting and the sounds.

  • Measured again

    Every theme passes the same contrast tests in every layer and every state before it’s used.

Changes

  • Selection and tabs · Cuenca

    A group’s help, hidden question and own error; the segmented control that doesn’t fit and its select, with its figure; the chip, the segmented control and the tab with the radius of their size; and the segmented control with links, in two or three segments.

  • Selection · Cuenca

    New guide: the checkbox, the radio, the switch, the segmented control and the chip, when to use each and how they’re written, with live pieces.

  • Forms and data entry · Cuenca

    New guide: layout, validation, the phone keyboard, submitting and measured accessibility, with a real Cuenca form.