colors
Creates a TextFieldColors instance for outlined text fields with Stylish styling.
The returned colors use Material 3's outlined text field defaults, which provide a transparent container with an outlined border. The colors automatically adapt to light and dark themes.
Parameters
Color of the border when the field is focused. Defaults to MaterialTheme.colorScheme.primary.
Color of the border when the field is not focused. Defaults to MaterialTheme.colorScheme.outline.
Color of the border when the field is disabled. Defaults to MaterialTheme.colorScheme.outline with reduced alpha.
Color of the border when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.
Color of the text when the field is focused. Defaults to MaterialTheme.colorScheme.onSurface.
Color of the text when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurface.
Color of the text when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurface with reduced alpha.
Color of the text when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.onSurface.
Color of the label when the field is focused. Defaults to MaterialTheme.colorScheme.primary.
Color of the label when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.
Color of the label when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.
Color of the label when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.
Color of the placeholder text. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.
Color of the placeholder text when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.
Color of the text cursor. Defaults to MaterialTheme.colorScheme.primary.
Color of the text cursor when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.
Color of the leading icon when the field is focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.
Color of the leading icon when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.
Color of the leading icon when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.
Color of the leading icon when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.
Color of the trailing icon when the field is focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.
Color of the trailing icon when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.
Color of the trailing icon when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.
Color of the trailing icon when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.