From 9efe6b029591ef8dd68beb83d445db76d103d448 Mon Sep 17 00:00:00 2001 From: Artur Borecki Date: Wed, 11 Mar 2026 09:18:20 +0100 Subject: [PATCH] feat(theme): add tailwind --- theme/__init__.py | 0 theme/apps.py | 5 +++++ theme/static_src/src/styles.css | 10 ++++++++++ theme/templates/base.html | 19 +++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 theme/__init__.py create mode 100644 theme/apps.py create mode 100644 theme/static_src/src/styles.css create mode 100644 theme/templates/base.html diff --git a/theme/__init__.py b/theme/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/theme/apps.py b/theme/apps.py new file mode 100644 index 0000000..bec7464 --- /dev/null +++ b/theme/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class ThemeConfig(AppConfig): + name = 'theme' diff --git a/theme/static_src/src/styles.css b/theme/static_src/src/styles.css new file mode 100644 index 0000000..9bf3c00 --- /dev/null +++ b/theme/static_src/src/styles.css @@ -0,0 +1,10 @@ +@import "tailwindcss"; + +/** + * A catch-all path to Django template files, JavaScript, and Python files + * that contain Tailwind CSS classes and will be scanned by Tailwind to generate the final CSS file. + * + * If your final CSS file is not being updated after code changes, you may want to broaden or narrow + * the scope of this path. + */ +@source "../../../**/*.{html,py,js}"; diff --git a/theme/templates/base.html b/theme/templates/base.html new file mode 100644 index 0000000..cfa4088 --- /dev/null +++ b/theme/templates/base.html @@ -0,0 +1,19 @@ +{% load static tailwind_tags %} + + + + Django Tailwind + + + + {% tailwind_css %} + + + +
+
+

Django + Tailwind = ❤️

+
+
+ +