Removing the default styles
Was this helpful?
Was this helpful?
You may notice that beside the the kcSomething classes other classes are applied to the components.
This other classes, non prefixed with kc actually have styles rules that target them. Let's as an example remove the login-pf-header class:
On some components, multiples utility classes are applied, you may want to keep some of them and remove others. Example:
Let's say, for example, that we would like to remove keep only the col-md and lg classes. To do that that we would write:
Result:
Maybe you'd prefer to remove all default styles at once you can do that by setting doUseDefaultCss to false.
However be aware that re-styling everything involves quite a bit of work:
Up next:
Applying your own classes