three-dots icon indicating copy to clipboard operation
three-dots copied to clipboard

Color customization

Open Nevaan opened this issue 4 years ago • 3 comments

Hi,

Is rebuilding whole project the only way to change dot colors? It tried to overwrite keyframes (in my case, the dot-pulse one) but it seems to change only middle dot color - the one before and after looks to stay violet. I cant see any other property I could change

Best regards

Nevaan avatar May 08 '20 09:05 Nevaan

Are you using Sass for change it? Example for colors is in readme https://github.com/nzbin/three-dots#customization

grogy avatar May 20 '20 10:05 grogy

it would be really nice to change colors with a css variable or something instead of having to recompile the whole project every time

nh916 avatar Mar 31 '22 06:03 nh916

I don't have _variables.scss in my project folder, how do I change the color???

n8bitsats avatar Apr 28 '22 12:04 n8bitsats

I don't have _variables.scss in my project folder, how do I change the color???

In you use the dart sass, you can customize the dot in the following way.

v0.2.x

@use 'three-dots/sass/three-dots' with (
  $dot-width: 20px,
  $dot-height: 20px,
  ...
);

v0.3.x

@use 'three-dots' with (
  $dot-width: 20px,
  $dot-height: 20px,
  ...
);

nzbin avatar Dec 01 '22 11:12 nzbin