{
 "kind": "tool",
 "slug": "sass",
 "path": "tools/sass/",
 "name": "Sass",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Styling and CSS",
   "tools/styling/"
  ]
 ],
 "lead": "CSS preprocessor adding variables, nesting and mixins to stylesheets.",
 "chips": [
  {
   "label": "Styling and CSS",
   "path": "tools/styling/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install sass"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/sass/dart-sass"
  },
  {
   "label": "Website",
   "href": "https://github.com/sass/dart-sass"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/sass/dart-sass"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 11, 2026. ",
   "src": "https://github.com/sass/dart-sass"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "109 projects",
   "status": "info",
   "sub": "#4 of 53 in its category",
   "note": "Dependency in 109 public GitHub projects set up for AI coding agents that we scanned (1.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Sass does",
   "parts": [
    {
     "t": "prose",
     "text": "The <code>sass</code> npm package is Dart Sass compiled to pure JavaScript. The Sass site calls Dart Sass the primary implementation that gets new features first, and says this pure JS version is slower than the stand-alone executable."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Sass popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "71",
       "of": "/ 100",
       "l": "Gid Score, #331 overall"
      },
      {
       "n": "44.8M",
       "l": "downloads a week, npm"
      },
      {
       "n": "4,238",
       "l": "GitHub stars"
      },
      {
       "n": "109",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Sass is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Sass is a dependency in 109 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.2% of the 4,867 JavaScript/TypeScript ones), #4 of 53 in styling and css.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 336; those are left out of every share on this page.",
      "The most used alternative in our scan is Tailwind CSS (2,040 projects).",
      "Projects that use it most often also use Vite (50.5%), ESLint (68.8%), TypeScript (71.6%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "56 projects, 1.7%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "56 projects, 1.8%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "54 projects, 2.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "8 projects, 1.7%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "6 projects, 1.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "5 projects, 1.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 50.5% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 68.8% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 71.6% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 54.1% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 30.3% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 22.0% of its projects",
       "v": "Vue",
       "path": "tools/vue/"
      },
      {
       "l": "In 21.1% of its projects",
       "v": "Babel (JavaScript)",
       "path": "tools/babel-npm/"
      },
      {
       "l": "In 21.1% of its projects",
       "v": "stylelint",
       "path": "tools/stylelint/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Sass in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "New language features land here first",
       "v": "The Sass website says Dart Sass is the primary implementation. As a result, new features appear in it before any other implementation."
      },
      {
       "l": "A Dart VM route with the same JS API",
       "v": "The site says the Embedded Sass protocol lets any language talk directly to the Dart VM. It claims this gives \"a substantial performance boost even for JavaScript\". The site's description of <code>sass-embedded</code>, the Node.js wrapper, says the Sass team maintains it and that it \"supports the same official Sass JavaScript API\" as the pure-JS <code>sass</code> package."
      },
      {
       "l": "Runs directly in the browser",
       "v": "The README says the npm package can run in the browser. It works with major bundlers as long as renaming is disabled, for example with <code>--keep-names</code> in esbuild. The README also shows it loading as an ES module through an import map, from a CDN, or as a bundled build from jspm."
      },
      {
       "l": "Custom functions and importers in JavaScript",
       "v": "The site says the pure-JS package lets you define your own Sass functions and importers in JavaScript."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The async API is the slow path",
       "v": "The site says that in the <code>sass</code> package the synchronous API functions are more than twice as fast as the asynchronous ones. It blames the overhead of asynchronous callbacks. The README's own example also notes that <code>compileAsync()</code> is \"substantially slower\" than <code>compile()</code>."
      },
      {
       "l": "Pure JS is slower than the executable",
       "v": "The Sass website says the pure-JS npm package is slower than the stand-alone executable."
      },
      {
       "l": "Legacy render() API is deprecated",
       "v": "The README says the Node Sass-compatible <code>render()</code>/<code>renderSync()</code> API is deprecated and will be removed in Dart Sass 2.0.0. Dart Sass does not support its <code>precision</code> or <code>sourceComments</code> options. It supports only the <code>\"expanded\"</code> and <code>\"compressed\"</code> output styles."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Compile Sass in the browser with no bundler"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Html",
       "code": "<script type=\"module\">\n  import * as sass from 'https://jspm.dev/sass';\n\n  console.log(sass.compileString(`\n    .box {\n      width: 10px + 15px;\n    }\n  `));\n</script>"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Sass",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Tailwind CSS vs Sass",
         "note": "used together in 59 projects",
         "path": "tools/compare/tailwind-css-vs-sass/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "vite: Build tool and dev server",
        "eslint: JavaScript linter",
        "tailwindcss: Utility-first CSS framework",
        "@testing-library: UI testing utilities",
        "vue: UI framework",
        "prettier: Code formatter"
       ]
      },
      {
       "title": "More in Styling and CSS",
       "path": "tools/styling/",
       "items": [
        {
         "text": "Tailwind Merge",
         "path": "tools/tailwind-merge/"
        },
        {
         "text": "Emotion",
         "path": "tools/emotion/"
        },
        {
         "text": "tailwind-variants",
         "path": "tools/tailwind-variants/"
        },
        {
         "text": "Fontsource Inter",
         "path": "tools/fontsource-variable-inter/"
        },
        {
         "text": "NativeWind",
         "path": "tools/nativewind/"
        },
        {
         "text": "postcss-import",
         "path": "tools/postcss-import/"
        },
        {
         "text": "mode-watcher",
         "path": "tools/mode-watcher/"
        },
        {
         "text": "styled-components",
         "path": "tools/styled-components/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Sass",
       "me": true,
       "facts": [
        "MIT",
        "Gid 71",
        "44.8M/wk"
       ]
      },
      {
       "name": "Tailwind CSS",
       "why": "Utility-first CSS framework for building custom user interfaces rapidly.",
       "path": "tools/tailwindcss/",
       "facts": [
        "MIT",
        "Gid 92",
        "19M/wk"
       ]
      },
      {
       "name": "Lightning CSS",
       "why": "High-performance CSS parser and minifier written in Rust, with modern CSS feature support.",
       "path": "tools/lightningcss/",
       "facts": [
        "MPL-2.0",
        "Gid 68",
        "261M/wk"
       ]
      }
     ],
     "more": "Compare Sass with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install sass"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Sass\n- Add it to a project with `npm install --save-dev sass`.\n- Write new code against the modern API (`compile()`, `compileString()`). Do not use the legacy `render()`/`renderSync()` API; the README says it will be removed in Dart Sass 2.0.0.\n- When speed matters, use `compile()` rather than `compileAsync()` in the `sass` package. This is a performance trade-off: the site says the synchronous functions are more than twice as fast.\n- If you need more speed with the same JavaScript API, consider `sass-embedded`. The site says the Sass team maintains it and that it runs on the Dart VM.\n- In the browser, `compile()` and `compileAsync()` are unavailable. Use `compileString()` or `compileStringAsync()` with a custom importer to load other files, and disable renaming in the bundler (such as esbuild `--keep-names`).\n- Under Jest, install `jest-environment-node-single-context` and add `testEnvironment: 'jest-environment-node-single-context'` to the Jest config.\n- On upgrades, read the changelog. The README says breaking language changes can arrive in minor versions after deprecation warnings.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm sass"
  ],
  [
   "Category",
   "Styling and CSS"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "1.108.2, November 11, 2026"
  ],
  [
   "On GitHub since",
   "October 2016"
  ],
  [
   "Gid Score",
   "71.3"
  ],
  [
   "Rank in category",
   "#4 of 53"
  ],
  [
   "GitHub",
   "sass/dart-sass"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/sass.png"
}