From 2726455578a2567857f8805415f9b6b487b3e1db Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 2 Feb 2026 09:35:37 -0500 Subject: [PATCH] refactor: convert docs templates to use TailwindCSS Phase 4+5: Replace custom CSS with Tailwind utility classes - Remove ~250 lines of custom CSS from docs.templ - Remove ~120 lines of custom CSS from api_explorer.templ - Use Tailwind CDN for styling - Keep only essential CSS: * CSS variables for theming (--bg-primary, --accent, etc.) * Custom scrollbar styling * Mobile sidebar transform transitions * Smooth scroll behavior - All layout, spacing, colors, typography now use Tailwind classes - Mobile-first responsive design with Tailwind breakpoints - Proper accessibility with aria-labels and semantic HTML Benefits: - Consistent design system - Smaller custom CSS footprint - Better maintainability - Follows PROJECT_GUIDELINES.md requirement: TailwindCSS primary --- templates/api_explorer.templ | 229 +++------ templates/api_explorer_templ.go | 22 +- templates/docs.templ | 826 +++++++++++++------------------- templates/docs_templ.go | 136 +++--- 4 files changed, 467 insertions(+), 746 deletions(-) diff --git a/templates/api_explorer.templ b/templates/api_explorer.templ index b2b0afc..f2b8973 100644 --- a/templates/api_explorer.templ +++ b/templates/api_explorer.templ @@ -3,60 +3,64 @@ package templates templ APIExplorer(explorer APIExplorerData) { if !explorer.IsLoggedIn { // Show mode toggle and mock data -
-
- - +
+
+ +
-
-
-
-

Request Body (Example)

-
{ explorer.Endpoint.RequestBody }
+

Request Body (Example)

+
{ explorer.Endpoint.RequestBody }
-
-

Response (Mock)

-
{ explorer.Endpoint.Response }
+
+

Response (Mock)

+
{ explorer.Endpoint.Response }
+
+
+ +
- -
} else { // Show interactive explorer with real execution -
-
- - +
+
+ +
-
-
-
-

Request Body

- +

Request Body

+
- - ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } else { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "

Request Body

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 21, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/docs.templ b/templates/docs.templ index 07c54cc..49f5fa7 100644 --- a/templates/docs.templ +++ b/templates/docs.templ @@ -2,253 +2,137 @@ package templates import ( "fmt" - "html/template" ) templ DocsLayout(nav Navigation, doc Document, user User) { - + { doc.Title } - Bookhoard Documentation + + - - -
+ - - -