@starci/grammar 0.4.11 → 0.4.12

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.
@@ -2309,6 +2309,57 @@
2309
2309
  border-radius: var(--field-radius, calc(var(--radius, 0.5rem) * 1.5)) !important;
2310
2310
  }
2311
2311
 
2312
+ /* --- Heading: the FONT rank each level stamps, drawn from the family's own sheet. --- */
2313
+ /*
2314
+ * `Heading` renders through the vendor's `Typography.Heading`, which sizes `.typography--h1`
2315
+ * through `--h4` from the vendor's own sheet. Until 0.4.12 the family answered that with the
2316
+ * Tailwind utility classes on the component alone - and a utility class exists only where the
2317
+ * CONSUMER's Tailwind build scanned this package's dist, which is the same debt
2318
+ * `shipped-geometry.spec.ts` already refuses for layout. A consumer whose scan stopped finding
2319
+ * the package measured 36px under a `FONT-4` stamp and 30px under `FONT-3`: the vendor's sizes,
2320
+ * under the family's promise. The scale is the family's, so the family's sheet draws it, the way
2321
+ * `.starci-core-text` above already draws its own.
2322
+ *
2323
+ * `!important` because the vendor rule has to lose in either import order - consumers import
2324
+ * this sheet both before and after `@heroui/styles`, so layer rank alone cannot decide it. The
2325
+ * values re-state what the utilities carry, so nothing moves where a scan still finds them.
2326
+ *
2327
+ * `display` is the one row a family may re-cut: `offset-pop` gives it its own weight, tracking
2328
+ * and 0.96 line height. So only FONT-6's SIZE is important here; its rhythm stays a normal
2329
+ * declaration that a later family layer can still own.
2330
+ */
2331
+ .grammar-common-root [data-component="Heading"][data-scale="standard"][data-level="1"] {
2332
+ font-size: 1.25rem !important;
2333
+ font-weight: 600 !important;
2334
+ letter-spacing: -0.025em !important;
2335
+ line-height: 1.75rem !important;
2336
+ }
2337
+
2338
+ .grammar-common-root [data-component="Heading"][data-scale="standard"][data-level="2"] {
2339
+ font-size: 1rem !important;
2340
+ font-weight: 600 !important;
2341
+ line-height: 1.5rem !important;
2342
+ }
2343
+
2344
+ .grammar-common-root [data-component="Heading"][data-scale="standard"][data-level="3"] {
2345
+ font-size: 0.875rem !important;
2346
+ font-weight: 500 !important;
2347
+ line-height: 1.25rem !important;
2348
+ }
2349
+
2350
+ .grammar-common-root [data-component="Heading"][data-scale="standard"][data-level="4"] {
2351
+ font-size: 0.75rem !important;
2352
+ font-weight: 500 !important;
2353
+ line-height: 1rem !important;
2354
+ }
2355
+
2356
+ .grammar-common-root [data-component="Heading"][data-scale="display"] {
2357
+ font-size: 2.25rem !important;
2358
+ font-weight: 600;
2359
+ letter-spacing: -0.025em;
2360
+ line-height: 1.25;
2361
+ }
2362
+
2312
2363
  /* --- Text: one resolved line of copy, drawn from the attributes it already emits. --- */
2313
2364
  .starci-core-text {
2314
2365
  color: var(--foreground, var(--starci-core-foreground, CanvasText));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starci/grammar",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "Reusable StarCi React components, compositions, and packaged visual DNA.",
5
5
  "keywords": [
6
6
  "starci",