Particle is an opinionated set of tools and examples to:
In depth documentation about frontend approach using this project at Phase2 Frontend Docs
Step-by-step instructions to install all dependencies for OSX can be found in this Gist.
@atoms/thing.twig
means the same thing to Drupal theme and Pattern
Lab.Particle builds design systems in dev mode for local hosting, or production mode for optimized asset generation.
Simply run:
npm create @phase2/particle particle
Then cd particle/
and run:
npm start
any/where/particle/README.md
)npm install
npm run setup
npm start
Simply wait until the webpack bundle output appears then visit http://0.0.0.0:8080/app-pl/pl/ (or http://localhost:8080/app-pl/pl/) and start working.
That's it. For much greater detail on the frontend approach using this project, check out the Phase2 Frontend Docs.
The Design System Source folder is named default ./source/default
. It's handy
in multi-design setups to name this per design system and post-fix apps
with
that design system name. For example, apps/drupal-default/
contains the
implementation of the default
source directory. These are intended to be
updated by the needs of your project.