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

Color value format #737

Closed
CWH0908 opened this issue May 10, 2024 · 4 comments
Closed

Color value format #737

CWH0908 opened this issue May 10, 2024 · 4 comments

Comments

@CWH0908
Copy link

CWH0908 commented May 10, 2024

The color values in the style have been converted

For example: background color: rgba ($color: # ae2e6b, $alpha: 0.3); It will be converted to background color: rgba (174,46107,. 3):

How to maintain the original color value format?

@devongovett
Copy link
Member

It should produce an equivalent color that's also smaller. What problem is this causing for you?

@CWH0908
Copy link
Author

CWH0908 commented May 14, 2024

It should produce an equivalent color that's also smaller. What problem is this causing for you?

But I cannot directly search for the color values displayed by the page checker in the code,
If I can configure the original format output, then I can easily search for the corresponding style in the code for easy modification

@devongovett
Copy link
Member

Lightning CSS output is not meant for human readability. It is meant to produce the smallest and most compatible output for browsers to consume. If you're looking for a formatter or something like that I'd suggest using a different tool.

@romainmenke
Copy link

@CWH0908 you might like https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-minify#readme

It minifies your CSS without actually changing it ;)

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

No branches or pull requests

3 participants