-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using .css source files #507
Comments
I started looking at the status of CSS support yesterday. I think plain CSS has not been popular among style guide users and has therefore not received much attention. |
KSS has been defined for plain CSS so that should not be a problem. See http://warpspire.com/kss/syntax/ for an example of that. However this does not guarantee that the syntax would work with SC5-Styleguide. |
We do not currently have tests for plain CSS. I tried adding some plain CSS tests by simply copying the LESS tests and turning them into similar CSS notation. However, the current tests have been written for preprocessors that support variables. Therefore the test javascript would require some tweaking to make it skip the part of tests related to variables when testing basic CSS. |
I decided to test the behaviour from the command line and created a file with name button.css with the following contents:
Now when running command |
I got the example from above working by adding |
Fix basic plain CSS support, fixes #507
Thank you for looking into this! Do you have an ETA of when it'll be released? |
We have planned a release cycle of perhaps every other week but we have not yet agreed on how exactly it will work, so unfortunately I can not give you a date right now. |
I'm trying to generate a style guide only using .css files, but I'm getting the following error:
TypeError: Cannot read property 'test' of undefined
which results in the styleguide not building correctly.
I've tried with a number of different setups, these being:
source = 'lib/app/**/*.scss'
tosource = 'lib/app/**/*.css'
- I placed a CSS stylesheet in this directory.styleguide
from the command line with the following options:styleguide --kss-source "style.css" --style-source "style.css" --output styleguide
.On each occasion, if I rename my css file to '.scss' the error goes away.
Is there a way I can use vanilla CSS files to generate the style guide, and if so, is there anything obvious that I've missed?
The text was updated successfully, but these errors were encountered: