James Anderson James Anderson - 1 year ago 137
Less Question

Font stack from SCSS to LESS?

How would I write this code in LESS, from SCSS? The error it gives is "Selector matches unknown element font-stack".

$font-stack: 'Raleway', 'Helvetica Neue', Verdana, Arial, sans-serif;
$font-stack-body: 'Open Sans', Trebuchet, Tahoma, sans-serif;

$color-primary: #ff7200;
$color-primary-light: #f90;
$color-primary-dark: #e51;
$color-secondary: #005790;
$color-secondary-light: #0072bc;
$color-secondary-dark: #00384a;

Answer Source

Exactly, as Mr Alien said, you should do

@font-stack: 'Raleway', 'Helvetica Neue', Verdana, Arial, sans-serif;
@font-stack-body: 'Open Sans', Trebuchet, Tahoma, sans-serif;

@color-primary: #ff7200;
@color-primary-light: #f90;
@color-primary-dark: #e51;
@color-secondary: #005790;
@color-secondary-light: #0072bc;
@color-secondary-dark: #00384a;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download