Back to all questions

How can I change inputs focus styles?

Last updated

Change focus styles of a single input

To change focus styles of a single input, use Styles API:

.input {
  &:focus {
    outline: rem(2px) solid var(--mantine-primary-color-filled);
  }
}

Change focus styles of all inputs

To change focus styles of all inputs, use Styles API with Input component in the theme object:

.input {
  &:focus {
    outline: rem(2px) solid var(--mantine-primary-color-filled);
  }
}