@alignui/cli 0.0.1-alpha.6 → 0.0.1-alpha.8
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/index.js +96 -86
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/color-helpers.ts +2 -2
- package/src/utils/templates.ts +18 -8
- package/src/utils/tokens.ts +20 -0
package/package.json
CHANGED
|
@@ -15,9 +15,9 @@ export function formatHslColor(hex: string): string {
|
|
|
15
15
|
.split(', ');
|
|
16
16
|
|
|
17
17
|
if (color?.alpha) {
|
|
18
|
-
return `${h} ${s}
|
|
18
|
+
return `${h} ${s} ${l} / ${percentageFormat(color.alpha)}`;
|
|
19
19
|
}
|
|
20
|
-
return `${h} ${s}
|
|
20
|
+
return `${h} ${s} ${l}`;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export function formatRgbColor(hex: string): string {
|
package/src/utils/templates.ts
CHANGED
|
@@ -299,15 +299,15 @@ export const GLOBALS_CSS = `@tailwind base;
|
|
|
299
299
|
--black-alpha-16: <%- black['alpha-16'] %>;
|
|
300
300
|
--black-alpha-10: <%- black['alpha-10'] %>;
|
|
301
301
|
|
|
302
|
-
--overlay:
|
|
302
|
+
--overlay: <%- overlay['default-light'] %>;
|
|
303
303
|
|
|
304
|
-
--social-apple:
|
|
305
|
-
--social-twitter:
|
|
306
|
-
--social-github:
|
|
307
|
-
--social-notion:
|
|
308
|
-
--social-tidal:
|
|
309
|
-
--social-amazon:
|
|
310
|
-
--social-zendesk:
|
|
304
|
+
--social-apple: <%- social['apple-light'] %>;
|
|
305
|
+
--social-twitter: <%- social['twitter-light'] %>;
|
|
306
|
+
--social-github: <%- social['github-light'] %>;
|
|
307
|
+
--social-notion: <%- social['notion-light'] %>;
|
|
308
|
+
--social-tidal: <%- social['tidal-light'] %>;
|
|
309
|
+
--social-amazon: <%- social['amazon-light'] %>;
|
|
310
|
+
--social-zendesk: <%- social['zendesk-light'] %>;
|
|
311
311
|
|
|
312
312
|
--primary-dark: var(--<%- primaryColor %>-800);
|
|
313
313
|
--primary-darker: var(--<%- primaryColor %>-700);
|
|
@@ -466,6 +466,16 @@ export const GLOBALS_CSS = `@tailwind base;
|
|
|
466
466
|
--stable-base: var(--teal-600);
|
|
467
467
|
--stable-light: var(--teal-alpha-24);
|
|
468
468
|
--stable-lighter: var(--teal-alpha-16);
|
|
469
|
+
|
|
470
|
+
--overlay: <%- overlay['default-dark'] %>;
|
|
471
|
+
|
|
472
|
+
--social-apple: <%- social['apple-dark'] %>;
|
|
473
|
+
--social-twitter: <%- social['twitter-dark'] %>;
|
|
474
|
+
--social-github: <%- social['github-dark'] %>;
|
|
475
|
+
--social-notion: <%- social['notion-dark'] %>;
|
|
476
|
+
--social-tidal: <%- social['tidal-dark'] %>;
|
|
477
|
+
--social-amazon: <%- social['amazon-dark'] %>;
|
|
478
|
+
--social-zendesk: <%- social['zendesk-dark'] %>;
|
|
469
479
|
}
|
|
470
480
|
/*#endregion Colors */
|
|
471
481
|
}
|
package/src/utils/tokens.ts
CHANGED
|
@@ -174,6 +174,26 @@ export const rawHexColors = {
|
|
|
174
174
|
black: '#000',
|
|
175
175
|
white: '#fff',
|
|
176
176
|
},
|
|
177
|
+
social: {
|
|
178
|
+
'apple-light': '#000',
|
|
179
|
+
'apple-dark': '#fff',
|
|
180
|
+
'twitter-light': '#010101',
|
|
181
|
+
'twitter-dark': '#fff',
|
|
182
|
+
'github-light': '#24292f',
|
|
183
|
+
'github-dark': '#fff',
|
|
184
|
+
'notion-light': '#1e2226',
|
|
185
|
+
'notion-dark': '#fff',
|
|
186
|
+
'tidal-light': '#000',
|
|
187
|
+
'tidal-dark': '#fff',
|
|
188
|
+
'amazon-light': '#353e47',
|
|
189
|
+
'amazon-dark': '#fff',
|
|
190
|
+
'zendesk-light': '#16140d',
|
|
191
|
+
'zendesk-dark': '#fff',
|
|
192
|
+
},
|
|
193
|
+
overlay: {
|
|
194
|
+
'default-light': '#020d173d',
|
|
195
|
+
'default-dark': '#52586652',
|
|
196
|
+
},
|
|
177
197
|
};
|
|
178
198
|
|
|
179
199
|
export const tailwindColorsHex = {
|