pastel icon indicating copy to clipboard operation
pastel copied to clipboard

Support for themes

Open shalvah opened this issue 4 years ago • 5 comments

Identical to https://github.com/knuckleswtf/pastel-js/issues/1

Our templates are written in Blade, but other than that, it's the same requirement. If a new theme is added to one library, it can easily be ported to the other.

shalvah avatar Jun 27 '20 18:06 shalvah

I would suggest that allowing for custom styles should maybe be on the roadmap before templates.

tsprings avatar Jul 15 '20 02:07 tsprings

Hmm. I never really thought about custom styles, but yeah, you're right. That would make a lot of people happy, for little cost.

That seems a pretty straightforward implementation: add a css property to the front matter where you can specify files containing your own styles and Pastel turns them into <link> tags and inserts them after its CSS.

shalvah avatar Jul 15 '20 06:07 shalvah

I dive into the codebase of pastel. I think this the part where we can customize it? image

Maybe we can add a config file and put there a list of custom css styles paths config/pastel.php

[
  'css' => [
    get_css_link_tag('highlight-darcula'),
    'path-to-my-custom2.css',
  ]
]

This way we can disable the highlight-darcula, just my idea/suggestion.

Related: https://github.com/knuckleswtf/scribe/issues/113

ajcastro avatar Oct 14 '20 08:10 ajcastro

Is there any progress on CSS styling?

seanhudson avatar Dec 29 '20 00:12 seanhudson

No, it's not been a priority. I'm working on Scribe v3, which will likely include that support directly.

shalvah avatar Jan 12 '21 17:01 shalvah