colors

fun colors(focusedBorderColor: Color = MaterialTheme.colorScheme.primary, unfocusedBorderColor: Color = MaterialTheme.colorScheme.outline, disabledBorderColor: Color = MaterialTheme.colorScheme.outline.copy(alpha = 0.38f), errorBorderColor: Color = MaterialTheme.colorScheme.error, focusedTextColor: Color = MaterialTheme.colorScheme.onSurface, unfocusedTextColor: Color = MaterialTheme.colorScheme.onSurface, disabledTextColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.38f), errorTextColor: Color = MaterialTheme.colorScheme.onSurface, focusedLabelColor: Color = MaterialTheme.colorScheme.primary, unfocusedLabelColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledLabelColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), errorLabelColor: Color = MaterialTheme.colorScheme.error, placeholderColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledPlaceholderColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), cursorColor: Color = MaterialTheme.colorScheme.primary, errorCursorColor: Color = MaterialTheme.colorScheme.error, focusedLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), errorLeadingIconColor: Color = MaterialTheme.colorScheme.error, focusedTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), errorTrailingIconColor: Color = MaterialTheme.colorScheme.error): TextFieldColors

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

focusedBorderColor

Color of the border when the field is focused. Defaults to MaterialTheme.colorScheme.primary.

unfocusedBorderColor

Color of the border when the field is not focused. Defaults to MaterialTheme.colorScheme.outline.

disabledBorderColor

Color of the border when the field is disabled. Defaults to MaterialTheme.colorScheme.outline with reduced alpha.

errorBorderColor

Color of the border when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.

focusedTextColor

Color of the text when the field is focused. Defaults to MaterialTheme.colorScheme.onSurface.

unfocusedTextColor

Color of the text when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurface.

disabledTextColor

Color of the text when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurface with reduced alpha.

errorTextColor

Color of the text when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.onSurface.

focusedLabelColor

Color of the label when the field is focused. Defaults to MaterialTheme.colorScheme.primary.

unfocusedLabelColor

Color of the label when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.

disabledLabelColor

Color of the label when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.

errorLabelColor

Color of the label when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.

placeholderColor

Color of the placeholder text. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.

disabledPlaceholderColor

Color of the placeholder text when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.

cursorColor

Color of the text cursor. Defaults to MaterialTheme.colorScheme.primary.

errorCursorColor

Color of the text cursor when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.

focusedLeadingIconColor

Color of the leading icon when the field is focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.

unfocusedLeadingIconColor

Color of the leading icon when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.

disabledLeadingIconColor

Color of the leading icon when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.

errorLeadingIconColor

Color of the leading icon when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.

focusedTrailingIconColor

Color of the trailing icon when the field is focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.

unfocusedTrailingIconColor

Color of the trailing icon when the field is not focused. Defaults to MaterialTheme.colorScheme.onSurfaceVariant.

disabledTrailingIconColor

Color of the trailing icon when the field is disabled. Defaults to MaterialTheme.colorScheme.onSurfaceVariant with reduced alpha.

errorTrailingIconColor

Color of the trailing icon when StylishOutlinedTextField.isError is true. Defaults to MaterialTheme.colorScheme.error.