package-trendsv0.2.1 Styling
  1. package-trends
  2. Using it
  3. Styling

Styling

Nothing ships a stylesheet. The chart strokes in currentColor and the type is set in em, so it inherits rather than imposes.

974.4M +1.5%

The code for what is on screen

/* the only two colours it would choose for itself */
.pt-change[data-direction="up"]   { color: #15803d; }
.pt-change[data-direction="down"] { color: #b3261e; }

The same markup on three surfaces, with nothing changed but the surrounding text colour. A component that ships its own palette fights every site it lands on.