Replace existing custom CSS in src/
and styles/
with Tailwind CSS and Daisy UI components, in incremental steps with tests after each.
Tasks:
head.ts
head, add:
<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" /> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> <link href="https://cdn.jsdelivr.net/npm/daisyui@5/themes.css" rel="stylesheet" type="text/css" />
Stop and test: Reload the app, add a Daisy UI class (e.g. btn
) to a component, verify the style applies.
Tasks:
styles/
.styles/daisy-ui.css
.daisy-ui.css
under Tailwind’s @layer base
.src/index.tsx
or App.tsx
.styles/daisy-ui.css
in the main CSS entry (e.g., index.css
).Stop and test: Confirm global styles (default fonts, margins) remain appropriate.
Tasks:
@import
statements in styles/index.css
for each CSS file (markdown.css
, callout.css
, blockquote.css
, accordion.css
, tabs.css
, tables.css
, etc.) so they remain separate but are included via index.css
.head.ts
to only include a single <link>
for index.css
.config.ts
to reference only cssUrl
for index.css
.buildHead
.Stop and test: Reload the app and verify all styles apply correctly with only index.css
.
Tasks:
src/handlers.ts
to wrap layout elements (toggle button, sidebar, main content, toc-sidebar) in a common layout wrapper for easier styling.Tasks:
className="
in src/
).callout
, callout-info
, callout-warning
, callout-error
, callout-tip
, callout-note
)error-message
)sidebar-toggle
)sidebar
)main-content
, content-container
)toc-sidebar
)doc-nav
, active
)styles/
.Stop and test: Verify component layout and styles.
Tasks:
btn
, card
).Stop and test: Check visual consistency and responsiveness.
Tasks:
Stop and test: Validate page layouts across breakpoints.
Tasks:
styles/
.Stop and test: Build succeeds, UI unchanged.
Proceed one step at a time and pause after each for testing.