Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feedback: Theme system
#1
Our Plans

Though MyBB 2's theme system has not yet been developed, a number of pieces are already in place or in planning stages for when development of the theme system begins. Below are our current plans for MyBB 2's theme system:

Custom Stylesheets with built-in SASS support

As can be seen in the MyBB 2 repository on GitHub, we are already using SASS to dramatically simplify our stylesheets and the way they are managed. This includes built-in support for multiple stylesheets, theme variables, nesting, reuse of CSS using mixins, and much more.

Custom Views using the Twig templating engine

MyBB 2 already uses the Twig templating engine for views, which is comparable to templates in MyBB 1.x. Twig provides a number of features that allow us to reduce the number of templates included in the MyBB theme and make template management and customization of your forum's theme simpler.

Built-in asset manager for CSS and JavaScript

Current plans include using the Assetic asset management system to manage custom CSS and JavaScript in the Admin CP.

The Asset manager will allow the addition of custom stylesheets and JavaScript files/blocks to both the global asset collection, and to single pages/sections. All stylesheets and JS will be minified and combined to save bandwidth, and JavaScript will have a basic dependency system to ensure that dependencies are loaded (e.g.: if a script you add requires jQuery, the system will make sure it is loaded first).

This is still being thought out and there's no user interface to show yet, but we will certainly be talking about it as we plan it out.

Icon Library

Currently, MyBB 2 uses FontAwesome to provide a wide variety icons throughout the front end. We are currently planning to move to the use of SVG icons, which provide a number of benefits compared to icon fonts. Though not yet implemented, our plan is to allow easy inclusion of a wide variety of icons with a short line of code. This would allow plugin and theme authors to use additional icons beyond those that are used in the default MyBB theme.

Editor Enhancements

The current style and template editor provides basic syntax highlighting which can help a little. In 2.0, the editor will include tabbed editing (allowing the editing of multiple files within a single browser tab) along with changes being applied via AJAX rather than requiring a full page reload.

Additionally, we plan to include a preview system for stylesheet changes, allowing you to see what affect your changes have in real time.


Your Feedback

If you have any specific feedback on these plans, or on anything else you think we need to consider as we develop MyBB 2's theme system, please share it below.


Thanks,
The MyBB Team
jsoltesz.com - MyBB lead designer & team member since 2006
Reply


Messages In This Thread
Feedback: Theme system - by Justin - 2016-07-17, 02:49 PM
RE: Feedback: Theme system - by WallBB - 2016-07-17, 03:10 PM
RE: Feedback: Theme system - by katos - 2016-07-17, 03:43 PM
RE: Feedback: Theme system - by Eric - 2016-07-17, 04:03 PM
RE: Feedback: Theme system - by katos - 2016-07-17, 04:31 PM
RE: Feedback: Theme system - by Euan T - 2016-07-17, 05:02 PM
RE: Feedback: Theme system - by brad-t - 2016-07-17, 05:04 PM
RE: Feedback: Theme system - by Euan T - 2016-07-17, 05:08 PM
RE: Feedback: Theme system - by jshort - 2016-07-18, 01:09 AM
RE: Feedback: Theme system - by Euan T - 2016-07-18, 09:54 AM
RE: Feedback: Theme system - by katos - 2016-07-18, 11:13 AM
RE: Feedback: Theme system - by jshort - 2016-07-18, 02:43 PM
RE: Feedback: Theme system - by laie_techie - 2016-07-18, 05:06 PM
RE: Feedback: Theme system - by brad-t - 2016-07-18, 05:15 PM
RE: Feedback: Theme system - by laie_techie - 2016-07-18, 10:27 PM
RE: Feedback: Theme system - by brad-t - 2016-07-19, 12:56 AM
RE: Feedback: Theme system - by Josh H. - 2016-07-19, 01:39 AM
RE: Feedback: Theme system - by Eric - 2016-07-19, 02:20 AM
RE: Feedback: Theme system - by brad-t - 2016-07-19, 03:15 AM
RE: Feedback: Theme system - by Corey H - 2016-10-24, 02:21 AM
RE: Feedback: Theme system - by Nemus - 2017-04-11, 05:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)