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 7691049
In Process

The Archive Base Latest Questions

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

On the site I’m working on we were using Scaffold , which is a

  • 0

On the site I’m working on we were using Scaffold, which is a PHP-based system similar to Sass. It also can process Sass functions\files. Unfortunately that system is now abandonware, and we are looking on a way to move completely to Sass. There is one big feature with Scaffold though that I’m not finding a way to port to Sass, the variable groups.

Variable in Scaffold can be organized in groups and used with a point-separated markup. For example I would define them as:

@variables vargroup1{
    variable1: ####;
    variable2: ####;
    variable3: ####;
    variable4: ####;
}

And later use on the code as, for example.

body{ width: vargroup1.variable1; margin: vargroup1.variable2 + 10;}

This helps development a lot, since you can group together variables from a system and reading the CSS files you can easily know what to reference. I didn’t find anything like that on the Sass documentation, anyone knows if it is possible? Or if there is anyway using Mixins to do this?

Thanks

  • 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-31T20:32:13+00:00Added an answer on May 31, 2026 at 8:32 pm

    There is no equivalent in Sass. But I can think in two workarounds:

    1) Sass lists and its related list functions.

    Your code could look like the following:

    $variables = 40px 30px 20px 10px;
    
    body {width: nth($variables, 1); margin: nth($variables, 2) + 10;}
    

    It’s not the same because list indexes can’t be strings, so you haven’t any way to name your variables.

    2) Define a custom function. Look at Function Directives section in Sass reference

    @function variables($variable_name) {
      @if ($variable_name == 'variable1') {
        @return 40px;
      } @else if ($variable_name == 'variable2') {
        @return 30px;
      }
    }
    
    body {width: variables('variable_1'); margin: variables('variable_2') + 10;}
    

    This way is less intuitive and uglier but you can ‘name your variables’.

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

Sidebar

Related Questions

A site I am working on that is built using PHP is sometimes showing
A site I'm working on has Flash headers (using swfobject to embed them). Now
The site I'm working on is using a Databound asp:Menu control. When sending 1
The site I'm working on is using the Frontpage module to redirect anon users
My site has its own login system and the user can choose to connect
Our site is using ASP.Net Membership. I have a page which literally has nothing
Site 1 has dll's for x amount of object and data calls. Can Site
site.com/link?p=2 give $_GET['p']==2 even though i've already made site.com/link rewrite to site.com/index.php?page=link So, i'm
Site which I am developing has a menu with drop downs, which is always
Site Details which uses the single sign on, 1. http:\\webgate.abcltd.com 2. http:\\sales.abcltd.com 3. http:\\emp.abcltd.com

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.