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
How can I enable line numbers in CSS output if I am using SASS?
I was using Sass on an existing site and decided to get Compass up
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
If you are using HAML and SASS in your Rails application, then any templates
Using C#, I need a class called User that has a username, password, active
I am still using the old colon syntax (I prefer it more than the
I've got some experience using haml (+sass) on rails projects. I recently started using
Using sass, how do you style #box1 img, #anotherbox img { height: 80px }
I'm using SASS files in Rails development. And I wonder if I should gitignore

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.