The Design module provides the building blocks for creating design systems.
It is included in the Framework shared by Tangible plugins.
For development, the module can run as a standalone plugin. In that case, it adds an admin menu Tangible -> Design, which currently shows a test page for HTML5 elements.
Possible features to be implemented:
Design tokens
Style primitives - Atoms, components, pallettes, themes
Design system as a set of variables with sensible defaults, which enable the user to customize while keeping the whole consistent
Accessible UI patterns
Prerequisites: Git and Node (minimum version 18)
Clone the Git repository, and install dependencies.
git clone git@github.com:tangibleinc/design tangible-design
cd tangible-design
npm install
Start the server.
npm run start
It opens a browser at http://localhost:8881
and logs you in automatically. Test user is admin
with password
.
Press CTRL + C to stop.
This method is the easiest way to serve a local site without installing anything. It uses wp-now and WordPress Playground. You're free to use any other way to run a local server.
For convenience, this command also starts the development build script described below.
Build files (CSS/JS), and watch for changes to rebuild
npm run dev
Press CTRL + C to stop.
Use this command if you're running a local server other than wp-now
.
Build and minify files
npm run build
The following command runs the script version.js
to update the version number in some files.
npm run version