-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ module.exports = { | |
'forms', | ||
'permissions', | ||
'settings', | ||
'testing' | ||
'testing', | ||
'theme' | ||
] | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
# Quick Start | ||
# Themes | ||
|
||
Flarum "themes" are just extensions. Typically, you'll want to use the `Frontend` extender to register custom LESS and JS. | ||
Of course, you can use other extenders too: for example, you might want to support settings to allow configuring your theme. | ||
|
||
You can indicate that your extension is a theme by setting the "extra.flarum-extension.category" key to "theme". For example: | ||
|
||
```json | ||
{ | ||
// other fields | ||
"extra": { | ||
"flarum-extension": { | ||
"category": "theme", | ||
// other fields | ||
} | ||
``` | ||
|
||
All this will do is show your extension in the "theme" section in the admin dashboard extension list. | ||
|
||
## LESS Variable Customization | ||
|
||
You can define new LESS variables in your extension's LESS files. There currently isn't an extender to modify LESS variable values in the PHP layer, but this is planned for future releases. | ||
|
||
## Switching Between Themes | ||
|
||
Flarum doesn't currently have a comprehensive system that would support switching between themes. This is planned for future releases. |