postcss-roman-numerals

2.0.0 • Public • Published

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-numerals

Step 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.

Package Sidebar

Install

npm i postcss-roman-numerals

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

4.24 kB

Total Files

5

Last publish

Collaborators

  • azat-io