Giter Site home page Giter Site logo

Theme system about mybb2 HOT 9 OPEN

mybb avatar mybb commented on June 9, 2024
Theme system

from mybb2.

Comments (9)

euantorano avatar euantorano commented on June 9, 2024

@Eric-Jackson @justinsoltesz What kind of features would you guys (as our resident designers) ideally like to see from the theme system for 2.0?

I've already got the following ideas:

  • Custom stylesheets (obviously).
  • Custom views (obviously).
  • Custom JavaScript management. Possibly using something such as Assetic, so that designers don't have to hardcode JS, instead there's a way to associate JS files with a theme and they'll be loaded automatically and merged into a single file.
  • Theme variables (such as those found in XF, vBulletin, etc.) - I'm not 100% set on this, but it might be nice I guess?
  • SASS for styles? Not sure on the feasibility of this, need to see if there are any libraries to parse SASS in PHP...

from mybb2.

ATofighi avatar ATofighi commented on June 9, 2024

SASS for styles? Not sure on the feasibility of this, need to see if there are any libraries to parse SASS in PHP...

I agree with it, we can use https://github.com/leafo/scssphp

from mybb2.

euantorano avatar euantorano commented on June 9, 2024

Nice find @ATofighi!

from mybb2.

ATofighi avatar ATofighi commented on June 9, 2024

I think we should support less too (https://github.com/leafo/lessphp)

from mybb2.

euantorano avatar euantorano commented on June 9, 2024

Maybe, but we don't want to overcomplicate it. We should probably ask the community.

from mybb2.

JN-Jones avatar JN-Jones commented on June 9, 2024

Themes should also get an update process similar to plugins (like Wordpress has).

from mybb2.

euantorano avatar euantorano commented on June 9, 2024

Agreed.

On 28 Apr 2015, at 16:36, Jones [email protected] wrote:

Themes should also get an update process similar to plugins (like Wordpress has).


Reply to this email directly or view it on GitHub.

from mybb2.

Eric-Jackson avatar Eric-Jackson commented on June 9, 2024

A variable system would be amazing, I think we talked about style inheritance before which would be great as well.

In my opinion XF got just about everything right, so it's hard to suggest things without listing it's features. Something to relate templates so they could be grouped together when loaded would be awesome (xen:edithint).

Also something I thought would be interesting is the ability to export/import single templates (Or just any amount of them selected by the user). Would be cool for things like tutorials and add-ons where only small sections need tweaking (The CSS button tutorial for 1.6 comes to mind).

IPB's feature to export images as XML is also interesting, just to mention.

from mybb2.

justinsoltesz avatar justinsoltesz commented on June 9, 2024

Sorry for being a little late to the party, but I think supporting SASS is pretty much required -- I've been writing the CSS to not just be able to manage for us, but also to be easy to manage for theme authors. Supporting SASS for custom themes also gives us theme variables (and a lot more) built-in.

from mybb2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.