@aexol/spectral 0.9.269 → 0.9.271

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 (573) hide show
  1. package/dist/agent/index.d.ts +10 -1
  2. package/dist/agent/index.d.ts.map +1 -1
  3. package/dist/agent/index.js +26 -10
  4. package/dist/commands/serve.d.ts.map +1 -1
  5. package/dist/commands/serve.js +29 -5
  6. package/dist/commands/update.d.ts +2 -2
  7. package/dist/commands/update.js +3 -3
  8. package/dist/designer/index.d.ts +13 -18
  9. package/dist/designer/index.d.ts.map +1 -1
  10. package/dist/designer/index.js +128 -201
  11. package/dist/extensions/aexol-mcp.d.ts.map +1 -1
  12. package/dist/extensions/aexol-mcp.js +23 -0
  13. package/dist/extensions/dataset-uploader/cleaner.js +1 -1
  14. package/dist/extensions/dataset-uploader/scrubber.d.ts +2 -0
  15. package/dist/extensions/dataset-uploader/scrubber.d.ts.map +1 -1
  16. package/dist/extensions/dataset-uploader/scrubber.js +30 -1
  17. package/dist/generated/zeus/index.d.ts +0 -4
  18. package/dist/generated/zeus/index.d.ts.map +1 -1
  19. package/dist/memory/debug-log.d.ts.map +1 -1
  20. package/dist/memory/debug-log.js +20 -2
  21. package/dist/memory/tools/compact-context.d.ts +1 -1
  22. package/dist/memory/tools/compact-context.d.ts.map +1 -1
  23. package/dist/memory/tools/compact-context.js +4 -1
  24. package/dist/memory/tools/recall-observation.d.ts +3 -3
  25. package/dist/memory/tools/recall-observation.d.ts.map +1 -1
  26. package/dist/memory/tools/recall-observation.js +4 -1
  27. package/dist/memory/tools/receive-agent-observations.d.ts +3 -3
  28. package/dist/memory/tools/receive-agent-observations.d.ts.map +1 -1
  29. package/dist/memory/tools/receive-agent-observations.js +4 -1
  30. package/dist/memory/tools/share-project-observation.d.ts +3 -3
  31. package/dist/memory/tools/share-project-observation.d.ts.map +1 -1
  32. package/dist/memory/tools/share-project-observation.js +4 -1
  33. package/dist/memory/tools/write-project-observation.d.ts +3 -3
  34. package/dist/memory/tools/write-project-observation.d.ts.map +1 -1
  35. package/dist/memory/tools/write-project-observation.js +4 -1
  36. package/dist/relay/client.d.ts.map +1 -1
  37. package/dist/relay/client.js +5 -2
  38. package/dist/sdk/ai/env-api-keys.js +1 -1
  39. package/dist/sdk/coding-agent/core/extensions/loader.d.ts.map +1 -1
  40. package/dist/sdk/coding-agent/core/extensions/loader.js +31 -3
  41. package/dist/sdk/coding-agent/core/theme.js +1 -1
  42. package/dist/server/handlers/agent-settings.d.ts.map +1 -1
  43. package/dist/server/handlers/agent-settings.js +4 -1
  44. package/dist/server/handlers/settings-lock.d.ts.map +1 -1
  45. package/dist/server/handlers/settings-lock.js +4 -1
  46. package/dist/server/storage.d.ts.map +1 -1
  47. package/dist/server/storage.js +13 -1
  48. package/dist/utils/serve-state.d.ts +17 -0
  49. package/dist/utils/serve-state.d.ts.map +1 -1
  50. package/dist/utils/serve-state.js +73 -0
  51. package/package.json +1 -1
  52. package/dist/designer/data/skills/blog-post.d.ts +0 -3
  53. package/dist/designer/data/skills/blog-post.d.ts.map +0 -1
  54. package/dist/designer/data/skills/blog-post.js +0 -84
  55. package/dist/designer/data/skills/blog-post.ts +0 -87
  56. package/dist/designer/data/skills/critique.d.ts +0 -3
  57. package/dist/designer/data/skills/critique.d.ts.map +0 -1
  58. package/dist/designer/data/skills/critique.js +0 -109
  59. package/dist/designer/data/skills/critique.ts +0 -112
  60. package/dist/designer/data/skills/dashboard.d.ts +0 -3
  61. package/dist/designer/data/skills/dashboard.d.ts.map +0 -1
  62. package/dist/designer/data/skills/dashboard.js +0 -165
  63. package/dist/designer/data/skills/dashboard.ts +0 -168
  64. package/dist/designer/data/skills/design-brief.d.ts +0 -3
  65. package/dist/designer/data/skills/design-brief.d.ts.map +0 -1
  66. package/dist/designer/data/skills/design-brief.js +0 -141
  67. package/dist/designer/data/skills/design-brief.ts +0 -144
  68. package/dist/designer/data/skills/design-skill.d.ts +0 -10
  69. package/dist/designer/data/skills/design-skill.d.ts.map +0 -1
  70. package/dist/designer/data/skills/design-skill.js +0 -1
  71. package/dist/designer/data/skills/design-skill.ts +0 -9
  72. package/dist/designer/data/skills/docs-page.d.ts +0 -3
  73. package/dist/designer/data/skills/docs-page.d.ts.map +0 -1
  74. package/dist/designer/data/skills/docs-page.js +0 -68
  75. package/dist/designer/data/skills/docs-page.ts +0 -71
  76. package/dist/designer/data/skills/index.d.ts +0 -3
  77. package/dist/designer/data/skills/index.d.ts.map +0 -1
  78. package/dist/designer/data/skills/index.js +0 -28
  79. package/dist/designer/data/skills/index.ts +0 -30
  80. package/dist/designer/data/skills/magazine-poster.d.ts +0 -3
  81. package/dist/designer/data/skills/magazine-poster.d.ts.map +0 -1
  82. package/dist/designer/data/skills/magazine-poster.js +0 -70
  83. package/dist/designer/data/skills/magazine-poster.ts +0 -73
  84. package/dist/designer/data/skills/mobile-app.d.ts +0 -3
  85. package/dist/designer/data/skills/mobile-app.d.ts.map +0 -1
  86. package/dist/designer/data/skills/mobile-app.js +0 -229
  87. package/dist/designer/data/skills/mobile-app.ts +0 -232
  88. package/dist/designer/data/skills/motion-frames.d.ts +0 -3
  89. package/dist/designer/data/skills/motion-frames.d.ts.map +0 -1
  90. package/dist/designer/data/skills/motion-frames.js +0 -121
  91. package/dist/designer/data/skills/motion-frames.ts +0 -124
  92. package/dist/designer/data/skills/pricing-page.d.ts +0 -3
  93. package/dist/designer/data/skills/pricing-page.d.ts.map +0 -1
  94. package/dist/designer/data/skills/pricing-page.js +0 -76
  95. package/dist/designer/data/skills/pricing-page.ts +0 -79
  96. package/dist/designer/data/skills/saas-landing.d.ts +0 -3
  97. package/dist/designer/data/skills/saas-landing.d.ts.map +0 -1
  98. package/dist/designer/data/skills/saas-landing.js +0 -71
  99. package/dist/designer/data/skills/saas-landing.ts +0 -74
  100. package/dist/designer/data/skills/slide-deck.d.ts +0 -3
  101. package/dist/designer/data/skills/slide-deck.d.ts.map +0 -1
  102. package/dist/designer/data/skills/slide-deck.js +0 -213
  103. package/dist/designer/data/skills/slide-deck.ts +0 -216
  104. package/dist/designer/data/skills/social-carousel.d.ts +0 -3
  105. package/dist/designer/data/skills/social-carousel.d.ts.map +0 -1
  106. package/dist/designer/data/skills/social-carousel.js +0 -135
  107. package/dist/designer/data/skills/social-carousel.ts +0 -138
  108. package/dist/designer/data/skills/web-prototype.d.ts +0 -3
  109. package/dist/designer/data/skills/web-prototype.d.ts.map +0 -1
  110. package/dist/designer/data/skills/web-prototype.js +0 -159
  111. package/dist/designer/data/skills/web-prototype.ts +0 -162
  112. package/dist/designer/data/systems/agentic/DESIGN.md +0 -71
  113. package/dist/designer/data/systems/agentic/components.html +0 -154
  114. package/dist/designer/data/systems/agentic/tokens.css +0 -63
  115. package/dist/designer/data/systems/airbnb/DESIGN.md +0 -393
  116. package/dist/designer/data/systems/airbnb/components.html +0 -1373
  117. package/dist/designer/data/systems/airbnb/tokens.css +0 -261
  118. package/dist/designer/data/systems/airtable/DESIGN.md +0 -92
  119. package/dist/designer/data/systems/airtable/components.html +0 -489
  120. package/dist/designer/data/systems/airtable/tokens.css +0 -261
  121. package/dist/designer/data/systems/ant/DESIGN.md +0 -71
  122. package/dist/designer/data/systems/ant/components.html +0 -154
  123. package/dist/designer/data/systems/ant/tokens.css +0 -63
  124. package/dist/designer/data/systems/apple/DESIGN.md +0 -250
  125. package/dist/designer/data/systems/apple/components.html +0 -749
  126. package/dist/designer/data/systems/apple/tokens.css +0 -286
  127. package/dist/designer/data/systems/application/DESIGN.md +0 -71
  128. package/dist/designer/data/systems/application/components.html +0 -154
  129. package/dist/designer/data/systems/application/tokens.css +0 -63
  130. package/dist/designer/data/systems/arc/DESIGN.md +0 -152
  131. package/dist/designer/data/systems/arc/components.html +0 -432
  132. package/dist/designer/data/systems/arc/tokens.css +0 -137
  133. package/dist/designer/data/systems/artistic/DESIGN.md +0 -71
  134. package/dist/designer/data/systems/artistic/components.html +0 -136
  135. package/dist/designer/data/systems/artistic/tokens.css +0 -63
  136. package/dist/designer/data/systems/atelier-zero/DESIGN.md +0 -316
  137. package/dist/designer/data/systems/atelier-zero/components.html +0 -136
  138. package/dist/designer/data/systems/atelier-zero/tokens.css +0 -63
  139. package/dist/designer/data/systems/bento/DESIGN.md +0 -71
  140. package/dist/designer/data/systems/bento/components.html +0 -136
  141. package/dist/designer/data/systems/bento/tokens.css +0 -63
  142. package/dist/designer/data/systems/binance/DESIGN.md +0 -348
  143. package/dist/designer/data/systems/binance/components.html +0 -550
  144. package/dist/designer/data/systems/binance/tokens.css +0 -255
  145. package/dist/designer/data/systems/bmw/DESIGN.md +0 -183
  146. package/dist/designer/data/systems/bmw/components.html +0 -551
  147. package/dist/designer/data/systems/bmw/tokens.css +0 -179
  148. package/dist/designer/data/systems/bmw-m/DESIGN.md +0 -246
  149. package/dist/designer/data/systems/bmw-m/components.html +0 -342
  150. package/dist/designer/data/systems/bmw-m/tokens.css +0 -64
  151. package/dist/designer/data/systems/bold/DESIGN.md +0 -71
  152. package/dist/designer/data/systems/bold/components.html +0 -136
  153. package/dist/designer/data/systems/bold/tokens.css +0 -63
  154. package/dist/designer/data/systems/brutalism/DESIGN.md +0 -71
  155. package/dist/designer/data/systems/brutalism/components.html +0 -154
  156. package/dist/designer/data/systems/brutalism/tokens.css +0 -63
  157. package/dist/designer/data/systems/bugatti/DESIGN.md +0 -271
  158. package/dist/designer/data/systems/bugatti/components.html +0 -342
  159. package/dist/designer/data/systems/bugatti/tokens.css +0 -64
  160. package/dist/designer/data/systems/cafe/DESIGN.md +0 -71
  161. package/dist/designer/data/systems/cafe/components.html +0 -136
  162. package/dist/designer/data/systems/cafe/tokens.css +0 -63
  163. package/dist/designer/data/systems/cal/DESIGN.md +0 -262
  164. package/dist/designer/data/systems/cal/components.html +0 -376
  165. package/dist/designer/data/systems/cal/tokens.css +0 -265
  166. package/dist/designer/data/systems/canva/DESIGN.md +0 -157
  167. package/dist/designer/data/systems/canva/components.html +0 -461
  168. package/dist/designer/data/systems/canva/tokens.css +0 -147
  169. package/dist/designer/data/systems/cisco/DESIGN.md +0 -201
  170. package/dist/designer/data/systems/cisco/components.html +0 -342
  171. package/dist/designer/data/systems/cisco/tokens.css +0 -64
  172. package/dist/designer/data/systems/claude/DESIGN.md +0 -315
  173. package/dist/designer/data/systems/claude/components.html +0 -483
  174. package/dist/designer/data/systems/claude/tokens.css +0 -130
  175. package/dist/designer/data/systems/clay/DESIGN.md +0 -307
  176. package/dist/designer/data/systems/clay/components.html +0 -136
  177. package/dist/designer/data/systems/clay/tokens.css +0 -63
  178. package/dist/designer/data/systems/claymorphism/DESIGN.md +0 -71
  179. package/dist/designer/data/systems/claymorphism/components.html +0 -136
  180. package/dist/designer/data/systems/claymorphism/tokens.css +0 -63
  181. package/dist/designer/data/systems/clean/DESIGN.md +0 -71
  182. package/dist/designer/data/systems/clean/components.html +0 -136
  183. package/dist/designer/data/systems/clean/tokens.css +0 -63
  184. package/dist/designer/data/systems/clickhouse/DESIGN.md +0 -284
  185. package/dist/designer/data/systems/clickhouse/components.html +0 -506
  186. package/dist/designer/data/systems/clickhouse/tokens.css +0 -135
  187. package/dist/designer/data/systems/cohere/DESIGN.md +0 -269
  188. package/dist/designer/data/systems/cohere/components.html +0 -353
  189. package/dist/designer/data/systems/cohere/tokens.css +0 -126
  190. package/dist/designer/data/systems/coinbase/DESIGN.md +0 -132
  191. package/dist/designer/data/systems/coinbase/components.html +0 -501
  192. package/dist/designer/data/systems/coinbase/tokens.css +0 -257
  193. package/dist/designer/data/systems/colorful/DESIGN.md +0 -71
  194. package/dist/designer/data/systems/colorful/components.html +0 -136
  195. package/dist/designer/data/systems/colorful/tokens.css +0 -63
  196. package/dist/designer/data/systems/composio/DESIGN.md +0 -310
  197. package/dist/designer/data/systems/composio/components.html +0 -342
  198. package/dist/designer/data/systems/composio/tokens.css +0 -64
  199. package/dist/designer/data/systems/contemporary/DESIGN.md +0 -71
  200. package/dist/designer/data/systems/contemporary/components.html +0 -136
  201. package/dist/designer/data/systems/contemporary/tokens.css +0 -63
  202. package/dist/designer/data/systems/corporate/DESIGN.md +0 -71
  203. package/dist/designer/data/systems/corporate/components.html +0 -136
  204. package/dist/designer/data/systems/corporate/tokens.css +0 -63
  205. package/dist/designer/data/systems/cosmic/DESIGN.md +0 -71
  206. package/dist/designer/data/systems/cosmic/components.html +0 -136
  207. package/dist/designer/data/systems/cosmic/tokens.css +0 -63
  208. package/dist/designer/data/systems/creative/DESIGN.md +0 -71
  209. package/dist/designer/data/systems/creative/components.html +0 -136
  210. package/dist/designer/data/systems/creative/tokens.css +0 -63
  211. package/dist/designer/data/systems/cursor/DESIGN.md +0 -312
  212. package/dist/designer/data/systems/cursor/components.html +0 -654
  213. package/dist/designer/data/systems/cursor/tokens.css +0 -218
  214. package/dist/designer/data/systems/dashboard/DESIGN.md +0 -71
  215. package/dist/designer/data/systems/dashboard/components.html +0 -154
  216. package/dist/designer/data/systems/dashboard/tokens.css +0 -63
  217. package/dist/designer/data/systems/default/DESIGN.md +0 -62
  218. package/dist/designer/data/systems/default/components.html +0 -523
  219. package/dist/designer/data/systems/default/tokens.css +0 -200
  220. package/dist/designer/data/systems/discord/DESIGN.md +0 -162
  221. package/dist/designer/data/systems/discord/components.html +0 -359
  222. package/dist/designer/data/systems/discord/tokens.css +0 -125
  223. package/dist/designer/data/systems/dithered/DESIGN.md +0 -71
  224. package/dist/designer/data/systems/dithered/components.html +0 -136
  225. package/dist/designer/data/systems/dithered/tokens.css +0 -63
  226. package/dist/designer/data/systems/doodle/DESIGN.md +0 -71
  227. package/dist/designer/data/systems/doodle/components.html +0 -136
  228. package/dist/designer/data/systems/doodle/tokens.css +0 -63
  229. package/dist/designer/data/systems/dramatic/DESIGN.md +0 -71
  230. package/dist/designer/data/systems/dramatic/components.html +0 -136
  231. package/dist/designer/data/systems/dramatic/tokens.css +0 -63
  232. package/dist/designer/data/systems/duolingo/DESIGN.md +0 -154
  233. package/dist/designer/data/systems/duolingo/components.html +0 -532
  234. package/dist/designer/data/systems/duolingo/tokens.css +0 -130
  235. package/dist/designer/data/systems/editorial/DESIGN.md +0 -71
  236. package/dist/designer/data/systems/editorial/components.html +0 -154
  237. package/dist/designer/data/systems/editorial/tokens.css +0 -63
  238. package/dist/designer/data/systems/elegant/DESIGN.md +0 -71
  239. package/dist/designer/data/systems/elegant/components.html +0 -136
  240. package/dist/designer/data/systems/elegant/tokens.css +0 -63
  241. package/dist/designer/data/systems/elevenlabs/DESIGN.md +0 -268
  242. package/dist/designer/data/systems/elevenlabs/components.html +0 -342
  243. package/dist/designer/data/systems/elevenlabs/tokens.css +0 -127
  244. package/dist/designer/data/systems/energetic/DESIGN.md +0 -72
  245. package/dist/designer/data/systems/energetic/components.html +0 -136
  246. package/dist/designer/data/systems/energetic/tokens.css +0 -63
  247. package/dist/designer/data/systems/enterprise/DESIGN.md +0 -71
  248. package/dist/designer/data/systems/enterprise/components.html +0 -154
  249. package/dist/designer/data/systems/enterprise/tokens.css +0 -63
  250. package/dist/designer/data/systems/expo/DESIGN.md +0 -284
  251. package/dist/designer/data/systems/expo/components.html +0 -342
  252. package/dist/designer/data/systems/expo/tokens.css +0 -64
  253. package/dist/designer/data/systems/expressive/DESIGN.md +0 -71
  254. package/dist/designer/data/systems/expressive/components.html +0 -136
  255. package/dist/designer/data/systems/expressive/tokens.css +0 -63
  256. package/dist/designer/data/systems/fantasy/DESIGN.md +0 -71
  257. package/dist/designer/data/systems/fantasy/components.html +0 -136
  258. package/dist/designer/data/systems/fantasy/tokens.css +0 -63
  259. package/dist/designer/data/systems/ferrari/DESIGN.md +0 -317
  260. package/dist/designer/data/systems/ferrari/components.html +0 -342
  261. package/dist/designer/data/systems/ferrari/tokens.css +0 -64
  262. package/dist/designer/data/systems/figma/DESIGN.md +0 -223
  263. package/dist/designer/data/systems/figma/components.html +0 -344
  264. package/dist/designer/data/systems/figma/tokens.css +0 -126
  265. package/dist/designer/data/systems/flat/DESIGN.md +0 -71
  266. package/dist/designer/data/systems/flat/components.html +0 -136
  267. package/dist/designer/data/systems/flat/tokens.css +0 -63
  268. package/dist/designer/data/systems/framer/DESIGN.md +0 -249
  269. package/dist/designer/data/systems/framer/components.html +0 -438
  270. package/dist/designer/data/systems/framer/tokens.css +0 -238
  271. package/dist/designer/data/systems/friendly/DESIGN.md +0 -71
  272. package/dist/designer/data/systems/friendly/components.html +0 -136
  273. package/dist/designer/data/systems/friendly/tokens.css +0 -63
  274. package/dist/designer/data/systems/futuristic/DESIGN.md +0 -71
  275. package/dist/designer/data/systems/futuristic/components.html +0 -136
  276. package/dist/designer/data/systems/futuristic/tokens.css +0 -63
  277. package/dist/designer/data/systems/github/DESIGN.md +0 -155
  278. package/dist/designer/data/systems/github/components.html +0 -383
  279. package/dist/designer/data/systems/github/tokens.css +0 -125
  280. package/dist/designer/data/systems/glassmorphism/DESIGN.md +0 -71
  281. package/dist/designer/data/systems/glassmorphism/components.html +0 -154
  282. package/dist/designer/data/systems/glassmorphism/tokens.css +0 -63
  283. package/dist/designer/data/systems/gradient/DESIGN.md +0 -71
  284. package/dist/designer/data/systems/gradient/components.html +0 -154
  285. package/dist/designer/data/systems/gradient/tokens.css +0 -63
  286. package/dist/designer/data/systems/hashicorp/DESIGN.md +0 -281
  287. package/dist/designer/data/systems/hashicorp/components.html +0 -502
  288. package/dist/designer/data/systems/hashicorp/tokens.css +0 -272
  289. package/dist/designer/data/systems/hud/DESIGN.md +0 -173
  290. package/dist/designer/data/systems/hud/components.html +0 -136
  291. package/dist/designer/data/systems/hud/tokens.css +0 -63
  292. package/dist/designer/data/systems/huggingface/DESIGN.md +0 -149
  293. package/dist/designer/data/systems/huggingface/components.html +0 -346
  294. package/dist/designer/data/systems/huggingface/tokens.css +0 -125
  295. package/dist/designer/data/systems/ibm/DESIGN.md +0 -335
  296. package/dist/designer/data/systems/ibm/components.html +0 -342
  297. package/dist/designer/data/systems/ibm/tokens.css +0 -64
  298. package/dist/designer/data/systems/intercom/DESIGN.md +0 -149
  299. package/dist/designer/data/systems/intercom/components.html +0 -557
  300. package/dist/designer/data/systems/intercom/tokens.css +0 -150
  301. package/dist/designer/data/systems/kami/DESIGN.md +0 -410
  302. package/dist/designer/data/systems/kami/components.html +0 -601
  303. package/dist/designer/data/systems/kami/tokens.css +0 -272
  304. package/dist/designer/data/systems/kraken/DESIGN.md +0 -128
  305. package/dist/designer/data/systems/kraken/components.html +0 -342
  306. package/dist/designer/data/systems/kraken/tokens.css +0 -64
  307. package/dist/designer/data/systems/lamborghini/DESIGN.md +0 -291
  308. package/dist/designer/data/systems/lamborghini/components.html +0 -342
  309. package/dist/designer/data/systems/lamborghini/tokens.css +0 -64
  310. package/dist/designer/data/systems/levels/DESIGN.md +0 -71
  311. package/dist/designer/data/systems/levels/components.html +0 -154
  312. package/dist/designer/data/systems/levels/tokens.css +0 -63
  313. package/dist/designer/data/systems/linear-app/DESIGN.md +0 -370
  314. package/dist/designer/data/systems/linear-app/components.html +0 -370
  315. package/dist/designer/data/systems/linear-app/tokens.css +0 -130
  316. package/dist/designer/data/systems/lingo/DESIGN.md +0 -71
  317. package/dist/designer/data/systems/lingo/components.html +0 -154
  318. package/dist/designer/data/systems/lingo/tokens.css +0 -63
  319. package/dist/designer/data/systems/loom/DESIGN.md +0 -201
  320. package/dist/designer/data/systems/loom/components.html +0 -446
  321. package/dist/designer/data/systems/loom/tokens.css +0 -138
  322. package/dist/designer/data/systems/lovable/DESIGN.md +0 -301
  323. package/dist/designer/data/systems/lovable/components.html +0 -441
  324. package/dist/designer/data/systems/lovable/tokens.css +0 -258
  325. package/dist/designer/data/systems/luxury/DESIGN.md +0 -71
  326. package/dist/designer/data/systems/luxury/components.html +0 -154
  327. package/dist/designer/data/systems/luxury/tokens.css +0 -63
  328. package/dist/designer/data/systems/mastercard/DESIGN.md +0 -368
  329. package/dist/designer/data/systems/mastercard/components.html +0 -342
  330. package/dist/designer/data/systems/mastercard/tokens.css +0 -64
  331. package/dist/designer/data/systems/material/DESIGN.md +0 -71
  332. package/dist/designer/data/systems/material/components.html +0 -154
  333. package/dist/designer/data/systems/material/tokens.css +0 -63
  334. package/dist/designer/data/systems/meta/DESIGN.md +0 -369
  335. package/dist/designer/data/systems/meta/components.html +0 -398
  336. package/dist/designer/data/systems/meta/tokens.css +0 -263
  337. package/dist/designer/data/systems/minimal/DESIGN.md +0 -71
  338. package/dist/designer/data/systems/minimal/components.html +0 -154
  339. package/dist/designer/data/systems/minimal/tokens.css +0 -63
  340. package/dist/designer/data/systems/minimax/DESIGN.md +0 -260
  341. package/dist/designer/data/systems/minimax/components.html +0 -590
  342. package/dist/designer/data/systems/minimax/tokens.css +0 -148
  343. package/dist/designer/data/systems/mintlify/DESIGN.md +0 -329
  344. package/dist/designer/data/systems/mintlify/components.html +0 -737
  345. package/dist/designer/data/systems/mintlify/tokens.css +0 -256
  346. package/dist/designer/data/systems/miro/DESIGN.md +0 -111
  347. package/dist/designer/data/systems/miro/components.html +0 -342
  348. package/dist/designer/data/systems/miro/tokens.css +0 -64
  349. package/dist/designer/data/systems/mission-control/DESIGN.md +0 -474
  350. package/dist/designer/data/systems/mission-control/components.html +0 -136
  351. package/dist/designer/data/systems/mission-control/tokens.css +0 -63
  352. package/dist/designer/data/systems/mistral-ai/DESIGN.md +0 -264
  353. package/dist/designer/data/systems/mistral-ai/components.html +0 -338
  354. package/dist/designer/data/systems/mistral-ai/tokens.css +0 -125
  355. package/dist/designer/data/systems/modern/DESIGN.md +0 -71
  356. package/dist/designer/data/systems/modern/components.html +0 -154
  357. package/dist/designer/data/systems/modern/tokens.css +0 -63
  358. package/dist/designer/data/systems/mongodb/DESIGN.md +0 -269
  359. package/dist/designer/data/systems/mongodb/components.html +0 -462
  360. package/dist/designer/data/systems/mongodb/tokens.css +0 -176
  361. package/dist/designer/data/systems/mono/DESIGN.md +0 -71
  362. package/dist/designer/data/systems/mono/components.html +0 -136
  363. package/dist/designer/data/systems/mono/tokens.css +0 -63
  364. package/dist/designer/data/systems/neobrutalism/DESIGN.md +0 -71
  365. package/dist/designer/data/systems/neobrutalism/components.html +0 -136
  366. package/dist/designer/data/systems/neobrutalism/tokens.css +0 -63
  367. package/dist/designer/data/systems/neon/DESIGN.md +0 -71
  368. package/dist/designer/data/systems/neon/components.html +0 -136
  369. package/dist/designer/data/systems/neon/tokens.css +0 -63
  370. package/dist/designer/data/systems/neumorphism/DESIGN.md +0 -71
  371. package/dist/designer/data/systems/neumorphism/components.html +0 -136
  372. package/dist/designer/data/systems/neumorphism/tokens.css +0 -63
  373. package/dist/designer/data/systems/nike/DESIGN.md +0 -366
  374. package/dist/designer/data/systems/nike/components.html +0 -512
  375. package/dist/designer/data/systems/nike/tokens.css +0 -304
  376. package/dist/designer/data/systems/notion/DESIGN.md +0 -312
  377. package/dist/designer/data/systems/notion/components.html +0 -413
  378. package/dist/designer/data/systems/notion/tokens.css +0 -130
  379. package/dist/designer/data/systems/nvidia/DESIGN.md +0 -296
  380. package/dist/designer/data/systems/nvidia/components.html +0 -414
  381. package/dist/designer/data/systems/nvidia/tokens.css +0 -133
  382. package/dist/designer/data/systems/ollama/DESIGN.md +0 -270
  383. package/dist/designer/data/systems/ollama/components.html +0 -700
  384. package/dist/designer/data/systems/ollama/tokens.css +0 -242
  385. package/dist/designer/data/systems/openai/DESIGN.md +0 -140
  386. package/dist/designer/data/systems/openai/components.html +0 -382
  387. package/dist/designer/data/systems/openai/tokens.css +0 -133
  388. package/dist/designer/data/systems/opencode-ai/DESIGN.md +0 -284
  389. package/dist/designer/data/systems/opencode-ai/components.html +0 -389
  390. package/dist/designer/data/systems/opencode-ai/tokens.css +0 -126
  391. package/dist/designer/data/systems/pacman/DESIGN.md +0 -71
  392. package/dist/designer/data/systems/pacman/components.html +0 -342
  393. package/dist/designer/data/systems/pacman/tokens.css +0 -64
  394. package/dist/designer/data/systems/paper/DESIGN.md +0 -71
  395. package/dist/designer/data/systems/paper/components.html +0 -136
  396. package/dist/designer/data/systems/paper/tokens.css +0 -63
  397. package/dist/designer/data/systems/perplexity/DESIGN.md +0 -286
  398. package/dist/designer/data/systems/perplexity/components.html +0 -455
  399. package/dist/designer/data/systems/perplexity/tokens.css +0 -151
  400. package/dist/designer/data/systems/perspective/DESIGN.md +0 -71
  401. package/dist/designer/data/systems/perspective/components.html +0 -136
  402. package/dist/designer/data/systems/perspective/tokens.css +0 -63
  403. package/dist/designer/data/systems/pinterest/DESIGN.md +0 -233
  404. package/dist/designer/data/systems/pinterest/components.html +0 -865
  405. package/dist/designer/data/systems/pinterest/tokens.css +0 -262
  406. package/dist/designer/data/systems/playstation/DESIGN.md +0 -367
  407. package/dist/designer/data/systems/playstation/components.html +0 -414
  408. package/dist/designer/data/systems/playstation/tokens.css +0 -150
  409. package/dist/designer/data/systems/posthog/DESIGN.md +0 -259
  410. package/dist/designer/data/systems/posthog/components.html +0 -827
  411. package/dist/designer/data/systems/posthog/tokens.css +0 -272
  412. package/dist/designer/data/systems/premium/DESIGN.md +0 -71
  413. package/dist/designer/data/systems/premium/components.html +0 -154
  414. package/dist/designer/data/systems/premium/tokens.css +0 -63
  415. package/dist/designer/data/systems/professional/DESIGN.md +0 -71
  416. package/dist/designer/data/systems/professional/components.html +0 -136
  417. package/dist/designer/data/systems/professional/tokens.css +0 -63
  418. package/dist/designer/data/systems/publication/DESIGN.md +0 -71
  419. package/dist/designer/data/systems/publication/components.html +0 -154
  420. package/dist/designer/data/systems/publication/tokens.css +0 -63
  421. package/dist/designer/data/systems/raycast/DESIGN.md +0 -271
  422. package/dist/designer/data/systems/raycast/components.html +0 -507
  423. package/dist/designer/data/systems/raycast/tokens.css +0 -143
  424. package/dist/designer/data/systems/refined/DESIGN.md +0 -71
  425. package/dist/designer/data/systems/refined/components.html +0 -136
  426. package/dist/designer/data/systems/refined/tokens.css +0 -63
  427. package/dist/designer/data/systems/renault/DESIGN.md +0 -314
  428. package/dist/designer/data/systems/renault/components.html +0 -154
  429. package/dist/designer/data/systems/renault/tokens.css +0 -63
  430. package/dist/designer/data/systems/replicate/DESIGN.md +0 -264
  431. package/dist/designer/data/systems/replicate/components.html +0 -340
  432. package/dist/designer/data/systems/replicate/tokens.css +0 -125
  433. package/dist/designer/data/systems/resend/DESIGN.md +0 -306
  434. package/dist/designer/data/systems/resend/components.html +0 -839
  435. package/dist/designer/data/systems/resend/tokens.css +0 -353
  436. package/dist/designer/data/systems/retro/DESIGN.md +0 -71
  437. package/dist/designer/data/systems/retro/components.html +0 -136
  438. package/dist/designer/data/systems/retro/tokens.css +0 -63
  439. package/dist/designer/data/systems/revolut/DESIGN.md +0 -188
  440. package/dist/designer/data/systems/revolut/components.html +0 -342
  441. package/dist/designer/data/systems/revolut/tokens.css +0 -64
  442. package/dist/designer/data/systems/runwayml/DESIGN.md +0 -247
  443. package/dist/designer/data/systems/runwayml/components.html +0 -638
  444. package/dist/designer/data/systems/runwayml/tokens.css +0 -204
  445. package/dist/designer/data/systems/sanity/DESIGN.md +0 -360
  446. package/dist/designer/data/systems/sanity/components.html +0 -342
  447. package/dist/designer/data/systems/sanity/tokens.css +0 -64
  448. package/dist/designer/data/systems/sentry/DESIGN.md +0 -265
  449. package/dist/designer/data/systems/sentry/components.html +0 -387
  450. package/dist/designer/data/systems/sentry/tokens.css +0 -219
  451. package/dist/designer/data/systems/shadcn/DESIGN.md +0 -71
  452. package/dist/designer/data/systems/shadcn/components.html +0 -732
  453. package/dist/designer/data/systems/shadcn/tokens.css +0 -255
  454. package/dist/designer/data/systems/shopify/DESIGN.md +0 -353
  455. package/dist/designer/data/systems/shopify/components.html +0 -342
  456. package/dist/designer/data/systems/shopify/tokens.css +0 -141
  457. package/dist/designer/data/systems/simple/DESIGN.md +0 -71
  458. package/dist/designer/data/systems/simple/components.html +0 -136
  459. package/dist/designer/data/systems/simple/tokens.css +0 -63
  460. package/dist/designer/data/systems/skeumorphism/DESIGN.md +0 -71
  461. package/dist/designer/data/systems/skeumorphism/components.html +0 -136
  462. package/dist/designer/data/systems/skeumorphism/tokens.css +0 -63
  463. package/dist/designer/data/systems/slack/DESIGN.md +0 -363
  464. package/dist/designer/data/systems/slack/components.html +0 -387
  465. package/dist/designer/data/systems/slack/tokens.css +0 -127
  466. package/dist/designer/data/systems/sleek/DESIGN.md +0 -71
  467. package/dist/designer/data/systems/sleek/components.html +0 -136
  468. package/dist/designer/data/systems/sleek/tokens.css +0 -63
  469. package/dist/designer/data/systems/spacex/DESIGN.md +0 -197
  470. package/dist/designer/data/systems/spacex/components.html +0 -496
  471. package/dist/designer/data/systems/spacex/tokens.css +0 -154
  472. package/dist/designer/data/systems/spacious/DESIGN.md +0 -71
  473. package/dist/designer/data/systems/spacious/components.html +0 -136
  474. package/dist/designer/data/systems/spacious/tokens.css +0 -63
  475. package/dist/designer/data/systems/spotify/DESIGN.md +0 -249
  476. package/dist/designer/data/systems/spotify/components.html +0 -365
  477. package/dist/designer/data/systems/spotify/tokens.css +0 -127
  478. package/dist/designer/data/systems/starbucks/DESIGN.md +0 -583
  479. package/dist/designer/data/systems/starbucks/components.html +0 -493
  480. package/dist/designer/data/systems/starbucks/tokens.css +0 -182
  481. package/dist/designer/data/systems/storytelling/DESIGN.md +0 -71
  482. package/dist/designer/data/systems/storytelling/components.html +0 -136
  483. package/dist/designer/data/systems/storytelling/tokens.css +0 -63
  484. package/dist/designer/data/systems/stripe/DESIGN.md +0 -325
  485. package/dist/designer/data/systems/stripe/components.html +0 -1018
  486. package/dist/designer/data/systems/stripe/tokens.css +0 -295
  487. package/dist/designer/data/systems/supabase/DESIGN.md +0 -258
  488. package/dist/designer/data/systems/supabase/components.html +0 -741
  489. package/dist/designer/data/systems/supabase/tokens.css +0 -294
  490. package/dist/designer/data/systems/superhuman/DESIGN.md +0 -255
  491. package/dist/designer/data/systems/superhuman/components.html +0 -537
  492. package/dist/designer/data/systems/superhuman/tokens.css +0 -160
  493. package/dist/designer/data/systems/tesla/DESIGN.md +0 -289
  494. package/dist/designer/data/systems/tesla/components.html +0 -724
  495. package/dist/designer/data/systems/tesla/tokens.css +0 -285
  496. package/dist/designer/data/systems/tetris/DESIGN.md +0 -71
  497. package/dist/designer/data/systems/tetris/components.html +0 -342
  498. package/dist/designer/data/systems/tetris/tokens.css +0 -64
  499. package/dist/designer/data/systems/theverge/DESIGN.md +0 -342
  500. package/dist/designer/data/systems/theverge/components.html +0 -342
  501. package/dist/designer/data/systems/theverge/tokens.css +0 -64
  502. package/dist/designer/data/systems/together-ai/DESIGN.md +0 -266
  503. package/dist/designer/data/systems/together-ai/components.html +0 -422
  504. package/dist/designer/data/systems/together-ai/tokens.css +0 -127
  505. package/dist/designer/data/systems/totality-festival/DESIGN.md +0 -206
  506. package/dist/designer/data/systems/totality-festival/components.html +0 -136
  507. package/dist/designer/data/systems/totality-festival/tokens.css +0 -63
  508. package/dist/designer/data/systems/trading-terminal/DESIGN.md +0 -178
  509. package/dist/designer/data/systems/trading-terminal/components.html +0 -154
  510. package/dist/designer/data/systems/trading-terminal/tokens.css +0 -63
  511. package/dist/designer/data/systems/uber/DESIGN.md +0 -298
  512. package/dist/designer/data/systems/uber/components.html +0 -347
  513. package/dist/designer/data/systems/uber/tokens.css +0 -131
  514. package/dist/designer/data/systems/urdu/DESIGN.md +0 -1002
  515. package/dist/designer/data/systems/urdu/components.html +0 -136
  516. package/dist/designer/data/systems/urdu/tokens.css +0 -63
  517. package/dist/designer/data/systems/vercel/DESIGN.md +0 -313
  518. package/dist/designer/data/systems/vercel/components.html +0 -839
  519. package/dist/designer/data/systems/vercel/tokens.css +0 -270
  520. package/dist/designer/data/systems/vibrant/DESIGN.md +0 -71
  521. package/dist/designer/data/systems/vibrant/components.html +0 -136
  522. package/dist/designer/data/systems/vibrant/tokens.css +0 -63
  523. package/dist/designer/data/systems/vintage/DESIGN.md +0 -71
  524. package/dist/designer/data/systems/vintage/components.html +0 -136
  525. package/dist/designer/data/systems/vintage/tokens.css +0 -63
  526. package/dist/designer/data/systems/vodafone/DESIGN.md +0 -426
  527. package/dist/designer/data/systems/vodafone/components.html +0 -342
  528. package/dist/designer/data/systems/vodafone/tokens.css +0 -64
  529. package/dist/designer/data/systems/voltagent/DESIGN.md +0 -326
  530. package/dist/designer/data/systems/voltagent/components.html +0 -154
  531. package/dist/designer/data/systems/voltagent/tokens.css +0 -63
  532. package/dist/designer/data/systems/warm-editorial/DESIGN.md +0 -65
  533. package/dist/designer/data/systems/warm-editorial/components.html +0 -136
  534. package/dist/designer/data/systems/warm-editorial/tokens.css +0 -63
  535. package/dist/designer/data/systems/warp/DESIGN.md +0 -256
  536. package/dist/designer/data/systems/warp/components.html +0 -411
  537. package/dist/designer/data/systems/warp/tokens.css +0 -156
  538. package/dist/designer/data/systems/webex/DESIGN.md +0 -207
  539. package/dist/designer/data/systems/webex/components.html +0 -342
  540. package/dist/designer/data/systems/webex/tokens.css +0 -64
  541. package/dist/designer/data/systems/webflow/DESIGN.md +0 -95
  542. package/dist/designer/data/systems/webflow/components.html +0 -413
  543. package/dist/designer/data/systems/webflow/tokens.css +0 -191
  544. package/dist/designer/data/systems/wechat/DESIGN.md +0 -302
  545. package/dist/designer/data/systems/wechat/components.html +0 -507
  546. package/dist/designer/data/systems/wechat/tokens.css +0 -176
  547. package/dist/designer/data/systems/wired/DESIGN.md +0 -281
  548. package/dist/designer/data/systems/wired/components.html +0 -342
  549. package/dist/designer/data/systems/wired/tokens.css +0 -64
  550. package/dist/designer/data/systems/wise/DESIGN.md +0 -176
  551. package/dist/designer/data/systems/wise/components.html +0 -365
  552. package/dist/designer/data/systems/wise/tokens.css +0 -141
  553. package/dist/designer/data/systems/x-ai/DESIGN.md +0 -260
  554. package/dist/designer/data/systems/x-ai/components.html +0 -460
  555. package/dist/designer/data/systems/x-ai/tokens.css +0 -268
  556. package/dist/designer/data/systems/xiaohongshu/DESIGN.md +0 -402
  557. package/dist/designer/data/systems/xiaohongshu/components.html +0 -865
  558. package/dist/designer/data/systems/xiaohongshu/tokens.css +0 -193
  559. package/dist/designer/data/systems/zapier/DESIGN.md +0 -331
  560. package/dist/designer/data/systems/zapier/components.html +0 -342
  561. package/dist/designer/data/systems/zapier/tokens.css +0 -64
  562. package/dist/designer/guidelines.d.ts +0 -23
  563. package/dist/designer/guidelines.d.ts.map +0 -1
  564. package/dist/designer/guidelines.js +0 -176
  565. package/dist/designer/philosophies.d.ts +0 -33
  566. package/dist/designer/philosophies.d.ts.map +0 -1
  567. package/dist/designer/philosophies.js +0 -668
  568. package/dist/designer/skills.d.ts +0 -21
  569. package/dist/designer/skills.d.ts.map +0 -1
  570. package/dist/designer/skills.js +0 -34
  571. package/dist/designer/systems.d.ts +0 -36
  572. package/dist/designer/systems.d.ts.map +0 -1
  573. package/dist/designer/systems.js +0 -221
@@ -1,1002 +0,0 @@
1
- # Urdu Modern (Indus Script System)
2
-
3
- > Category: Editorial / Personal / Publication
4
- Urdu-first digital experiences with native RTL support,Nastaliq typography, and bilingual harmony.
5
-
6
- ---
7
-
8
- ## 1. Visual Theme & Atmosphere
9
-
10
- **"Digital Heritage"** — A clean, spacious, and respectful aesthetic that bridges traditional Urdu calligraphy and contemporary minimal design.
11
-
12
- The system avoids visual clutter. Every component prioritizes **whitespace**, **legibility**, and the inherent elegance of the Nastaliq script. The color palette echoes the earth tones and cultural symbols of the Indus region. Typography is the protagonist; everything else supports readability and cultural authenticity.
13
-
14
- **Design Philosophy:**
15
- - Urdu is not a "regional variant" of another language; it's the primary voice
16
- - RTL layout is not an afterthought; it's architecturally primary
17
- - Nastaliq's vertical complexity demands generous spacing
18
- - Cultural aesthetics (traditional patterns, warm earths) elevate the experience beyond generic tech UI
19
-
20
- ---
21
-
22
- ## 2. Color Palette (Cultural Modernism)
23
-
24
- All colors are tested for WCAG AA contrast compliance (minimum 4.5:1 for body text, 3:1 for large text).
25
-
26
- ### Primary Colors
27
-
28
- | Color | Hex | Name | Usage | WCAG Contrast (on Parchment) |
29
- |-------|-----|------|-------|------------------------------|
30
- | **Primary Brand** | `#0F595E` | Deep Teal / Jungle Green | CTAs, primary actions, headers | 8.4:1 ✅ AA |
31
- | **Background** | `#F4F1EA` | Parchment / Off-White | Main canvas, card backgrounds | — |
32
- | **Accent** | `#C05621` | Terracotta / Rust | Secondary CTAs, highlights, focus states | 4.05:1 ✅ AA(large) |
33
- | **Text Primary** | `#1A202C` | Rich Slate | Body text, labels | 15.1:1 ✅ AAA |
34
- | **Text Secondary** | `#4A5568` | Warm Grey | Secondary labels, captions | 3.56:1 ✅ UI Only |
35
- | **Border** | `#E2E8F0` | Light Silver | Component borders, dividers | — |
36
-
37
- ### Why These Colors?
38
-
39
- - **Deep Teal (#0F595E):** Represents trust, stability, and national identity. Inspired by SadaPay (Pakistani fintech) and traditional Urdu ink.
40
- - **Parchment (#F4F1EA):** Warm white that mimics high-quality paper and reduces eye strain during long reading sessions (critical for editorial content).
41
- - **Terracotta (#C05621):** Echoes traditional pottery from the Indus Valley. Used for emphasis without overwhelming.
42
- - **Rich Slate (#1A202C):** Maximum contrast for Nastaliq text; the script's nuqtas (diacritical marks) demand dark, sharp color.
43
-
44
- ### Extended Palette (Semantic)
45
-
46
- ```css
47
- :root {
48
- /* Primary */
49
- --color-primary: #0F595E;
50
- --color-primary-dark: #0D3F45;
51
- --color-primary-light: #2B7A82;
52
-
53
- /* Accent */
54
- --color-accent: #C05621;
55
- --color-accent-dark: #A03F1C;
56
- --color-accent-light: #E8754A;
57
-
58
- /* Backgrounds */
59
- --color-bg-primary: #F4F1EA;
60
- --color-bg-secondary: #FAFAF8;
61
-
62
- /* Text */
63
- --color-text-primary: #1A202C;
64
- --color-text-secondary: #4A5568;
65
- --color-text-tertiary: #718096;
66
-
67
- /* Status Colors */
68
- --color-success: #2D5B4A; /* Deep green */
69
- --color-warning: #C05621; /* Terracotta (doubles as warning) */
70
- --color-error: #8B3A3A; /* Deep burgundy */
71
- --color-info: #2B7A82; /* Light teal */
72
-
73
- /* Borders & Dividers */
74
- --color-border: #E2E8F0;
75
- --color-border-dark: #CBD5E0;
76
- }
77
- ```
78
-
79
- ---
80
-
81
- ## 3. Typography (The Heart of the System)
82
-
83
- Urdu typography is the foundational layer. The system enforces **Bilingual Harmony** — Urdu takes priority; Latin text plays a supporting role.
84
-
85
- ### Font Families
86
-
87
- #### Urdu Script (Primary)
88
-
89
- ```css
90
- font-family: "Noto Nastaliq Urdu", "Mehr Nastaliq", "URW Chancery", serif;
91
- ```
92
-
93
- **Font Selection Rationale:**
94
- - **Noto Nastaliq Urdu** (Google Fonts): Professionally maintained, open-source, optimized for modern screens. Heavy weight (700) gives proper authority.
95
- - **Mehr Nastaliq**: Pakistani-developed alternative; excellent Urdu-specific kerning.
96
- - **URW Chancery** (system fallback): Hand-drawn serif; graceful degradation when web fonts fail.
97
-
98
- **Import (add to `<head>`):**
99
- ```html
100
- <link rel="preload" href="https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap" as="style">
101
- <link href="https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap" rel="stylesheet">
102
- ```
103
-
104
- #### Latin Script (Secondary)
105
-
106
- ```css
107
- font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
108
- ```
109
-
110
- **Usage:** Technical terms, code snippets, numerical data, English labels, API names.
111
-
112
- **Why Inter:** Designed for screens, excellent kerning at all sizes, modern and neutral.
113
-
114
- ### Font Sizes & Scale
115
-
116
- **Base Unit:** 16px
117
-
118
- | Level | Size | Line-Height | Usage |
119
- |-------|------|-------------|-------|
120
- | **Display XL** | 48px | 1.2 | Page titles |
121
- | **Display Large** | 36px | 1.3 | Section headers |
122
- | **Heading 1** | 32px | 1.4 | Major headings |
123
- | **Heading 2** | 24px | 1.5 | Section subheadings |
124
- | **Heading 3** | 20px | 1.6 | Component titles |
125
- | **Body Large** | 18px | 1.8 | Lead paragraphs, intro text |
126
- | **Body** | 16px | 1.8 | Standard body text, editorial |
127
- | **Body Small** | 14px | 1.8 | Secondary text, captions |
128
- | **Label** | 12px | 1.8 | Form labels, micro-copy |
129
-
130
- ### Line-Height (Critical for Nastaliq)
131
-
132
- **Minimum line-height: 1.8**
133
-
134
- Nastaliq has high vertical ascenders and deep descenders. Standard web line-heights (1.5) cause nuqtas (diacritical marks) to clip or overlap.
135
-
136
- **Enforcement:**
137
- ```css
138
- body {
139
- line-height: 1.8;
140
- }
141
-
142
- /* Headings can compress slightly, but never below 1.4 */
143
- h1, h2, h3 {
144
- line-height: 1.4;
145
- }
146
-
147
- /* Ensure body paragraphs maintain breathing room */
148
- p {
149
- line-height: 1.9; /* Slightly more for readability */
150
- }
151
- ```
152
-
153
- ### Font Rendering & Smoothing
154
-
155
- ```css
156
- body {
157
- -webkit-font-smoothing: antialiased;
158
- -moz-osx-font-smoothing: grayscale;
159
- /* Keeps Nastaliq curves sharp and prevents blurry rendering */
160
- text-rendering: optimizeLegibility;
161
- }
162
-
163
- /* Prevent font-weight shifts during hover states */
164
- button, a {
165
- transition: color 0.2s ease, background 0.2s ease;
166
- /* Do NOT animate font-weight; it causes layout shift */
167
- }
168
- ```
169
-
170
- ### Font Weights
171
-
172
- Only use:
173
- - **400 (Regular):** Body text, standard labels
174
- - **700 (Bold):** Headings, emphasis, strong text
175
-
176
- **Avoid:** 300, 500, 600 (Noto Nastaliq doesn't render well at intermediate weights; design suffers).
177
-
178
- ---
179
-
180
- ## 4. Spacing & Layout Grid
181
-
182
- **Base Unit:** 4px
183
-
184
- All spacing follows a **modular scale** rooted in 4px. This allows for both fine-grained and large-scale alignments.
185
-
186
- ### Spacing Scale
187
-
188
- | Name | Value | Usage |
189
- |------|-------|-------|
190
- | **xs** | 4px | Micro-spacing (inline elements, icon gaps) |
191
- | **sm** | 8px | Component internal padding, tight grouping |
192
- | **md** | 16px | Standard padding, default gaps |
193
- | **lg** | 24px | Section spacing, moderate breathing room |
194
- | **xl** | 32px | Large section gaps, hero spacing |
195
- | **2xl** | 48px | Page-level spacing, major layout blocks |
196
- | **3xl** | 64px | Full-screen spacing, viewport-scale gaps |
197
-
198
- ### Layout Principles
199
-
200
- #### Horizontal (RTL-Aware)
201
-
202
- In RTL context, directionality is reversed:
203
- - **margin-inline-start:** Becomes right margin (logical property; auto-flips on RTL)
204
- - **padding-inline-end:** Becomes left padding (logical property; auto-flips on RTL)
205
-
206
- **Always use logical properties:**
207
- ```css
208
- .component {
209
- /* ✅ GOOD: Auto-flips in RTL */
210
- margin-inline: 16px;
211
- padding-inline-start: 24px;
212
-
213
- /* ❌ BAD: Hard-coded LTR; breaks in RTL */
214
- margin-left: 16px;
215
- padding-right: 24px;
216
- }
217
- ```
218
-
219
- #### Vertical
220
-
221
- Vertical spacing is **unaffected by RTL**. All vertical margins and paddings remain consistent.
222
-
223
- ```css
224
- .card {
225
- padding-block: 24px; /* 24px top + bottom */
226
- margin-block: 16px; /* 16px top + bottom */
227
- }
228
- ```
229
-
230
- ### Container & Card Spacing
231
-
232
- ```css
233
- .card {
234
- padding: 24px; /* Internal spacing */
235
- margin-block: 16px; /* External spacing */
236
- border: 1px solid var(--color-border);
237
- border-radius: 8px;
238
- background: var(--color-bg-secondary);
239
- }
240
-
241
- .section {
242
- padding-block: 32px; /* Vertical padding within section */
243
- padding-inline: 24px; /* Horizontal padding (RTL-safe) */
244
- }
245
- ```
246
-
247
- ### Grid System (Optional: 12-column)
248
-
249
- For complex layouts, use a 12-column grid:
250
- ```css
251
- .grid {
252
- display: grid;
253
- grid-template-columns: repeat(12, 1fr);
254
- gap: 16px;
255
- direction: rtl; /* RTL grid automatically reverses columns */
256
- }
257
-
258
- .grid-col-6 {
259
- grid-column: span 6;
260
- }
261
-
262
- .grid-col-4 {
263
- grid-column: span 4;
264
- }
265
- ```
266
-
267
- ---
268
-
269
- ## 5. Component Styles
270
-
271
- ### Buttons
272
-
273
- #### Primary Button
274
- ```html
275
- <button class="button button-primary">
276
- <span lang="ur">موافقہ</span>
277
- </button>
278
- ```
279
-
280
- ```css
281
- .button-primary {
282
- background: var(--color-primary);
283
- color: white;
284
- padding: 12px 24px;
285
- border: none;
286
- border-radius: 6px;
287
- font-family: var(--font-urdu);
288
- font-size: 16px;
289
- font-weight: 700;
290
- cursor: pointer;
291
- transition: background 0.2s ease;
292
- }
293
-
294
- .button-primary:hover {
295
- background: var(--color-primary-dark);
296
- }
297
-
298
- .button-primary:active {
299
- opacity: 0.9;
300
- }
301
-
302
- .button-primary:disabled {
303
- opacity: 0.5;
304
- cursor: not-allowed;
305
- }
306
- ```
307
-
308
- #### Secondary Button
309
- ```html
310
- <button class="button button-secondary">
311
- <span lang="ur">منسوخ</span>
312
- </button>
313
- ```
314
-
315
- ```css
316
- .button-secondary {
317
- background: var(--color-bg-secondary);
318
- color: var(--color-primary);
319
- padding: 12px 24px;
320
- border: 2px solid var(--color-primary);
321
- border-radius: 6px;
322
- font-family: var(--font-urdu);
323
- font-size: 16px;
324
- font-weight: 700;
325
- cursor: pointer;
326
- transition: background 0.2s ease, border-color 0.2s ease;
327
- }
328
-
329
- .button-secondary:hover {
330
- background: rgba(15, 89, 94, 0.1);
331
- }
332
- ```
333
-
334
- #### Icon Placement (RTL-Aware)
335
-
336
- In RTL, icons should be placed on the **right (logical-right)** of the text:
337
-
338
- ```html
339
- <!-- Urdu context (RTL) -->
340
- <button class="button button-primary">
341
- <icon class="icon-send" aria-hidden="true"></icon>
342
- <span lang="ur">بھیجیں</span>
343
- </button>
344
-
345
- <!-- HTML rendered as: [icon] [text] (visually: [text] [icon] in RTL) -->
346
- ```
347
-
348
- ```css
349
- .button {
350
- display: flex;
351
- align-items: center;
352
- gap: 8px;
353
- /* In RTL, flex automatically reverses; icon appears on right visually */
354
- }
355
-
356
- .button .icon {
357
- width: 20px;
358
- height: 20px;
359
- }
360
- ```
361
-
362
- ### Form Components
363
-
364
- #### Input Fields
365
-
366
- ```html
367
- <div class="form-group">
368
- <label lang="ur" for="username">صارف کا نام</label>
369
- <input
370
- id="username"
371
- type="text"
372
- class="input"
373
- placeholder="اپنا صارف کا نام درج کریں"
374
- lang="ur"
375
- dir="rtl"
376
- />
377
- </div>
378
- ```
379
-
380
- ```css
381
- .form-group {
382
- margin-block: 16px;
383
- display: flex;
384
- flex-direction: column;
385
- }
386
-
387
- .form-group label {
388
- font-family: var(--font-urdu);
389
- font-size: 14px;
390
- font-weight: 700;
391
- color: var(--color-text-primary);
392
- margin-block-end: 8px;
393
- text-align: right; /* Right-aligned for RTL labels */
394
- }
395
-
396
- .input {
397
- padding: 12px 16px;
398
- border: 1px solid var(--color-border);
399
- border-radius: 6px;
400
- font-family: var(--font-urdu);
401
- font-size: 16px;
402
- color: var(--color-text-primary);
403
- line-height: 1.8;
404
- direction: rtl;
405
- }
406
-
407
- .input::placeholder {
408
- color: var(--color-text-tertiary);
409
- }
410
-
411
- .input:focus {
412
- outline: none;
413
- border-color: var(--color-primary);
414
- box-shadow: 0 0 0 3px rgba(15, 89, 94, 0.1);
415
- }
416
-
417
- .input:disabled {
418
- background: var(--color-bg-secondary);
419
- color: var(--color-text-tertiary);
420
- cursor: not-allowed;
421
- }
422
- ```
423
-
424
- #### Accessibility: Placeholder vs. Label
425
-
426
- **Never** rely on placeholder as the only label. Placeholders disappear on focus, breaking accessibility.
427
-
428
- ```html
429
- <!-- ❌ BAD: No visible label -->
430
- <input placeholder="صارف کا نام" />
431
-
432
- <!-- ✅ GOOD: Label + placeholder both present -->
433
- <label for="username">صارف کا نام</label>
434
- <input id="username" placeholder="مثال: احمد علی" />
435
-
436
- <!-- ✅ EXCELLENT: Label + aria-label for screen readers -->
437
- <label for="username" lang="ur">صارف کا نام</label>
438
- <input
439
- id="username"
440
- aria-label="صارف کا نام درج کریں"
441
- placeholder="احمد علی"
442
- />
443
- ```
444
-
445
- ### Cards
446
-
447
- ```html
448
- <div class="card">
449
- <h3 lang="ur">کارڈ کا عنوان</h3>
450
- <p lang="ur">یہاں کارڈ کا مواد ہے۔</p>
451
- </div>
452
- ```
453
-
454
- ```css
455
- .card {
456
- padding: 24px;
457
- background: var(--color-bg-secondary);
458
- border: 1px solid var(--color-border);
459
- border-radius: 8px;
460
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
461
- transition: box-shadow 0.2s ease, transform 0.2s ease;
462
- }
463
-
464
- .card:hover {
465
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
466
- transform: translateY(-2px);
467
- }
468
-
469
- .card h3 {
470
- margin-block-end: 12px;
471
- color: var(--color-primary);
472
- }
473
-
474
- .card p {
475
- color: var(--color-text-secondary);
476
- line-height: 1.8;
477
- }
478
- ```
479
-
480
- ### Links
481
-
482
- ```html
483
- <a href="#" lang="ur">مزید معلومات پڑھیں</a>
484
- ```
485
-
486
- ```css
487
- a {
488
- color: var(--color-primary);
489
- text-decoration: underline;
490
- font-family: var(--font-urdu);
491
- transition: color 0.2s ease;
492
- }
493
-
494
- a:hover {
495
- color: var(--color-primary-dark);
496
- }
497
-
498
- a:focus {
499
- outline: 2px solid var(--color-accent);
500
- outline-offset: 2px;
501
- }
502
- ```
503
-
504
- ---
505
-
506
- ## 6. Motion & Animation
507
-
508
- All animations respect RTL directionality and maintain readability.
509
-
510
- ### Entrance Animations
511
-
512
- ```css
513
- @keyframes fade-in-up {
514
- from {
515
- opacity: 0;
516
- transform: translateY(12px);
517
- }
518
- to {
519
- opacity: 1;
520
- transform: translateY(0);
521
- }
522
- }
523
-
524
- .card {
525
- animation: fade-in-up 0.3s ease-out;
526
- }
527
- ```
528
-
529
- ### Hover & Interactive States
530
-
531
- ```css
532
- .button:hover {
533
- background-color: var(--color-primary-dark);
534
- transition: background-color 0.2s ease-in-out;
535
- /* Avoid font-weight changes; they cause layout shift */
536
- }
537
-
538
- .button:active {
539
- transform: scale(0.98);
540
- /* Provides tactile feedback without breaking layout */
541
- }
542
- ```
543
-
544
- ### Avoid (Anti-Patterns)
545
-
546
- - ❌ **Parallax on Urdu text:** Breaks readability during scroll; text moves at different speeds
547
- - ❌ **Rotating Urdu elements:** Nastaliq curves distort when rotated; illegible
548
- - ❌ **Italic animations:** Urdu doesn't have true italic; it looks broken
549
- - ❌ **Fast transitions (< 150ms):** RTL reflows need time; fast animations stutter
550
-
551
- ### Recommended Durations
552
-
553
- | Animation Type | Duration | Easing |
554
- |---|---|---|
555
- | Entrance | 300ms | ease-out |
556
- | Hover | 200ms | ease-in-out |
557
- | Exit | 200ms | ease-in |
558
- | Scroll-reveal | 600ms | ease-out |
559
-
560
- ---
561
-
562
- ## 7. Accessibility (A11y)
563
-
564
- This system is built to be accessible. All color contrasts are verified against WCAG standards.
565
-
566
- ### Color Contrast (Verified Ratios)
567
-
568
- | Combination | Contrast | Standard | Notes |
569
- |---|---|---|---|
570
- | Deep Teal (#0F595E) on Parchment | 8.4:1 | ✅ AAA | Safe for all text |
571
- | Rich Slate (#1A202C) on Parchment | 15.1:1 | ✅ AAA | Safe for all text |
572
- | Terracotta (#C05621) on Parchment | 4.05:1 | ⚠️ AA (Large) | **Large Text (18pt+) or Bold only** |
573
- | Muted Slate (#718096) on Parchment | 3.56:1 | ❌ UI Only | Decorative/Borders only; avoid for text |
574
-
575
- ### Text Size Minimums
576
-
577
- - **Body text:** Minimum 16px (Nastaliq script becomes unreadable at smaller sizes).
578
- - **Labels:** Minimum 14px.
579
- - **Captions:** Minimum 12px (for non-essential information only).
580
-
581
- ### Focus States (Keyboard Navigation)
582
-
583
- All interactive elements must have visible focus indicators to support keyboard users:
584
-
585
- ```css
586
- button:focus,
587
- a:focus,
588
- input:focus {
589
- outline: 2px solid var(--color-accent);
590
- outline-offset: 2px;
591
- }
592
- ```
593
-
594
- ### ARIA Labels (For Screen Readers)
595
- Accessible Naming Rules (ARIA Best Practices)
596
- Native Labels First: Always use standard <label for="..."> elements. This is the gold standard for screen readers and ensures the accessible name matches the visible text.
597
-
598
- When to use aria-label: Only use aria-label when an interactive element has no visible text (e.g., an icon-only button).
599
-
600
- Avoid Overriding: Do not use an aria-label that repeats or conflicts with visible text. This prevents WCAG "Label-in-Name" mismatches.
601
-
602
-
603
- ```html
604
- <label for="email" lang="ur">ای میل</label>
605
- <input id="email" type="email" placeholder="name@example.com" />
606
-
607
- <button class="icon-button" aria-label="تلاش کریں">
608
- <icon class="icon-search"></icon>
609
- </button>
610
-
611
- <label for="pass" lang="ur">پاس ورڈ</label>
612
- <input id="pass" type="password" aria-describedby="pass-hint" />
613
- <p id="pass-hint" lang="ur">کم از کم 8 حروف۔</p>
614
-
615
- ```
616
-
617
- ### Language Declaration
618
-
619
- Properly declaring the document language is critical for Urdu screen reading and correct font rendering:
620
-
621
- ```html
622
- <html lang="ur" dir="rtl">
623
- <head>
624
- <meta charset="UTF-8">
625
- </head>
626
- <body>
627
- <h1 lang="ur">خیر مقدم</h1>
628
- </body>
629
- </html>
630
- ```
631
-
632
- ---
633
-
634
- ## 8. Brand Voice & Tone
635
-
636
- Urdu is a **formal, respectful language**. Microcopy should reflect this.
637
-
638
- ### Formality Levels
639
-
640
- #### Formal (Government, Banking, Official)
641
- ```urdu
642
- ✅ معافی چاہتے ہیں، آپ کی درخواست مکمل نہیں ہو سکی۔ براہ کرم دوبارہ کوشش کریں۔
643
- ❌ خرابی ہوگئی
644
- ```
645
-
646
- Translation: "We apologize; your request could not be completed. Please try again."
647
-
648
- #### Friendly (Apps, Products)
649
- ```urdu
650
- ✅ کوئی مسئلہ! دوبارہ کوشش کریں۔
651
- ❌ Error 503
652
- ```
653
-
654
- Translation: "Oops! Try again."
655
-
656
- #### Technical (Developer Docs, Code)
657
- ```urdu
658
- ✅ API جواب میں خرابی: [error_code]
659
- ❌ بھئی، غلط ہوا
660
- ```
661
-
662
- Translation: "API response error: [error_code]"
663
-
664
- ### Currency & Localization
665
-
666
- Always use Pakistani Rupee (₨), not generic rupee (₹):
667
-
668
- ```html
669
- <!-- ✅ Correct -->
670
- <span lang="ur">₨ ۲۵,۰۰۰</span>
671
-
672
- <!-- ❌ Wrong -->
673
- <span lang="ur">₹ 25,000</span>
674
- ```
675
-
676
- ### Microcopy Examples
677
-
678
- | English | Urdu | Context |
679
- |---------|------|---------|
680
- | "Submit" | "بھیجیں" or "جمع کرائیں" | Form action |
681
- | "Cancel" | "منسوخ کریں" or "واپس جائیں" | Dismissal |
682
- | "Loading..." | "لوڈ ہو رہا ہے..." | Wait state |
683
- | "Error occurred" | "معافی چاہتے ہیں، کوئی مسئلہ واقع ہوا۔" | Error state |
684
- | "No results" | "کوئی نتیجہ نہیں ملا" | Empty state |
685
-
686
- ---
687
-
688
- ## 9. Anti-Patterns (Do NOT)
689
-
690
- ### ❌ Layout & Direction
691
-
692
- - **Hard-coded margin-left/right:** Breaks RTL layouts. Always use logical properties like `margin-inline-start` or `padding-inline-end`.
693
- - **Fixed Widths on Text Containers:** Urdu script has a large vertical footprint; fixed heights will cause "nuqta" (dot) clipping.
694
-
695
- ### ✅ Bidirectional (Bidi) Success Patterns
696
- - **Isolate LTR content:** When mixing Urdu with English product names, URLs, or numbers, always use the `<bdi>` tag or `dir="ltr"` to prevent punctuation (like brackets or periods) from flipping to the wrong side.
697
-
698
- ```html
699
- <p dir="rtl">
700
- Check our website <bdi dir="ltr">example.com</bdi> for more details.
701
- </p>
702
- ```
703
-
704
- ### ❌ Typography
705
-
706
- - **Generic Arabic fonts (Almarai, Droid Arabic):** Do not use Almarai or Noto Naskh Arabic. These do not support the cascading nature of Nastaliq and break spacing.
707
-
708
- - **Italic Urdu text:** Nastaliq doesn't have true italic. Font rendering breaks. Use bold or color for emphasis instead.
709
-
710
- - **Line-height < 1.8:** Narrow line heights will clip the dots (nuqtas). Maintain a minimum of 1.8 for all Urdu body text.
711
-
712
- ### ❌ Visual Design
713
-
714
- - **Soft shadows on Urdu text:** Shadows make nuqtas invisible. Use only on containers.
715
- ```css
716
- /* ❌ BAD */
717
- text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
718
-
719
- /* ✅ GOOD: Shadows only on containers */
720
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
721
- ```
722
-
723
- - **Emoji as primary icons:** Emoji is LTR by default; ambiguous in RTL. Use SVG icons instead.
724
- - **Truncate text with ellipsis in RTL:** `text-overflow: ellipsis` reads backwards. Use expand-button or full text instead.
725
- ```html
726
- <!-- ❌ BAD: Ellipsis reads wrong in RTL -->
727
- <p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
728
- یہ بہت لمبا متن ہے...
729
- </p>
730
-
731
- <!-- ✅ GOOD: Full text or expand-button -->
732
- <details>
733
- <summary lang="ur">مزید دیکھیں</summary>
734
- <p lang="ur">یہ بہت لمبا متن ہے جو مکمل طور پر دیکھنے کے لیے کلک کریں۔</p>
735
- </details>
736
- ```
737
-
738
- - **Aggressive purple gradients:** Doesn't match the Indus palette. Use Deep Teal or Terracotta.
739
- - **Low-contrast backgrounds:** Nastaliq nuqtas need high contrast (7:1+).
740
-
741
- ### ❌ Component Structure
742
-
743
- - **Icon Source Order:** In RTL buttons, the icon should be placed to the right of the text in the source code to maintain a natural visual flow.
744
- - **Directional Icons:** Always manually flip directional icons (like arrows) using transform: scaleX(-1) to align with RTL flow.
745
-
746
- ```html
747
- <!-- Icon on right in source; flex auto-reverses -->
748
- <button style="display: flex; gap: 8px;">
749
- <icon name="arrow-left" style="transform: scaleX(-1);"></icon>
750
- <span lang="ur">بھیجیں</span>
751
- </button>
752
- ```
753
-
754
- - **Form inputs without explicit labels:** Placeholders disappear; accessibility fails.
755
-
756
- ---
757
-
758
- ## Quick Start: RTL Bilingual Component
759
-
760
- Here's a complete, production-ready example:
761
-
762
- ```html
763
- <!DOCTYPE html>
764
- <html lang="ur" dir="rtl">
765
- <head>
766
- <meta charset="UTF-8">
767
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
768
- <title>Urdu Modern - Quick Start</title>
769
-
770
- <!-- Google Fonts: Noto Nastaliq Urdu -->
771
- <link href="https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap" rel="stylesheet">
772
-
773
- <style>
774
- :root {
775
- /* Colors */
776
- --color-primary: #0F595E;
777
- --color-primary-dark: #0D3F45;
778
- --color-accent: #C05621;
779
- --color-bg: #F4F1EA;
780
- --color-text: #1A202C;
781
- --color-border: #E2E8F0;
782
-
783
- /* Typography */
784
- --font-urdu: "Noto Nastaliq Urdu", serif;
785
- --font-latin: "Inter", "Segoe UI", sans-serif;
786
-
787
- /* Spacing */
788
- --space-xs: 4px;
789
- --space-sm: 8px;
790
- --space-md: 16px;
791
- --space-lg: 24px;
792
- --space-xl: 32px;
793
- }
794
-
795
- * {
796
- margin: 0;
797
- padding: 0;
798
- box-sizing: border-box;
799
- }
800
-
801
- body {
802
- font-family: var(--font-urdu);
803
- background: var(--color-bg);
804
- color: var(--color-text);
805
- line-height: 1.8;
806
- direction: rtl;
807
- -webkit-font-smoothing: antialiased;
808
- }
809
-
810
- .container {
811
- max-width: 600px;
812
- margin: 0 auto;
813
- padding: var(--space-lg);
814
- }
815
-
816
- h1 {
817
- font-size: 32px;
818
- font-weight: 700;
819
- margin-block-end: var(--space-lg);
820
- color: var(--color-primary);
821
- line-height: 1.4;
822
- }
823
-
824
- p {
825
- font-size: 16px;
826
- line-height: 1.8;
827
- margin-block-end: var(--space-md);
828
- color: var(--color-text);
829
- }
830
-
831
- .button-group {
832
- display: flex;
833
- gap: var(--space-md);
834
- margin-block-start: var(--space-lg);
835
- flex-direction: row-reverse; /* Reverses button order for RTL visual hierarchy */
836
- }
837
-
838
- .button {
839
- padding: 12px 24px;
840
- border: none;
841
- border-radius: 6px;
842
- font-family: var(--font-urdu);
843
- font-size: 16px;
844
- font-weight: 700;
845
- cursor: pointer;
846
- transition: background 0.2s ease;
847
- flex: 1;
848
- }
849
-
850
- .button-primary {
851
- background: var(--color-primary);
852
- color: white;
853
- }
854
-
855
- .button-primary:hover {
856
- background: var(--color-primary-dark);
857
- }
858
-
859
- .button-secondary {
860
- background: transparent;
861
- color: var(--color-primary);
862
- border: 2px solid var(--color-primary);
863
- }
864
-
865
- .button-secondary:hover {
866
- background: rgba(15, 89, 94, 0.1);
867
- }
868
-
869
- .button:focus {
870
- outline: 2px solid var(--color-accent);
871
- outline-offset: 2px;
872
- }
873
-
874
- .code-block {
875
- background: #f5f5f5;
876
- padding: var(--space-md);
877
- border-radius: 6px;
878
- font-family: "Courier New", monospace;
879
- direction: ltr; /* Code is LTR, even in RTL pages */
880
- text-align: left;
881
- margin-block: var(--space-md);
882
- border-inline-start: 4px solid var(--color-accent);
883
- }
884
- </style>
885
- </head>
886
- <body>
887
- <div class="container">
888
- <h1>خیر مقدم — Urdu Modern Quick Start</h1>
889
-
890
- <p>
891
- یہ ایک مکمل مثال ہے جو دکھاتی ہے کہ کیسے Urdu Modern ڈیزائن سسٹم استعمال کریں۔
892
- </p>
893
-
894
- <p>
895
- یہاں کچھ اہم خصوصیات ہیں:
896
- </p>
897
-
898
- <ul style="margin-block-start: var(--space-md); margin-inline-start: var(--space-lg);">
899
- <li>نسطعلیق فونٹ خودکار طور پر RTL کے لیے بہتر بنایا گیا ہے</li>
900
- <li>رنگ نقطے <code>#0F595E</code> معلومات تنبیہی کے ساتھ منظم ہیں</li>
901
- <li>تمام اردو ٹیکسٹ <code>lang="ur"</code> کے ساتھ نشان زد ہے</li>
902
- </ul>
903
-
904
- <div class="code-block">
905
- &lt;button class="button-primary"&gt;موافقہ&lt;/button&gt;
906
- </div>
907
-
908
- <div class="button-group">
909
- <button class="button button-primary">موافقہ</button>
910
- <button class="button button-secondary">منسوخ</button>
911
- </div>
912
- </div>
913
- </body>
914
- </html>
915
- ```
916
-
917
- ---
918
-
919
- ## How the AI Agent Should Use This System
920
-
921
- When an agent generates UI using the Urdu Modern design system, it **must** follow these rules:
922
-
923
- 1. **Set document direction:** Root `<html>` element always has `dir="rtl"` and `lang="ur"`
924
-
925
- 2. **Wrap Urdu text:** All Urdu strings wrapped in semantic tags with `lang="ur"`:
926
- ```html
927
- <h1 lang="ur">یہ ایک سرخ</h1>
928
- <p lang="ur">یہاں متن ہے۔</p>
929
- ```
930
-
931
- 3. **Use logical CSS properties:** Never hard-code `left`/`right`; use logical equivalents:
932
- ```css
933
- margin-inline-start /* instead of margin-left */
934
- padding-inline-end /* instead of padding-right */
935
- inset-inline-start /* instead of left */
936
- ```
937
-
938
- 4. **Respect line-height:** Minimum 1.8 for body Urdu text; never drop below 1.6
939
-
940
- 5. **Test icon mirroring:** Directional icons (arrows, back buttons) must flip in RTL context:
941
- ```html
942
- <!-- Icon automatically flips in RTL thanks to flex direction -->
943
- <button>
944
- <span lang="ur">بھیجیں</span>
945
- <svg class="icon-send" aria-hidden="true"><!-- SVG --></svg>
946
- </button>
947
- ```
948
-
949
- 6. **Validate color contrast:** Every text-color combination must meet WCAG AA (4.5:1 minimum)
950
-
951
- 7. **Test bilingual:** When mixing Urdu + English/code, ensure:
952
- - Urdu text flows RTL
953
- - Code blocks/English remain LTR
954
- - No text reflow on directional change
955
-
956
- 8. **Use system tokens:** Never hard-code colors/spacing; use CSS variables:
957
- ```css
958
- background: var(--color-primary);
959
- padding: var(--space-md);
960
- ```
961
-
962
- ---
963
-
964
- ## Design System Metadata (For OD Daemon)
965
-
966
- ```yaml
967
- name: Urdu Modern
968
- slug: urdu
969
- description: Premium design system for Urdu-first digital experiences
970
- category: Editorial / Personal / Publication
971
- language: Urdu (ur) + English
972
- rtl_primary: true
973
- fonts:
974
- - name: Noto Nastaliq Urdu
975
- url: https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700
976
- - name: Inter
977
- url: system
978
- primary_color: "#0F595E"
979
- accent_color: "#C05621"
980
- target_audience: Pakistani startups, news, education, government, global Urdu communities
981
- ```
982
-
983
- ---
984
-
985
- ## Resources & References
986
-
987
- - **Noto Nastaliq Urdu Font:** https://fonts.google.com/noto/specimen/Noto+Nastaliq+Urdu
988
- - **WCAG Accessibility Guidelines:** https://www.w3.org/WAI/WCAG21/quickref/
989
- - **CSS Logical Properties:** https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
990
- - **RTL Best Practices:** https://www.w3.org/International/questions/qa-html-dir
991
- - **Urdu Typography Guide:** https://fonts.google.com/knowledge/glossary/nastaliq
992
-
993
- ---
994
-
995
- ## Version History
996
-
997
- | Version | Date | Changes |
998
- |---------|------|---------|
999
- | 1.0 | 2025-05-07 | Initial release; complete Nastaliq + RTL + bilingual support |
1000
-
1001
- **Last Updated:** 2025-05-07
1002
- **Status:** Production-Ready ✅