mdcss icon indicating copy to clipboard operation
mdcss copied to clipboard

Styleguide doesn't port over css

Open Risto-Stevcev opened this issue 5 years ago • 2 comments

I just followed the basic example

/* index.css */

/*---
title:   Buttons
section: Base CSS
---

Button styles can be applied to any element. Typically you'll want to use
either a `<button>` or an `<a>` element:

\```example:html
<button class="btn">Click</button>
<a class="btn" href="/some-page">Some Page</a>
\```
*/

.btn {
	background-color: black;
	color: white;
}

And tried it with postcss:

// postcss.config.js
const postcssPresetEnv = require('postcss-preset-env')

module.exports = {
  plugins: [
    postcssPresetEnv({ browsers: '> 3%, ie 11' }),
    require('mdcss')({}),
  ]
}
cat css/index.css | yarn postcss > output.css

It generated the styleguide but it doesn't port over the styles from index.css

Risto-Stevcev avatar Apr 13 '20 21:04 Risto-Stevcev

@Risto-Stevcev Ever find a solution to this?

stordahl avatar Aug 05 '21 20:08 stordahl

Ah I'm not sure it was a while ago, I don't remember which project I used this for

Risto-Stevcev avatar Aug 06 '21 11:08 Risto-Stevcev