https://github.com/ppfeufer/aa-theme-slate
Bootstrap Theme "Slate" for Alliance Auth
https://github.com/ppfeufer/aa-theme-slate
allianceauth django theme
Last synced: 3 months ago
JSON representation
Bootstrap Theme "Slate" for Alliance Auth
- Host: GitHub
- URL: https://github.com/ppfeufer/aa-theme-slate
- Owner: ppfeufer
- License: gpl-3.0
- Created: 2021-04-18T15:59:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T15:33:26.000Z (over 1 year ago)
- Last Synced: 2024-09-09T19:04:57.233Z (over 1 year ago)
- Topics: allianceauth, django, theme
- Language: Python
- Homepage:
- Size: 2.54 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://pypi.org/project/aa-theme-slate/)
[](https://pypi.org/project/aa-theme-slate/)
[](https://pypi.org/project/aa-theme-slate/)
[](https://pypi.org/project/aa-theme-slate/)

[](https://results.pre-commit.ci/latest/github/ppfeufer/aa-theme-slate/master)
[](http://black.readthedocs.io/en/latest/)
[](https://github.com/ppfeufer/aa-theme-slate/actions/workflows/automated-checks.yml)
[](https://codecov.io/gh/ppfeufer/aa-theme-slate)
[](https://github.com/ppfeufer/aa-forum/blob/master/CODE_OF_CONDUCT.md)
[](https://discord.gg/fjnHAmk)
[](https://ko-fi.com/N4N8CL1BY)
This is the [Bootstrap theme Slate](https://bootswatch.com/3/slate/) converted into
a theme for Alliance auth.
______________________________________________________________________
- [Alliance Auth Theme: Slate](#alliance-auth-theme-slate)
- [Installation](#installation)
______________________________________________________________________

> [!NOTE]
>
> **Alliance Auth Theme Slate >= 2.0.0 needs at least Alliance Auth v4.0.0!**
>
> Please make sure to update your Alliance Auth instance _before_ you install this
> module or update to the latest version, otherwise an update to Alliance Auth will
> be pulled in unsupervised.
>
> The last version of Alliance Auth Theme Slate that supports Alliance Auth v3 is `1.7.1`.
```shell
pip install aa-theme-slate==2.4.1
```
Now open your `local.py` and add the following right below your `INSTALLED_APPS`:
```python
# Slate Theme - https://github.com/ppfeufer/aa-theme-slate
INSTALLED_APPS.insert(0, "aa_theme_slate")
if "aa_theme_slate" in INSTALLED_APPS:
# Remove all other themes
# If you want to use Slate as the only theme, you need to remove all other themes.
# INSTALLED_APPS.remove("allianceauth.theme.darkly")
# INSTALLED_APPS.remove("allianceauth.theme.flatly")
# INSTALLED_APPS.remove("allianceauth.theme.materia")
# If you are using AA-GDPR, you need to remove the Darkly, Flatly and Materia themes
# added by AA-GDPR as well.
# if "aagdpr" in INSTALLED_APPS:
# INSTALLED_APPS.remove("aagdpr.theme.darkly")
# INSTALLED_APPS.remove("aagdpr.theme.flatly")
# INSTALLED_APPS.remove("aagdpr.theme.materia")
INSTALLED_APPS += [
"aa_theme_slate.theme.slate",
]
# Set Slate Bootstrap Theme for Alliance Auth as the default theme (optional)
DEFAULT_THEME = "aa_theme_slate.theme.slate.auth_hooks.AaSlateThemeHook"
DEFAULT_THEME_DARK = "aa_theme_slate.theme.slate.auth_hooks.AaSlateThemeHook" # Legacy AAv3 user.profile.night_mode=1
```
**Important**
If you are using `AA-GDPR`, the template stuff needs to be **after** the `AA_GDPR`
entry, like this:
```python
# GDPR Compliance
INSTALLED_APPS.insert(0, "aagdpr")
AVOID_CDN = True
# Slate Thame - https://github.com/ppfeufer/aa-theme-slate
INSTALLED_APPS.insert(0, "aa_theme_slate")
```