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

Introduce color+size system #13

Open
pszalko opened this issue Apr 13, 2021 · 2 comments
Open

Introduce color+size system #13

pszalko opened this issue Apr 13, 2021 · 2 comments
Labels
discussion Discussion for the project

Comments

@pszalko
Copy link
Contributor

pszalko commented Apr 13, 2021

Hi,

Would it be possible to introduce color and size system similar to bootstrap?
I mean the ...-color and ...-size classes for the three-dots component, just like at bootstrap colors page

I think it may be useful to use different colors/sizes of dots depending on the loader context.

I would see it as follow:

<div class="dot-flashing dot-primary dot-sm"></div>

Which would mean:

  • use dot-flashing animation
  • use primary color
  • use sm size

For Sass/Less users (Sass here!) it would be helpful too to introduce variables for each color/size.

@nzbin nzbin added the discussion Discussion for the project label Apr 20, 2021
@pszalko
Copy link
Contributor Author

pszalko commented May 6, 2021

Alternatively, if it's easier to implement:
Introduce mixins to create few three-dots instances in Sass, to create own system, for example:

@use "~three_dots"
.dot-white-sm {
    $dot-width: 2px;
    $dot-height: 2px;
    $dot-spacing: 6px;
    $dot-color: $white;
   @include three-dots.pulse
}

.dot-primary-sm {
    $dot-width: 2px;
    $dot-height: 2px;
    $dot-spacing: 6px;
    $dot-color: $primary;
   @include three-dots.pulse
}

@nzbin nzbin added the enhancement New feature or request label Nov 20, 2021
@nzbin nzbin removed the enhancement New feature or request label Nov 21, 2022
@chemseddine201
Copy link

same requirement for react components, i can't control size and colors using custom css.

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

No branches or pull requests

3 participants