{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "openlabs-so-oa-design--port-open-analytics-tokens-and-springs",
 "repo": "OpenLabs-so/oa-design",
 "repo_url": "https://github.com/OpenLabs-so/oa-design",
 "repo_slug": "openlabs-so-oa-design",
 "title": "Port the token CSS and spring constants to your stack",
 "page_title": "How to port the token CSS and spring constants to your stack with Oa Design",
 "summary": "Reuse the colours, radii, easing and seven springs in a project that already has its own design system.",
 "who": "A team with an existing design system that wants the Open Analytics motion and surface values without adopting its components.",
 "problem": "Matching the feel of a product means knowing exact radii, easing and spring values, which are often not written down.",
 "outcome": "Your design system uses the token CSS and spring constants from Oa Design, with your own components kept as they are.",
 "steps": [
  "Run `npx getopen-design tokens` in your project to get the token CSS.",
  "Open components/_lib in the cloned repository to find the seven springs as constants.",
  "Copy the spring values and token variables into your design system, mapping them to your own names.",
  "Ask your agent to replace hard-coded radii and easing in one component with these tokens.",
  "Check that existing components still render the same."
 ],
 "agent_prompt": "From the repo OpenLabs-so/oa-design, take the token CSS and spring constants and map them into the design system in <design-system-path> without changing its components. Expected output: a mapping file and updated values in one component. Verify that the component renders and the springs match the constants in components/_lib.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README says the values are plain CSS numbers and spring constants written against motion, so non-React systems must translate the spring model themselves.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "npm, for the npx commands",
  "git, for cloning the repository",
  "A React and Tailwind v4 project, which the values were written against (the README says the values are plain CSS and can be ported)",
  "A coding agent such as Claude Code, Cursor, or Codex, if you want the agent to apply the design"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/openlabs-so-oa-design/port-open-analytics-tokens-and-springs/",
 "md": "https://dedupedai.com/use-cases/openlabs-so-oa-design/port-open-analytics-tokens-and-springs/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/openlabs-so-oa-design--port-open-analytics-tokens-and-springs.json",
 "api_version": "v1"
}
