Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: add a helper for removing margins in prose styled sections

Jonathan Summers-Muir274f04efe993
diff --git a/apps/docs/components/FooterHelpCallout.tsx b/apps/docs/components/FooterHelpCallout.tsx
index 23e676f0043..89f3265ec16 100644
--- a/apps/docs/components/FooterHelpCallout.tsx
+++ b/apps/docs/components/FooterHelpCallout.tsx
@@ -21,19 +21,18 @@ const FooterHelpCallout = ({
title: any
}) => {
return (
- <div className="mt-32 not-prose">
+ <div className="mt-32 prose prose--remove-p-margin max-w-none">
<div
className="
min-w-full
px-8 py-6
- prose
bg-scale-300 dark:bg-whiteA-200
- rounded"
+ rounded
+ text-sm text-scale-900
+ "
>
- <h5 className="text-sm m-0 text-scale-1100">{content[footerHelpType].title}</h5>
- <p className="m-0 text-sm text-scale-900">
- <ReactMarkdown>{content[footerHelpType].description}</ReactMarkdown>
- </p>
+ <h5 className="text-sm text-scale-1100 m-0">{content[footerHelpType].title}</h5>
+ <ReactMarkdown>{content[footerHelpType].description}</ReactMarkdown>
</div>
</div>
)
diff --git a/packages/config/tailwind.config.js b/packages/config/tailwind.config.js
index bc54640b822..1c57b40ccf4 100644
--- a/packages/config/tailwind.config.js
+++ b/packages/config/tailwind.config.js
@@ -325,5 +325,16 @@ module.exports = ui({
// height: ['hover'],
// },
// },
- plugins: [require('@tailwindcss/typography')],
+ plugins: [
+ require('@tailwindcss/typography'),
+ function ({ addUtilities, addVariant }) {
+ addUtilities({
+ // prose (tailwind typography) helpers
+ // useful for removing margins in prose styled sections
+ '.prose--remove-p-margin p': {
+ margin: '0',
+ },
+ })
+ },
+ ],
})