Pattern Library for MLTSHP Apps
Pattern Library for MLTSHP Apps
Welcome to the Pattern Library repository! The intent is that any MLTSHP app should be able to consume the Pattern Library package to quickly inherit the MLTSHP look and feel. This package is being used on the main MLTSHP site, so we're eating our own dogfood here.
Contributions are welcome! Please see the Contributing Guide.
Pull in MLTSHP's pattern library files into nearly any project with a package manager.
The package includes both the compiled code and the source files. So you can either include the compiled CSS, or load the source files directly. If you use the source files, you'll need to compile them yourself, using Sass and postcss-inline-svg.
Install in your Node.js powered apps using npm or yarn:
npm install mltshp-patterns
yarn add mltshp-patterns
Improve contrast of link text on dark background
https://github.com/MLTSHP/mltshp-patterns/issues/1457
Labels: 없음
Remove base font size override
https://github.com/MLTSHP/mltshp-patterns/issues/1409
Labels: 없음
Standardise plain text heading sizes
https://github.com/MLTSHP/mltshp-patterns/issues/1408
Labels: 없음
Remove button styling for class-less a tags
https://github.com/MLTSHP/mltshp-patterns/issues/1359
Labels: 없음
"is following" page unfollow button misaligns
https://github.com/MLTSHP/mltshp-patterns/issues/1357
Labels: 없음
So you want to contribute to MLTSHP… Congratulations! Here's what you'll need to know.
We use the "fork and pull" model, which means you'll need to start by forking our repo, then make some changes, and then submit a pull request back to the main repo.
npm ci to install dependencies.npm start to start a local instance of our preview site.Any changes you make should automatically be reflected in the preview site.
To test your changes in a your local mltshp development ennvironment, run npm run build in mltshp-patterns and copy the resultant CSS files from dist to the static/css folder in your DE.
The output of this project is CSS patterns and components. We generate that CSS using Sass and PostCSS.
Our PostCSS setup is minimal. We're running postcss-inline-svg to convert SVGs in the CSS into inline code, and we're running cssnano to minify the final output.
We run Stylelint against Sass files, ESLint against JS files, and Prettier against all files. Linting will be run automatically against any pull requests.
You'll want to create a pull request from a fork of this repo. Once you do, we'll review your code, suggest changes, and eventually merge them! Then your changes will be available for anyone using the package, including the main MLTSHP site!
Only admins need to worry about these step.
git checkout maingit pullgit status should show no changes)CHANGELOG.md with a summary of your changesnpm version [major | minor | patch]npm publish - This will automatically install and compile everything, run linting, and publishgit push && git push --tagsnpm run builddist folder to the static/css folder in the MLTSHP repo.