-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: main
Are you sure you want to change the base?
Conversation
--ctp-frappe-surface0: #414559; | ||
--ctp-frappe-base: #303446; | ||
--ctp-frappe-mantle: #292c3c; | ||
--ctp-frappe-crust: #232634; |
There was a problem hiding this comment.
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).
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; | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
Adds Whiskers, Catppuccin's in-house templating tool, to build the themes. Instead editing the
.css
files individually, edit the.tera
template files intemplates/
and then runjust build
to build the output themes. You will need Whiskers (linked above) and Just installed.