Feature Request: Theming #282
-
|
Currently, many similar document-generation tools support this feature. Ex: NextJS, Astro, VuePress, VitePress,... A theming system separates the theme from the content, so we can reuse a theme for many sites easily. As a developer, I want to customize the current theme of the document site. Features
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Can you elaborate on the specific functionality you would want for a Markdoc theming system? You can use tag and node schemas to completely control the markup that the Markdoc renderer outputs, so it already provides extensive control over presentation. |
Beta Was this translation helpful? Give feedback.
-
|
@segphault I've updated the issue description. FYI! |
Beta Was this translation helpful? Give feedback.
-
|
@ansidev Markdoc is completely agnostic to how you style your site. You can use Markdoc to generate React or HTML, and use any of the systems above to handle theming. For example, you could hook up a Next.js site with our Markdoc plugin ( In short: you should handle your theming using any React or HTML based theming solution, and it will work with Markdoc. |
Beta Was this translation helpful? Give feedback.
@ansidev Markdoc is completely agnostic to how you style your site. You can use Markdoc to generate React or HTML, and use any of the systems above to handle theming.
For example, you could hook up a Next.js site with our Markdoc plugin (
@markdoc/next.js), and then add in Tailwind support to your entire Next.js site to style the content: https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcssIn short: you should handle your theming using any React or HTML based theming solution, and it will work with Markdoc.