- Issue created by @pdureau
- 🇫🇷France Grimreaper France 🇫🇷
Wonderful! There is still the yeti https://bootswatch.com/yeti/
That I used for my own website: https://bootswatch.com/3/yeti/
- 🇫🇷France Grimreaper France 🇫🇷
For the record, on my personal website, I used https://www.bootstrap-live-customizer.com/, where I injected the yeti variables. And did minor changes.
Doesn't seem to exist with Bootstrap 5.
- 🇫🇷France pdureau Paris
No need anymore with CSS variables?
- 🇫🇷France Grimreaper France 🇫🇷
I think now such tool could directly be a CSS variable configurator.
Then ui_skins could provide a UI to receive a copy/paste of the whole export of such tool.
- 🇪🇸Spain rodrigoaguilera Barcelona
I might be wrong but it seems like bootswatch themes are compiled sith SCSS variables and not CSS variables the also include some CSS for each theme.
In my UI Suite Bootstrap subtheme I was able to apply one of the bootswatch themes with
libraries-override: ui_suite_bootstrap/bootstrap: css: theme: /libraries/bootstrap/dist/css/bootstrap.min.css: /libraries/bootswatch/dist/sketchy/bootstrap.min.css
and composer req npm-asset/bootswatch:^5
- 🇫🇷France pdureau Paris
Hi Rodrigo,
I might be wrong but it seems like bootswatch themes are compiled sith SCSS variables and not CSS variables the also include some CSS for each theme.
That's a good things for us. Because with UI suite we are strictly differentiating:
- buildtime variables, AKA "design tokens", like SCSS or SASS variables >> we expect themes/modes to be built from them
- runtime variables, so the CSS variables, KA "custom properties" >> we use them one by one, for specific targeted overrides
In my UI Suite Bootstrap subtheme I was able to apply one of the bootswatch themes with
Indeed, that's the "classic" way of doing that. But we lose here the knowledge about this theme, we are just using the default theme but replacing one of its CSS files. UI Skins → modules allow to declare proper themes/modes plugins in YAML, in order to maniopualte them as first class objects, without overrides.
Examples:
- Assigned to Grimreaper
- Merge request !290Issue #3478113 by grimreaper, pdureau, rodrigoaguilera: Add Bootswatch themes... → (Open) created by Grimreaper
- 🇫🇷France Grimreaper France 🇫🇷
I made a POC, inspired by Bootstrap 3 theme mechanism.
I have not gone as deep as the theme with cache mechanism, checking CDN available version using the CDN's API.
I think it will require to be merged in a new 5.2.x branch due to library re-organisation.
- 🇫🇷France Grimreaper France 🇫🇷
I need to add library rebuild when changing setting.
- 🇫🇷France Grimreaper France 🇫🇷
MR updated.
Waiting for 5.2.x branch due to library changes.