Skip to main content

Visual editor options → CSS

Each option reaches the theme in two ways:
  • A CSS variable on :root: --ejg-<key-in-kebab>. cardSize → --ejg-card-size: 180px.
    • color, text, select: the value as it is.
    • range/number: with its unit.
    • toggle: 1 or 0.
    • font: "Name", system-ui, sans-serif.
    • image: url("…") (the user picks an image or an mp4/webm video).
  • An attribute on <html> for toggle and select: data-show-clock="on|off", data-layout="grid".
And in JavaScript: ejg.settings.cardSize. If an option needs a redraw, listen with ejg.on("settings", …). Each profile can also add extra CSS to any theme (Settings → Appearance), and it is applied last.