Tailwind SCSS

0.3.0 · abandoned · verified Sun Apr 19

Tailwind SCSS (npm package `tailwindscss`) is an independent reimplementation of the Tailwind CSS utility-first framework using pure SCSS. It was designed for projects that cannot or choose not to use Node.js-based module bundlers like Webpack or Rollup, which are typically required for PostCSS processing in the original Tailwind CSS. Its primary purpose was to allow integration of Tailwind CSS principles into legacy applications or environments where a traditional SCSS compilation pipeline is preferred. The current stable version is 0.3.0, released in 2020. This project is currently unmaintained and effectively abandoned. A key differentiator is its complete SCSS-based architecture, eliminating the need for PostCSS and associated build tooling, making it suitable for direct inclusion and compilation with any standard SCSS compiler. However, this comes with significant limitations, as it cannot support Tailwind CSS plugins, functions, or directives, and its configuration is done via SCSS variables rather than JavaScript objects.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates installation, generating a configuration file, defining custom SCSS variables for configuration, and importing Tailwindscss in a main SCSS file, then applying utilities.

npm install tailwindscss --save

# Or using yarn:
yarn add tailwindscss

# Initialize a configuration file (optional, but recommended for customization)
npx tailwindscss init

// tailwind.config.scss (generated or custom)
$prefix: '';
$separator: '_';

$theme-colors: (
  transparent: transparent,
  black: #000,
  white: #fff,
  primary: #3490dc,
  secondary: #6cb2eb
);

$variants-text-color: (responsive, hover, focus);
$core-plugins-text-color: true;

// style.scss (your main SCSS file)
@import "path-to/tailwind.config.scss"; // Import your config FIRST
@import "tailwindscss/base";
@import "tailwindscss/utilities";

body {
  @apply bg-primary text-white p-4;
}

.my-button {
  @apply bg-secondary hover_bg-primary text-white font-bold py-2 px-4 rounded;
}

view raw JSON →