@asteby/metacore-theme 2.25.0 → 2.25.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/styles/glass.css +23 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteby/metacore-theme",
3
- "version": "2.25.0",
3
+ "version": "2.25.1",
4
4
  "description": "Metacore design tokens + Tailwind 4 preset (oklch, shadows, fonts, dark mode)",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/styles/glass.css CHANGED
@@ -179,6 +179,29 @@
179
179
  overflow: hidden;
180
180
  }
181
181
 
182
+ /*
183
+ * ─── Nested surfaces: any plain `.bg-card` inside the shell ───
184
+ * `.bg-card` already gets translucency + blur from the rule above, but none
185
+ * of the "floating panel" treatment (rim, lift, clip) that sidebar-inset and
186
+ * dialogs get — so a card sitting on the page (a settings panel, an empty
187
+ * state) reads as a flat, barely-differentiated rectangle instead of a
188
+ * floating one.
189
+ *
190
+ * Deliberately NOT `--glass-rim` here: that token is white, meant to catch
191
+ * light on a panel's OUTER edge against the colorful gradient backdrop
192
+ * (sidebar-inset, dialogs sit directly on it). A `.bg-card` is nested one
193
+ * layer deeper, already inside that panel's own blur-diluted near-white
194
+ * backdrop — a white rim there is white-on-white, invisible. `--border` is
195
+ * the token already defined above for exactly this ("a dark hairline reads
196
+ * on white glass, a white one doesn't") — reuse it instead of inventing a
197
+ * second rim color.
198
+ */
199
+ [data-ui-theme='glass'] .bg-card {
200
+ border-color: var(--border);
201
+ box-shadow: var(--glass-highlight), var(--glass-shadow);
202
+ background-clip: padding-box;
203
+ }
204
+
182
205
  /*
183
206
  * The plain `sidebar` variant is flush to the viewport edge with a border:
184
207
  * give it the same 0.5rem gutter the floating/inset variants have, and the