feat(web): set up templ layout with tailwindcss 4.3 and axios
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
0af74267b9
commit
8ea459e5f1
10 files changed
+1702
No files matched your search
@@ -0,0 +1,34 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@source "../**/*.templ";
|
||||
|
||||
@theme {
|
||||
--font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
|
||||
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
|
||||
|
||||
--color-ink: #1c1d1f;
|
||||
--color-paper: #f4f2ee;
|
||||
--color-rule: #d9d5cc;
|
||||
--color-muted: #6b675f;
|
||||
--color-up: #2f7d4f;
|
||||
--color-down: #b3361f;
|
||||
--color-degraded: #b57b14;
|
||||
--color-unknown: #8a8a86;
|
||||
|
||||
--radius-box: 2px;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
@apply bg-paper text-ink font-sans antialiased;
|
||||
font-feature-settings: "tnum";
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
--color-ink: #e6e3dc;
|
||||
--color-paper: #16171a;
|
||||
--color-rule: #2c2d31;
|
||||
--color-muted: #9a968d;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
(() => {
|
||||
const token = document.querySelector('meta[name="csrf-token"]')?.content;
|
||||
window.api = axios.create({
|
||||
baseURL: "/api/v1",
|
||||
headers: token ? { "X-CSRF-Token": token } : {},
|
||||
withCredentials: true,
|
||||
});
|
||||
})();
|
||||
Reference in new issue
Block a user