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

refactor: use whiskers #16

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

uncenter
Copy link
Member

Adds Whiskers, Catppuccin's in-house templating tool, to build the themes. Instead editing the .css files individually, edit the .tera template files in templates/ and then run just build to build the output themes. You will need Whiskers (linked above) and Just installed.

--ctp-frappe-surface0: #414559;
--ctp-frappe-base: #303446;
--ctp-frappe-mantle: #292c3c;
--ctp-frappe-crust: #232634;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opted to go with removing the variables entirely and using Whiskers variables below instead as it accomplishes the same thing in a less verbose way (though it does make the diff more complicated).

Comment on lines +256 to +263
pre, .hljs {
background-color: #F8F8F8 !important;
font-family: var(--font-mono) !important;
padding: 10px !important;
color: {{ crust.hex }} !important;
font-size: 14px !important;
overflow: scroll !important;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like Joplin uses Highlight.js, which we have a port for... 🤔 could be worth importing in here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to do it, but this might require major refactoring. We can't use imported libraries in Joplin usercss iirc so you'd end up hard coding most of the stuff.

Copy link
Member Author

@uncenter uncenter Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can curl it in at build time, save for a later pr. Other than that does this PR look fine?

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

Successfully merging this pull request may close these issues.

None yet

2 participants