Skip to content

Commit 8427ca1

Browse files
committed
Switching to tailwind
1 parent 050f9a5 commit 8427ca1

File tree

13 files changed

+1637
-10477
lines changed

13 files changed

+1637
-10477
lines changed

assets/src/index.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

assets/src/input.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
@tailwind base;
2+
3+
/* https://tailwindcss.com/docs/preflight#extending-preflight */
4+
/* https://tailwindcss.com/docs/adding-custom-styles#adding-base-styles */
5+
@layer base {
6+
h1 {
7+
@apply text-4xl;
8+
}
9+
h2 {
10+
@apply text-2xl;
11+
}
12+
h3 {
13+
@apply text-xl;
14+
}
15+
16+
a {
17+
@apply text-sky-600;
18+
}
19+
a:hover, a:active {
20+
@apply underline;
21+
}
22+
23+
blockquote,
24+
dl,
25+
dd,
26+
h1,
27+
h2,
28+
h3,
29+
h4,
30+
h5,
31+
h6,
32+
hr,
33+
figure,
34+
p,
35+
ul,
36+
pre {
37+
@apply mb-4;
38+
}
39+
}
40+
41+
@tailwind components;
42+
@tailwind utilities;

assets/src/sass/_theme.scss

Lines changed: 0 additions & 29 deletions
This file was deleted.

assets/src/sass/_variables.scss

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/src/sass/index.scss

Lines changed: 0 additions & 4 deletions
This file was deleted.

config/settings/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
STATICFILES_DIRS = [
114114
os.path.join(BASE_DIR, "assets", "dist"),
115115
os.path.join(BASE_DIR, "pythonsd", "static"),
116+
# Only available after running `npm install`
117+
os.path.join(BASE_DIR, "node_modules/htmx.org/dist"),
116118
]
117119

118120
MEDIA_URL = "/media/"

0 commit comments

Comments
 (0)