-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Theme support and the Store #7903
Comments
A theme is a zip package which contains the css/less files and some custom golang template files. Js files should not be allowed currently for security consideration. There is an entry file which could be named All possible informations:
Gitea could have a feature to install a theme by administrator on admin panel by upload a theme package file or install it from the URL online. When installing a theme, the theme information should be stored in database table maybe named A theme could be also uninstalled. The site name could be https://themes.gitea.io or https://store.gitea.io |
Still that would not solve the fundamental issue that if we introduce new rules in the base theme, it breaks all existing themes. .some-selector {
background: #fff;
} Now all themes break unless they copy that selector and override the rule. I think for themes to be actually feasible, we need:
|
@silverwind So we could have some gitea versions on the theme. If the theme isn't matched gitea's version it will be disabled automatically. Only And we should also consider how a theme creator to develop a theme with a gitea binary instance easily. |
Actually I don't think we even need to expose Only downside of that method is the extra CSS weight in the base theme but I see no other way given the unflexible nature of Fomantic. |
It would be cool if Gitea had a website or repo where people could download and contribute to themes for Gitea.
The text was updated successfully, but these errors were encountered: