@c15t/react 2.0.4 → 2.2.0-canary-20260727202135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/AGENTS.md +155 -0
  2. package/README.md +29 -14
  3. package/client/components/integrations.js +3 -0
  4. package/dist/components/consent-banner/atoms/overlay.cjs +1 -1
  5. package/dist/components/consent-banner/atoms/root.cjs +1 -1
  6. package/dist/components/consent-banner/components.cjs +1 -1
  7. package/dist/components/consent-banner/consent-banner.cjs +1 -1
  8. package/dist/components/consent-banner/error-boundary.cjs +1 -1
  9. package/dist/components/consent-banner/index.cjs +1 -1
  10. package/dist/components/consent-banner/policy-actions.cjs +1 -1
  11. package/dist/components/consent-dialog/atoms/card.cjs +1 -1
  12. package/dist/components/consent-dialog/atoms/overlay.cjs +1 -1
  13. package/dist/components/consent-dialog/atoms/root.cjs +1 -1
  14. package/dist/components/consent-dialog/consent-dialog.cjs +1 -1
  15. package/dist/components/consent-dialog/index.cjs +1 -1
  16. package/dist/components/consent-dialog-link/index.cjs +1 -1
  17. package/dist/components/consent-dialog-trigger/atoms/button.cjs +1 -1
  18. package/dist/components/consent-dialog-trigger/atoms/button.js +1 -1
  19. package/dist/components/consent-dialog-trigger/atoms/icon.cjs +1 -1
  20. package/dist/components/consent-dialog-trigger/atoms/root.cjs +1 -1
  21. package/dist/components/consent-dialog-trigger/atoms/text.cjs +1 -1
  22. package/dist/components/consent-dialog-trigger/atoms/toolbar.cjs +1 -0
  23. package/dist/components/consent-dialog-trigger/atoms/toolbar.js +1 -0
  24. package/dist/components/consent-dialog-trigger/consent-dialog-trigger-toolbar.cjs +1 -0
  25. package/dist/components/consent-dialog-trigger/consent-dialog-trigger-toolbar.js +1 -0
  26. package/dist/components/consent-dialog-trigger/consent-dialog-trigger.cjs +1 -1
  27. package/dist/components/consent-dialog-trigger/index.cjs +1 -1
  28. package/dist/components/consent-dialog-trigger/index.js +1 -1
  29. package/dist/components/consent-dialog-trigger/use-draggable.cjs +1 -1
  30. package/dist/components/consent-preferences-link/consent-preferences-link.cjs +1 -1
  31. package/dist/components/consent-preferences-link/index.cjs +1 -1
  32. package/dist/components/consent-widget/atoms/accordion.cjs +1 -1
  33. package/dist/components/consent-widget/atoms/button.cjs +1 -1
  34. package/dist/components/consent-widget/atoms/footer.cjs +1 -1
  35. package/dist/components/consent-widget/atoms/root.cjs +1 -1
  36. package/dist/components/consent-widget/consent-widget.cjs +1 -1
  37. package/dist/components/consent-widget/index.cjs +1 -1
  38. package/dist/components/consent-widget/policy-actions.cjs +1 -1
  39. package/dist/components/frame/atoms.cjs +1 -1
  40. package/dist/components/frame/atoms.js +1 -1
  41. package/dist/components/frame/frame.cjs +1 -1
  42. package/dist/components/frame/index.cjs +1 -1
  43. package/dist/components/iab-consent-banner/atoms/button-group.cjs +1 -1
  44. package/dist/components/iab-consent-banner/atoms/card.cjs +1 -1
  45. package/dist/components/iab-consent-banner/atoms/description.cjs +1 -1
  46. package/dist/components/iab-consent-banner/atoms/footer.cjs +1 -1
  47. package/dist/components/iab-consent-banner/atoms/header.cjs +1 -1
  48. package/dist/components/iab-consent-banner/atoms/overlay.cjs +1 -1
  49. package/dist/components/iab-consent-banner/atoms/root.cjs +1 -1
  50. package/dist/components/iab-consent-banner/atoms/title.cjs +1 -1
  51. package/dist/components/iab-consent-banner/iab-consent-banner.cjs +1 -1
  52. package/dist/components/iab-consent-banner/iab-consent-banner.js +1 -1
  53. package/dist/components/iab-consent-banner/index.cjs +1 -1
  54. package/dist/components/iab-consent-dialog/atoms/card.cjs +1 -1
  55. package/dist/components/iab-consent-dialog/atoms/content.cjs +1 -1
  56. package/dist/components/iab-consent-dialog/atoms/footer.cjs +1 -1
  57. package/dist/components/iab-consent-dialog/atoms/header.cjs +1 -1
  58. package/dist/components/iab-consent-dialog/atoms/overlay.cjs +1 -1
  59. package/dist/components/iab-consent-dialog/atoms/purpose-item.cjs +1 -1
  60. package/dist/components/iab-consent-dialog/atoms/root.cjs +1 -1
  61. package/dist/components/iab-consent-dialog/atoms/stack-item.cjs +1 -1
  62. package/dist/components/iab-consent-dialog/atoms/tabs.cjs +1 -1
  63. package/dist/components/iab-consent-dialog/atoms/vendor-list.cjs +1 -1
  64. package/dist/components/iab-consent-dialog/hooks/use-gvl-data.cjs +1 -1
  65. package/dist/components/iab-consent-dialog/iab-consent-dialog.cjs +1 -1
  66. package/dist/components/iab-consent-dialog/index.cjs +1 -1
  67. package/dist/components/iab-consent-dialog/use-iab-translations.cjs +1 -1
  68. package/dist/components/integrations/google-map.cjs +1 -0
  69. package/dist/components/integrations/google-map.js +1 -0
  70. package/dist/components/integrations/index.cjs +1 -0
  71. package/dist/components/integrations/index.js +1 -0
  72. package/dist/components/integrations/shared.cjs +1 -0
  73. package/dist/components/integrations/shared.js +1 -0
  74. package/dist/components/integrations/youtube-embed.cjs +1 -0
  75. package/dist/components/integrations/youtube-embed.js +1 -0
  76. package/dist/components/shared/libs/recursive-clone-children.cjs +1 -1
  77. package/dist/components/shared/libs/slot.cjs +1 -1
  78. package/dist/components/shared/libs/use-controllable-state.cjs +1 -1
  79. package/dist/components/shared/policy-actions.cjs +1 -1
  80. package/dist/components/shared/primitives/box.cjs +1 -1
  81. package/dist/components/shared/primitives/button.cjs +1 -1
  82. package/dist/components/shared/primitives/button.js +1 -1
  83. package/dist/components/shared/primitives/legal-links/index.cjs +1 -1
  84. package/dist/components/shared/primitives/legal-links/index.js +1 -1
  85. package/dist/components/shared/ui/accordion/accordion.cjs +1 -1
  86. package/dist/components/shared/ui/accordion/index.cjs +1 -1
  87. package/dist/components/shared/ui/animated-collapse/animated-collapse.cjs +1 -1
  88. package/dist/components/shared/ui/animated-collapse/index.cjs +1 -1
  89. package/dist/components/shared/ui/branding.cjs +1 -1
  90. package/dist/components/shared/ui/button/button.cjs +1 -1
  91. package/dist/components/shared/ui/button/index.cjs +1 -1
  92. package/dist/components/shared/ui/collapsible/collapsible.cjs +1 -1
  93. package/dist/components/shared/ui/collapsible/index.cjs +1 -1
  94. package/dist/components/shared/ui/dialog/dialog.cjs +1 -1
  95. package/dist/components/shared/ui/dialog/index.cjs +1 -1
  96. package/dist/components/shared/ui/icon.cjs +1 -1
  97. package/dist/components/shared/ui/logo.cjs +1 -1
  98. package/dist/components/shared/ui/preference-item/index.cjs +1 -1
  99. package/dist/components/shared/ui/preference-item/preference-item.cjs +1 -1
  100. package/dist/components/shared/ui/switch/index.cjs +1 -1
  101. package/dist/components/shared/ui/switch/switch.cjs +1 -1
  102. package/dist/components/shared/ui/tabs/index.cjs +1 -1
  103. package/dist/components/shared/ui/tabs/tabs.cjs +1 -1
  104. package/dist/context/consent-manager-context.cjs +1 -1
  105. package/dist/context/consent-tracking-context.cjs +1 -1
  106. package/dist/context/theme-context.cjs +1 -1
  107. package/dist/headless.cjs +1 -1
  108. package/dist/headless.js +1 -1
  109. package/dist/hooks/index.cjs +1 -1
  110. package/dist/hooks/index.js +1 -1
  111. package/dist/hooks/use-color-scheme.cjs +1 -1
  112. package/dist/hooks/use-component-config.cjs +1 -1
  113. package/dist/hooks/use-consent-dialog-trigger.cjs +1 -1
  114. package/dist/hooks/use-consent-manager.cjs +1 -1
  115. package/dist/hooks/use-consent-script.cjs +1 -0
  116. package/dist/hooks/use-consent-script.js +1 -0
  117. package/dist/hooks/use-focus-trap.cjs +1 -1
  118. package/dist/hooks/use-headless-consent-ui.cjs +1 -1
  119. package/dist/hooks/use-headless-iab-consent-ui.cjs +1 -1
  120. package/dist/hooks/use-reduced-motion.cjs +1 -1
  121. package/dist/hooks/use-scroll-lock.cjs +1 -1
  122. package/dist/hooks/use-ssr-status.cjs +1 -1
  123. package/dist/hooks/use-styles.cjs +1 -1
  124. package/dist/hooks/use-text-direction.cjs +1 -1
  125. package/dist/hooks/use-theme.cjs +1 -1
  126. package/dist/hooks/use-translations.cjs +1 -1
  127. package/dist/iab.cjs +1 -1
  128. package/dist/index.cjs +1 -1
  129. package/dist/index.js +1 -1
  130. package/dist/primitives/accordion.cjs +1 -1
  131. package/dist/primitives/button.cjs +1 -1
  132. package/dist/primitives/collapsible.cjs +1 -1
  133. package/dist/primitives/dialog.cjs +1 -1
  134. package/dist/primitives/preference-item.cjs +1 -1
  135. package/dist/primitives/switch.cjs +1 -1
  136. package/dist/primitives/tabs.cjs +1 -1
  137. package/dist/primitives.cjs +1 -1
  138. package/dist/providers/consent-manager-provider.cjs +1 -1
  139. package/dist/server/fetch-ssr-data.cjs +1 -1
  140. package/dist/server/fetch-ssr-data.js +1 -1
  141. package/dist/server/headers.cjs +1 -1
  142. package/dist/server/headers.js +1 -1
  143. package/dist/server/index.cjs +1 -1
  144. package/dist/server/init-cache-key.cjs +1 -1
  145. package/dist/server/normalize-url.cjs +1 -1
  146. package/dist/styles.tw3.css +1 -1
  147. package/dist/types/theme/index.cjs +1 -1
  148. package/dist/types/theme/style-types.cjs +1 -1
  149. package/dist/utils/cn.cjs +1 -1
  150. package/dist/utils/merge-styles.cjs +1 -1
  151. package/dist/utils/test-helpers.cjs +1 -1
  152. package/dist/utils/theme-utils.cjs +1 -1
  153. package/dist/version.cjs +1 -1
  154. package/dist/version.js +1 -1
  155. package/dist-types/components/consent-banner/components.d.ts +2 -2
  156. package/dist-types/components/consent-banner/policy-actions.d.ts +1 -1
  157. package/dist-types/components/consent-dialog/atoms/card.d.ts +5 -5
  158. package/dist-types/components/consent-dialog-trigger/atoms/toolbar.d.ts +22 -0
  159. package/dist-types/components/consent-dialog-trigger/consent-dialog-trigger-toolbar.d.ts +35 -0
  160. package/dist-types/components/consent-dialog-trigger/index.d.ts +2 -1
  161. package/dist-types/components/consent-dialog-trigger/types.d.ts +111 -6
  162. package/dist-types/components/consent-widget/atoms/accordion.d.ts +4 -4
  163. package/dist-types/components/consent-widget/consent-widget.d.ts +1 -1
  164. package/dist-types/components/consent-widget/policy-actions.d.ts +1 -1
  165. package/dist-types/components/integrations/google-map.d.ts +82 -0
  166. package/dist-types/components/integrations/index.d.ts +2 -0
  167. package/dist-types/components/integrations/shared.d.ts +12 -0
  168. package/dist-types/components/integrations/youtube-embed.d.ts +95 -0
  169. package/dist-types/components/shared/policy-actions.d.ts +1 -1
  170. package/dist-types/components/shared/primitives/button.d.ts +36 -2
  171. package/dist-types/components/shared/primitives/legal-links/index.d.ts +1 -1
  172. package/dist-types/components/shared/ui/accordion/accordion.d.ts +2 -2
  173. package/dist-types/components/shared/ui/branding.d.ts +3 -3
  174. package/dist-types/components/shared/ui/button/button.d.ts +1 -1
  175. package/dist-types/components/shared/ui/dialog/dialog.d.ts +1 -1
  176. package/dist-types/components/shared/ui/logo.d.ts +8 -8
  177. package/dist-types/headless.d.ts +1 -0
  178. package/dist-types/hooks/index.d.ts +1 -0
  179. package/dist-types/hooks/use-consent-script.d.ts +80 -0
  180. package/dist-types/index.d.ts +3 -1
  181. package/dist-types/providers/consent-manager-provider.d.ts +1 -1
  182. package/dist-types/server/headers.d.ts +1 -1
  183. package/dist-types/utils/theme-utils.d.ts +1 -1
  184. package/dist-types/version.d.ts +1 -1
  185. package/docs/README.md +155 -76
  186. package/docs/{building-headless-components.md → frameworks/react/building-headless-components.md} +3 -1
  187. package/docs/{callbacks.md → frameworks/react/callbacks.md} +3 -1
  188. package/docs/{components → frameworks/react/components}/consent-banner.md +10 -21
  189. package/docs/{components → frameworks/react/components}/consent-dialog-link.md +8 -5
  190. package/docs/frameworks/react/components/consent-dialog-trigger.md +202 -0
  191. package/docs/{components → frameworks/react/components}/consent-dialog.md +7 -15
  192. package/docs/frameworks/react/components/consent-manager-provider.md +228 -0
  193. package/docs/{components → frameworks/react/components}/consent-widget.md +8 -6
  194. package/docs/{components → frameworks/react/components}/dev-tools.md +9 -6
  195. package/docs/{components → frameworks/react/components}/frame.md +8 -9
  196. package/docs/{concepts → frameworks/react/concepts}/client-modes.md +4 -2
  197. package/docs/{concepts → frameworks/react/concepts}/consent-categories.md +1 -0
  198. package/docs/{concepts → frameworks/react/concepts}/consent-models.md +1 -0
  199. package/docs/{concepts → frameworks/react/concepts}/cookie-management.md +3 -3
  200. package/docs/{concepts → frameworks/react/concepts}/glossary.md +1 -0
  201. package/docs/{concepts → frameworks/react/concepts}/initialization-flow.md +1 -0
  202. package/docs/{concepts → frameworks/react/concepts}/policy-packs.md +1 -0
  203. package/docs/{headless.md → frameworks/react/headless.md} +3 -1
  204. package/docs/{hooks → frameworks/react/hooks}/use-color-scheme.md +1 -0
  205. package/docs/{hooks → frameworks/react/hooks}/use-consent-manager/checking-consent.md +3 -1
  206. package/docs/{hooks → frameworks/react/hooks}/use-consent-manager/location-info.md +3 -1
  207. package/docs/frameworks/react/hooks/use-consent-manager/overview.md +172 -0
  208. package/docs/{hooks → frameworks/react/hooks}/use-consent-manager/setting-consent.md +3 -1
  209. package/docs/{hooks → frameworks/react/hooks}/use-draggable.md +3 -1
  210. package/docs/{hooks → frameworks/react/hooks}/use-focus-trap.md +1 -0
  211. package/docs/{hooks → frameworks/react/hooks}/use-reduced-motion.md +3 -1
  212. package/docs/{hooks → frameworks/react/hooks}/use-ssr-status.md +6 -5
  213. package/docs/{hooks → frameworks/react/hooks}/use-text-direction.md +1 -0
  214. package/docs/frameworks/react/hooks/use-translations.md +55 -0
  215. package/docs/{iab → frameworks/react/iab}/consent-banner.md +9 -12
  216. package/docs/{iab → frameworks/react/iab}/consent-dialog.md +9 -14
  217. package/docs/{iab → frameworks/react/iab}/overview.md +4 -2
  218. package/docs/{iab → frameworks/react/iab}/use-gvl-data.md +3 -2
  219. package/docs/{iframe-blocking.md → frameworks/react/iframe-blocking.md} +8 -9
  220. package/docs/{internationalization.md → frameworks/react/internationalization.md} +13 -3
  221. package/docs/{network-blocker.md → frameworks/react/network-blocker.md} +13 -51
  222. package/docs/{optimization.md → frameworks/react/optimization.md} +3 -2
  223. package/docs/{policy-packs.md → frameworks/react/policy-packs.md} +3 -1
  224. package/docs/{quickstart.md → frameworks/react/quickstart.md} +26 -42
  225. package/docs/frameworks/react/script-loader.md +553 -0
  226. package/docs/{server-side.md → frameworks/react/server-side.md} +9 -4
  227. package/docs/{styling → frameworks/react/styling}/classnames.md +3 -1
  228. package/docs/{styling → frameworks/react/styling}/color-scheme.md +3 -1
  229. package/docs/frameworks/react/styling/css-variables.md +53 -0
  230. package/docs/frameworks/react/styling/overview.md +302 -0
  231. package/docs/frameworks/react/styling/slots.md +94 -0
  232. package/docs/{styling → frameworks/react/styling}/tailwind.md +3 -1
  233. package/docs/frameworks/react/styling/tokens.md +156 -0
  234. package/docs/{troubleshooting.md → frameworks/react/troubleshooting.md} +3 -1
  235. package/docs/integrations/adobe-analytics.md +160 -0
  236. package/docs/integrations/ahrefs-analytics.md +157 -0
  237. package/docs/integrations/amplitude.md +230 -0
  238. package/docs/integrations/building-integrations.md +15 -181
  239. package/docs/integrations/clearbit.md +130 -0
  240. package/docs/integrations/cloudflare-web-analytics.md +126 -0
  241. package/docs/integrations/crisp.md +140 -0
  242. package/docs/integrations/databuddy.md +152 -150
  243. package/docs/integrations/fathom-analytics.md +150 -0
  244. package/docs/integrations/google-maps.md +263 -0
  245. package/docs/integrations/google-tag-manager.md +102 -101
  246. package/docs/integrations/google-tag.md +104 -92
  247. package/docs/integrations/heap.md +219 -0
  248. package/docs/integrations/hightouch.md +199 -0
  249. package/docs/integrations/hotjar.md +143 -0
  250. package/docs/integrations/intercom.md +144 -0
  251. package/docs/integrations/linkedin-insights.md +142 -90
  252. package/docs/integrations/logrocket.md +175 -0
  253. package/docs/integrations/matomo-analytics.md +171 -0
  254. package/docs/integrations/meta-pixel.md +379 -309
  255. package/docs/integrations/microsoft-clarity.md +173 -0
  256. package/docs/integrations/microsoft-uet.md +135 -91
  257. package/docs/integrations/mixpanel-analytics.md +130 -0
  258. package/docs/integrations/overview.md +119 -75
  259. package/docs/integrations/pirsch.md +142 -0
  260. package/docs/integrations/plausible-analytics.md +154 -0
  261. package/docs/integrations/posthog.md +186 -127
  262. package/docs/integrations/promptwatch.md +121 -0
  263. package/docs/integrations/reddit-pixel.md +241 -0
  264. package/docs/integrations/rudderstack.md +271 -0
  265. package/docs/integrations/rybbit-analytics.md +143 -0
  266. package/docs/integrations/segment.md +146 -0
  267. package/docs/integrations/snapchat-pixel.md +163 -0
  268. package/docs/integrations/tiktok-pixel.md +101 -91
  269. package/docs/integrations/umami-analytics.md +148 -0
  270. package/docs/integrations/vercel-analytics.md +141 -0
  271. package/docs/integrations/x-pixel.md +123 -109
  272. package/docs/integrations/youtube.md +193 -0
  273. package/docs/shared/concepts/client-modes.md +103 -0
  274. package/docs/shared/concepts/consent-categories.md +41 -0
  275. package/docs/shared/concepts/consent-models.md +72 -0
  276. package/docs/shared/concepts/cookie-management.md +88 -0
  277. package/docs/shared/concepts/glossary.md +24 -0
  278. package/docs/shared/concepts/initialization-flow.md +105 -0
  279. package/docs/shared/concepts/policy-packs.md +225 -0
  280. package/docs/shared/react/components/consent-banner.md +242 -0
  281. package/docs/shared/react/components/consent-dialog-link.md +45 -0
  282. package/docs/shared/react/components/consent-dialog-trigger.md +185 -0
  283. package/docs/shared/react/components/consent-dialog.md +119 -0
  284. package/docs/shared/react/components/consent-manager-provider.md +183 -0
  285. package/docs/shared/react/components/consent-widget.md +121 -0
  286. package/docs/shared/react/components/dev-tools.md +81 -0
  287. package/docs/shared/react/components/frame.md +52 -0
  288. package/docs/shared/react/guides/building-headless-components.md +110 -0
  289. package/docs/shared/react/guides/callbacks.md +89 -0
  290. package/docs/shared/react/guides/headless.md +31 -0
  291. package/docs/shared/react/guides/iframe-blocking.md +65 -0
  292. package/docs/shared/react/guides/internationalization.md +123 -0
  293. package/docs/shared/react/guides/network-blocker.md +72 -0
  294. package/docs/shared/react/guides/optimization.md +44 -0
  295. package/docs/shared/react/guides/policy-packs.md +173 -0
  296. package/docs/shared/react/guides/script-loader.md +309 -0
  297. package/docs/shared/react/hooks/use-color-scheme.md +31 -0
  298. package/docs/shared/react/hooks/use-consent-manager/checking-consent.md +95 -0
  299. package/docs/shared/react/hooks/use-consent-manager/location-info.md +96 -0
  300. package/docs/shared/react/hooks/use-consent-manager/overview.md +74 -0
  301. package/docs/shared/react/hooks/use-consent-manager/setting-consent.md +93 -0
  302. package/docs/shared/react/hooks/use-draggable.md +30 -0
  303. package/docs/shared/react/hooks/use-focus-trap.md +20 -0
  304. package/docs/shared/react/hooks/use-reduced-motion.md +33 -0
  305. package/docs/shared/react/hooks/use-ssr-status.md +16 -0
  306. package/docs/shared/react/hooks/use-text-direction.md +38 -0
  307. package/docs/shared/react/hooks/use-translations.md +15 -0
  308. package/docs/shared/react/iab/consent-banner.md +60 -0
  309. package/docs/shared/react/iab/consent-dialog.md +76 -0
  310. package/docs/shared/react/iab/overview.md +80 -0
  311. package/docs/shared/react/iab/use-gvl-data.md +21 -0
  312. package/docs/shared/react/styling/classnames.md +93 -0
  313. package/docs/shared/react/styling/color-scheme.md +35 -0
  314. package/docs/shared/react/styling/css-variables.md +53 -0
  315. package/docs/shared/react/styling/overview.md +261 -0
  316. package/docs/shared/react/styling/slots.md +93 -0
  317. package/docs/shared/react/styling/stylesheet-entrypoint.md +8 -0
  318. package/docs/shared/react/styling/tailwind.md +88 -0
  319. package/docs/shared/react/styling/tokens.md +155 -0
  320. package/docs/shared/troubleshooting.md +82 -0
  321. package/package.json +23 -12
  322. package/readme.json +12 -7
  323. package/docs/ai-agents.md +0 -111
  324. package/docs/components/consent-dialog-trigger.md +0 -103
  325. package/docs/components/consent-manager-provider.md +0 -425
  326. package/docs/hooks/use-consent-manager/overview.md +0 -420
  327. package/docs/hooks/use-translations.md +0 -118
  328. package/docs/script-loader.md +0 -321
  329. package/docs/styling/css-variables.md +0 -92
  330. package/docs/styling/overview.md +0 -460
  331. package/docs/styling/slots.md +0 -128
  332. package/docs/styling/tokens.md +0 -216
@@ -0,0 +1,30 @@
1
+ ---
2
+ title: Use Draggable
3
+ description: Reference page for use draggable.
4
+ group: reference
5
+ ---
6
+ ## Options
7
+
8
+ |Option|Type|Default|Description|
9
+ |--|--|--|--|
10
+ |`defaultPosition`|`CornerPosition`|`'bottom-right'`|Initial corner position|
11
+ |`persistPosition`|`boolean`|`true`|Save position to localStorage|
12
+ |`onPositionChange`|`(position: CornerPosition) => void`|-|Callback on position change|
13
+
14
+ ## Return Value
15
+
16
+ |Property|Type|Description||||
17
+ |--|--|--|--|--|--|
18
+ |`corner`|`CornerPosition`|Current corner: `'top-left'`|`'top-right'`|`'bottom-left'`|`'bottom-right'`|
19
+ |`isDragging`|`boolean`|Whether the element is being dragged||||
20
+ |`isSnapping`|`boolean`|Whether the element is animating to a new corner||||
21
+ |`wasDragged`|`() => boolean`|Whether the last interaction was a drag (vs click)||||
22
+ |`handlers`|`object`|Pointer event handlers to spread onto the element||||
23
+ |`dragStyle`|`CSSProperties`|Transform style for drag offset||||
24
+
25
+ ## Behavior
26
+
27
+ * Drag starts on pointer down (left click / single touch)
28
+ * Movement threshold of 5px distinguishes drag from click
29
+ * On pointer up, element snaps to the nearest corner based on drag direction and velocity
30
+ * Position persists to localStorage by default
@@ -0,0 +1,20 @@
1
+ ---
2
+ title: Use Focus Trap
3
+ description: Reference page for use focus trap.
4
+ group: reference
5
+ ---
6
+ ## Parameters
7
+
8
+ |Parameter|Type|Description|
9
+ |--|--|--|
10
+ |`shouldTrap`|`boolean`|Whether focus should be trapped|
11
+ |`containerRef`|`RefObject<HTMLElement \|null> \|null`|Ref to the container element|
12
+
13
+ ## Behavior
14
+
15
+ * **Tab**: Moves focus to the next focusable element. Wraps to the first element when reaching the end.
16
+ * **Shift+Tab**: Moves focus to the previous focusable element. Wraps to the last element when reaching the start.
17
+ * Focus is restored to the previously focused element when the trap is deactivated.
18
+
19
+ > ℹ️ **Info:**
20
+ > ConsentBanner and ConsentDialog use useFocusTrap internally when trapFocus is enabled (default: true). You only need this hook when building custom consent UI.
@@ -0,0 +1,33 @@
1
+ ---
2
+ title: Use Reduced Motion
3
+ description: Reference page for use reduced motion.
4
+ group: reference
5
+ ---
6
+ `useReducedMotion()` reads the `prefers-reduced-motion: reduce` media query and reactively updates when the user's preference changes. Use it to conditionally skip animations for users who have enabled reduced motion in their OS accessibility settings.
7
+
8
+ The hook returns `false` during SSR to avoid hydration mismatches, then updates to the actual preference on the client.
9
+
10
+ ```tsx
11
+ import { useReducedMotion } from '@c15t/react/hooks';
12
+
13
+ function AnimatedBanner() {
14
+ const prefersReducedMotion = useReducedMotion();
15
+
16
+ return (
17
+ <div
18
+ style={{
19
+ transition: prefersReducedMotion ? 'none' : 'opacity 300ms ease',
20
+ opacity: 1,
21
+ }}
22
+ >
23
+ Consent banner content
24
+ </div>
25
+ );
26
+ }
27
+ ```
28
+
29
+ ## Return Value
30
+
31
+ |Type|Description|
32
+ |--|--|
33
+ |`boolean`|`true` if the user prefers reduced motion, `false` otherwise|
@@ -0,0 +1,16 @@
1
+ ---
2
+ title: Use SSR Status
3
+ description: Reference page for use ssr status.
4
+ group: reference
5
+ ---
6
+ ## Return Value
7
+
8
+ |Property|Value|
9
+ |:--|:--|
10
+ |Type Name|\`SSRStatus\`|
11
+ |Source Path|\`./packages/react/src/hooks/use-ssr-status.ts\`|
12
+
13
+ \*ExtractedTypeTable: Could not extract "SSRStatus" from "./packages/react/src/hooks/use-ssr-status.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
14
+
15
+ > ℹ️ **Info:**
16
+ > Must be used within a ConsentManagerProvider. Throws if used outside the provider context.
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: Use Text Direction
3
+ description: Reference page for use text direction.
4
+ group: reference
5
+ ---
6
+ `useTextDirection()` determines the correct text direction (`'ltr'` or `'rtl'`) based on the provided language and sets it on the document. It wraps the `@c15t/ui` text direction utilities as a React hook.
7
+
8
+ This is used internally by IAB components but is available for custom UI that needs to handle bidirectional text.
9
+
10
+ ```tsx
11
+ import { useTextDirection } from '@c15t/react/hooks';
12
+
13
+ function CustomConsentUI({ language }: { language: string }) {
14
+ const direction = useTextDirection(language);
15
+
16
+ return (
17
+ <div dir={direction}>
18
+ {/* Content renders correctly for RTL languages like Arabic and Hebrew */}
19
+ </div>
20
+ );
21
+ }
22
+ ```
23
+
24
+ ## Parameters
25
+
26
+ |Parameter|Type|Default|Description|
27
+ |--|--|--|--|
28
+ |`language`|`string \|undefined`|—|BCP 47 language tag (e.g. `'en'`, `'ar'`, `'he'`)|
29
+
30
+ ## Return Value
31
+
32
+ |Type|Description|
33
+ |--|--|
34
+ |`'ltr' \|'rtl'`|The text direction for the given language|
35
+
36
+ ## RTL Languages
37
+
38
+ The hook recognizes standard RTL languages including Arabic (`ar`), Hebrew (`he`), Persian (`fa`), and Urdu (`ur`), among others.
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: Use Translations
3
+ description: Reference page for use translations.
4
+ group: reference
5
+ ---
6
+ ## Translation Sections
7
+
8
+ The returned `Translations` object has these sections:
9
+
10
+ |Property|Value|
11
+ |:--|:--|
12
+ |Type Name|\`Translations\`|
13
+ |Source Path|\`./packages/translations/src/types.ts\`|
14
+
15
+ \*ExtractedTypeTable: Could not extract "Translations" from "./packages/translations/src/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
@@ -0,0 +1,60 @@
1
+ ---
2
+ title: Consent Banner
3
+ description: Reference page for consent banner.
4
+ group: reference
5
+ ---
6
+ > ℹ️ **Info:**
7
+ > c15t's IAB TCF support can be used in production. Use Inth for a hosted, IAB TCF-certified CMP setup with a managed CMP ID, or register your own CMP with IAB Europe and configure your own CMP ID.
8
+
9
+ `IABConsentBanner` is a pre-built consent banner that follows the [IAB Transparency & Consent Framework (TCF) 2.3](https://iabeurope.eu/tcf-2-0/) specification. It renders when the consent model is set to `'iab'` and includes required disclosures like partner count, purpose summaries, and legitimate interest notices.
10
+
11
+ Use this component instead of `ConsentBanner` when you need IAB TCF compliance for programmatic advertising in EU jurisdictions.
12
+
13
+ ## When to Use
14
+
15
+ * Your site participates in the IAB TCF ecosystem (ad exchanges, SSPs, DSPs)
16
+ * You need to disclose vendor partnerships and data processing purposes per IAB requirements
17
+ * The detected jurisdiction requires IAB TCF compliance (typically EU/EEA)
18
+
19
+ > ℹ️ **Info:**
20
+ > The banner only renders when IAB mode is enabled and the GVL (Global Vendor List) has been loaded. If iab.enabled is false or the server does not return GVL data, nothing is rendered.
21
+
22
+ ## Banner Content
23
+
24
+ The IAB banner automatically displays:
25
+
26
+ * **Title** — Heading text from IAB translations
27
+ * **Description** — Includes the partner count (e.g., "We and our \{partnerCount} partners...")
28
+ * **Partners link** — Clickable link that opens the vendor tab in the preference center
29
+ * **Purpose/stack list** — Up to 5 purpose/stack names summarizing data usage, with an "and X more" overflow
30
+ * **Legitimate interest notice** — Required IAB disclosure about legitimate interest processing
31
+ * **Scope notice** — Service-specific scope disclosure
32
+
33
+ ## Buttons
34
+
35
+ The banner includes three action buttons:
36
+
37
+ |Button|Action|
38
+ |--|--|
39
+ |**Reject All**|Rejects all IAB purposes and closes the banner|
40
+ |**Accept All**|Accepts all IAB purposes and closes the banner|
41
+ |**Customize**|Opens the IABConsentDialog purposes tab|
42
+
43
+ ### Primary Button
44
+
45
+ Highlight a specific button as the primary action:
46
+
47
+ ```tsx
48
+ <IABConsentBanner primaryButton="accept" />
49
+ ```
50
+
51
+ Options: `'reject'`, `'accept'`, `'customize'` (default: `'customize'`)
52
+
53
+ ## Props
54
+
55
+ |Property|Value|
56
+ |:--|:--|
57
+ |Type Name|\`IABConsentBannerProps\`|
58
+ |Source Path|\`./packages/react/src/components/iab-consent-banner/iab-consent-banner.tsx\`|
59
+
60
+ \*ExtractedTypeTable: Could not extract "IABConsentBannerProps" from "./packages/react/src/components/iab-consent-banner/iab-consent-banner.tsx" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
@@ -0,0 +1,76 @@
1
+ ---
2
+ title: Consent Dialog
3
+ description: Reference page for consent dialog.
4
+ group: reference
5
+ ---
6
+ > ℹ️ **Info:**
7
+ > c15t's IAB TCF support can be used in production. Use Inth for a hosted, IAB TCF-certified CMP setup with a managed CMP ID, or register your own CMP with IAB Europe and configure your own CMP ID.
8
+
9
+ `IABConsentDialog` is an IAB TCF 2.3 compliant consent dialog that provides a tabbed interface for managing purpose consent and vendor preferences. It includes purpose grouping via stacks, individual purpose/vendor toggles, special purpose and feature disclosures, and legitimate interest handling.
10
+
11
+ ## Tabs
12
+
13
+ The dialog has two tabs:
14
+
15
+ ### Purposes Tab
16
+
17
+ Displays all IAB purposes grouped into:
18
+
19
+ * **Standalone purposes** — Purpose 1 (Store and/or access information on a device) is always shown standalone per IAB TCF spec
20
+ * **Stacks** — Groups of related purposes determined by the GVL. Each stack is expandable to show individual purpose toggles
21
+ * **Special features** — Opt-in features like precise geolocation
22
+ * **Essential functions** — Special purposes and features that are locked (no user toggle) because they're required for basic operation
23
+
24
+ Each purpose shows:
25
+
26
+ * Name and description
27
+ * Number of vendors using this purpose
28
+ * Consent toggle (or lock icon for essential functions)
29
+ * Legitimate interest toggle where applicable
30
+ * Expandable vendor list
31
+
32
+ ### Vendors Tab
33
+
34
+ Displays all vendors from the GVL plus any custom vendors:
35
+
36
+ * Search and filter vendors
37
+ * Per-vendor consent and legitimate interest toggles
38
+ * Vendor details: privacy policy link, cookie usage, data retention
39
+ * Purpose and feature associations
40
+
41
+ ## Floating Trigger
42
+
43
+ Add a floating button so users can re-open the dialog after dismissing the banner. IAB TCF requires the preference center to be easily resurfaceable:
44
+
45
+ ```tsx
46
+ <IABConsentDialog showTrigger />
47
+
48
+ {/* Custom trigger options */}
49
+ <IABConsentDialog
50
+ showTrigger={{
51
+ icon: 'settings',
52
+ defaultPosition: 'bottom-left',
53
+ showWhen: 'after-consent',
54
+ size: 'sm',
55
+ }}
56
+ />
57
+ ```
58
+
59
+ ## Footer Actions
60
+
61
+ The dialog footer provides three buttons:
62
+
63
+ |Button|Action|
64
+ |--|--|
65
+ |**Reject All**|Rejects all purposes and vendors, closes dialog and banner|
66
+ |**Accept All**|Accepts all purposes and vendors, closes dialog and banner|
67
+ |**Save Settings**|Saves current selections, closes dialog and banner|
68
+
69
+ ## Props
70
+
71
+ |Property|Value|
72
+ |:--|:--|
73
+ |Type Name|\`IABConsentDialogProps\`|
74
+ |Source Path|\`./packages/react/src/components/iab-consent-dialog/iab-consent-dialog.tsx\`|
75
+
76
+ \*ExtractedTypeTable: Could not extract "IABConsentDialogProps" from "./packages/react/src/components/iab-consent-dialog/iab-consent-dialog.tsx" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
@@ -0,0 +1,80 @@
1
+ ---
2
+ title: Overview
3
+ description: Reference page for overview.
4
+ group: reference
5
+ ---
6
+ ## What is IAB TCF?
7
+
8
+ The [IAB Transparency & Consent Framework (TCF)](https://iabeurope.eu/tcf-2-0/) is a standardized protocol for communicating user consent choices to ad tech vendors in the programmatic advertising ecosystem. TCF 2.3 is the current version and is widely adopted across the EU/EEA.
9
+
10
+ When your site participates in the IAB ecosystem (ad exchanges, SSPs, DSPs, DMPs), you need to:
11
+
12
+ * Disclose which vendors process user data and for what purposes
13
+ * Collect granular consent for each IAB-defined purpose
14
+ * Generate a **TC String** — a standardized encoding of consent choices that ad tech vendors can read
15
+ * Expose the `__tcfapi` CMP stub for vendor scripts to query consent status
16
+
17
+ ## CMP Registration
18
+
19
+ [Inth](https://inth.com), c15t's hosted platform, is IAB TCF certified. When you use Inth as your backend with c15t's prebuilt IAB UI, the correct CMP ID is automatically provided to your client via the `/init` endpoint — no client-side configuration needed.
20
+
21
+ If you self-host the c15t backend or want to operate as your own CMP, register your own CMP with IAB Europe and configure your CMP ID on the backend via `advanced.iab.cmpId` or on the client via the `iab.cmpId` option. Registering your own CMP may also involve IAB Europe fees, so check IAB Europe's current CMP registration terms and pricing before choosing this route. A valid (non-zero) CMP ID is required for IAB TCF compliance.
22
+
23
+ > ⚠️ **Warning:**
24
+ > If you heavily customize or build your own IAB banner or dialog instead of using the default IABConsentBanner and IABConsentDialog components, you cannot use Inth's CMP ID. You must register your own CMP with IAB Europe and use your own CMP ID.
25
+
26
+ ## How c15t Implements TCF
27
+
28
+ c15t provides a complete IAB TCF 2.3 CMP (Consent Management Platform) implementation:
29
+
30
+ 1. **Global Vendor List (GVL)** — Automatically fetched from the c15t backend. Contains the official IAB vendor registry with purposes, features, and stacks.
31
+ 2. **IABConsentBanner** — A pre-built banner showing partner count, purpose summaries, and legitimate interest notices.
32
+ 3. **IABConsentDialog** — A tabbed preference center for granular purpose and vendor consent management.
33
+ 4. **TC String generation** — Consent choices are encoded into the standard TC String format.
34
+ 5. **`__tcfapi` stub** — The standard CMP API is exposed on `window` so vendor scripts can query consent.
35
+
36
+ If you use the prebuilt styled IAB UI, add your framework's `iab/styles.css` entrypoint alongside the base c15t stylesheet. IAB CSS is published separately so apps that do not render IAB surfaces do not ship those component rules.
37
+
38
+ ## IAB Configuration Options
39
+
40
+ Configure IAB mode with `iab({ ... })` from `@c15t/iab`. The factory enables the addon and injects the runtime module automatically. The user-facing options are:
41
+
42
+ |Option|Type|Description|
43
+ |--|--|--|
44
+ |`cmpId`|`number`|CMP ID registered with IAB Europe. Automatically provided by the backend when using Inth with the prebuilt IAB UI. Only set this if you have your own CMP registration.|
45
+ |`vendors`|`number[]`|IAB vendor IDs that your site works with|
46
+ |`customVendors`|`NonIABVendor[]`|Custom vendors not in the IAB registry|
47
+
48
+ ## Key Concepts
49
+
50
+ ### Purposes
51
+
52
+ IAB defines 11 standard purposes for data processing (e.g., "Store and/or access information on a device", "Select basic ads", "Measure ad performance"). Each purpose can be consented to individually.
53
+
54
+ ### Stacks
55
+
56
+ Purposes are grouped into **stacks** by the GVL for a simplified UI presentation. For example, "Advertising based on limited data" might group purposes 2, 7, and 10 together.
57
+
58
+ ### Special Features
59
+
60
+ Features like precise geolocation or device scanning that require explicit opt-in beyond standard consent.
61
+
62
+ ### Legitimate Interest
63
+
64
+ Some purposes can be processed under legitimate interest rather than consent. Users can object to legitimate interest processing per-vendor.
65
+
66
+ ### Vendors
67
+
68
+ Each vendor in the GVL declares which purposes it uses, whether via consent or legitimate interest. The preference center lets users toggle consent per-vendor.
69
+
70
+ ## Standard vs IAB Components
71
+
72
+ |Feature|ConsentBanner / ConsentDialog|IABConsentBanner / IABConsentDialog|
73
+ |--|--|--|
74
+ |Consent model|opt-in / opt-out|IAB TCF 2.3|
75
+ |Granularity|Category-level (measurement, marketing, etc.)|Purpose-level + vendor-level|
76
+ |Vendor management|No|Yes (full GVL integration)|
77
+ |TC String|No|Yes|
78
+ |`__tcfapi`|No|Yes|
79
+ |Legitimate interest|No|Yes|
80
+ |Use when|General GDPR/CCPA compliance|Programmatic advertising in EU/EEA|
@@ -0,0 +1,21 @@
1
+ ---
2
+ title: Use GVL Data
3
+ description: Reference page for use gvl data.
4
+ group: reference
5
+ ---
6
+ > ⚠️ **Warning:**
7
+ > c15t's IAB TCF support can be used in production through Inth or with your own registered CMP ID. useGVLData() is different: it remains an internal hook and is not part of the supported public API.
8
+
9
+ `useGVLData()` currently powers the built-in `IABConsentDialog`, but it is **not part of the public package surface**.
10
+
11
+ Older docs showed it as a public hook. That is no longer accurate.
12
+
13
+ If you need supported customization points today:
14
+
15
+ * Use `IABConsentBanner` and `IABConsentDialog` from `@c15t/react/iab` for the supported prebuilt UI
16
+ * Use `useHeadlessIABConsentUI()` from `@c15t/react/iab` when you need lower-level control over banner/dialog state and actions
17
+
18
+ > ⚠️ **Warning:**
19
+ > Until useGVLData() is exported as public API, avoid importing it from deep internal paths. Those paths are not covered by semver guarantees and can change without notice.
20
+
21
+ When a public GVL-focused hook becomes part of the supported API, this page should document that public surface instead of the internal dialog hook.
@@ -0,0 +1,93 @@
1
+ ---
2
+ title: Classnames
3
+ description: Reference page for classnames.
4
+ group: reference
5
+ ---
6
+ ## Prefer Slots for Stock Components
7
+
8
+ There is no single top-level `className` contract across every pre-built consent component.
9
+
10
+ For the stock `ConsentBanner`, `ConsentDialog`, and `ConsentWidget`, prefer `theme.slots` first. That keeps the markup intact and lets you target the exact part you need.
11
+
12
+ ## Per-Slot className
13
+
14
+ Target individual component parts via the theme's `slots` object. Each slot accepts a string (className) or an object with `className` and `style`:
15
+
16
+ ```tsx
17
+ const theme = {
18
+ slots: {
19
+ consentBannerTitle: 'text-xl font-semibold',
20
+ consentBannerDescription: 'text-sm text-gray-600',
21
+ consentBannerFooter: 'flex gap-3',
22
+ buttonPrimary: 'rounded-full px-6',
23
+ },
24
+ } satisfies Theme;
25
+ ```
26
+
27
+ ## Combining with CSS Modules
28
+
29
+ ```tsx
30
+ import styles from './consent.module.css';
31
+
32
+ const theme = {
33
+ slots: {
34
+ consentBannerCard: styles.bannerCard,
35
+ consentBannerTitle: styles.bannerTitle,
36
+ buttonPrimary: styles.primaryButton,
37
+ },
38
+ } satisfies Theme;
39
+ ```
40
+
41
+ ```css title="consent.module.css"
42
+ .bannerCard {
43
+ backdrop-filter: blur(12px);
44
+ background: rgba(255, 255, 255, 0.9);
45
+ }
46
+
47
+ .bannerTitle {
48
+ font-size: 1.25rem;
49
+ font-weight: 700;
50
+ }
51
+
52
+ .primaryButton {
53
+ border-radius: 9999px;
54
+ text-transform: uppercase;
55
+ letter-spacing: 0.05em;
56
+ }
57
+ ```
58
+
59
+ ## When to Use Raw className
60
+
61
+ Use raw className-level styling when:
62
+
63
+ * your styling system is already class-driven
64
+ * tokens are too broad for the change
65
+ * slots already identify the correct element
66
+
67
+ If the request is "make the banner footer darker", prefer `theme.colors.surfaceHover` first. If the request is "add a border and spacing only to the footer", prefer `theme.slots.consentBannerFooter`.
68
+
69
+ ## Advanced: `noStyle`
70
+
71
+ Use `noStyle` only when you want to remove defaults and style from scratch while still keeping c15t's component structure:
72
+
73
+ ```tsx
74
+ {/* Remove all styles from a specific component */}
75
+ <ConsentBanner noStyle />
76
+
77
+ {/* Remove all styles globally */}
78
+ <ConsentManagerProvider options={{ noStyle: true, ... }}>
79
+ ```
80
+
81
+ You can also set `noStyle` per-slot:
82
+
83
+ ```tsx
84
+ const theme = {
85
+ slots: {
86
+ consentBannerCard: { noStyle: true, className: 'my-custom-card' },
87
+ },
88
+ } satisfies Theme;
89
+ ```
90
+
91
+ Treat `noStyle` as an advanced escape hatch. Do not jump to it just because a token or slot needs debugging.
92
+
93
+ For full custom markup and behavior, continue to [Headless Mode](../headless).
@@ -0,0 +1,35 @@
1
+ ---
2
+ title: Color Scheme
3
+ description: Reference page for color scheme.
4
+ group: reference
5
+ ---
6
+ c15t supports light and dark mode through the theme's `colors` and `dark` token groups. The active color scheme is determined by one of three methods:
7
+
8
+ 1. **Explicit setting** via the `colorScheme` option
9
+ 2. **CSS class detection** - c15t checks for `.dark` on the document element
10
+ 3. **System preference** - matches `prefers-color-scheme` media query
11
+
12
+ |Value|Behavior|
13
+ |--|--|
14
+ |`'light'`|Force light mode|
15
+ |`'dark'`|Force dark mode|
16
+ |`'system'`|Follow `prefers-color-scheme` media query|
17
+ |`null`|Disable - c15t won't manage color scheme|
18
+
19
+ ## How Dark Mode Works
20
+
21
+ When dark mode is active, c15t applies the `dark` token values as CSS variable overrides. Only tokens specified in `dark` are overridden - unset tokens fall back to the `colors` values. This also applies to `textOnPrimary`: if you omit it, c15t derives a readable foreground from the active `primary` color in that scheme.
22
+
23
+ ```tsx
24
+ const theme = {
25
+ colors: {
26
+ surface: '#ffffff', // Light mode
27
+ text: '#1f2937', // Light mode
28
+ },
29
+ dark: {
30
+ surface: '#1f2937', // Dark mode override
31
+ text: '#f9fafb', // Dark mode override
32
+ // primary is NOT set - inherits from colors.primary
33
+ },
34
+ } satisfies Theme;
35
+ ```
@@ -0,0 +1,53 @@
1
+ ---
2
+ title: CSS Variables
3
+ description: Reference page for css variables.
4
+ group: reference
5
+ ---
6
+ Every theme token is converted to a `--c15t-*` CSS custom property at runtime. You can override these variables in your stylesheet without using the JavaScript theme API.
7
+
8
+ ## Variable Reference
9
+
10
+ |Property|Value|
11
+ |:--|:--|
12
+ |Type Name|\`ThemeCSSVariables\`|
13
+ |Source Path|\`./packages/ui/src/theme/types.ts\`|
14
+
15
+ \*ExtractedTypeTable: Could not extract "ThemeCSSVariables" from "./packages/ui/src/theme/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
16
+
17
+ ## Overriding Variables
18
+
19
+ Override in your stylesheet:
20
+
21
+ ```css
22
+ :root {
23
+ --c15t-primary: #8b5cf6;
24
+ --c15t-surface: #fafafa;
25
+ --c15t-radius-md: 1rem;
26
+ }
27
+
28
+ /* Dark mode overrides */
29
+ .dark,
30
+ .c15t-dark {
31
+ --c15t-primary: #a78bfa;
32
+ --c15t-surface: #18181b;
33
+ --c15t-text: #fafafa;
34
+ }
35
+ ```
36
+
37
+ ## Scoped Overrides
38
+
39
+ Target specific components by scoping variables:
40
+
41
+ ```tsx
42
+ <div className="checkout-consent">
43
+ <ConsentBanner />
44
+ </div>
45
+ ```
46
+
47
+ ```css
48
+ /* Only affect c15t components inside .checkout-consent */
49
+ .checkout-consent {
50
+ --c15t-surface: #f0f9ff;
51
+ --c15t-radius-lg: 1.5rem;
52
+ }
53
+ ```