Any objections to removing Bootswatch to make way for global css variables?

22 views
Skip to first unread message

David P Bauer

unread,
Jun 24, 2019, 8:24:49 AM6/24/19
to tsug...@apereo.org
Hi All,

I'd like to remove Bootswatch and replace it with an array of global CSS variables that would allow colors, fonts, etc. to be customized while maintaining a more consistent feel. Long term, this would possibly allow institutions to set those variables in their launch to help make tools match their LMS.

For example, you could set something like this in config.php and the colors in Tsugi (and the tools that don't overwrite the default styling) would match.

$theme = array("primary"=>"#1066EB", "text"=>"#111111", "nav-text"=>"#FFFFFF");

I could keep the Bootswatch code in place, but ideally, I'd like to upgrade Bootstrap to version 3.4.1 at the same time and keeping two copies of Bootstrap would muddy up the Output code a bit.

Is anyone opposed to removing Bootswatch support in master? If there are objections I can keep both around.

David
--
David P. Bauer
Team Lead, eLearning Systems & Support Services


University of Dayton
300 College Park, Dayton, OH 45469-1302



Chuck Severance

unread,
Jun 24, 2019, 8:33:40 AM6/24/19
to David Bauer, tsug...@apereo.org
No objections at all.   Bootswatch was my quick and dirty way to get it looking a little different than the default.

/Chuck

--
You received this message because you are subscribed to the Google Groups "Tsugi Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tsugi-dev+...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/tsugi-dev/CAMBKvrUNLtQ_Sz--nZFTeV%3D7OnR%2BWrbnw-LpcCVN%2BqWMfiDRhg%40mail.gmail.com.

David P Bauer

unread,
Jun 24, 2019, 1:48:40 PM6/24/19
to Chuck Severance, tsug...@apereo.org
Great! I'll have a pull request soon with a lot of the UI updates I've been working on.

After the changes are in master and you do a git pull you will immediately see styling changes to the menu and a few other places (like the settings modal). By default, the menu color will be a bright blue but this is easily set in config.php. I've documented the variables that I've made so far in config-dist.php. I'm sure there will be tweaks and improvements needed along the way, so let me know if you see issues.

I'll also have QuickQuiz up on github.com/udaytonapps/quickquiz this week that can be an example of how to use some of the new components in Output.php.

David


David P Bauer

unread,
Jun 24, 2019, 2:08:39 PM6/24/19
to Chuck Severance, tsug...@apereo.org
I've made the pull requests for the initial changes. You will need both to be updated for the new theme.
David
Reply all
Reply to author
Forward
0 new messages