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

Generate CSS function-strings in a given format #5

Open
mirisuzanne opened this issue Apr 27, 2020 · 3 comments
Open

Generate CSS function-strings in a given format #5

mirisuzanne opened this issue Apr 27, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@mirisuzanne
Copy link
Member

Sass handles default output, optimizing for both browser-support and minification where possible. I don't see any reason to change that, or add a global setting to change output type. But it would be great to provide access to strings with an explicit syntax.

$output: (
  blend.string($color, 'lch'),
  blend.string($color, 'lab'),
  blend.string($color, 'display-p3'),
  ...,
);
@mirisuzanne mirisuzanne added the enhancement New feature or request label Apr 27, 2020
@alolalo
Copy link

alolalo commented May 3, 2020

Forgive me if I'm totally missing the point here and mistake this for being about "how to name things", but the way I read your question is "how to name the functions of function-strings"

I like to devide color mixing into the same three simple structures that are used in 3d-modellingl; additive, subtractive and formative modelling. In this case it would be additive blending, subtractive blending and formative blending of colors as an abstraction & subdevision of function classes.

//DesignerPseudoCode (DPC)

$output: ( blend.addColor($color, 'lch'), blend.subColor($color, 'lch'), blend.formColor($color, 'lch'), blend.testColor($color, 'lch'), ..., );

@mirisuzanne
Copy link
Member Author

This issue isn't about color-mixing, or naming functions, but about generating CSS output in various formats (strings are the way we can do that). So blend.string($color, 'lch') would output a color in css-ready LCH format: lch(<deg> <%> <%>).

@mirisuzanne
Copy link
Member Author

(blend is just the name of the tool/package/sass module)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants