@diskette/palette 0.27.0 → 0.28.0

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/dist/css.js +6 -1
  2. package/package.json +1 -1
package/dist/css.js CHANGED
@@ -133,13 +133,18 @@ function tailwind(colorNames, options = {}) {
133
133
  }
134
134
  blocks.push(declarations.join(';\n '));
135
135
  }
136
+ const grays = [];
137
+ const graysAlpha = [];
136
138
  const focus = [];
137
139
  const focusAlpha = [];
138
140
  for (const n of steps) {
139
141
  focus.push(`--color-focus-${n}: var(--accent-${n})`);
140
142
  focusAlpha.push(`--color-focus-a${n}: var(--accent-a${n})`);
143
+ grays.push(`--color-gray-${n}: var(--gray-${n})`);
144
+ graysAlpha.push(`--color-gray-a${n}: var(--gray-a${n})`);
141
145
  }
142
- blocks.push(focus.join(';\n '), focusAlpha.join(';\n '));
146
+ grays.push('--color-gray-contrast: var(--gray-contrast);', '--color-gray-surface: var(--gray-surface);', '--color-gray-indicator: var(--gray-indicator);', '--color-gray-track: var(--gray-track);');
147
+ blocks.push(focus.join(';\n '), focusAlpha.join(';\n '), grays.join(';\n '), graysAlpha.join(';\n '));
143
148
  const importsBlock = imports.length > 0 ? imports.join('\n') + '\n\n' : '';
144
149
  return `${importsBlock}@theme inline {\n ${blocks.join(';\n\n ')};\n}\n`;
145
150
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@diskette/palette",
3
3
  "type": "module",
4
- "version": "0.27.0",
4
+ "version": "0.28.0",
5
5
  "bin": {
6
6
  "palette": "./dist/cli/cli.js"
7
7
  },