PAM is a light and modular CSS library. Based and inspired by the Attribute Modules for CSS methodology (AMCSS).
$ npm i pam-css
To get started use one of the the raw css files (pam.css or pam.min.css) in the
PAM can be integrated in projects that use LESS as preprocessor. Import the main less file (
pam.less) in the
dist/less folder to your projects main LESS file, and then your good to go.
Prerequisites: Node and npm
$ git clone https://github.com/mrgreentech/pam.git$ cd pam$ npm i$ npm run build
npm run build
It starts by linting all the less files in the source with
stylelint. After that gulp takes over and starts of by cleaning the build folders and copying the less source files to the build folder. Then files are concated and stamped with license banners. Now the less can be parsed to css which result in the
pam.cssfile. The final step is to minify the css and then prepare the styleguide build by copying
styleguidefolder. Now it's time to build the styleguide and when that's done a file size report is shown in the console.
npm run dev
This is the one to use for local development of PAM and it's kind of a mind bender. It starts of by doing a
build, after that it runs browsersync and onchange in parallel. So that when a change in the
srcfolder is done a build is triggered and when the files in the
buildfolder is updated browsersync updates the browser with the changes.
npm run dist
This is straight forward. Runs a build, cleans the dist folder and copies dist files from build folder.
This simply runs a build since it contains all the steps that needs to be working.
Check if stylelint and prettier have any conflicts at the moment.
Head over to the PAM style guide for documentation and examples.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -a -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
PAM v1 (Legendary grasshopper) is in the making so stay tuned...
For further information about history have a look at the CHANGELOG.
This software is free to use under the MRG Gametek AB BSD license. See the license doc for license and copyright information.