Skip to content
Prev Previous commit
Next Next commit
Fix dark mode with Tailwind custom variant, checkbox visual bug, and …
…card whitespace

Co-authored-by: nwalters512 <1476544+nwalters512@users.noreply.github.com>
  • Loading branch information
Copilot and nwalters512 committed Oct 30, 2025
commit 4195ead40d9fd61e6ec437e64e118e7636bca2a1
2 changes: 1 addition & 1 deletion src/pages/recipes/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface SectionTitleProps {
}

const SectionTitle: React.FC<SectionTitleProps> = ({ children }) => (
<h2 className="text-xl font-bold mt-4 mb-3 uppercase text-orange-600 dark:text-orange-400 border-b-2 border-orange-200 dark:border-orange-800 pb-1">
<h2 className="text-xl font-bold mb-3 uppercase text-orange-600 dark:text-orange-400 border-b-2 border-orange-200 dark:border-orange-800 pb-1">
{children}
</h2>
)
Expand Down
3 changes: 2 additions & 1 deletion src/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));

body {
font-family: "Source Sans Pro", serif;
Expand Down Expand Up @@ -27,7 +28,7 @@ ul.list-dash li:before {
@apply text-orange-600 dark:text-orange-400;
}

.checkbox {
.checkbox:checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
background-size: 100% 100%;
background-position: center;
Expand Down