Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@parcel/transformer-sass

Package Overview
Dependencies
Maintainers
1
Versions
890
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/transformer-sass

  • 2.0.0-canary.1765
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59K
decreased by-24.58%
Maintainers
1
Weekly downloads
 
Created

What is @parcel/transformer-sass?

@parcel/transformer-sass is a Parcel plugin that allows you to transform SASS/SCSS files into CSS. It integrates seamlessly with the Parcel bundler, enabling you to use SASS/SCSS in your projects without additional configuration.

What are @parcel/transformer-sass's main functionalities?

Basic SASS/SCSS Compilation

This feature allows you to write SASS/SCSS code and have it automatically compiled into CSS. The example demonstrates a simple SASS file that defines a variable and uses it to set the text color of the body.

/* styles.scss */
$primary-color: #333;
body {
  color: $primary-color;
}

Nested Rules

This feature allows you to nest CSS rules within one another, which can make your stylesheets more readable and maintainable. The example shows nested rules for styling a navigation menu.

/* styles.scss */
nav {
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  li { display: inline-block; }
  a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
  }
}

Partials and Imports

This feature allows you to split your SASS/SCSS code into multiple files and import them where needed. The example demonstrates how to define variables in a partial file and import them into the main stylesheet.

/* _variables.scss */
$font-stack: Helvetica, sans-serif;
$primary-color: #333;

/* styles.scss */
@import 'variables';
body {
  font: 100% $font-stack;
  color: $primary-color;
}

Other packages similar to @parcel/transformer-sass

FAQs

Package last updated on 26 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc