Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Styleguide doesn't port over css #42

Open
Risto-Stevcev opened this issue Apr 13, 2020 · 2 comments
Open

Styleguide doesn't port over css #42

Risto-Stevcev opened this issue Apr 13, 2020 · 2 comments

Comments

@Risto-Stevcev
Copy link

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

@stordahl
Copy link

stordahl commented Aug 5, 2021

@Risto-Stevcev Ever find a solution to this?

@Risto-Stevcev
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants