tailwindcss-export-config
Advanced tools
Comparing version 3.1.0 to 4.0.0
@@ -5,2 +5,18 @@ # Changelog | ||
## [4.0.0](https://github.com/dobromir-hristov/tailwindcss-export-config/compare/v3.1.0...v4.0.0) (2021-12-16) | ||
### ⚠ BREAKING CHANGES | ||
* Update to TW 3. That comes with major changes in the resulting exports | ||
### Features | ||
* support TW-3.0 ([f7e2d6c](https://github.com/dobromir-hristov/tailwindcss-export-config/commit/f7e2d6c888cf4031508c08bce4b15921d844b2a8)) | ||
### Bug Fixes | ||
* sanitize less negative values ([b3638d2](https://github.com/dobromir-hristov/tailwindcss-export-config/commit/b3638d2c549be79341d8b059bc20a2119050d129)) | ||
## [3.1.0](https://github.com/dobromir-hristov/tailwindcss-export-config/compare/v3.0.2...v3.1.0) (2021-12-12) | ||
@@ -7,0 +23,0 @@ |
@@ -330,2 +330,7 @@ 'use strict'; | ||
_propertyNameSanitizer(property) { | ||
property = super._propertyNameSanitizer(property); | ||
return property.replace(/\./g, '\\.'); | ||
} | ||
} | ||
@@ -332,0 +337,0 @@ |
{ | ||
"name": "tailwindcss-export-config", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"description": "Export Tailwindcss config options to SASS, SCSS, LESS and Stylus", | ||
@@ -46,3 +46,3 @@ "main": "dist/index.js", | ||
"lodash.reduce": "^4.6.0", | ||
"tailwindcss": "2.2.19", | ||
"tailwindcss": "^3.0.6", | ||
"yargs": "^17.2.1" | ||
@@ -49,0 +49,0 @@ }, |
@@ -15,3 +15,3 @@ <p align="center"> | ||
* 🚀 Exports Tailwindcss 2 config options to SASS, SCSS, LESS and Stylus. | ||
* 🚀 Exports Tailwindcss 3 config options to SASS, SCSS, LESS, Stylus, Custom CSS Properties or even JSON. | ||
* 💥 CLI and Node api support | ||
@@ -208,2 +208,41 @@ * 💪 Unit Tested | ||
### Custom CSS Properties | ||
```css | ||
:root { | ||
--fontFamily-display: Gilroy, sans-serif; | ||
--fontFamily-body: Graphik, sans-serif; | ||
--borderWidth-0: 0; | ||
--borderWidth-2: 2px; | ||
--borderWidth-4: 4px; | ||
--borderWidth-default: 1px; | ||
/* etc... */ | ||
} | ||
``` | ||
### JSON | ||
```json | ||
{ | ||
"fontFamily": { | ||
"display": [ | ||
"Gilroy", | ||
"sans-serif" | ||
], | ||
"body": [ | ||
"Graphik", | ||
"sans-serif" | ||
] | ||
}, | ||
"borderWidth": { | ||
"0": "0", | ||
"2": "2px", | ||
"4": "4px", | ||
"default": "1px" | ||
} | ||
} | ||
``` | ||
### Prefix | ||
@@ -328,2 +367,3 @@ | ||
**Removed Options** | ||
1. colors | ||
@@ -334,6 +374,9 @@ 2. screens | ||
## Compatibility | ||
Version 3.x of this tool works with v2.x of Tailwindcss. If you are using the older 0.x version, please use the 2.x version of `Tailwindcss-export-config` | ||
| tailwindcss-export-config | tailwindcss | | ||
|------------------------|-------------| | ||
| 4.x | 3.x | | ||
| 3.x | 2.x | | ||
| 2.x | 0.x | | ||
@@ -340,0 +383,0 @@ ```bash |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34379
518
382
+ Added@alloc/quick-lru@5.2.0(transitive)
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedany-promise@1.3.0(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcommander@4.1.1(transitive)
+ Addedcross-spawn@7.0.5(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedjiti@1.21.6(transitive)
+ Addedlilconfig@3.1.2(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedmz@2.7.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject-hash@3.0.0(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpirates@4.0.6(transitive)
+ Addedpostcss-import@15.1.0(transitive)
+ Addedpostcss-js@4.0.1(transitive)
+ Addedpostcss-load-config@4.0.2(transitive)
+ Addedpostcss-nested@6.2.0(transitive)
+ Addedread-cache@1.0.0(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedsucrase@3.35.0(transitive)
+ Addedtailwindcss@3.4.15(transitive)
+ Addedthenify@3.3.1(transitive)
+ Addedthenify-all@1.6.0(transitive)
+ Addedts-interface-checker@0.1.13(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
+ Addedyaml@2.6.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@types/parse-json@4.0.2(transitive)
- Removedacorn@7.4.1(transitive)
- Removedacorn-node@1.8.2(transitive)
- Removedacorn-walk@7.2.0(transitive)
- Removedautoprefixer@10.4.20(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbrowserslist@4.24.2(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedcaniuse-lite@1.0.30001680(transitive)
- Removedcolor@4.2.3(transitive)
- Removedcolor-string@1.9.1(transitive)
- Removedcommander@8.3.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcosmiconfig@7.1.0(transitive)
- Removedcss-color-names@0.0.4(transitive)
- Removedcss-unit-converter@1.1.2(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@5.2.1(transitive)
- Removedelectron-to-chromium@1.5.62(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedfraction.js@4.3.7(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedhex-color-regex@1.1.0(transitive)
- Removedhsl-regex@1.0.0(transitive)
- Removedhsla-regex@1.0.0(transitive)
- Removedhtml-tags@3.3.1(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arrayish@0.2.10.3.2(transitive)
- Removedis-color-stop@1.1.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.topath@4.5.2(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmodern-normalize@1.1.0(transitive)
- Removednode-emoji@1.11.0(transitive)
- Removednode-releases@2.0.18(transitive)
- Removednormalize-range@0.1.2(transitive)
- Removedobject-hash@2.2.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpostcss-js@3.0.3(transitive)
- Removedpostcss-load-config@3.1.4(transitive)
- Removedpostcss-nested@5.0.6(transitive)
- Removedpostcss-value-parser@3.3.1(transitive)
- Removedpretty-hrtime@1.0.3(transitive)
- Removedpurgecss@4.1.3(transitive)
- Removedquick-lru@5.1.1(transitive)
- Removedreduce-css-calc@2.1.8(transitive)
- Removedresolve-from@4.0.0(transitive)
- Removedrgb-regex@1.0.1(transitive)
- Removedrgba-regex@1.0.0(transitive)
- Removedsimple-swizzle@0.2.2(transitive)
- Removedtailwindcss@2.2.19(transitive)
- Removedtmp@0.2.3(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
- Removedyaml@1.10.2(transitive)
Updatedtailwindcss@^3.0.6