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

feat(whiskers): add css_* functions as filters #230

Merged
merged 2 commits into from
May 27, 2024

Conversation

uncenter
Copy link
Member

As discussed in Discord, filters for these kind of operations are better since with functions if you want to modify a color you have to set it to a variable and then invoke the function separately:

{% set a = red | mod(opacity=0.6) %}
{{ css_rgba(a) }}

With this PR, the css_* functions have been kept but new filter versions have been added that enables this kind of behavior:

{{ red | mod(opacity=0.6) | css_rgba }}

@backwardspy backwardspy merged commit e2e7f22 into catppuccin:main May 27, 2024
6 checks passed
@backwardspy
Copy link
Member

thanks!

@github-actions github-actions bot mentioned this pull request May 27, 2024
@uncenter uncenter deleted the feat/add-css-funcs-as-filters branch May 27, 2024 14:20
sgoudham pushed a commit that referenced this pull request Jun 3, 2024
Co-authored-by: backwardspy <backwardspy@pigeon.life>
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.

2 participants