Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc request: How I use this when running Marpit from npx? #2

Open
boldandbusted opened this issue Oct 6, 2024 · 1 comment
Open

Comments

@boldandbusted
Copy link

Howdy. Thanks for this theme. How do I use this if I'm running Marpit like so:

npx @marp-team/[email protected] -s ./

The README seems to imply perhaps a VSCode usage pattern, but I'm a Linux shell and vim lover. :) Thank you for your kind help in advance! :)

@rainbowflesh
Copy link
Owner

rainbowflesh commented Oct 8, 2024

Follow the marpit document, import css file then marpit.themeSet.add(those_css_file);
or,

// 2. Add theme CSS
const theme = `
/* copy and paste styles from rose-pine.css to here*/
`

All themes are just CSS, whether it is marpit or marp-cli, the usage is to import CSS into the code, or use the <style> tag to reference it in markdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants