<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mazin Musleh</title>
    <description>The latest articles on DEV Community by Mazin Musleh (@mazin-musleh).</description>
    <link>https://dev.to/mazin-musleh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265674%2Fd85da530-d7a8-4714-a7a2-052010ec75ed.png</url>
      <title>DEV Community: Mazin Musleh</title>
      <link>https://dev.to/mazin-musleh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mazin-musleh"/>
    <language>en</language>
    <item>
      <title>Saudi Arabia's Government Design System (كود المنصات), for Any Tech Stack</title>
      <dc:creator>Mazin Musleh</dc:creator>
      <pubDate>Thu, 26 Nov 2026 00:55:03 +0000</pubDate>
      <link>https://dev.to/mazin-musleh/saudi-arabias-government-design-system-kwd-lmnst-for-any-tech-stack-1294</link>
      <guid>https://dev.to/mazin-musleh/saudi-arabias-government-design-system-kwd-lmnst-for-any-tech-stack-1294</guid>
      <description>&lt;p&gt;Saudi Arabia's Digital Government Authority (DGA) sets one design system for the country's government websites and digital services. In Arabic it is called كود المنصات (Platforms Code).&lt;/p&gt;

&lt;p&gt;The DGA provides the design specifications through public Figma files, alongside an official React and Storybook library containing the core UI components.&lt;/p&gt;

&lt;p&gt;This is a good foundation for teams working with React. But many government websites run on CMS platforms, server-rendered pages, or legacy technologies that are not built around React. Moving to a new framework is not always practical, and a component library alone is not enough to build complete pages. Teams also need layouts, headers, footers, page templates, and the patterns that bring everything together.&lt;/p&gt;

&lt;p&gt;That's why I built &lt;strong&gt;NDS-vanilla&lt;/strong&gt;: an independent, open-source implementation of the same design system using standard HTML, CSS, and JavaScript. It is released under the MIT license and is not affiliated with the DGA.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live documentation: &lt;a href="https://mazin-musleh.github.io/NDS-vanilla/" rel="noopener noreferrer"&gt;https://mazin-musleh.github.io/NDS-vanilla/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub repository: &lt;a href="https://github.com/mazin-musleh/NDS-vanilla" rel="noopener noreferrer"&gt;https://github.com/mazin-musleh/NDS-vanilla&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why vanilla HTML, CSS, and JavaScript?
&lt;/h2&gt;

&lt;p&gt;Standard web technologies work across virtually any environment: static websites, PHP or .NET applications, CMS themes, and even React or Vue projects.&lt;/p&gt;

&lt;p&gt;There is no framework dependency, mandatory build process, or framework-specific version to maintain. Teams can adopt the components without changing their existing technology stack.&lt;/p&gt;

&lt;p&gt;It also makes the implementation easier to understand and maintain. Developers can inspect the source code and see exactly how each component works, without needing to look through a framework abstraction or compiler output.&lt;/p&gt;

&lt;h2&gt;
  
  
  More than a component library
&lt;/h2&gt;

&lt;p&gt;NDS-vanilla provides the building blocks for complete government websites, not just individual UI components.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;110+ components:&lt;/strong&gt; Buttons, forms and validation, modals, tables, charts, date pickers, tabs, a rich text editor, and many more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complete layout system:&lt;/strong&gt; A section model and responsive grid for composing full pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Page structure:&lt;/strong&gt; Top bar, header, main navigation, hero, side menu, side information, and footer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;16 DGA page templates:&lt;/strong&gt; Ready-to-use pages covering services, FAQs, contact, search, KPIs, Life Journeys, and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;15 complete examples:&lt;/strong&gt; Practical implementations including a student portal, administration console, appointment booking, and other use cases.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Arabic-first, with full RTL and LTR support
&lt;/h2&gt;

&lt;p&gt;The system is designed with Arabic as its default language and right-to-left (RTL) direction, while providing full English and left-to-right (LTR) support.&lt;/p&gt;

&lt;p&gt;CSS logical properties, such as &lt;code&gt;margin-inline-start&lt;/code&gt; and &lt;code&gt;inset-inline-end&lt;/code&gt;, allow the same stylesheets to work in both directions without maintaining separate RTL and LTR styles.&lt;/p&gt;

&lt;p&gt;Components ship with English and Arabic text and follow the page's &lt;code&gt;lang&lt;/code&gt;. Any word can be changed, and a new language can be added by translating one JSON file of English strings, with no changes to NDS files. See the &lt;a href="https://mazin-musleh.github.io/NDS-vanilla/core/i18n.html" rel="noopener noreferrer"&gt;internationalization docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Dates were the hardest part. Saudi government services use both the Gregorian and the Hijri calendar, so the date picker supports both.&lt;/p&gt;

&lt;p&gt;A single HTML attribute can switch the calendar for an individual field or the entire website:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ar"&lt;/span&gt; &lt;span class="na"&gt;dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"rtl"&lt;/span&gt; &lt;span class="na"&gt;data-calendar&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hijri"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The date picker also handles practical localization requirements, including automatic conversion when a Hijri date is pasted into a Gregorian field and recognition of Arabic-Indic digits as numeric input.&lt;/p&gt;

&lt;h2&gt;
  
  
  Performance by design
&lt;/h2&gt;

&lt;p&gt;The complete library is approximately 190 KB gzipped, but individual pages do not need to load the entire library.&lt;/p&gt;

&lt;p&gt;A core bundle of approximately 64 KB is loaded on every page, while component-specific scripts are loaded only when their corresponding markup is present. The documentation website scores 100 on PageSpeed Insights.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accessibility built in
&lt;/h2&gt;

&lt;p&gt;Government digital services must be accessible to everyone.&lt;/p&gt;

&lt;p&gt;NDS-vanilla includes an accessibility panel that allows visitors to customize their browsing experience. Available options include dyslexia-friendly reading support, text size and spacing adjustments, motion reduction, a reading mask, and color filters.&lt;/p&gt;

&lt;p&gt;Each preference stays in place as visitors move between pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rebranding without a rebuild
&lt;/h2&gt;

&lt;p&gt;The default look follows the DGA palette, but any organization can apply its own brand without touching component styles. See the &lt;a href="https://mazin-musleh.github.io/NDS-vanilla/foundations/themes.html" rel="noopener noreferrer"&gt;theming docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Set a few seed colors on &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;, and NDS-vanilla builds the whole palette from them, dark mode included:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ar"&lt;/span&gt; &lt;span class="na"&gt;dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"rtl"&lt;/span&gt; &lt;span class="na"&gt;data-palette&lt;/span&gt;
      &lt;span class="na"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"--brand-primary: #7c3aed; --brand-secondary: #ec4899;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only the primary seed is required.&lt;/p&gt;

&lt;p&gt;For exact brand colors, use your own stylesheet instead. Load it right after the NDS critical CSS and set the color tokens at &lt;code&gt;:root&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"assets/themes/my-brand.css"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--colors-primary-500&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#25935f&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--colors-primary-600&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#1b8354&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="cm"&gt;/* your brand color */&lt;/span&gt;
  &lt;span class="nv"&gt;--colors-primary-700&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#166a45&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="cm"&gt;/* ... */&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same stylesheet can also set the brand font and add brand art, such as patterns and footer graphics.&lt;/p&gt;

&lt;p&gt;The seasonal themes for Saudi Foundation Day, Hajj, and National Day are built the same way. Applying one requires only a single script tag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Designed for AI coding agents
&lt;/h2&gt;

&lt;p&gt;AI coding agents are increasingly involved in building and maintaining websites. However, they can sometimes generate plausible-looking markup and class names that do not actually belong to the design system.&lt;/p&gt;

&lt;p&gt;To address this, NDS-vanilla includes &lt;strong&gt;&lt;a href="https://mazin-musleh.github.io/NDS-vanilla/guides/integration-quality.html" rel="noopener noreferrer"&gt;NDS IQ (Integration Quality)&lt;/a&gt;&lt;/strong&gt;, a versioned instruction system that helps AI coding agents follow the implementation rules consistently.&lt;/p&gt;

&lt;p&gt;The Get Started guide provides a setup prompt that downloads the NDS IQ instructions into the project and connects them to the agent through &lt;code&gt;AGENTS.md&lt;/code&gt; or &lt;code&gt;CLAUDE.md&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This allows Claude Code, Cursor, Codex, and other compatible agents to follow the same integration rules, including an important one: component markup must be copied from the NDS-vanilla doc pages rather than independently generated or guessed.&lt;/p&gt;

&lt;p&gt;NDS-vanilla also includes a built-in markup auditing mechanism:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;findings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="no"&gt;NDS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;audit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The audit lists implementation issues, such as outdated class names with their replacements. An agent reads the findings and fixes the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;p&gt;The quickest way to get started is to open the Get Started guide, copy the provided setup prompt, and give it to your coding agent.&lt;/p&gt;

&lt;p&gt;The setup process installs the project template and configures the NDS IQ instructions. A manual two-step installation is also available for agents that cannot download files directly.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Documentation:&lt;/strong&gt; &lt;a href="https://mazin-musleh.github.io/NDS-vanilla/" rel="noopener noreferrer"&gt;https://mazin-musleh.github.io/NDS-vanilla/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get Started:&lt;/strong&gt; &lt;a href="https://mazin-musleh.github.io/NDS-vanilla/guides/get-started.html" rel="noopener noreferrer"&gt;https://mazin-musleh.github.io/NDS-vanilla/guides/get-started.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Latest release:&lt;/strong&gt; &lt;a href="https://github.com/mazin-musleh/NDS-vanilla/releases/latest" rel="noopener noreferrer"&gt;https://github.com/mazin-musleh/NDS-vanilla/releases/latest&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; The default visual identity, including colors, logos, and the digital stamp, is intended exclusively for Saudi government entities. Other projects must replace these elements with their own visual identity before going live.&lt;/p&gt;

&lt;p&gt;Feedback and issues are welcome.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>opensource</category>
      <category>designsystem</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
