One design system for the radex.ma app and every mini app. It follows the WeChat mini program design guidelines (WeUI conventions), with radex.ma green, Darija first and right-to-left first. Everything here is in the SDK: include /sdk/radex-ui.css and /sdk/radex.js.
Single source: brand/design/tokens.json, generated into the SDK CSS and the Android theme. Light and dark switch automatically.
#0B7A4Brgba(11,122,75,.12)#FFFFFF#EDEDED#FFFFFF#F7F7F7#EFEFEFrgba(0,0,0,.9)rgba(0,0,0,.55)rgba(0,0,0,.3)rgba(0,0,0,.1)rgba(0,0,0,.18)#576B95#FA5151#FA9D3B#FFF4E5#8A4B00#F2A900rgba(0,0,0,.6)#3FB67Crgba(63,182,124,.16)#FFFFFF#111111#191919#202020#2C2C2Crgba(255,255,255,.85)rgba(255,255,255,.55)rgba(255,255,255,.3)rgba(255,255,255,.08)rgba(255,255,255,.16)#7D90A9#FA5151#FFB341#33270F#FFD28A#F2B90Drgba(0,0,0,.7)| display 22 | 22/30 · 600 | Page titles |
| title 17 | 17/24 · 600 | Navigation bar, section titles, buttons, list titles |
| body 15 | 15/22 · 400 | Body text, list content |
| caption 14 | 14/20 · 400 | Descriptions, secondary text |
| small 12 | 12/16 · 400 | Labels, notes, timestamps |
--h-touch | 48px |
--h-button-lg | 48px |
--h-button-md | 40px |
--h-button-sm | 32px |
--h-cell | 56px |
--h-navbar | 44px |
--h-tabbar | 56px |
--h-icon | 24px |
--r-tag | 4px |
--r-button | 8px |
--r-card | 12px |
--r-sheet | 16px |
--r-round | 999px |
One primary button per screen. Large 48px for main actions, 40px inside cards, 32px for compact rows.
radex.ma line icons: 24-unit grid, 1.8 stroke, round caps. radex.icon("name", size) returns an inline SVG in the current text color.