theodorusclarence / theodorusclarence.com

💠 Personal website and blog made using Next.js, TypeScript, Tailwind CSS, MDX Bundler, and Prisma with PostgreSQL
https://theodorusclarence.com
GNU General Public License v3.0
661 stars 87 forks source link

How you are styling the mdx content? #346

Closed Chandraprakash-Darji closed 1 year ago

Chandraprakash-Darji commented 1 year ago

I am trying to implement but this is the output image

I also added the this css file of yours but still

import '@/styles/dracula.css';
import '@/styles/globals.css';
import '@/styles/mdx.css';
theodorusclarence commented 1 year ago

image

some of the styles in mdx.css are added to .prose.mdx

make sure to add class mdx and prose to the article image

Chandraprakash-Darji commented 1 year ago

Both checks is done

  <article className='mdx prose mt-4 transition-colors'>
                <Component />
   </article>

Does giving a component to prop is necessary?

theodorusclarence commented 1 year ago

if you don't use any, I don't think so.

just to be clear, which part of the style are you trying to achieve?

Chandraprakash-Darji commented 1 year ago

Your site: image My site: image

Content Is copied

Any other thing I am mising?

theodorusclarence commented 1 year ago

have you add @tailwindcss/typography yet?

Chandraprakash-Darji commented 1 year ago

No?

Chandraprakash-Darji commented 1 year ago

Let me add

Chandraprakash-Darji commented 1 year ago

@theodorusclarence Thanks a lot for the help image