{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "ballpoint",
  "title": "Ballpoint",
  "author": "Oussama Nahiz <useit015@gmail.com>",
  "description": "Paper, one ink, a red pen, and the stroke engine every Ballpoint component draws with.",
  "registryDependencies": [
    "utils",
    "@ballpoint/font-gaegu",
    "@ballpoint/ink-core"
  ],
  "cssVars": {
    "theme": {
      "color-paper": "var(--paper)",
      "color-ink": "var(--ink)",
      "color-ink-2": "var(--ink-2)",
      "color-ink-3": "var(--ink-3)",
      "color-ink-line": "var(--ink-line)",
      "color-ink-4": "var(--ink-4)",
      "color-ink-5": "var(--ink-5)",
      "color-pen-red": "var(--pen-red)",
      "color-background": "var(--background)",
      "color-foreground": "var(--foreground)",
      "color-card": "var(--card)",
      "color-card-foreground": "var(--card-foreground)",
      "color-popover": "var(--popover)",
      "color-popover-foreground": "var(--popover-foreground)",
      "color-primary": "var(--primary)",
      "color-primary-foreground": "var(--primary-foreground)",
      "color-secondary": "var(--secondary)",
      "color-secondary-foreground": "var(--secondary-foreground)",
      "color-muted": "var(--muted)",
      "color-muted-foreground": "var(--muted-foreground)",
      "color-accent": "var(--accent)",
      "color-accent-foreground": "var(--accent-foreground)",
      "color-destructive": "var(--destructive)",
      "color-border": "var(--border)",
      "color-input": "var(--input)",
      "color-ring": "var(--ring)",
      "text-xs": "0.9375rem",
      "text-xs--line-height": "1.3",
      "text-sm": "1.0625rem",
      "text-sm--line-height": "1.35",
      "text-base": "1.25rem",
      "text-base--line-height": "1.45",
      "text-lg": "1.375rem",
      "text-lg--line-height": "1.4",
      "text-xl": "1.5625rem",
      "text-xl--line-height": "1.3",
      "text-2xl": "1.75rem",
      "text-2xl--line-height": "1.2",
      "text-3xl": "2.125rem",
      "text-3xl--line-height": "1.15",
      "text-4xl": "2.625rem",
      "text-4xl--line-height": "1.1",
      "text-5xl": "3.5rem",
      "text-5xl--line-height": "1.05",
      "ease-out": "cubic-bezier(0.22, 1, 0.36, 1)",
      "ease-out-expo": "cubic-bezier(0.16, 1, 0.3, 1)",
      "ease-in": "cubic-bezier(0.7, 0, 0.84, 0)",
      "ease-pen": "cubic-bezier(0.45, 0.05, 0.25, 1)",
      "ease-write": "cubic-bezier(0.37, 0, 0.63, 1)"
    },
    "light": {
      "paper": "#ede8df",
      "ink": "oklch(0.4 0.185 267)",
      "pen-red": "oklch(0.5 0.19 27)",
      "stain": "oklch(0.5 0.075 62)"
    },
    "dark": {
      "paper": "oklch(0.215 0.038 266)",
      "ink": "oklch(0.9 0.045 258)",
      "pen-red": "oklch(0.74 0.14 25)",
      "stain": "oklch(0.78 0.05 70)"
    }
  },
  "css": {
    ":root": {
      "--hand-radius": "14px 5px 12px 6px / 6px 12px 5px 14px",
      "--ink-fill": "0.78",
      "--ink-weight": "1",
      "--ink-speed": "1",
      "--dur-press": "90ms",
      "--dur-hover": "220ms",
      "--dur-state": "300ms",
      "--dur-enter": "560ms",
      "--stain-strength": "0.5",
      "--stain-blend": "multiply",
      "--lamp": "none"
    },
    ".dark": {
      "--ink-fill": "0.72",
      "--stain-strength": "0.14",
      "--stain-blend": "screen",
      "--lamp": "radial-gradient(90% 70% at 50% 18%, oklch(0.75 0.06 80 / 0.07), transparent 70%), radial-gradient(130% 100% at 50% 40%, transparent 55%, oklch(0.1 0.03 266 / 0.55) 100%)"
    },
    ":root, .dark, [data-ink-scope]": {
      "--ink-2": "color-mix(in oklab, var(--ink) 86%, var(--paper))",
      "--ink-3": "color-mix(in oklab, var(--ink) 77%, var(--paper))",
      "--ink-line": "color-mix(in oklab, var(--ink) 60%, var(--paper))",
      "--ink-4": "color-mix(in oklab, var(--ink) 40%, var(--paper))",
      "--ink-5": "color-mix(in oklab, var(--ink) 16%, var(--paper))",
      "--background": "var(--paper)",
      "--foreground": "var(--ink)",
      "--card": "var(--paper)",
      "--card-foreground": "var(--ink)",
      "--popover": "var(--paper)",
      "--popover-foreground": "var(--ink)",
      "--primary": "var(--ink)",
      "--primary-foreground": "var(--paper)",
      "--secondary": "var(--ink-5)",
      "--secondary-foreground": "var(--ink)",
      "--muted": "var(--ink-5)",
      "--muted-foreground": "var(--ink-3)",
      "--accent": "var(--ink-5)",
      "--accent-foreground": "var(--ink)",
      "--destructive": "var(--pen-red)",
      "--border": "var(--ink-4)",
      "--input": "var(--ink-line)",
      "--ring": "var(--ink)"
    },
    "@layer base": {
      "html": {
        "background-color": "var(--paper)"
      },
      "body": {
        "background-color": "var(--background)",
        "color": "var(--foreground)",
        "font-family": "var(--font-sans)",
        "font-size": "var(--text-base)",
        "line-height": "var(--text-base--line-height)",
        "-webkit-text-stroke": "0.2px currentColor",
        "-webkit-font-smoothing": "antialiased"
      },
      "::selection": {
        "background-color": "color-mix(in oklab, var(--ink) 20%, var(--paper))"
      }
    },
    "@layer components": {
      ".ink-sketch, .ink-glyph": {
        "pointer-events": "none",
        "overflow": "visible",
        "color": "inherit"
      },
      ":is(.ink-sketch, .ink-glyph) path": {
        "fill": "none",
        "stroke": "currentColor",
        "stroke-width": "calc(var(--ink-weight, 1) * var(--ink-w) * 1px)",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
      },
      ".ink-sketch .ink-ribbon, .ink-sketch .ink-fill": {
        "fill": "currentColor",
        "stroke": "none"
      },
      ".ink-sketch .ink-fill": {
        "opacity": "var(--ink-fill)"
      },
      ".ink-sketch .ink-guide": {
        "stroke": "#fff"
      },
      ".ink-sketch .ink-reveal.ink-drawn": {
        "mask": "none"
      },
      ":is(.ink-sketch, .ink-glyph) .ink-draw": {
        "stroke-dasharray": "1.05 1.05",
        "animation": "ink-draw calc(var(--ink-d) / var(--ink-speed, 1)) var(--ease-pen) calc(var(--ink-dd) / var(--ink-speed, 1)) both"
      },
      ":is(.ink-sketch, .ink-glyph) .ink-draw.ink-drawn": {
        "stroke-dasharray": "none",
        "animation": "none"
      },
      "@media (scripting: enabled)": {
        ":is([data-ink-pending], [data-ink-stage]:has(> .ink-sketch[data-ink-pending])) .ink-draw": {
          "animation": "none",
          "stroke-dashoffset": "1.05"
        },
        ":is(:has(> .ink-sketch[data-ink-pending]) > .ink-write, [data-ink-pending] .ink-write)": {
          "--ink-write": "0%",
          "mask-image": "linear-gradient(90deg, #000 45.5%, transparent 50%)",
          "animation": "none"
        },
        ":is([data-ink-pending], [data-ink-stage]:has(> .ink-sketch[data-ink-pending])) .ink-land, .ink-land[data-ink-pending]": {
          "opacity": "0",
          "animation": "none"
        }
      },
      ":is(.ink-sketch, .ink-glyph) :is(.ink-hover-draw, .ink-focus-draw, .ink-checked-draw, .ink-indeterminate-draw)": {
        "--out": "calc(var(--ink-d) * 0.65 / var(--ink-speed, 1))",
        "stroke-dasharray": "1.05 1.05",
        "stroke-dashoffset": "1.05",
        "opacity": "0",
        "transition": "stroke-dashoffset var(--out) var(--ease-in),\n      opacity 0s linear var(--out)"
      },
      ".ink-hover:focus-visible .ink-hover-draw, .ink-within:focus-within .ink-focus-draw, :is([data-checked], [data-pressed]) > :is(.ink-sketch, .ink-glyph) .ink-checked-draw, [data-indeterminate] > :is(.ink-sketch, .ink-glyph) .ink-indeterminate-draw": {
        "--in": "calc(var(--ink-dd) / var(--ink-speed, 1))",
        "stroke-dashoffset": "0",
        "opacity": "1",
        "transition": "stroke-dashoffset calc(var(--ink-d) / var(--ink-speed, 1)) var(--ease-pen) var(--in),\n      opacity 0s linear var(--in)"
      },
      "@media (hover: hover)": {
        ".ink-hover:hover .ink-hover-draw": {
          "stroke-dashoffset": "0",
          "opacity": "1",
          "transition": "stroke-dashoffset calc(var(--ink-d) / var(--ink-speed, 1)) var(--ease-out),\n        opacity 0s"
        }
      },
      ".ink-write": {
        "padding-inline": "0.12em 0.3em",
        "margin-inline": "-0.12em -0.3em",
        "mask-size": "400% 100%",
        "mask-repeat": "no-repeat",
        "mask-position": "calc((200% - var(--ink-write)) / 3) 0",
        "animation": "ink-write calc(var(--ink-d) / var(--ink-speed, 1)) var(--ease-write) calc(var(--ink-dd) / var(--ink-speed, 1)) backwards"
      },
      ".ink-land": {
        "animation": "ink-land calc(var(--ink-d) / var(--ink-speed, 1)) var(--ease-out) calc(var(--ink-dd) / var(--ink-speed, 1)) both"
      },
      ".ink-paper": {
        "background-color": "var(--popover)",
        "background-image": "var(--paper-texture, none)",
        "background-size": "var(--paper-texture-size, auto)"
      }
    },
    "@property --ink-write": {
      "syntax": "\"<percentage>\"",
      "inherits": "false",
      "initial-value": "130%"
    },
    "@keyframes ink-write": {
      "from": {
        "--ink-write": "0%",
        "mask-image": "linear-gradient(90deg, #000 45.5%, transparent 50%)"
      },
      "to": {
        "--ink-write": "130%",
        "mask-image": "linear-gradient(90deg, #000 45.5%, transparent 50%)"
      }
    },
    "@keyframes ink-land": {
      "from": {
        "opacity": "0",
        "translate": "0 3px"
      }
    },
    "@property --ink-w": {
      "syntax": "\"<number>\"",
      "inherits": "false",
      "initial-value": "1.3"
    },
    "@property --ink-d": {
      "syntax": "\"<time>\"",
      "inherits": "false",
      "initial-value": "500ms"
    },
    "@property --ink-dd": {
      "syntax": "\"<time>\"",
      "inherits": "false",
      "initial-value": "0ms"
    },
    "@keyframes ink-scribble": {
      "0%": {
        "stroke-dashoffset": "1.05"
      },
      "45%, 100%": {
        "stroke-dashoffset": "0"
      }
    },
    ".ink-progress[data-indeterminate]": {
      "width": "25%",
      "animation": "ink-progress 1.6s ease-in-out infinite"
    },
    "@keyframes ink-progress": {
      "from": {
        "translate": "-110% 0"
      },
      "to": {
        "translate": "320% 0"
      }
    },
    "@keyframes ink-draw": {
      "from": {
        "stroke-dashoffset": "1.05"
      },
      "to": {
        "stroke-dashoffset": "0"
      }
    },
    "@media (prefers-reduced-motion: reduce)": {
      ":is(.ink-sketch, .ink-glyph) .ink-draw": {
        "animation": "none",
        "stroke-dashoffset": "0"
      },
      ":is(.ink-sketch, .ink-glyph) :is(.ink-hover-draw, .ink-focus-draw, .ink-checked-draw, .ink-indeterminate-draw)": {
        "transition": "none"
      },
      ".ink-sketch .ink-scribble": {
        "animation": "none",
        "stroke-dashoffset": "0"
      },
      ".ink-progress[data-indeterminate]": {
        "animation": "none",
        "translate": "100% 0"
      },
      ".ink-write, :is(:has(> .ink-sketch[data-ink-pending]) > .ink-write, [data-ink-pending] .ink-write)": {
        "--ink-write": "130%",
        "mask-image": "none",
        "animation": "none"
      },
      ".ink-sketch .ink-reveal": {
        "mask": "none"
      },
      ".ink-land, :is([data-ink-pending], [data-ink-stage]:has(> .ink-sketch[data-ink-pending])) .ink-land, .ink-land[data-ink-pending]": {
        "opacity": "1",
        "animation": "none"
      }
    },
    "@media (prefers-contrast: more)": {
      ":root, .dark, [data-ink-scope]": {
        "--ink-2": "var(--ink)",
        "--ink-3": "var(--ink)",
        "--ink-line": "var(--ink)",
        "--ink-4": "color-mix(in oklab, var(--ink) 70%, var(--paper))"
      }
    }
  },
  "type": "registry:base",
  "config": {
    "registries": {
      "@ballpoint": "https://ballpoint.st9wd.com/r/{name}.json"
    }
  }
}