Element | Property | Color token |
|---|---|---|
Label | text-color |
|
Field text | text-color |
|
Placeholder text | text-color |
|
Helper text | text-color |
|
Field | background-color |
|
border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.

State | Element | Property | Color token |
|---|---|---|---|
Focus | Field | border |
|
Invalid | Field | border |
|
Error message | text-color |
| |
Error icon | svg |
| |
Warning | Warning message | text-color |
|
Warning icon | svg |
| |
Disabled | Field | background |
|
Field (default) | border-bottom | transparent | |
Field (fluid) | border-bottom |
| |
Field text | text-color |
| |
Read-only | Field (default) | background | transparent |
Field (fluid) | background |
| |
Field text (default) | text-color |
| |
Field text (fluid) | text-color |
| |
Field | border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.

Element | Property | Color token |
|---|---|---|
Label | text-color |
|
Field text | text-color |
|
Placeholder text | text-color |
|
Helper text | text-color |
|
Field | background-color |
|
border-bottom |
| |
View icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.

State | Element | Property | Color token |
|---|---|---|---|
Hover | View icon | svg |
|
Focus | Field | border |
|
Invalid | Field | border |
|
Error message | text-color |
| |
Error icon | svg |
| |
Warning | Warning message | text-color |
|
Warning icon | svg |
| |
Disabled | Field | background |
|
Field (default) | border-bottom | transparent | |
Field (fluid) | border-bottom |
| |
Field text | text-color |
| |
Read-only | Field (default) | background | transparent |
Field (fluid) | background |
| |
Field text (default) | text-color |
| |
Field text (fluid) | text-color |
| |
Field | border-bottom |
| |
View icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.

Element | Property | Color token |
|---|---|---|
Label | text-color |
|
Field text | text-color |
|
Placeholder text | text-color |
|
Helper text | text-color |
|
Field | background-color |
|
border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.

State | Element | Property | Color token |
|---|---|---|---|
Focus | Field | border |
|
Invalid | Field | border |
|
Error message | text-color |
| |
Error icon | svg |
| |
Warning | Warning message | text-color |
|
Warning icon | svg |
| |
Disabled | Field | background |
|
Field (default) | border-bottom | transparent | |
Field (fluid) | border-bottom |
| |
Field text | text-color |
| |
Read-only | Field (default) | background | transparent |
Field (fluid) | background |
| |
Field text (default) | text-color |
| |
Field text (fluid) | text-color |
| |
Field | border-bottom |
|

Element | Font-size (px/rem) | Font-weight | Type token |
|---|---|---|---|
Label | 12 / 0.75 | Regular / 400 |
|
Field text | 14 / 0.875 | Regular / 400 |
|
Helper text | 12 / 0.75 | Regular / 400 |
|
Invalid and warning message | 12 / 0.75 | Regular / 400 |
|
Element | Property | px / rem | Spacing token |
|---|---|---|---|
Label | margin-bottom | 8 / 0.5 |
|
Helper text | margin-top | 4 / 0.25 |
|
Field text | padding-left, padding-right | 16 / 1 |
|
Field | border-bottom | 1px | – |
Focus | border | 2px | – |
Invalid | border | 2px | – |

Structure and spacing measurements for default text input | px / rem
Element | Property | px / rem | Spacing token |
|---|---|---|---|
Label | padding-bottom | 4 / 0.25 |
|
Field | height | 64 / 4 |
|
padding-left, padding-right | 16 / 1 |
| |
padding-top, padding-bottom | 13 / 0.8125 | – | |
border-bottom | 1px | – | |
Focus | border | 2px | – |
Invalid | border | 2px | – |

Structure and spacing measurements for fluid text input | px / rem
Element | Property | px / rem | Spacing token |
|---|---|---|---|
Label | margin-bottom | 8 / 0.5 |
|
Helper text | margin-top | 4 / 0.25 |
|
Field text | padding-left, padding-right | 16 / 1 |
|
Field | border-bottom | 1px | – |
Focus | border | 2px | – |
Invalid | border | 2px | – |
View icon | padding-left, padding-right | 16 / 1 |
|
State icon | padding-left | 16 / 1 |
|
padding-right | 8 / 0.5 |
|

Structure and spacing measurements for default password input | px / rem
Element | Property | px / rem | Spacing token |
|---|---|---|---|
Label | margin-bottom | 8 / 0.5 |
|
Helper text | margin-top | 4 / 0.25 |
|
Field text | padding-left, padding-right | 16 / 1 |
|
Field | border-bottom | 1px | – |
Focus | border | 2px | – |
Invalid | border | 2px | – |
View icon | padding-left, padding-right | 16 / 1 |
|
State icon | padding-left, padding-right | 16 / 1 |
|

Structure and spacing measurements for fluid password input | px / rem
Element | Property | px / rem | Spacing token |
|---|---|---|---|
Label | margin-bottom | 8 / 0.5 |
|
Field | height | varies | – |
padding-left, padding-right | 16 / 1 |
| |
padding-top, padding-bottom | 11 / 0.6875 | – | |
border-bottom | 1px | – | |
Focus | border | 2px | – |
Helper text | margin-top | 4 / 0.25 |
|

Structure and spacing measurements for default text area | px / rem
Element | Property | px / rem | Spacing token |
|---|---|---|---|
Label | margin-bottom | 4 / 0.25 |
|
Field | height | varies | – |
padding-left, padding-right | 16 / 1 |
| |
padding-top, padding-bottom | 11 / 0.6875 | – | |
border-bottom | 1px | – | |
Focus | border | 2px | – |

Structure and spacing measurements for fluid text area | px / rem
AI presence
The following are the unique styles applied to the component when the AI label is present. Unless specified, all other tokens in the component remain the same as the non-AI variant. For more information on the AI style elements, see the Carbon for AI guidelines.
Element | Property | Token / Size |
|---|---|---|
Linear gradient | start |
|
stop |
| |
Field | border-bottom |
|
background color |
| |
AI label | size | mini |
* Denotes a contextual color token that will change values based on the layer it is placed on.

Feedback
Help us improve this component by providing feedback, asking questions, and leaving any other comments on GitHub.

