mybb / mybb2

The repository for the MyBB 2 forum software. Not to be used on live boards.
https://www.mybb.com
BSD 3-Clause "New" or "Revised" License
112 stars 45 forks source link

Theme system #305

Open euantorano opened 6 years ago

euantorano commented 6 years ago

We need to implement a theme system, allowing custom themes. The default style needs to become a theme that is shipped alongside the core software.

*Desired Features

1e4 commented 6 years ago

Regarding the SCSS support, there only seems to be one central package for it which is SCSSPHP. It is also possible to call Gulp/Webpack via Artisan commands, with this in mind you can take the heavy lifting away from PHP, but this probably isn't the best solution as especially production machines will most likely not have any build tools on it.

TypeScript I am not sure about - I haven't ever written JS in TS.

I have an idea, though it's quite a wild one about packages - most people that use MyBB have an account on the website, wouldn't it be great if you could "sync" packages from the MyBB website to your forum? Technically I'm not sure if it will work. Another idea would be to run a registry which contains all the plugins and themes, and people just include the vcs in composer.json so they can quickly add new themes. I realize that this is quite a random idea and may not be what you want, a twist on this could be that instead of syncing them, you can build 'bundles' (think typekit on how they bundle their fonts, you create a kit, add fonts then use the import they give), when they create this bundle it will give them a list to paste into composer.

If this process can be easier than what it is currently - downloading a bunch of zip's isn't exactly the easiest way to do things anymore.