The Prodemos Design System (PDS) attempts to normalize the design used for apps and sites within the Prodemos ecosystem. You can install and use it in your app.
It does not by default change any of the design in your app; instead it offers tools and utilities to comply with ProDemos' standards. For example, it does not specify any default fonts, but it does provides the standard fonts used by ProDemos. It does not specify any colors, but it does provide methods to use Prodemos' default color sets - etcetera.
You can view the design system in action at https://pds.prodemos.nl/
Each release comes with a number of packages and assets you can use in your own project. Current packages are
You can download the packages as zip files at the releases page: https://github.com/ProDemos/pds/releases
The packages are available as NPM packages too, see https://github.com/orgs/ProDemos/packages?repo_name=pds
Since this is a Github NPM Package, you will need to authenticate with GitHub Packages, to install the module. Start by creating a personal access token. It needs only read:packages
permissions.
Now copy your personal access token, and store it in your npm config:
npm config set "@prodemos:registry" https://npm.pkg.github.com/
npm config set "//npm.pkg.github.com/:_authToken" [your GitHub access token from step 1]
These values are probably stored in your ~/.npmrc.
Now you can install the package:
npm install @prodemos/(packagename)
Your co-developers will need to get the same instructions before they can install your project.
You can add specific assets to your project by defining the package in your composer.json
"repositories":[
{
"type": "package",
"package": {
"name": "prodemos/pds",
"version": "v5.0.1",
"dist": {
"url": "https://github.com/ProDemos/pds/releases/download/v5.0.1/pds-compiled.tgz",
"type": "tar"
}
}
}
]
and run composer require prodemos/pds
. This will download and unzip the asset in vendor/prodemos/pds/
You can pull this full repository into your project as a git submodule
https://git-scm.com/book/en/v2/Git-Tools-Submodules
git submodule add https://github.com/prodemos/pds
git submodule init
After installing, the package provides an assets
folder somewhere
in your installation.
Depending on the package you installed, the assets folder may contain any or all of these folders:
If you installed a compiled package, you can include the plain css/javascript into your project
<link rel="stylesheet" href="https://github.com/ProDemos/pds/blob/develop/../pds/assets/css/reset.css">
<link rel="stylesheet" href="https://github.com/ProDemos/pds/blob/develop/../pds/assets/css/main.css">
The reset.css is optional.
If you installed a package containing sass, you can import
the reset and main scss files. Make sure to override
$pds-assets-path
to point to the right root folder
// override the pds assets base
$pds-assets-path: "@pds";
// import pds
@import "@pds/sass/reset.scss"; // optional
@import "@pds/sass/main.scss";
There are more variables you can override before including the scss files, like breakpoints and fontsizes. YMMV.
To install this repo locally and make changes to PDS, see docs/Development.md.
See docs/Distribution.md on how to create a new release.