Skip to main content
The widget uses Shadow DOM for complete style isolation — your existing CSS never conflicts with the calculator. All theming is done through CSS custom properties applied to the widget’s shadow root.

CSS Variables Reference


Usage

JavaScript
Color tokens accept any valid CSS color format:
  • Hex: #ff0000, #f00
  • RGB/RGBA: rgb(255, 0, 0), rgba(255, 0, 0, 0.5)
  • HSL/HSLA: hsl(0, 100%, 50%), hsla(0, 100%, 50%, 0.5)
  • Named colors: red, blue, transparent
  • CSS4 colors: oklch(), lab()