Skip to content

DGA Design System — Documentation

Documentation for @waaelg/dga-design-system: Saudi DGA design system utilities, components, and optional JavaScript.

Package: npm · Demo: run npm run dev in the repo root


Getting Started

DocDescription
Installationnpm, HTML, ASP.NET, Vue, React
JavaScript APIInteractive component classes
Web Components<dga-*> custom elements
RTL & ArabicRight-to-left setup

Foundations

DocDescription
ColorsPalettes, semantic colors, utilities
Colors cheatsheetQuick class reference
Color swatchesHex values per shade
TypographyDisplay, text sizes, weights
SpacingPadding, margin, gap
Grid & FlexLayout, flexbox, display
Width & Heightdga-w-*, dga-h-*
Border radiusRadius utilities

Components

ComponentDocDemoJS / WC
Buttonbutton.mdindex.htmlNo
Alertalert.mdalerts.htmlWC or class
Accordionaccordion.mdindex.htmlWC or class
Navbarnavbar.mdindex.htmlYes
Cardcard.mdindex.htmlNo
Formsforms.mdindex.htmlNo
Tabletable.mdindex.htmlNo
Breadcrumbbreadcrumb.mdindex.htmlNo
Linklink.mdindex.htmlNo
Tagtag.mdindex.htmlNo
Dividerdivider.mdindex.htmlNo
Code snippetcode-snippet.mdindex.htmlWC or class
Pie chartchart.mdindex.htmlWC or class
Verify barverify-bar.mdverify-bar.htmlWC or class
Avataravatar.mdNo

WC = web component (<dga-*>) registered on package import.


Changelog

See changelog.md.


Doc conventions

Every component page includes:

  1. Overview
  2. HTML structure
  3. Classes and variants (from source SCSS)
  4. Copy-paste examples (from demo HTML)
  5. JavaScript setup (if needed)
  6. Accessibility notes

Class names are verified against dist/style.css after npm run build.

MIT Licensed — Wael Alghamdi