@gradeui/ui 2.1.0 → 3.0.0

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.
package/dist/index.d.mts CHANGED
@@ -4445,6 +4445,17 @@ interface GeneratedTypography {
4445
4445
  body: string;
4446
4446
  bodySm: string;
4447
4447
  };
4448
+ /**
4449
+ * The full named Tailwind ladder (2xs…7xl), present ONLY when
4450
+ * `typography.scale` is a modular ratio id (THEME-MIGRATION.md B2).
4451
+ * Emitted as `--text-<name>` / `--text-<name>--line-height` so every
4452
+ * text-* utility re-pitches when the ratio changes. Presets leave this
4453
+ * undefined — the static ladder in the stylesheet stays untouched.
4454
+ */
4455
+ namedScale?: Record<string, {
4456
+ size: string;
4457
+ lineHeight: string;
4458
+ }>;
4448
4459
  }
4449
4460
  /** Concrete resolved CSS values for radius. */
4450
4461
  interface GeneratedRadius {
@@ -4460,6 +4471,14 @@ interface GeneratedRadius {
4460
4471
  interface GeneratedSpacing {
4461
4472
  baseUnit: string;
4462
4473
  densityFactor: number;
4474
+ /**
4475
+ * The Tailwind v4 `--spacing` base unit (e.g. "0.2125rem" for tight,
4476
+ * "0.25rem" for default, "0.3rem" for roomy). Every spacing utility is
4477
+ * calc(var(--spacing) * N), so this single variable re-scales padding,
4478
+ * gaps, margins and sizes across every generated screen — retroactively
4479
+ * (THEME-MIGRATION.md B1).
4480
+ */
4481
+ unit: string;
4463
4482
  }
4464
4483
  /** Concrete resolved effects values. */
4465
4484
  interface GeneratedEffects {
@@ -4511,6 +4530,21 @@ interface GeneratedTheme {
4511
4530
  primary: Ramp;
4512
4531
  accent: Ramp;
4513
4532
  };
4533
+ /**
4534
+ * Role ramp families (THEME-MIGRATION.md B4) — every status alias is a
4535
+ * whole ramp because status displays many ways (soft 100 bg, solid 600
4536
+ * fill, 800 text). Seeded from the fixed status hues; emitted as
4537
+ * `--gds-<role>-<step>` triplets alongside primary/accent/neutral
4538
+ * (which reuse `ramps`). Optional so partially-constructed themes stay
4539
+ * valid; generator output always includes it.
4540
+ */
4541
+ roleRamps?: {
4542
+ success: Ramp;
4543
+ warning: Ramp;
4544
+ info: Ramp;
4545
+ highlight: Ramp;
4546
+ destructive: Ramp;
4547
+ };
4514
4548
  /** Semantic tokens for all four modes. */
4515
4549
  colors: Record<ModeName, GeneratedColorsMode>;
4516
4550
  /** 5-stop palette for chart series. */
package/dist/index.d.ts CHANGED
@@ -4445,6 +4445,17 @@ interface GeneratedTypography {
4445
4445
  body: string;
4446
4446
  bodySm: string;
4447
4447
  };
4448
+ /**
4449
+ * The full named Tailwind ladder (2xs…7xl), present ONLY when
4450
+ * `typography.scale` is a modular ratio id (THEME-MIGRATION.md B2).
4451
+ * Emitted as `--text-<name>` / `--text-<name>--line-height` so every
4452
+ * text-* utility re-pitches when the ratio changes. Presets leave this
4453
+ * undefined — the static ladder in the stylesheet stays untouched.
4454
+ */
4455
+ namedScale?: Record<string, {
4456
+ size: string;
4457
+ lineHeight: string;
4458
+ }>;
4448
4459
  }
4449
4460
  /** Concrete resolved CSS values for radius. */
4450
4461
  interface GeneratedRadius {
@@ -4460,6 +4471,14 @@ interface GeneratedRadius {
4460
4471
  interface GeneratedSpacing {
4461
4472
  baseUnit: string;
4462
4473
  densityFactor: number;
4474
+ /**
4475
+ * The Tailwind v4 `--spacing` base unit (e.g. "0.2125rem" for tight,
4476
+ * "0.25rem" for default, "0.3rem" for roomy). Every spacing utility is
4477
+ * calc(var(--spacing) * N), so this single variable re-scales padding,
4478
+ * gaps, margins and sizes across every generated screen — retroactively
4479
+ * (THEME-MIGRATION.md B1).
4480
+ */
4481
+ unit: string;
4463
4482
  }
4464
4483
  /** Concrete resolved effects values. */
4465
4484
  interface GeneratedEffects {
@@ -4511,6 +4530,21 @@ interface GeneratedTheme {
4511
4530
  primary: Ramp;
4512
4531
  accent: Ramp;
4513
4532
  };
4533
+ /**
4534
+ * Role ramp families (THEME-MIGRATION.md B4) — every status alias is a
4535
+ * whole ramp because status displays many ways (soft 100 bg, solid 600
4536
+ * fill, 800 text). Seeded from the fixed status hues; emitted as
4537
+ * `--gds-<role>-<step>` triplets alongside primary/accent/neutral
4538
+ * (which reuse `ramps`). Optional so partially-constructed themes stay
4539
+ * valid; generator output always includes it.
4540
+ */
4541
+ roleRamps?: {
4542
+ success: Ramp;
4543
+ warning: Ramp;
4544
+ info: Ramp;
4545
+ highlight: Ramp;
4546
+ destructive: Ramp;
4547
+ };
4514
4548
  /** Semantic tokens for all four modes. */
4515
4549
  colors: Record<ModeName, GeneratedColorsMode>;
4516
4550
  /** 5-stop palette for chart series. */