@texturehq/edges 1.23.2 → 1.23.3

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.
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Responsive Typography Scale
3
+ *
4
+ * Font sizes scale down on mobile for better readability on small screens.
5
+ * Desktop values match the canonical design tokens.
6
+ *
7
+ * Strategy: Keep xs/sm/base standard for legibility, compress hierarchy from lg upward.
8
+ *
9
+ * Note: Tailwind 4 uses --text-* variables (e.g., --text-4xl) for its utility classes,
10
+ * so we override those here. The --font-size-* variables are also overridden for
11
+ * any code that references them directly.
12
+ */
13
+
14
+ @layer base {
15
+ :root {
16
+ /* MOBILE scale (keep sm/base standard for legibility) */
17
+
18
+ /* Tailwind 4 utility variables (--text-*) */
19
+ --text-xs: 0.75rem; /* 12px */
20
+ --text-sm: 0.875rem; /* 14px */
21
+ --text-base: 1rem; /* 16px */
22
+ --text-lg: 1rem; /* 16px (was 18px desktop) */
23
+ --text-xl: 1.125rem; /* 18px */
24
+ --text-2xl: 1.25rem; /* 20px */
25
+ --text-3xl: 1.5rem; /* 24px */
26
+ --text-4xl: 1.875rem; /* 30px */
27
+ --text-5xl: 2.25rem; /* 36px */
28
+ --text-6xl: 3rem; /* 48px */
29
+ --text-7xl: 3.5rem; /* 56px */
30
+ --text-8xl: 4rem; /* 64px */
31
+ --text-9xl: 4.5rem; /* 72px */
32
+
33
+ /* Design token variables (--font-size-*) for direct references */
34
+ --font-size-xs: 0.75rem; /* 12px */
35
+ --font-size-sm: 0.875rem; /* 14px */
36
+ --font-size-base: 1rem; /* 16px */
37
+ --font-size-lg: 1rem; /* 16px (was 18px desktop) */
38
+ --font-size-xl: 1.125rem; /* 18px */
39
+ --font-size-2xl: 1.25rem; /* 20px */
40
+ --font-size-3xl: 1.5rem; /* 24px */
41
+ --font-size-4xl: 1.875rem; /* 30px */
42
+ --font-size-5xl: 2.25rem; /* 36px */
43
+ --font-size-6xl: 3rem; /* 48px */
44
+ --font-size-7xl: 3.5rem; /* 56px */
45
+ --font-size-8xl: 4rem; /* 64px */
46
+ --font-size-9xl: 4.5rem; /* 72px */
47
+ }
48
+
49
+ @media (min-width: 768px) {
50
+ :root {
51
+ /* DESKTOP scale (canonical token values) */
52
+
53
+ /* Tailwind 4 utility variables (--text-*) */
54
+ --text-xs: 0.75rem; /* 12px */
55
+ --text-sm: 0.875rem; /* 14px */
56
+ --text-base: 1rem; /* 16px */
57
+ --text-lg: 1.125rem; /* 18px */
58
+ --text-xl: 1.25rem; /* 20px */
59
+ --text-2xl: 1.5rem; /* 24px */
60
+ --text-3xl: 1.875rem; /* 30px */
61
+ --text-4xl: 2.25rem; /* 36px */
62
+ --text-5xl: 3rem; /* 48px */
63
+ --text-6xl: 3.75rem; /* 60px */
64
+ --text-7xl: 4.5rem; /* 72px */
65
+ --text-8xl: 6rem; /* 96px */
66
+ --text-9xl: 8rem; /* 128px */
67
+
68
+ /* Design token variables (--font-size-*) for direct references */
69
+ --font-size-xs: 0.75rem; /* 12px */
70
+ --font-size-sm: 0.875rem; /* 14px */
71
+ --font-size-base: 1rem; /* 16px */
72
+ --font-size-lg: 1.125rem; /* 18px */
73
+ --font-size-xl: 1.25rem; /* 20px */
74
+ --font-size-2xl: 1.5rem; /* 24px */
75
+ --font-size-3xl: 1.875rem; /* 30px */
76
+ --font-size-4xl: 2.25rem; /* 36px */
77
+ --font-size-5xl: 3rem; /* 48px */
78
+ --font-size-6xl: 3.75rem; /* 60px */
79
+ --font-size-7xl: 4.5rem; /* 72px */
80
+ --font-size-8xl: 6rem; /* 96px */
81
+ --font-size-9xl: 8rem; /* 128px */
82
+ }
83
+ }
84
+ }
package/dist/styles.css CHANGED
@@ -440,19 +440,6 @@
440
440
  --font-family-brand: 'TT Firs Neue', 'Helvetica Neue', Arial, system-ui, sans-serif;
441
441
  --font-family-serif: Merriweather, serif;
442
442
  --font-family-mono: 'Fira Code', monospace;
443
- --font-size-xs: 0.75rem;
444
- --font-size-sm: 0.875rem;
445
- --font-size-base: 1rem;
446
- --font-size-lg: 1.125rem;
447
- --font-size-xl: 1.25rem;
448
- --font-size-2xl: 1.5rem;
449
- --font-size-3xl: 1.875rem;
450
- --font-size-4xl: 2.25rem;
451
- --font-size-5xl: 3rem;
452
- --font-size-6xl: 3.75rem;
453
- --font-size-7xl: 4.5rem;
454
- --font-size-8xl: 6rem;
455
- --font-size-9xl: 8rem;
456
443
  --font-weight-thin: 100;
457
444
  --font-weight-extralight: 200;
458
445
  --font-weight-light: 300;
@@ -703,6 +690,66 @@
703
690
  --color-skeleton-highlight: #4b5563;
704
691
  --color-skeleton-wave: rgba(255, 255, 255, 0.15);
705
692
  }
693
+ @layer base {
694
+ :root {
695
+ --text-xs: 0.75rem;
696
+ --text-sm: 0.875rem;
697
+ --text-base: 1rem;
698
+ --text-lg: 1rem;
699
+ --text-xl: 1.125rem;
700
+ --text-2xl: 1.25rem;
701
+ --text-3xl: 1.5rem;
702
+ --text-4xl: 1.875rem;
703
+ --text-5xl: 2.25rem;
704
+ --text-6xl: 3rem;
705
+ --text-7xl: 3.5rem;
706
+ --text-8xl: 4rem;
707
+ --text-9xl: 4.5rem;
708
+ --font-size-xs: 0.75rem;
709
+ --font-size-sm: 0.875rem;
710
+ --font-size-base: 1rem;
711
+ --font-size-lg: 1rem;
712
+ --font-size-xl: 1.125rem;
713
+ --font-size-2xl: 1.25rem;
714
+ --font-size-3xl: 1.5rem;
715
+ --font-size-4xl: 1.875rem;
716
+ --font-size-5xl: 2.25rem;
717
+ --font-size-6xl: 3rem;
718
+ --font-size-7xl: 3.5rem;
719
+ --font-size-8xl: 4rem;
720
+ --font-size-9xl: 4.5rem;
721
+ }
722
+ @media (min-width: 768px) {
723
+ :root {
724
+ --text-xs: 0.75rem;
725
+ --text-sm: 0.875rem;
726
+ --text-base: 1rem;
727
+ --text-lg: 1.125rem;
728
+ --text-xl: 1.25rem;
729
+ --text-2xl: 1.5rem;
730
+ --text-3xl: 1.875rem;
731
+ --text-4xl: 2.25rem;
732
+ --text-5xl: 3rem;
733
+ --text-6xl: 3.75rem;
734
+ --text-7xl: 4.5rem;
735
+ --text-8xl: 6rem;
736
+ --text-9xl: 8rem;
737
+ --font-size-xs: 0.75rem;
738
+ --font-size-sm: 0.875rem;
739
+ --font-size-base: 1rem;
740
+ --font-size-lg: 1.125rem;
741
+ --font-size-xl: 1.25rem;
742
+ --font-size-2xl: 1.5rem;
743
+ --font-size-3xl: 1.875rem;
744
+ --font-size-4xl: 2.25rem;
745
+ --font-size-5xl: 3rem;
746
+ --font-size-6xl: 3.75rem;
747
+ --font-size-7xl: 4.5rem;
748
+ --font-size-8xl: 6rem;
749
+ --font-size-9xl: 8rem;
750
+ }
751
+ }
752
+ }
706
753
  :root {
707
754
  --color-viz-default: #0082ff;
708
755
  --color-viz-categorical-1: #a3eae4;
@@ -1628,6 +1675,9 @@
1628
1675
  .-mt-px {
1629
1676
  margin-top: -1px;
1630
1677
  }
1678
+ .mt-0 {
1679
+ margin-top: var(--spacing-0);
1680
+ }
1631
1681
  .mt-0\.5 {
1632
1682
  margin-top: calc(var(--spacing) * 0.5);
1633
1683
  }
@@ -1664,6 +1714,9 @@
1664
1714
  .mr-3 {
1665
1715
  margin-right: var(--spacing-3);
1666
1716
  }
1717
+ .-mb-2 {
1718
+ margin-bottom: calc(var(--spacing-2) * -1);
1719
+ }
1667
1720
  .mb-0\.5 {
1668
1721
  margin-bottom: calc(var(--spacing) * 0.5);
1669
1722
  }
@@ -1835,9 +1888,6 @@
1835
1888
  .h-\[60px\] {
1836
1889
  height: 60px;
1837
1890
  }
1838
- .h-\[70vh\] {
1839
- height: 70vh;
1840
- }
1841
1891
  .h-\[100dvh\] {
1842
1892
  height: 100dvh;
1843
1893
  }
@@ -2127,10 +2177,6 @@
2127
2177
  .max-w-\[600px\] {
2128
2178
  max-width: 600px;
2129
2179
  }
2130
- .max-w-fit {
2131
- max-width: -moz-fit-content;
2132
- max-width: fit-content;
2133
- }
2134
2180
  .max-w-full {
2135
2181
  max-width: 100%;
2136
2182
  }
@@ -2779,6 +2825,10 @@
2779
2825
  border-top-left-radius: var(--radius-none);
2780
2826
  border-top-right-radius: var(--radius-none);
2781
2827
  }
2828
+ .rounded-t-xl {
2829
+ border-top-left-radius: var(--radius-xl);
2830
+ border-top-right-radius: var(--radius-xl);
2831
+ }
2782
2832
  .rounded-l-sm {
2783
2833
  border-top-left-radius: var(--radius-sm);
2784
2834
  border-bottom-left-radius: var(--radius-sm);
@@ -5569,6 +5619,21 @@
5569
5619
  grid-column: 1 / -1;
5570
5620
  }
5571
5621
  }
5622
+ .sm\:mx-4 {
5623
+ @media (width >= 40rem) {
5624
+ margin-inline: var(--spacing-4);
5625
+ }
5626
+ }
5627
+ .sm\:mt-4 {
5628
+ @media (width >= 40rem) {
5629
+ margin-top: var(--spacing-4);
5630
+ }
5631
+ }
5632
+ .sm\:-mb-0 {
5633
+ @media (width >= 40rem) {
5634
+ margin-bottom: calc(var(--spacing-0) * -1);
5635
+ }
5636
+ }
5572
5637
  .sm\:block {
5573
5638
  @media (width >= 40rem) {
5574
5639
  display: block;
@@ -5609,6 +5674,11 @@
5609
5674
  max-width: var(--container-sm);
5610
5675
  }
5611
5676
  }
5677
+ .sm\:auto-rows-fr {
5678
+ @media (width >= 40rem) {
5679
+ grid-auto-rows: minmax(0, 1fr);
5680
+ }
5681
+ }
5612
5682
  .sm\:grid-cols-1 {
5613
5683
  @media (width >= 40rem) {
5614
5684
  grid-template-columns: repeat(1, minmax(0, 1fr));
@@ -5689,6 +5759,27 @@
5689
5759
  justify-content: space-between;
5690
5760
  }
5691
5761
  }
5762
+ .sm\:overflow-visible {
5763
+ @media (width >= 40rem) {
5764
+ overflow: visible;
5765
+ }
5766
+ }
5767
+ .sm\:rounded-xl {
5768
+ @media (width >= 40rem) {
5769
+ border-radius: var(--radius-xl);
5770
+ }
5771
+ }
5772
+ .sm\:border {
5773
+ @media (width >= 40rem) {
5774
+ border-style: var(--tw-border-style);
5775
+ border-width: 1px;
5776
+ }
5777
+ }
5778
+ .sm\:border-border-default {
5779
+ @media (width >= 40rem) {
5780
+ border-color: var(--color-border-default);
5781
+ }
5782
+ }
5692
5783
  .sm\:p-2 {
5693
5784
  @media (width >= 40rem) {
5694
5785
  padding: var(--spacing-2);
@@ -5699,6 +5790,11 @@
5699
5790
  padding: var(--spacing-4);
5700
5791
  }
5701
5792
  }
5793
+ .sm\:pb-0 {
5794
+ @media (width >= 40rem) {
5795
+ padding-bottom: var(--spacing-0);
5796
+ }
5797
+ }
5702
5798
  .md\:relative {
5703
5799
  @media (width >= 48rem) {
5704
5800
  position: relative;
package/dist/theme.css CHANGED
@@ -13,6 +13,10 @@
13
13
  @import "./generated/tailwind-tokens-light.css";
14
14
  @import "./generated/tailwind-tokens-dark.css";
15
15
 
16
+ /* Layer 1b: Responsive Typography
17
+ Overrides font-size tokens with responsive values (smaller on mobile, larger on desktop) */
18
+ @import "./styles/responsive-typography.css";
19
+
16
20
  /* Data visualization colors loaded separately due to Tailwind 4 @theme filtering
17
21
  See: https://github.com/tailwindlabs/tailwindcss/issues/XXXXX
18
22
  These variables are also in tailwind-tokens-light.css but Tailwind strips them
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.23.2",
3
- "generatedAt": "2025-11-25T23:02:10.040Z",
2
+ "version": "1.23.3",
3
+ "generatedAt": "2025-11-27T15:41:27.560Z",
4
4
  "categories": {
5
5
  "hooks": {
6
6
  "description": "React hooks for common functionality like breakpoints, debouncing, local storage, and media queries",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "1.23.2",
3
+ "version": "1.23.3",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",
@@ -14,6 +14,7 @@ try {
14
14
  "src/styles/animations.css",
15
15
  "src/styles/computed.css",
16
16
  "src/styles/utilities.css",
17
+ "src/styles/responsive-typography.css",
17
18
  ];
18
19
 
19
20
  // Create styles directory in dist