- Issue created by @Grienauer
- 🇩🇪Germany jan kellermann
jan kellermann → made their first commit to this issue’s fork.
- 🇩🇪Germany jan kellermann
We have no frontender at hand in the moment.
I opened a MR which will add klaro-theme-
to every klaro-element.Here is the Klaro-SCSS with all defined vars you can easyly override:
https://github.com/klaro-org/klaro-js/blob/master/src/scss/vars.scssAnd I uploaded our SCSS-file which we use for customizing (renamed to TXT).
- 🇩🇪Germany jurgenhaas Gottmadingen
I don't think Klaro should be responsible to style for any number of themes. At most, it should provide an infrastructure so that themes can make the Klaro visuals look nice. Therefore, extra classes like in the MR should not be necessary, the currently active theme would style the available components and there shouldn't be any CSS that needs the context of different themes.
The only exception should be Claro, Gin and Olivero as they are Drupal Core or Drupal CMS defaults.
For those themes, I wonder if the Klaro CSS could just leverage the CSS variables to define the Klaro styling. I would assume, that those 3 themes use the same, or very similar variable names and hierarchies.
- 🇩🇪Germany jan kellermann
They are using similar classes - but klaro not.
The variables are quite different - because of this I would just add the theme as class and then write custom css for these three theme which uses the variables and adjust the klaro-classes with their theme equivalents.