@fluixi-ui/skin-soft 0.1.0-alpha.4 → 0.1.0-alpha.5

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/package.json +1 -1
  2. package/soft.css +32 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluixi-ui/skin-soft",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.5",
4
4
  "description": "Soft corporate skin for Fluixi UI — clean, gently elevated dashboard look; activate with data-ui=\"soft\"",
5
5
  "license": "MIT",
6
6
  "private": false,
package/soft.css CHANGED
@@ -217,4 +217,36 @@
217
217
  color: var(--flx-ui-color-fg);
218
218
  box-shadow: var(--flx-ui-shadow-sm);
219
219
  }
220
+
221
+ /* ---- Table: soft elevated surface — gentle shadow, rounded frame, airy
222
+ density, faint dividers, rounded-feeling selection --------------------- */
223
+ [data-ui='soft'] :where([data-table]) {
224
+ border: var(--flx-ui-border-width-thin) solid
225
+ color-mix(in oklab, var(--flx-ui-color-border) 60%, transparent);
226
+ border-radius: var(--flx-ui-radius-lg);
227
+ box-shadow: var(--flx-ui-shadow-sm);
228
+ overflow: hidden;
229
+ }
230
+ [data-ui='soft'] :where([data-table-head]) {
231
+ background: var(--flx-ui-color-bg-subtle);
232
+ padding: var(--flx-ui-space-3) var(--flx-ui-space-4);
233
+ }
234
+ [data-ui='soft'] :where([data-table-cell]) {
235
+ padding: var(--flx-ui-space-3) var(--flx-ui-space-4);
236
+ }
237
+ [data-ui='soft'] :where([data-table-body] > [data-table-row]) {
238
+ border-top-color: color-mix(in oklab, var(--flx-ui-color-border) 55%, transparent);
239
+ }
240
+ [data-ui='soft'] :where([data-table-body] > [data-table-row]:hover) {
241
+ background: color-mix(in oklab, var(--flx-ui-color-fg) 3%, transparent);
242
+ }
243
+ [data-ui='soft'] :where([data-table-row][data-selected]),
244
+ [data-ui='soft'] :where([data-table-row][data-selected]:hover) {
245
+ background: var(--flx-ui-color-primary-subtle);
246
+ }
247
+ /* Compact density under Soft. */
248
+ [data-ui='soft'] :where([data-table][data-density='compact'] [data-table-head]),
249
+ [data-ui='soft'] :where([data-table][data-density='compact'] [data-table-cell]) {
250
+ padding: var(--flx-ui-space-1) var(--flx-ui-space-2);
251
+ }
220
252
  }