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

Enhancement: change from hardcoded colors to LESS each #6673

Open
mikejf-pr opened this issue Nov 16, 2018 · 1 comment
Open

Enhancement: change from hardcoded colors to LESS each #6673

mikejf-pr opened this issue Nov 16, 2018 · 1 comment

Comments

@mikejf-pr
Copy link

mikejf-pr commented Nov 16, 2018

As of less 3.7, less supports looping through a dynamic map of variables to create a set of objects. Example:

@set: {
  blue: #00f;
  green: #0f0;
  red: #f00;
}
.set {
  each(@set, {
    @button-@{key} {
         background-color: @{value};
     }
  });
}

Using this kind of mapping, it should be possible to change SemanticUI to generate colored variations for whatever pallete we want dynamically.

@lubber-de

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants