A date input is a user interface element where the user can type or select a date in a predefined format.
The date input color, typography, border, spacing, width and margin specifications are inherited from the text input, for reference check the text input component documentation.
The date input doesn't have the following text input elements or properties, therefore, their listed styles don't apply:
small is not available| Component token | Element | Core token | Value |
|---|---|---|---|
pickerBackgroundColor | Dialog container | color-white | #ffffff |
pickerDayFontColor | Dialog text | color-black | #000000 |
pickerCurrentDateColor | Dialog title | color-grey-500 | #999999 |
pickerHoverDateBackgroundColor | Container background | color-purple-200 | #e5d5f6 |
pickerSelectedDateColor | Date text:selected | color-white | #ffffff |
pickerSelectedDateBackgroundColor | Date background:hover | color-purple-700 | #5f249f |
pickerHoverDateFontColor | Date text:hover | color-black | #000000 |
pickerYearFontColor | Year label | color-black | #000000 |
pickerMonthFontColor | Mont label | color-black | #000000 |
pickerWeekFontColor | Weekday label | color-black | #000000 |
pickerMonthArrowsBackgroundColor | Month selection controls | color-transparent | transparent |
pickerFocusColor | Focus indicator | color-blue-600 | #0095ff |
| Component token | Element | Core token | Value |
|---|---|---|---|
pickerFontFamily | Datepicker dialog | font-family-sans` | 'Open Sans', sans-serif |
| Property | Element | Core token | Value |
|---|---|---|---|
font-size | Year selector | font-scale-03 | 1rem / 16px |
font-size | Current month | - | 13px |
font-size | Day | - | 13px |
font-weight | Year selector | font-weight-semibold | 600 |
font-weight | Current month | font-weight-regular | 400 |
font-weight | Day | font-weight-regular | 400 |