proto-tailwindcss-clrs 0.0.71 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +17 -14
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -77,24 +77,27 @@ const getColors = (options) => {
77
77
  return colorObj
78
78
  }
79
79
 
80
+ const generate = (options) => {
81
+ const output = {
82
+ theme: {
83
+ extend: {
84
+ colors: {},
85
+ },
86
+ },
87
+ }
88
+
89
+ const results = getColors(options)
90
+ output.theme.extend.colors = { ...results }
91
+ return output
92
+ }
93
+
80
94
  module.exports = plugin.withOptions(
81
- function (options) {
82
- return function ({ addUtilities, e, variants, theme }) {
95
+ function (_options) {
96
+ return function () {
83
97
  // ...
84
98
  }
85
99
  },
86
100
  function (options) {
87
- const output = {
88
- theme: {
89
- extend: {
90
- colors: {},
91
- },
92
- },
93
- }
94
-
95
- const results = getColors(options)
96
- output.theme.extend.colors = { ...results }
97
-
98
- return output
101
+ return generate(options)
99
102
  }
100
103
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-tailwindcss-clrs",
3
- "version": "0.0.71",
3
+ "version": "0.0.75",
4
4
  "description": "Tailwind CSS 2.x plugin that generates color classes for CSS variables.",
5
5
  "main": "index.js",
6
6
  "author": "Richard Hess <eswat2@gmail.com>",
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "autoprefixer": "10.4.0",
22
- "jest": "27.4.3",
22
+ "jest": "27.4.4",
23
23
  "jest-matcher-css": "1.1.0",
24
24
  "lodash": "4.17.21",
25
- "postcss": "8.4.4",
26
- "rollup": "2.61.0",
27
- "tailwindcss": "2.2.19"
25
+ "postcss": "8.4.5",
26
+ "rollup": "2.61.1",
27
+ "tailwindcss": "3.0.2"
28
28
  }
29
29
  }