Skip to main content
The theme option picks a set of defaults: light, dark, or auto (the shopper’s system setting). To match your own palette, set CSS variables on any ancestor of the container. Set them on <html> or <body> so the pop-up’s sheet and scrim pick them up too. A variable you set wins over the theme’s default.

The usual variables

Fine tuning

The Krti badge

The line and the card carry the Krti badge: the wordmark on a small pill. The badge option picks its fill. The badge follows --krti-brand, --krti-text and --krti-bg; its white wordmark on the brand fill is fixed.

The payment logos

The card’s “Pay with” row and the pop-up show the logos of the methods your store accepts: KNET, Visa, Mastercard, Apple Pay and Google Pay. The chips are white in both themes so the marks keep their brand colours, with a light hairline border. American Express is never shown.

Layout rules

  • The line needs 320 px. At that width an offer wraps to two lines; from 600 px every state fits one line. “Learn more” sits on its own line under the message, the badge beside it.
  • The card puts the three benefits beside the saving from about 440 px and under it below.
  • “Learn more” never splits and an amount never separates from its currency. Do not override white-space on .krti-link.
  • The font is your page’s system stack at the design’s sizes (14 px body, 20 px line height, 22 px in Arabic). Set font-family on the container to change it.
  • Dark pages: pass theme: 'dark' (or auto). The pop-up follows the same theme.