Socket
Socket
Sign inDemoInstall

tailwindcss

Package Overview
Dependencies
Maintainers
1
Versions
1738
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

46

defaultConfig.stub.js

@@ -27,3 +27,3 @@ /*

// var defaultConfig = require('tailwindcss/defaultConfig')()
// let defaultConfig = require('tailwindcss/defaultConfig')()

@@ -47,17 +47,17 @@

var colors = {
let colors = {
'transparent': 'transparent',
'black': '#222b2f',
'grey-darkest': '#364349',
'grey-darker': '#596a73',
'grey-dark': '#70818a',
'grey': '#9babb4',
'grey-light': '#dae4e9',
'grey-lighter': '#f3f7f9',
'grey-lightest': '#fafcfc',
'black': '#22292f',
'grey-darkest': '#3d4852',
'grey-darker': '#606f7b',
'grey-dark': '#8795a1',
'grey': '#b8c2cc',
'grey-light': '#dae1e7',
'grey-lighter': '#f1f5f8',
'grey-lightest': '#f8fafc',
'white': '#ffffff',
'red-darkest': '#420806',
'red-darker': '#6a1b19',
'red-darkest': '#3b0d0c',
'red-darker': '#621b18',
'red-dark': '#cc1f1a',

@@ -69,4 +69,4 @@ 'red': '#e3342f',

'orange-darkest': '#542605',
'orange-darker': '#7f4012',
'orange-darkest': '#462a16',
'orange-darker': '#613b1f',
'orange-dark': '#de751f',

@@ -86,4 +86,4 @@ 'orange': '#f6993f',

'green-darkest': '#032d19',
'green-darker': '#0b4228',
'green-darkest': '#0f2f21',
'green-darker': '#1a4731',
'green-dark': '#1f9d55',

@@ -96,3 +96,3 @@ 'green': '#38c172',

'teal-darkest': '#0d3331',
'teal-darker': '#174e4b',
'teal-darker': '#20504f',
'teal-dark': '#38a89d',

@@ -104,4 +104,4 @@ 'teal': '#4dc0b5',

'blue-darkest': '#05233b',
'blue-darker': '#103d60',
'blue-darkest': '#12283a',
'blue-darker': '#1c3d5a',
'blue-dark': '#2779bd',

@@ -121,4 +121,4 @@ 'blue': '#3490dc',

'purple-darkest': '#1f133f',
'purple-darker': '#352465',
'purple-darkest': '#21183c',
'purple-darker': '#382b5f',
'purple-dark': '#794acf',

@@ -130,4 +130,4 @@ 'purple': '#9561e2',

'pink-darkest': '#45051e',
'pink-darker': '#72173a',
'pink-darkest': '#451225',
'pink-darker': '#6f213f',
'pink-dark': '#eb5286',

@@ -134,0 +134,0 @@ 'pink': '#f66d9b',

@@ -71,3 +71,3 @@ #!/usr/bin/env node

const output = _fsExtra2.default.readFileSync(_path2.default.resolve(__dirname, '../defaultConfig.stub.js'), 'utf8');
_fsExtra2.default.outputFileSync(destination, output.replace('// var defaultConfig', 'var defaultConfig'));
_fsExtra2.default.outputFileSync(destination, output.replace('// let defaultConfig', 'let defaultConfig'));
console.log(`Generated Tailwind config: ${destination}`);

@@ -74,0 +74,0 @@ _process2.default.exit();

@@ -11,3 +11,3 @@ 'use strict';

rule.walkAtRules('apply', atRule => {
const mixins = normalizeClassNames(_postcss2.default.list.space(atRule.params));
const mixins = _postcss2.default.list.space(atRule.params);

@@ -25,6 +25,10 @@ /*

const decls = _lodash2.default.flatMap(classes, mixin => {
return findMixin(css, mixin, message => {
const decls = (0, _lodash2.default)(classes).reject(mixin => mixin === '!important').flatMap(mixin => {
return findMixin(css, normalizeClassName(mixin), message => {
throw atRule.error(message);
});
}).value();
_lodash2.default.tap(_lodash2.default.last(mixins) === '!important', important => {
decls.forEach(decl => decl.important = important);
});

@@ -58,6 +62,4 @@

function normalizeClassNames(classNames) {
return classNames.map(className => {
return `.${(0, _escapeClassName2.default)(_lodash2.default.trimStart(className, '.'))}`;
});
function normalizeClassName(className) {
return `.${(0, _escapeClassName2.default)(_lodash2.default.trimStart(className, '.'))}`;
}

@@ -64,0 +66,0 @@

@@ -28,2 +28,4 @@ 'use strict';

tailwindClasses.walk(node => node.source = atRule.source);
atRule.before(tailwindClasses);

@@ -30,0 +32,0 @@ atRule.remove();

{
"name": "tailwindcss",
"version": "0.3.0",
"version": "0.4.0",
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",

@@ -48,2 +48,3 @@ "license": "MIT",

"lodash": "^4.17.4",
"mousetrap": "^1.6.1",
"nodemon": "^1.11.0",

@@ -50,0 +51,0 @@ "postcss": "^6.0.9",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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