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

support "alternate checkboxes" #20

Closed
eleanorkonik opened this issue Jan 1, 2022 · 5 comments
Closed

support "alternate checkboxes" #20

eleanorkonik opened this issue Jan 1, 2022 · 5 comments
Labels
Feature Request Enhancement and/or Feature suggestion Legacy The issue was filed for the Legacy (pre 0.16.0) version of the theme. Snippet Feature/Issue related to a theme snippet

Comments

@eleanorkonik
Copy link

It would be helpful if you supported some of the data-task checkboxes that are becoming more common in the community, i.e. this snippet.

https://publish.obsidian.md/hub/02+-+Community+Expansions/02.05+All+Community+Expansions/CSS+Snippets/Alternate+Checkboxes+(SlRvb)

Right now they're rendering like this:

image

Which makes it hard for me to use your (very beautiful and clear!) theme

@damiankorcz damiankorcz added the Feature Request Enhancement and/or Feature suggestion label Jan 1, 2022
@damiankorcz damiankorcz added Snippet Feature/Issue related to a theme snippet Feature Request Enhancement and/or Feature suggestion and removed Feature Request Enhancement and/or Feature suggestion labels Jan 24, 2022
@damiankorcz
Copy link
Owner

Hi @eleanorkonik, I'm finally coming around to this issue. I've had a look at SlRvb's Checkboxes snippet and it appears to work fine with the theme as you can see below. Unless you meant for Prism to support it in a more native way (integrated into the theme) with a more matching style to my theme? I'd be happy to take a crack at it if that's the case. There are definitely some colours that would need adjusting for best readability.

Light Theme Dark Theme
image image

@eleanorkonik
Copy link
Author

eleanorkonik commented Jan 25, 2022

I was mostly concerned with it not showing up in Live Preview's "editing" mode, not so much the color optimizations and stuff. If they work now, awesome!

@AiurArtanis
Copy link

it will be nice if Prism-theme supports this snippet natively @damiankorcz

@damiankorcz damiankorcz added the Legacy The issue was filed for the Legacy (pre 0.16.0) version of the theme. label Sep 2, 2022
@damiankorcz
Copy link
Owner

Hi @eleanorkonik and @AiurArtanis,
After a lot of deliberation about this feature, I've chosen not to implement it natively in Prism. Main point of contention for me has been the fact that despite Alternative Checkboxes appearing across multiple popular themes, there is no standardisation between the syntax used and all of them do their own take on it. This would make supporting the feature difficult since I would likely have to support all the different variants for people coming from those themes. I also don't want to do my own take on it since that would only add to fragmenting things for users.

The latest Prism release (3.0.0) should work and look fine with the latest ITS Checkboxes snippet:
https://github.com/SlRvb/Obsidian--ITS-Theme/blob/main/Snippets/S%20-%20Checkboxes.css

If there are other iterations on this feature in a CSS Snippet form and they don't work right in Prism, please let me know and I'll see what I can do to make sure it does.

Apologise for keeping this issue open so long. It's been on my mind this whole time and I didn't know how to go about it 😅

@damiankorcz
Copy link
Owner

Hi @eleanorkonik and @AiurArtanis,
I figured you might be interested in my efforts to try and standardise this feature as part of Obsidian October. I've made a thread on the Official Obsidian Discord for this and will continue all conversations about this there. Feel free to chime in: https://discord.com/channels/686053708261228577/1291469509336502272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Enhancement and/or Feature suggestion Legacy The issue was filed for the Legacy (pre 0.16.0) version of the theme. Snippet Feature/Issue related to a theme snippet
Projects
None yet
Development

No branches or pull requests

3 participants