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

List of CSS Themes for RemarkJS #522

Closed
xaprb opened this issue May 27, 2018 · 8 comments
Closed

List of CSS Themes for RemarkJS #522

xaprb opened this issue May 27, 2018 · 8 comments

Comments

@xaprb
Copy link

xaprb commented May 27, 2018

I'm starting to work on a CSS theme framework. My idea at the moment is to separate the layout and styling of the text and other items.

Slide layouts are a fairly typical feature of presentation themes in any presentation tool such as PPT or Keynote, for example:

  • Title and full-width content
  • Image and caption
  • Title, left column for text content, right column for an image

And so on. My thought is to create those layouts in one set of CSS as class names you can apply to a slide, and then use another set of CSS classes to change things like color, font, bullet stylings, and so on. Any thoughts on this topic are welcome.

Initially I'm simply going to list other Remark slide styles I've found. Please comment with more:

@mschilli87
Copy link
Contributor

xaringan comes with more than the default CSS: https://github.com/yihui/xaringan/tree/master/inst/rmarkdown/templates/xaringan/resources

@emitanaka
Copy link

emitanaka commented Sep 15, 2018

xaringan is an R wrapper for remarkjs (plus has some other useful features) and so if you use R, you can use also use xaringanthemer to customise your slides.
You can also see css themes here that allows for easy column/row splits in the slide.

@xaprb
Copy link
Author

xaprb commented Sep 17, 2018

I've been working on the theme I had in mind, for a while; and I decided to just leave it as a part of my Hugo static site blog theme. I've published that blog theme's demo site at https://story.xaprb.com/ and you can see the built-in Remark theme's capabilities at https://story.xaprb.com/slides/

I'm going to close this issue since it doesn't seem like it is going to be "fixed." However there's no harm in adding comments with more themes, so I encourage anyone who wants to, to add more information to this issue even after it's closed!

@xaprb xaprb closed this as completed Sep 17, 2018
@mschilli87
Copy link
Contributor

@xaprb: Could apron be used with xaringan or is there more than CSS/JS to it?

@xaprb
Copy link
Author

xaprb commented Sep 17, 2018

Apron is pure CSS and could be used alone. I don't know xaringan. I built Apron so that I don't need to use any special markup, but the compromise I made in order to do that, is that it assumes certain conventions about the markup. For example, in some layouts it assumes the first content will be an image, and in others it assumes the first content will be an H1.

@mschilli87
Copy link
Contributor

@xaprb: Would you mind sharing a direct link to the CSS and if I get it to work in xaringan to submit it as a theme there?

@xaprb
Copy link
Author

xaprb commented Sep 17, 2018

Sure: it is https://story.xaprb.com/css/apron.css or https://story.xaprb.com/css/apron.less

On the source github repo, it's https://github.com/xaprb/story/blob/master/static/css/apron.css or https://github.com/xaprb/story/blob/master/static/css/apron.less

@1-2-3
Copy link

1-2-3 commented Jan 6, 2020

I made a template for remarkjs that contains some themes, layouts, and components. I hope it works for you.
demo | source

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

4 participants