Installation
Build consistent legal-tech interfaces without rebuilding the basics. Follow these steps to start a new project, or to add the DigiLawyer Design System to one you already have.
Start a New Project
Scaffold a React app, authenticate against GitHub Packages, then install the library.
Scaffold your project
Choose your framework and run the create command.
Point the scope at GitHub Packages
The library is published to GitHub Packages rather than the public npm registry, so the @adeshsingh0604 scope needs its own registry line. Add an .npmrc at the project root, with a personal access token that carries the read:packages scope.
Install the library
Import the stylesheet once
One import at your app root brings in every design token and all component styles. Importing it per-component is unnecessary and will cost you duplicate CSS.
Add to Existing Project
Already running React 18 or 19? Two steps: authenticate, then install.
Add the registry line
Install and import
Dark Mode
Every colour in the system resolves from a CSS custom property. Dark mode swaps the token values on the root element — no component takes a theme prop, and nothing needs to re-render.
Usage Example
Components are named exports from the package root. Import what you need.