joho1968 / wcms-bs5

Simple WonderCMS Bootstrap 5 theme
GNU General Public License v2.0
1 stars 1 forks source link
php7 php8 php81 php82 theme theme-development wondercms wondercms-themes

WonderCMS Bootstrap 5 theme

Author: Joaquim Homrighausen

(https://github.com/joho1968)

Simple Bootstrap 5 theme, inspired by "Simple Material inspired theme" by @tunguskha.

This theme does not contain the actual Bootstrap 5 files since I believe in modular design and resource distribution.

The WCMS-BS5-LOCAL plugin for WonderCMS plugin comes with Bootstrap 5.x and will serve Bootstrap 5.x files from your web server.

:warning: This theme is not compatible with the SummerNote editor plugin for WonderCMS, since it automatically includes Bootstrap from some CDN.

Preview

Theme preview

How to use

  1. Download the wcms-bs5*.zip file
  2. Unpack its contents in the themes/ folder of your WonderCMS site
  3. Make sure you remove any folder prefix like -1.0.0 of the unpacked folder
  4. Edit the data/files/database.js file and change the theme to wcms-bs5

Dark mode

The theme will, since 1.1.0, automatically detect the visitor browser's "theme preference" and toggle Bootstrap 5 to the corresponding setting ("dark" or "light"). One could possibly also add a manual toggle, but this involves a nice looking icon, and some more code. I would consider adding this if there's a request for it.

There's, unfortunately, a small "flash effect" when a page is first loaded if the visitor's browser has "Dark mode" enabled. I'm not sure if there's a better solution than the one I use in the theme to switch colors, if there is, I'm all ears.

I'm not entirely satisfied with Bootstrap 5's choices for the background colors used in its "dark mode", but to stay true to Boostrap's CSS classes, I have chosen not to modify anything.

Changelog

1.2.2 (2023-11-08)

1.2.1 (2023-08-02)

1.2.0 (2023-07-17)

1.1.1 (2023-06-08)

1.1.0 (2023-06-07)

License

Please see LICENSE for a full copy of GPLv2

Copyright (C) 2023 Joaquim Homrighausen; all rights reserved.

This file is part of wcms-bs5. wcms-bs5 is free software.

You may redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.

wcms-bs5 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the wcms-bs5-local package. If not, write to:

The Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor
Boston, MA  02110-1301, USA.