@diskette/palette 0.14.0 → 0.15.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.
- package/dist/cli/clit.d.ts +1 -0
- package/dist/cli/clit.js +21 -0
- package/dist/css.d.ts +1 -1
- package/dist/css.js +8 -1
- package/package.json +5 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cli/clit.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCommand, runMain } from 'citty';
|
|
2
|
+
const main = defineCommand({
|
|
3
|
+
meta: {
|
|
4
|
+
name: 'citty',
|
|
5
|
+
// TODO: figure out way to get package.json version
|
|
6
|
+
version: '0.0.0',
|
|
7
|
+
description: '__desc__',
|
|
8
|
+
},
|
|
9
|
+
setup() {
|
|
10
|
+
console.log('Setup');
|
|
11
|
+
},
|
|
12
|
+
cleanup() {
|
|
13
|
+
console.log('Cleanup');
|
|
14
|
+
},
|
|
15
|
+
subCommands: {
|
|
16
|
+
// build: () => import('./commands/build').then((r) => r.default),
|
|
17
|
+
// deploy: () => import('./commands/deploy').then((r) => r.default),
|
|
18
|
+
// debug: () => import('./commands/debug').then((r) => r.default),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
runMain(main);
|
package/dist/css.d.ts
CHANGED
package/dist/css.js
CHANGED
|
@@ -119,6 +119,13 @@ function tailwind(colorNames) {
|
|
|
119
119
|
}
|
|
120
120
|
blocks.push(declarations.join(';\n '));
|
|
121
121
|
}
|
|
122
|
+
const focus = [];
|
|
123
|
+
const focusAlpha = [];
|
|
124
|
+
for (const n of steps) {
|
|
125
|
+
focus.push(`--color-focus-${n}: var(--accent-${n})`);
|
|
126
|
+
focusAlpha.push(`--color-focus-a${n}: var(--accent-a${n})`);
|
|
127
|
+
}
|
|
128
|
+
blocks.push(focus.join(';\n'), focusAlpha.join(';\n'));
|
|
122
129
|
return `@theme inline {\n ${blocks.join(';\n\n ')};\n}\n`;
|
|
123
130
|
}
|
|
124
131
|
export const css = {
|
|
@@ -131,7 +138,7 @@ export const css = {
|
|
|
131
138
|
*/
|
|
132
139
|
alpha,
|
|
133
140
|
/**
|
|
134
|
-
* Generate CSS for accent color
|
|
141
|
+
* Generate CSS for accent color datas attribute selectors
|
|
135
142
|
*/
|
|
136
143
|
accents,
|
|
137
144
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diskette/palette",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"palette": "./dist/cli.js"
|
|
7
7
|
},
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@clack/prompts": "1.0.0-alpha.7",
|
|
27
|
+
"citty": "^0.1.6"
|
|
28
|
+
},
|
|
25
29
|
"devDependencies": {
|
|
26
30
|
"@changesets/cli": "^2.29.7",
|
|
27
31
|
"@types/node": "^24.3.0",
|
|
@@ -42,9 +46,6 @@
|
|
|
42
46
|
"singleQuote": true
|
|
43
47
|
},
|
|
44
48
|
"license": "MIT",
|
|
45
|
-
"dependencies": {
|
|
46
|
-
"@clack/prompts": "1.0.0-alpha.7"
|
|
47
|
-
},
|
|
48
49
|
"scripts": {
|
|
49
50
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
50
51
|
"typecheck": "tsc",
|