@gen3/toolsff 0.12.20 → 0.12.21

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.
@@ -147,23 +147,25 @@ const main = ()=>{
147
147
  });
148
148
  const themeColors = JSON.parse(themeData);
149
149
  if (vars) {
150
- // vars only output
150
+ // vars only output used to create the tailwind config/themeColorCSSVars.json file
151
151
  const theme = [
152
152
  ...Object.keys(themeColors),
153
153
  'utility',
154
154
  'table',
155
155
  'navigation'
156
156
  ].reduce((acc, colorName)=>{
157
- for (const value of Object.values(colorType)){
158
- const colorVar = `${colorName}${value !== 'DEFAULT' ? '-' + value : ''}`;
159
- const contrastColorVar = `${colorName}-contrast${value !== 'DEFAULT' ? '-' + value : ''}`;
160
- acc[colorVar] = `var(--${colorVar})`;
161
- acc[contrastColorVar] = `var(--${contrastColorVar})`;
157
+ for (const [idx, value] of Object.entries(colorType.toReversed())){
158
+ const colorVar = `mantine-color-${colorName}-${idx}`;
159
+ const contrastColorVar = `mantine-color-${colorName}-contrast-${idx}`;
160
+ const colorVarName = `${colorName}${value !== 'DEFAULT' ? '-' + value : ''}`;
161
+ const contrastColorVarName = `${colorName}-contrast${value !== 'DEFAULT' ? '-' + value : ''}`;
162
+ acc[colorVarName] = `var(--${colorVar})`;
163
+ acc[contrastColorVarName] = `var(--${contrastColorVar})`;
162
164
  }
163
165
  return acc;
164
166
  }, {});
165
167
  writeFileSync(join(out ?? './', 'themeColorCSSVars.json'), JSON.stringify(theme, null, 2));
166
- return;
168
+ return; // done creating vars file
167
169
  }
168
170
  // build a list of colors
169
171
  const theme = Object.entries(themeColors).reduce((acc, [colorName, colorValue])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gen3/toolsff",
3
- "version": "0.12.20",
3
+ "version": "0.12.21",
4
4
  "description": "tools for processing Gen3 commons content: color theme, icons, sharedFilters",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -27,8 +27,8 @@
27
27
  "author": "Craig Barnes",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@iconify/tools": "^4.1.1",
31
- "axios": "^1.8.2",
30
+ "@iconify/tools": "^5.0.3",
31
+ "axios": "^1.13.5",
32
32
  "tinycolor2": "^1.6.0",
33
33
  "undici": "^6.21.1"
34
34
  },
@@ -48,5 +48,5 @@
48
48
  "axios": "^1.8.2"
49
49
  }
50
50
  },
51
- "gitHead": "bea8bdffc335748e939c3729be107e3396e05b54"
51
+ "gitHead": "2fb0844cc28a7fafd7c47b78c67880b38592861c"
52
52
  }