- Notifications
You must be signed in to change notification settings - Fork2
Style guide for reelyActive webpages and web apps, based on Bootstrap 5 and Font Awesome 5 (Free). We believe in an open Internet of Things.
License
reelyactive/web-style-guide
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Style guide for reelyActive webpages and web apps, based onBootstrap 5. Everything is open source andMIT License and can be freely used to inspire and facilitate other projects.
Browse it as a webpage atreelyactive.github.io/web-style-guide/, where the following additional example pages are included:
Clone this repository (ex: click the Code button above and Download as ZIP).
Edit any of theindex.html files in your favourite editor (ex: Notepad, TextEdit).
Open/refresh theindex.html file in your favourite browser to see the results.
All of the supporting JavaScripts (JS) and Cascading Style Sheets (CSS) are pre-built and included in thefile structure below.
The files are organised in the following hierarchy:
| Directory | File(s) | Description |
|---|---|---|
| / | .html | All the content |
| /images/ | .jpg, .png, etc. | All images and graphics supporting the content |
| /style/ | .css | All the cascading style sheets (Bootstrap) |
| /js/ | .js | All the JavaScripts (Bootstrap & Font Awesome) |
The core files are as follows:
| File | Purpose |
|---|---|
| /index.html | The webpage or web application content |
| /images/reelyactive-logo-nav.png | The logo in the top-left corner |
| /js/boostrappyactive.bundle.min.js | reelyActivated Bootstrap 5 JS |
| /js/fontawesome-reelyactive.min.js | reelyActive's subset of Font Awesome |
| /style/bootstrappyactive.min.css | reelyActivated Bootstrap 5 CSS |
This step is only required when customising the scss or icons!
Install the devDependencies, with the following executable from the command line:
- sass
- cleancss (clean-css-cli)
- webpack
- npm-run-all
Then build (and minify) the Bootstrap 5 CSS with:
npm run cssThen build the Bootstrap 5 JS with:
npm run jsThen build (and minify) the Font Awesome subset with:
npm run faThe built files are copied to the /js and /style directories.
Version 1.3 of thisweb-style-guide adopts Bootstrap 5.3 which supportsColor Modes (aka Themes). By including thejs/color-modes.js module, which is adapted fromtwbs/examples/color-modes, theprefers-color-scheme variable is detected from the browser to automatically switch between light/dark mode. A manual override is provided in the top nav bar of the examples in this style guide, which uses Font Awesome rather than Bootstrap icons, hence the modification ofjs/color-modes.js.
MIT License
Copyright (c) 2018-2025reelyActive
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.
About
Style guide for reelyActive webpages and web apps, based on Bootstrap 5 and Font Awesome 5 (Free). We believe in an open Internet of Things.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
