Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 931575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:31:32+00:00 2026-05-15T20:31:32+00:00

I am using SASS and it has been working, but now I get this…

  • 0

I am using SASS and it has been working, but now I get this…

Syntax error on line 1: Properties aren't allowed at the root of a document.

My file is using variables in the SASS format.

$blue-muted: #222244
$red-muted: #442222
$green-muted: #224422

When I remove the variables (and replace the values with the actual colors), it compiles fine. What is wrong here?

EDIT: My confusion stemmed from having installed HAML 3.0, but getting behavior consistent with an early 2.0 version. It turned out that I had a SASS command line tool from an old version in my path and it was running instead of the current version.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:31:32+00:00Added an answer on May 15, 2026 at 8:31 pm

    Looks like you are using the new SCSS syntax which should look like:

    $blue-muted: #222244;

    if you want to use sass, the colors should be declared as:

    !blue-muted = #222244

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting an error like this: Sass::SyntaxError: Properties aren't allowed at the root
I am trying to get compass/sass/haml working using blueprint but not having any luck
I've been using sass (specifically the scss bit) with my spreadsheets, and until now
I am working on a Rails 3.1 app and am happily using SASS and
How can I enable line numbers in CSS output if I am using SASS?
I'm just getting into the Asset Pipeline; I'm using SASS/SCSS, but I'm not understanding
I'm completely stuck on this error. Using Rails 3.1 trying to implement Formastic Bootstrap
I've got a strange error in Rails using Sass/Css: 1p*x isn't a valid CSS
Note: This question refers to a Rails project with Sass & Compass. Using the
Sass has a percentage() function to convert a unitless number to a percentage but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.