You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I load a custom stylesheet into my Gitea deployment? I have tried putting a styles.css in custom/public/ and custom/public/css/ the only method I have found that works is to place it in the templates which is sub-optimal.
Perhaps the best way to do this would be to allow for a custom/themes/ folder where users could create and share themes, then make the appropriate changes in custom/conf/app.ini and change the default theme.
It looks as if a similar idea was discussed before #56.
...
Edit
A shift+refresh revealed that a new index.css in custom/public/css/ will overwrite the gitea index.css and is helpful for changing some styles. However I am still finding myself running up against the semantic UI css. Which, itself, supports theming
The text was updated successfully, but these errors were encountered:
I think you will find what you need under https://docs.gitea.io/en-us/customizing-gitea/ especially Other additions to the page you can add the custom/templates/custom/header.tmpl to load your css under custom/public/css/style.css that will be available at the path /css/style.css.
Thank you, this is what I did and it has worked well. Would still be cool to be able to develop whole custom themes that could be user-selectable and shared amongst the community.
If you want to share you can make a PR and add your css style under the contrib folder.
Being able to extend gitea via plugin (and theme) is a long goal but it need a lot of refactor and there is a lot of issue to be fix before. You can see that gitea still change a lot and for a plugin solution to exist we need to support a stable standard. We are near it because we soon be able to host gitea on a gitea instance and that mean a more stable approach.
[x]
):Description
How do I load a custom stylesheet into my Gitea deployment? I have tried putting a
styles.css
incustom/public/
andcustom/public/css/
the only method I have found that works is to place it in the templates which is sub-optimal.Perhaps the best way to do this would be to allow for a
custom/themes/
folder where users could create and share themes, then make the appropriate changes incustom/conf/app.ini
and change the default theme.It looks as if a similar idea was discussed before #56.
...
Edit
A
shift+refresh
revealed that a newindex.css
incustom/public/css/
will overwrite the giteaindex.css
and is helpful for changing some styles. However I am still finding myself running up against the semantic UI css. Which, itself, supports themingThe text was updated successfully, but these errors were encountered: