@yo-yo.art/ui 0.2.0 → 0.2.1

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.
@@ -331,4 +331,81 @@
331
331
  .link-hover:hover {
332
332
  text-decoration-line: underline;
333
333
  }
334
+
335
+ /*
336
+ * The artwork panel ships its own white-on-black controls. Restyle its
337
+ * navigation and close buttons with the design system's square chips.
338
+ */
339
+ .sg-artwork-panel .sg-artwork-panel__navbtn {
340
+ flex: 1;
341
+ display: inline-flex;
342
+ align-items: center;
343
+ justify-content: center;
344
+ gap: 0.375rem;
345
+ padding: 0.5rem 0.75rem;
346
+ border: 1px solid
347
+ color-mix(in oklab, var(--color-base-content) 12%, transparent);
348
+ border-radius: 0;
349
+ background-color: color-mix(
350
+ in oklab,
351
+ var(--color-base-100) 80%,
352
+ transparent
353
+ );
354
+ color: var(--color-base-content);
355
+ font-family: var(--font-sans);
356
+ font-size: 0.875rem;
357
+ font-weight: 500;
358
+ cursor: pointer;
359
+ backdrop-filter: blur(8px);
360
+ transition:
361
+ background-color 150ms ease,
362
+ color 150ms ease,
363
+ border-color 150ms ease;
364
+ }
365
+
366
+ .sg-artwork-panel .sg-artwork-panel__navbtn:hover {
367
+ background-color: var(--color-base-200);
368
+ }
369
+
370
+ .sg-artwork-panel .sg-artwork-panel__navbtn:focus-visible {
371
+ outline: 2px solid var(--color-accent);
372
+ outline-offset: 2px;
373
+ }
374
+
375
+ .sg-artwork-panel .sg-artwork-panel__close {
376
+ display: inline-flex;
377
+ align-items: center;
378
+ justify-content: center;
379
+ width: 2rem;
380
+ height: 2rem;
381
+ padding: 0;
382
+ border: 1px solid
383
+ color-mix(in oklab, var(--color-base-content) 12%, transparent);
384
+ border-radius: 0;
385
+ background-color: color-mix(
386
+ in oklab,
387
+ var(--color-base-100) 80%,
388
+ transparent
389
+ );
390
+ color: var(--color-base-content);
391
+ font-family: var(--font-sans);
392
+ font-size: 1rem;
393
+ line-height: 1;
394
+ opacity: 1;
395
+ cursor: pointer;
396
+ backdrop-filter: blur(8px);
397
+ transition:
398
+ background-color 150ms ease,
399
+ color 150ms ease,
400
+ border-color 150ms ease;
401
+ }
402
+
403
+ .sg-artwork-panel .sg-artwork-panel__close:hover {
404
+ background-color: var(--color-base-200);
405
+ }
406
+
407
+ .sg-artwork-panel .sg-artwork-panel__close:focus-visible {
408
+ outline: 2px solid var(--color-accent);
409
+ outline-offset: 2px;
410
+ }
334
411
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yo-yo.art/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The Grupo Yo-Yo design system: shared React components and tokens.",
5
5
  "keywords": [
6
6
  "design-system",