2.0.0 • Published 3 years ago
postcss-roman-numerals v2.0.0
PostCSS Roman Numerals
PostCSS plugin that allows to use roman numerals in your CSS code.
Example
Input
.app {
min-height: Cvh;
max-width: MCCpx;
padding: XIIpx IXpx;
}
.app__title {
font-size: IIem;
}
.app__logo {
width: C%;
}Output
.app {
min-height: 100vh;
max-width: 1200px;
padding: 12px 9px;
}
.app__title {
font-size: 2em;
}
.app__logo {
width: 100%;
}Usage
Step 1: Install plugin:
npm install --save-dev postcss postcss-roman-numeralsStep 2: Check your project for existing PostCSS config: .postcssrc in the project root, "postcss" section in package.json or postcss in bundle config.
If you do not use PostCSS, add it according to official docs and set this plugin in settings.
Step 3: Add the plugin to your PostCSS config:
{
"plugins": {
+ "postcss-roman-numerals": {},
"autoprefixer": {}
}
}Contributing
Pull requests are welcome.
License
MIT © Azat S.