Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

$foundation-palette: Not compiling #816

Closed
peterbaio opened this issue May 11, 2016 · 4 comments
Closed

$foundation-palette: Not compiling #816

peterbaio opened this issue May 11, 2016 · 4 comments

Comments

@peterbaio
Copy link

I've exhausted my research on why this is happening. When I comment this variable out, $breakpoints does not compile. Any help?

Syntax error: Invalid CSS after " primary": expected ")", was ": #2199e8,"
on line 52 of /Applications/MAMP/htdocs/sinfitWebsite/wp-content/themes/sinfit/assets/scss/global/_settings.scss
from line 11 of /Applications/MAMP/htdocs/sinfitWebsite/wp-content/themes/sinfit/assets/scss/foundation.scss

$foundation-palette: (
primary: #2199e8,
secondary: #777,
success: #3adb76,
warning: #ffae00,
alert: #ec5840,
);

@colin-marshall
Copy link
Collaborator

@peterbaio your question is not clear. Are you commenting out $breakpoints or $foundation-palette? And why are you commenting it out?

@peterbaio
Copy link
Author

Hi Colin,

I was just testing to see if there was an issue with $foundation-palette that's why I commented it out. The issue seems to be how the variable is written out cause $breakpoints is written out the same way.

@fredconv
Copy link

fredconv commented Jun 16, 2016

Hi

I ve got thte same problem here

I ve just installed the theme, didn't change anything, try to compile but i get this error:
"parse error: failed at $foundation-palette: (.../wp-content/themes/FoundationPress-master/assets/scss/global/_settings.scss on line 51"

and in the _settings.scss


$global-font-size: 100%;
$global-width: rem-calc(1200);
$global-lineheight: 1.5;
$foundation-palette: (
  primary: #2199e8,
  secondary: #777,
  success: #3adb76,
  warning: #ffae00,
  alert: #ec5840,
);
$light-gray: #e6e6e6;
$medium-gray: #cacaca;
$dark-gray: #8a8a8a;
$black: #0a0a0a;
$white: #fefefe;
$body-background: $white;
$body-font-color: $black;
$body-font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
$body-antialiased: true;
$global-margin: 1rem;
$global-padding: 1rem;
$global-weight-normal: normal;
$global-weight-bold: bold;
$global-radius: 0;
$global-text-direction: ltr;
$global-flexbox: false;
$print-transparent-backgrounds: true;
@include add-foundation-colors;

same as above, if i remove the variable, another variable written the same way (list of value) , i got a parse error.

I ve tried it with wp-scss auto compiler, and the npm watch also TT_TT

Thanks for your help

@olefredrik
Copy link
Owner

Unable to recreate issue on latest version of FoundationPress.

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

4 participants