@fluixi-ui/skin-material 0.3.0-alpha.4 → 0.3.0-alpha.6

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/material.css +33 -4
  2. package/package.json +1 -1
package/material.css CHANGED
@@ -10,7 +10,7 @@
10
10
  * geometry, filled text fields, emphasized motion, Roboto. (True click-origin
11
11
  * ripple needs JS; the state layer stands in for it here.)
12
12
  */
13
- @layer flx.base, flx.tokens, flx.components, flx.skin;
13
+ @layer flx.reset, flx.base, flx.tokens, flx.components, flx.skin;
14
14
 
15
15
  /* Self-hosted Roboto (variable, latin subset) — no CDN / privacy dependency. */
16
16
  @font-face {
@@ -423,12 +423,41 @@
423
423
  background: color-mix(in oklab, var(--flx-ui-color-fg) 8%, transparent);
424
424
  }
425
425
 
426
- /* ---- Table: subtle row state layer, medium-weight header ---------------- */
426
+ /* ---- Table: flat M3 data table — no frame, divider-only rows, sentence-case
427
+ header (no all-caps), state-layer hover/selection, comfortable density -- */
428
+ [data-ui='material'] :where([data-table]) {
429
+ border: none;
430
+ border-radius: 0;
431
+ }
427
432
  [data-ui='material'] :where([data-table-head]) {
433
+ background: transparent;
434
+ color: var(--flx-ui-color-fg-muted);
435
+ font-size: var(--flx-ui-font-size-sm);
428
436
  font-weight: 500;
437
+ letter-spacing: normal;
438
+ text-transform: none;
439
+ padding: var(--flx-ui-space-3);
440
+ border-bottom: var(--flx-ui-border-width-thin) solid var(--flx-ui-color-border);
441
+ }
442
+ [data-ui='material'] :where([data-table-cell]) {
443
+ padding: var(--flx-ui-space-3);
444
+ }
445
+ [data-ui='material'] :where([data-table-body] > [data-table-row]:hover) {
446
+ background: color-mix(in oklab, var(--flx-ui-color-fg) 5%, transparent);
447
+ }
448
+ [data-ui='material'] :where([data-table-row][data-selected]),
449
+ [data-ui='material'] :where([data-table-row][data-selected]:hover) {
450
+ background: color-mix(in oklab, var(--flx-ui-color-primary) 10%, transparent);
451
+ }
452
+ /* Header is transparent now, so pinned cells need an opaque surface fill. */
453
+ [data-ui='material'] :where([data-table-cell][data-pinned]),
454
+ [data-ui='material'] :where([data-table-head][data-pinned]) {
455
+ background: var(--flx-ui-color-bg);
429
456
  }
430
- [data-ui='material'] :where([data-table-row]:hover) {
431
- background: color-mix(in oklab, var(--flx-ui-color-fg) 4%, transparent);
457
+ /* Compact density under Material. */
458
+ [data-ui='material'] :where([data-table][data-density='compact'] [data-table-head]),
459
+ [data-ui='material'] :where([data-table][data-density='compact'] [data-table-cell]) {
460
+ padding: var(--flx-ui-space-1) var(--flx-ui-space-2);
432
461
  }
433
462
 
434
463
  /* ---- Toast: M3 snackbar shape + elevation (keeps the type accent) -------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluixi-ui/skin-material",
3
- "version": "0.3.0-alpha.4",
3
+ "version": "0.3.0-alpha.6",
4
4
  "description": "Material Design skin for Fluixi UI — activate with data-ui=\"material\"",
5
5
  "license": "MIT",
6
6
  "private": false,