Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harrelchris/django-allauth-themes

Themes for django-allauth
https://github.com/harrelchris/django-allauth-themes

bootstrap5 bootswatch django django-allauth

Last synced: 8 days ago
JSON representation

Themes for django-allauth

Awesome Lists containing this project

README

        

# Django Allauth Themes

Themes for django-allauth

## Install

```shell
pip install django-allauth-themes
```

### Settings

Add `allauth_themes.bootstrap` before `allauth`:

```python
INSTALLED_APPS = [
...,
"allauth_themes.bootstrap",
"allauth",
...,
]
```

## Customization

### Bootswatch

You can achieve drastic changes with little effort using Bootswatch themes. Simply create a file in your templates directory to override the `allauth/layouts/css.html` file, with the following CDN link

```html

```

You can change `cerulean` to any of the available themes available on [Bootswatch.com](https://bootswatch.com/).


screenshots

### Custom CSS

Alternatively, you can customize Bootstrap as you like and use that:

```html

```

### Layout Customization

The layouts work with all Bootswatch themes, but you may want to customize them. As an example, these minor tweaks to the layouts may help the content stand out more. However, it doesn't work well with all Bootswatch themes (like quartz and vapor), so it's not included in the default layouts:

```html



{% block content %}{% endblock %}


```

To apply these or other customizations, override the HTML files in your templates directory: `templates/allauth/layouts/entrance.html`. See it in action within the example project.