django-allauth-xui 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. django_allauth_xui-0.1.0/LICENSE +21 -0
  2. django_allauth_xui-0.1.0/PKG-INFO +218 -0
  3. django_allauth_xui-0.1.0/README.md +195 -0
  4. django_allauth_xui-0.1.0/allauth_xui/__init__.py +1 -0
  5. django_allauth_xui-0.1.0/allauth_xui/apps.py +10 -0
  6. django_allauth_xui-0.1.0/allauth_xui/mixins.py +10 -0
  7. django_allauth_xui-0.1.0/allauth_xui/static/allauth_xui/.prettierrc +4 -0
  8. django_allauth_xui-0.1.0/allauth_xui/static/allauth_xui/README.md +23 -0
  9. django_allauth_xui-0.1.0/allauth_xui/static/allauth_xui/css/app.css +26 -0
  10. django_allauth_xui-0.1.0/allauth_xui/static/allauth_xui/css/styles.css +2 -0
  11. django_allauth_xui-0.1.0/allauth_xui/static/allauth_xui/package-lock.json +586 -0
  12. django_allauth_xui-0.1.0/allauth_xui/static/allauth_xui/package.json +12 -0
  13. django_allauth_xui-0.1.0/allauth_xui/templates/account/account_inactive.html +13 -0
  14. django_allauth_xui-0.1.0/allauth_xui/templates/account/base_confirm_code.html +132 -0
  15. django_allauth_xui-0.1.0/allauth_xui/templates/account/base_entrance.html +1 -0
  16. django_allauth_xui-0.1.0/allauth_xui/templates/account/base_manage.html +1 -0
  17. django_allauth_xui-0.1.0/allauth_xui/templates/account/base_manage_email.html +11 -0
  18. django_allauth_xui-0.1.0/allauth_xui/templates/account/base_manage_password.html +11 -0
  19. django_allauth_xui-0.1.0/allauth_xui/templates/account/base_manage_phone.html +11 -0
  20. django_allauth_xui-0.1.0/allauth_xui/templates/account/base_reauthenticate.html +30 -0
  21. django_allauth_xui-0.1.0/allauth_xui/templates/account/confirm_email_verification_code.html +16 -0
  22. django_allauth_xui-0.1.0/allauth_xui/templates/account/confirm_login_code.html +21 -0
  23. django_allauth_xui-0.1.0/allauth_xui/templates/account/confirm_password_reset_code.html +13 -0
  24. django_allauth_xui-0.1.0/allauth_xui/templates/account/confirm_phone_verification_code.html +16 -0
  25. django_allauth_xui-0.1.0/allauth_xui/templates/account/email.html +188 -0
  26. django_allauth_xui-0.1.0/allauth_xui/templates/account/email_change.html +127 -0
  27. django_allauth_xui-0.1.0/allauth_xui/templates/account/email_confirm.html +51 -0
  28. django_allauth_xui-0.1.0/allauth_xui/templates/account/login.html +81 -0
  29. django_allauth_xui-0.1.0/allauth_xui/templates/account/logout.html +22 -0
  30. django_allauth_xui-0.1.0/allauth_xui/templates/account/password_change.html +38 -0
  31. django_allauth_xui-0.1.0/allauth_xui/templates/account/password_reset.html +46 -0
  32. django_allauth_xui-0.1.0/allauth_xui/templates/account/password_reset_done.html +23 -0
  33. django_allauth_xui-0.1.0/allauth_xui/templates/account/password_reset_from_key.html +52 -0
  34. django_allauth_xui-0.1.0/allauth_xui/templates/account/password_reset_from_key_done.html +13 -0
  35. django_allauth_xui-0.1.0/allauth_xui/templates/account/password_set.html +31 -0
  36. django_allauth_xui-0.1.0/allauth_xui/templates/account/phone_change.html +65 -0
  37. django_allauth_xui-0.1.0/allauth_xui/templates/account/reauthenticate.html +22 -0
  38. django_allauth_xui-0.1.0/allauth_xui/templates/account/request_login_code.html +44 -0
  39. django_allauth_xui-0.1.0/allauth_xui/templates/account/signup.html +58 -0
  40. django_allauth_xui-0.1.0/allauth_xui/templates/account/signup_by_passkey.html +45 -0
  41. django_allauth_xui-0.1.0/allauth_xui/templates/account/signup_closed.html +13 -0
  42. django_allauth_xui-0.1.0/allauth_xui/templates/account/snippets/already_logged_in.html +15 -0
  43. django_allauth_xui-0.1.0/allauth_xui/templates/account/snippets/warn_no_email.html +14 -0
  44. django_allauth_xui-0.1.0/allauth_xui/templates/account/verification_sent.html +19 -0
  45. django_allauth_xui-0.1.0/allauth_xui/templates/account/verified_email_required.html +45 -0
  46. django_allauth_xui-0.1.0/allauth_xui/templates/allauth/components/form.html +68 -0
  47. django_allauth_xui-0.1.0/allauth_xui/templates/allauth/components/messages.html +81 -0
  48. django_allauth_xui-0.1.0/allauth_xui/templates/allauth/layouts/base.html +845 -0
  49. django_allauth_xui-0.1.0/allauth_xui/templates/allauth/layouts/entrance.html +442 -0
  50. django_allauth_xui-0.1.0/allauth_xui/templates/allauth/layouts/manage.html +2 -0
  51. django_allauth_xui-0.1.0/allauth_xui/templates/allauth_xui/profile.html +18 -0
  52. django_allauth_xui-0.1.0/allauth_xui/templates/idp/oidc/authorization_form.html +48 -0
  53. django_allauth_xui-0.1.0/allauth_xui/templates/idp/oidc/device_authorization_code_form.html +24 -0
  54. django_allauth_xui-0.1.0/allauth_xui/templates/idp/oidc/device_authorization_confirm_form.html +57 -0
  55. django_allauth_xui-0.1.0/allauth_xui/templates/idp/oidc/device_authorization_confirmed.html +16 -0
  56. django_allauth_xui-0.1.0/allauth_xui/templates/idp/oidc/device_authorization_denied.html +16 -0
  57. django_allauth_xui-0.1.0/allauth_xui/templates/idp/oidc/error.html +13 -0
  58. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/authenticate.html +110 -0
  59. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/base_entrance.html +1 -0
  60. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/base_manage.html +11 -0
  61. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/index.html +157 -0
  62. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/reauthenticate.html +18 -0
  63. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/recovery_codes/base.html +4 -0
  64. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/recovery_codes/generate.html +41 -0
  65. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/recovery_codes/index.html +51 -0
  66. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/totp/activate_form.html +51 -0
  67. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/totp/base.html +4 -0
  68. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/totp/deactivate_form.html +35 -0
  69. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/trust.html +66 -0
  70. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/webauthn/add_form.html +44 -0
  71. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/webauthn/authenticator_confirm_delete.html +25 -0
  72. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/webauthn/authenticator_list.html +89 -0
  73. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/webauthn/base.html +4 -0
  74. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/webauthn/edit_form.html +24 -0
  75. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/webauthn/reauthenticate.html +44 -0
  76. django_allauth_xui-0.1.0/allauth_xui/templates/mfa/webauthn/signup_form.html +70 -0
  77. django_allauth_xui-0.1.0/allauth_xui/templates/openid/base.html +1 -0
  78. django_allauth_xui-0.1.0/allauth_xui/templates/openid/login.html +23 -0
  79. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/authentication_error.html +15 -0
  80. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/base_entrance.html +1 -0
  81. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/base_manage.html +11 -0
  82. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/connections.html +66 -0
  83. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/login.html +39 -0
  84. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/login_cancelled.html +18 -0
  85. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/login_redirect.html +13 -0
  86. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/signup.html +34 -0
  87. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/snippets/login.html +21 -0
  88. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/snippets/login_extra.html +2 -0
  89. django_allauth_xui-0.1.0/allauth_xui/templates/socialaccount/snippets/provider_list.html +38 -0
  90. django_allauth_xui-0.1.0/allauth_xui/templates/usersessions/base_manage.html +1 -0
  91. django_allauth_xui-0.1.0/allauth_xui/templates/usersessions/usersession_list.html +78 -0
  92. django_allauth_xui-0.1.0/allauth_xui/urls.py +9 -0
  93. django_allauth_xui-0.1.0/allauth_xui/views.py +10 -0
  94. django_allauth_xui-0.1.0/pyproject.toml +25 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Yousef Abu Shanab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,218 @@
1
+ Metadata-Version: 2.4
2
+ Name: django-allauth-xui
3
+ Version: 0.1.0
4
+ Summary: Modern UI for django-allauth
5
+ License: MIT
6
+ License-File: LICENSE
7
+ Author: Yousef Abu Shanab
8
+ Author-email: josephyousef249@gmail.com
9
+ Requires-Python: >=3.11
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Dist: django (>=5.2.7)
17
+ Requires-Dist: django-allauth (>=65.12.1)
18
+ Project-URL: Documentation, https://github.com/youzarsiph/django-allauth-xui
19
+ Project-URL: Homepage, https://github.com/youzarsiph/django-allauth-xui
20
+ Project-URL: Repository, https://github.com/youzarsiph/django-allauth-xui
21
+ Description-Content-Type: text/markdown
22
+
23
+ # django‑allauth‑xui
24
+
25
+ [![CI](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ci.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ci.yml)
26
+ [![CD](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/cd.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/cd.yml)
27
+ [![Code Style: Black](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/black.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/black.yml)
28
+ [![Code Linting: Ruff](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ruff.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ruff.yml)
29
+ [![PyPI - Version](https://img.shields.io/pypi/v/django-allauth-xui?logo=pypi&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
30
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-allauth-xui?logo=python&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
31
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/django-allauth-xui?logo=pypi&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
32
+ [![PyPI - License](https://img.shields.io/pypi/l/django-allauth-xui?logo=pypi&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
33
+
34
+ ---
35
+
36
+ ## Overview
37
+
38
+ **django‑allauth‑xui (XUI)** provides a modern, responsive UI layer for [django‑allauth](https://docs.allauth.org/en/latest/introduction/index.html), styled with **Tailwind CSS** and **daisyUI**.
39
+
40
+ It’s designed to give authentication flows a clean, contemporary look out of the box, while remaining fully customizable for your brand and product.
41
+
42
+ ---
43
+
44
+ ## Key Features
45
+
46
+ - **Modern UI** — TailwindCSS + daisyUI styling
47
+ - **35+ Built‑in Themes** — all daisyUI themes included
48
+ - **Custom Themes** — create and apply your own in minutes
49
+ - **CI/CD Ready** — GitHub Actions pipelines for testing and deployment
50
+
51
+ ---
52
+
53
+ ## Screenshots
54
+
55
+ ![Profile](https://github.com/user-attachments/assets/3014eadd-dcde-48ce-a18d-4424a07efdae)
56
+ ![Login](https://github.com/user-attachments/assets/1722486c-98f1-4f43-bf96-720589aa968c)
57
+ ![Sign up](https://github.com/user-attachments/assets/3e0ffd63-651a-47cc-8e7f-cee5381669c9)
58
+ ![Email](https://github.com/user-attachments/assets/71549ddd-5066-489e-aa4e-6e0128f89ba2)
59
+ ![Password](https://github.com/user-attachments/assets/9b84612f-281e-4f74-8361-a4cbf38ab177)
60
+ ![2FA](https://github.com/user-attachments/assets/6a79fd57-ac5e-4d62-bbb6-9e89519f4583)
61
+
62
+ ---
63
+
64
+ ## Quick Start
65
+
66
+ First, install the package (after setting up `django‑allauth`):
67
+
68
+ ```bash
69
+ pip install django-allauth-xui
70
+ ```
71
+
72
+ Add to `INSTALLED_APPS` (order matters):
73
+
74
+ ```python
75
+ INSTALLED_APPS = [
76
+ ...
77
+ "allauth_xui",
78
+ "allauth",
79
+ "allauth.account",
80
+ ...
81
+ ]
82
+ ```
83
+
84
+ Include the URLs:
85
+
86
+ ```python
87
+ from django.urls import path, include
88
+
89
+ urlpatterns = [
90
+ ...
91
+ path("accounts/", include("allauth.urls")),
92
+ path("accounts/", include("allauth_xui.urls")),
93
+ ...
94
+ ]
95
+ ```
96
+
97
+ ---
98
+
99
+ ## Customization
100
+
101
+ XUI is designed to be extended. To override layouts:
102
+
103
+ ```bash
104
+ mkdir -p your_app/templates/allauth/layouts
105
+ touch your_app/templates/allauth/layouts/base.html
106
+ ```
107
+
108
+ Then extend the base template:
109
+
110
+ ```html
111
+ {% extends "allauth/layouts/base.html" %}
112
+ ```
113
+
114
+ ### Add Your Brand
115
+
116
+ ```html
117
+ {% extends "allauth/layouts/base.html" %}{% load i18n static %}
118
+
119
+ <!-- Brand in Navbar -->
120
+ {% block branding %}
121
+ <li
122
+ class="tooltip tooltip-right rtl:tooltip-left tooltip-primary md:hidden"
123
+ data-tip="{% trans 'YOUR_BRAND' %}"
124
+ >
125
+ <a
126
+ href="{% url 'account_profile' %}"
127
+ class="btn btn-square btn-primary lg:btn-lg 2xl:btn-lg"
128
+ >
129
+ <img
130
+ alt="{% trans 'YOUR_BRAND' %}"
131
+ src="{% static 'path/to/your/logo.png' %}"
132
+ class="size-6 lg:size-8 2xl:size-10"
133
+ />
134
+ <span class="sr-only">{% trans 'YOUR_BRAND' %}</span>
135
+ </a>
136
+ </li>
137
+ {% endblock %}
138
+
139
+ <!-- Brand in Drawer Menu -->
140
+ {% block drawer_branding %}
141
+ <li
142
+ class="tooltip tooltip-right rtl:tooltip-left tooltip-primary"
143
+ data-tip="{% trans 'YOUR_BRAND' %}"
144
+ >
145
+ <a
146
+ href="{% url 'account_profile' %}"
147
+ class="btn btn-square btn-primary lg:btn-lg 2xl:btn-lg"
148
+ >
149
+ <img
150
+ alt="{% trans 'YOUR_BRAND' %}"
151
+ src="{% static 'path/to/your/logo.png' %}"
152
+ class="size-6 lg:size-8 2xl:size-10"
153
+ />
154
+ <span class="sr-only">{% trans 'YOUR_BRAND' %}</span>
155
+ </a>
156
+ </li>
157
+ {% endblock %}
158
+
159
+ <!-- Links in sidebar -->
160
+ {% block user_links %}
161
+ <li
162
+ class="is-drawer-close:tooltip is-drawer-close:tooltip-right rtl:is-drawer-close:tooltip-left"
163
+ data-tip="{% trans 'Home' %}"
164
+ >
165
+ <a href="https://your.domain.com/">
166
+ <i data-lucide="home" class="size-4 lg:size-6"></i>
167
+ <span class="is-drawer-close:sr-only">
168
+ {% trans 'Home' %}
169
+ </span>
170
+ </a>
171
+ </li>
172
+ ...
173
+ {% endblock %}
174
+ ```
175
+
176
+ ### Themes
177
+
178
+ - **Switch themes:**
179
+
180
+ ```html
181
+ {% block theme %}silk{% endblock %}
182
+ {% block toggle_theme %}luxury{% endblock %}
183
+ ```
184
+
185
+ - **Remove theme controls:**
186
+
187
+ ```html
188
+ {% block theme_selector %}{% endblock %}
189
+ {% block theme_toggle %}{% endblock %}
190
+ ```
191
+
192
+ - **Create your own theme:**
193
+ Use [daisyUI’s Theme Generator](https://daisyui.com/theme-generator/), add the CSS to your stylesheet, and include it in your template:
194
+
195
+ ```html
196
+ {% block extra_head %}
197
+ <link rel="stylesheet" href="{% static 'your_app/css/output.css' %}" />
198
+ {% endblock %}
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Contributing
204
+
205
+ Contributions are welcome! Please see the [CONTRIBUTING](CONTRIBUTING.md) guide for details. Feedback, issues, and pull requests help shape the project.
206
+
207
+ ---
208
+
209
+ ## Support
210
+
211
+ For questions or support, open an issue or join the conversation in [GitHub Discussions](https://github.com/youzarsiph/django-allauth-xui/discussions).
212
+
213
+ ---
214
+
215
+ ## License
216
+
217
+ Licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
218
+
@@ -0,0 +1,195 @@
1
+ # django‑allauth‑xui
2
+
3
+ [![CI](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ci.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ci.yml)
4
+ [![CD](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/cd.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/cd.yml)
5
+ [![Code Style: Black](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/black.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/black.yml)
6
+ [![Code Linting: Ruff](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ruff.yml/badge.svg)](https://github.com/youzarsiph/django-allauth-xui/actions/workflows/ruff.yml)
7
+ [![PyPI - Version](https://img.shields.io/pypi/v/django-allauth-xui?logo=pypi&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
8
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-allauth-xui?logo=python&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
9
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/django-allauth-xui?logo=pypi&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
10
+ [![PyPI - License](https://img.shields.io/pypi/l/django-allauth-xui?logo=pypi&logoColor=white)](https://pypi.org/project/django-allauth-xui/)
11
+
12
+ ---
13
+
14
+ ## Overview
15
+
16
+ **django‑allauth‑xui (XUI)** provides a modern, responsive UI layer for [django‑allauth](https://docs.allauth.org/en/latest/introduction/index.html), styled with **Tailwind CSS** and **daisyUI**.
17
+
18
+ It’s designed to give authentication flows a clean, contemporary look out of the box, while remaining fully customizable for your brand and product.
19
+
20
+ ---
21
+
22
+ ## Key Features
23
+
24
+ - **Modern UI** — TailwindCSS + daisyUI styling
25
+ - **35+ Built‑in Themes** — all daisyUI themes included
26
+ - **Custom Themes** — create and apply your own in minutes
27
+ - **CI/CD Ready** — GitHub Actions pipelines for testing and deployment
28
+
29
+ ---
30
+
31
+ ## Screenshots
32
+
33
+ ![Profile](https://github.com/user-attachments/assets/3014eadd-dcde-48ce-a18d-4424a07efdae)
34
+ ![Login](https://github.com/user-attachments/assets/1722486c-98f1-4f43-bf96-720589aa968c)
35
+ ![Sign up](https://github.com/user-attachments/assets/3e0ffd63-651a-47cc-8e7f-cee5381669c9)
36
+ ![Email](https://github.com/user-attachments/assets/71549ddd-5066-489e-aa4e-6e0128f89ba2)
37
+ ![Password](https://github.com/user-attachments/assets/9b84612f-281e-4f74-8361-a4cbf38ab177)
38
+ ![2FA](https://github.com/user-attachments/assets/6a79fd57-ac5e-4d62-bbb6-9e89519f4583)
39
+
40
+ ---
41
+
42
+ ## Quick Start
43
+
44
+ First, install the package (after setting up `django‑allauth`):
45
+
46
+ ```bash
47
+ pip install django-allauth-xui
48
+ ```
49
+
50
+ Add to `INSTALLED_APPS` (order matters):
51
+
52
+ ```python
53
+ INSTALLED_APPS = [
54
+ ...
55
+ "allauth_xui",
56
+ "allauth",
57
+ "allauth.account",
58
+ ...
59
+ ]
60
+ ```
61
+
62
+ Include the URLs:
63
+
64
+ ```python
65
+ from django.urls import path, include
66
+
67
+ urlpatterns = [
68
+ ...
69
+ path("accounts/", include("allauth.urls")),
70
+ path("accounts/", include("allauth_xui.urls")),
71
+ ...
72
+ ]
73
+ ```
74
+
75
+ ---
76
+
77
+ ## Customization
78
+
79
+ XUI is designed to be extended. To override layouts:
80
+
81
+ ```bash
82
+ mkdir -p your_app/templates/allauth/layouts
83
+ touch your_app/templates/allauth/layouts/base.html
84
+ ```
85
+
86
+ Then extend the base template:
87
+
88
+ ```html
89
+ {% extends "allauth/layouts/base.html" %}
90
+ ```
91
+
92
+ ### Add Your Brand
93
+
94
+ ```html
95
+ {% extends "allauth/layouts/base.html" %}{% load i18n static %}
96
+
97
+ <!-- Brand in Navbar -->
98
+ {% block branding %}
99
+ <li
100
+ class="tooltip tooltip-right rtl:tooltip-left tooltip-primary md:hidden"
101
+ data-tip="{% trans 'YOUR_BRAND' %}"
102
+ >
103
+ <a
104
+ href="{% url 'account_profile' %}"
105
+ class="btn btn-square btn-primary lg:btn-lg 2xl:btn-lg"
106
+ >
107
+ <img
108
+ alt="{% trans 'YOUR_BRAND' %}"
109
+ src="{% static 'path/to/your/logo.png' %}"
110
+ class="size-6 lg:size-8 2xl:size-10"
111
+ />
112
+ <span class="sr-only">{% trans 'YOUR_BRAND' %}</span>
113
+ </a>
114
+ </li>
115
+ {% endblock %}
116
+
117
+ <!-- Brand in Drawer Menu -->
118
+ {% block drawer_branding %}
119
+ <li
120
+ class="tooltip tooltip-right rtl:tooltip-left tooltip-primary"
121
+ data-tip="{% trans 'YOUR_BRAND' %}"
122
+ >
123
+ <a
124
+ href="{% url 'account_profile' %}"
125
+ class="btn btn-square btn-primary lg:btn-lg 2xl:btn-lg"
126
+ >
127
+ <img
128
+ alt="{% trans 'YOUR_BRAND' %}"
129
+ src="{% static 'path/to/your/logo.png' %}"
130
+ class="size-6 lg:size-8 2xl:size-10"
131
+ />
132
+ <span class="sr-only">{% trans 'YOUR_BRAND' %}</span>
133
+ </a>
134
+ </li>
135
+ {% endblock %}
136
+
137
+ <!-- Links in sidebar -->
138
+ {% block user_links %}
139
+ <li
140
+ class="is-drawer-close:tooltip is-drawer-close:tooltip-right rtl:is-drawer-close:tooltip-left"
141
+ data-tip="{% trans 'Home' %}"
142
+ >
143
+ <a href="https://your.domain.com/">
144
+ <i data-lucide="home" class="size-4 lg:size-6"></i>
145
+ <span class="is-drawer-close:sr-only">
146
+ {% trans 'Home' %}
147
+ </span>
148
+ </a>
149
+ </li>
150
+ ...
151
+ {% endblock %}
152
+ ```
153
+
154
+ ### Themes
155
+
156
+ - **Switch themes:**
157
+
158
+ ```html
159
+ {% block theme %}silk{% endblock %}
160
+ {% block toggle_theme %}luxury{% endblock %}
161
+ ```
162
+
163
+ - **Remove theme controls:**
164
+
165
+ ```html
166
+ {% block theme_selector %}{% endblock %}
167
+ {% block theme_toggle %}{% endblock %}
168
+ ```
169
+
170
+ - **Create your own theme:**
171
+ Use [daisyUI’s Theme Generator](https://daisyui.com/theme-generator/), add the CSS to your stylesheet, and include it in your template:
172
+
173
+ ```html
174
+ {% block extra_head %}
175
+ <link rel="stylesheet" href="{% static 'your_app/css/output.css' %}" />
176
+ {% endblock %}
177
+ ```
178
+
179
+ ---
180
+
181
+ ## Contributing
182
+
183
+ Contributions are welcome! Please see the [CONTRIBUTING](CONTRIBUTING.md) guide for details. Feedback, issues, and pull requests help shape the project.
184
+
185
+ ---
186
+
187
+ ## Support
188
+
189
+ For questions or support, open an issue or join the conversation in [GitHub Discussions](https://github.com/youzarsiph/django-allauth-xui/discussions).
190
+
191
+ ---
192
+
193
+ ## License
194
+
195
+ Licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
@@ -0,0 +1 @@
1
+ """AllAuth UI"""
@@ -0,0 +1,10 @@
1
+ """AppConf for allauth_xui"""
2
+
3
+ from django.apps import AppConfig
4
+
5
+
6
+ class AllAuthUIConfig(AppConfig):
7
+ """App configuration for allauth_xui"""
8
+
9
+ name = "allauth_xui"
10
+ default_auto_field = "django.db.models.BigAutoField"
@@ -0,0 +1,10 @@
1
+ """*Auth UI Views"""
2
+
3
+ from django.contrib.auth.mixins import UserPassesTestMixin
4
+
5
+
6
+ class AccountOwnerMixin(UserPassesTestMixin):
7
+ """Check if the user is owner of the account"""
8
+
9
+ def test_func(self) -> bool | None:
10
+ return self.request.user == self.get_object()
@@ -0,0 +1,4 @@
1
+ {
2
+ "tailwindStylesheet": "./css/app.css",
3
+ "plugins": ["prettier-plugin-tailwindcss"]
4
+ }
@@ -0,0 +1,23 @@
1
+ # UI Styles
2
+
3
+ Basic commands to get started.
4
+
5
+ First `cd` into dir:
6
+
7
+ ```console
8
+ cd allauth_xui/static/allauth_xui
9
+ ```
10
+
11
+ To generate the styles:
12
+
13
+ ```console
14
+ npm install
15
+ cd allauth_xui/static/allauth_xui
16
+ npx @tailwindcss/cli -i ../static/allauth_xui/css/app.css -o ../static/allauth_xui/css/styles.css --cwd ../../templates -m -w
17
+ ```
18
+
19
+ To format the templates:
20
+
21
+ ```console
22
+ npx prettier -w ../../templates
23
+ ```
@@ -0,0 +1,26 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
2
+
3
+ @import "tailwindcss";
4
+ @plugin "@tailwindcss/typography";
5
+
6
+ @plugin "daisyui" {
7
+ themes: all;
8
+ }
9
+
10
+ @theme {
11
+ --font-sans:
12
+ 'Noto Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
13
+ 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
14
+ --font-serif:
15
+ 'Noto Serif', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
16
+ 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
17
+ --font-kufi:
18
+ 'Noto Kufi Arabic', ui-sans-serif, system-ui, sans-serif,
19
+ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
20
+ }
21
+
22
+ @layer base {
23
+ .container-prose {
24
+ @apply prose w-full mx-auto prose-sm prose-video:rounded-box xl:prose-lg 2xl:prose-xl prose-img:rounded-box prose-img:w-full prose-a:link prose-a:link-hover prose-a:link-info prose-a:font-semibold;
25
+ }
26
+ }