@vaneui/ui 0.3.1-alpha.20250917170051.b819c80 → 0.3.1-alpha.20250925201320.8b6a424

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/ui.css CHANGED
@@ -249,44 +249,20 @@
249
249
  --color-border-filled-warning: var(--color-yellow-600);
250
250
  --color-border-filled-info: var(--color-blue-600);
251
251
  --color-border-filled-link: var(--color-blue-600);
252
- --ui-br-spacing: 0.125rem;
253
- --ui-br-xs: calc(1 * var(--ui-br-spacing));
254
- --ui-br-sm: calc(2 * var(--ui-br-spacing));
255
- --ui-br-md: calc(3 * var(--ui-br-spacing));
256
- --ui-br-lg: calc(4 * var(--ui-br-spacing));
257
- --ui-br-xl: calc(5 * var(--ui-br-spacing));
252
+ --ui-br-unit: 0.125rem;
253
+ --ui-br-xs: calc(1 * var(--ui-br-unit));
254
+ --ui-br-sm: calc(2 * var(--ui-br-unit));
255
+ --ui-br-md: calc(3 * var(--ui-br-unit));
256
+ --ui-br-lg: calc(4 * var(--ui-br-unit));
257
+ --ui-br-xl: calc(5 * var(--ui-br-unit));
258
258
  --layout-br-spacing: 0.25rem;
259
259
  --layout-br-xs: calc(3 * var(--layout-br-spacing));
260
260
  --layout-br-sm: calc(4 * var(--layout-br-spacing));
261
261
  --layout-br-md: calc(5 * var(--layout-br-spacing));
262
262
  --layout-br-lg: calc(6 * var(--layout-br-spacing));
263
263
  --layout-br-xl: calc(7 * var(--layout-br-spacing));
264
- --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.375rem);
265
- --layout-gap-xs: calc(2 * var(--layout-spacing));
266
- --layout-gap-sm: calc(3 * var(--layout-spacing));
267
- --layout-gap-md: calc(4 * var(--layout-spacing));
268
- --layout-gap-lg: calc(5 * var(--layout-spacing));
269
- --layout-gap-xl: calc(6 * var(--layout-spacing));
270
- --layout-px-xs: calc(2 * var(--layout-spacing));
271
- --layout-px-sm: calc(3 * var(--layout-spacing));
272
- --layout-px-md: calc(4 * var(--layout-spacing));
273
- --layout-px-lg: calc(5 * var(--layout-spacing));
274
- --layout-px-xl: calc(6 * var(--layout-spacing));
275
- --layout-py-xs: calc(2 * var(--layout-spacing));
276
- --layout-py-sm: calc(3 * var(--layout-spacing));
277
- --layout-py-md: calc(4 * var(--layout-spacing));
278
- --layout-py-lg: calc(5 * var(--layout-spacing));
279
- --layout-py-xl: calc(6 * var(--layout-spacing));
280
- --section-px-xs: calc(5 * var(--layout-spacing));
281
- --section-px-sm: calc(6 * var(--layout-spacing));
282
- --section-px-md: calc(7 * var(--layout-spacing));
283
- --section-px-lg: calc(8 * var(--layout-spacing));
284
- --section-px-xl: calc(9 * var(--layout-spacing));
285
- --section-py-xs: calc(4 * var(--layout-spacing));
286
- --section-py-sm: calc(8 * var(--layout-spacing));
287
- --section-py-md: calc(12 * var(--layout-spacing));
288
- --section-py-lg: calc(16 * var(--layout-spacing));
289
- --section-py-xl: calc(20 * var(--layout-spacing));
264
+ --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.25rem);
265
+ --ui-spacing: var(--spacing);
290
266
  }
291
267
  }
292
268
  @layer base {
@@ -546,15 +522,15 @@
546
522
  .h-7 {
547
523
  height: calc(var(--spacing) * 7);
548
524
  }
525
+ .h-10 {
526
+ height: calc(var(--spacing) * 10);
527
+ }
549
528
  .h-fit {
550
529
  height: fit-content;
551
530
  }
552
531
  .h-px {
553
532
  height: 1px;
554
533
  }
555
- .w-1\/3 {
556
- width: calc(1/3 * 100%);
557
- }
558
534
  .w-3 {
559
535
  width: calc(var(--spacing) * 3);
560
536
  }
@@ -684,30 +660,15 @@
684
660
  .justify-stretch {
685
661
  justify-content: stretch;
686
662
  }
687
- .gap-\(--layout-gap-lg\) {
688
- gap: var(--layout-gap-lg);
689
- }
690
- .gap-\(--layout-gap-md\) {
691
- gap: var(--layout-gap-md);
692
- }
693
- .gap-\(--layout-gap-sm\) {
694
- gap: var(--layout-gap-sm);
663
+ .gap-\(--gap\) {
664
+ gap: var(--gap);
695
665
  }
696
- .gap-\(--layout-gap-xl\) {
697
- gap: var(--layout-gap-xl);
698
- }
699
- .gap-\(--layout-gap-xs\) {
700
- gap: var(--layout-gap-xs);
666
+ .gap-\(--ui-gap\) {
667
+ gap: var(--ui-gap);
701
668
  }
702
669
  .gap-0 {
703
670
  gap: calc(var(--spacing) * 0);
704
671
  }
705
- .gap-0\.5 {
706
- gap: calc(var(--spacing) * 0.5);
707
- }
708
- .gap-1 {
709
- gap: calc(var(--spacing) * 1);
710
- }
711
672
  .gap-1\.5 {
712
673
  gap: calc(var(--spacing) * 1.5);
713
674
  }
@@ -720,15 +681,6 @@
720
681
  .gap-3 {
721
682
  gap: calc(var(--spacing) * 3);
722
683
  }
723
- .gap-4 {
724
- gap: calc(var(--spacing) * 4);
725
- }
726
- .gap-5 {
727
- gap: calc(var(--spacing) * 5);
728
- }
729
- .gap-6 {
730
- gap: calc(var(--spacing) * 6);
731
- }
732
684
  .space-y-2 {
733
685
  :where(& > :not(:last-child)) {
734
686
  --tw-space-y-reverse: 0;
@@ -1145,35 +1097,11 @@
1145
1097
  .p-0 {
1146
1098
  padding: calc(var(--spacing) * 0);
1147
1099
  }
1148
- .px-\(--layout-px-lg\) {
1149
- padding-inline: var(--layout-px-lg);
1150
- }
1151
- .px-\(--layout-px-md\) {
1152
- padding-inline: var(--layout-px-md);
1153
- }
1154
- .px-\(--layout-px-sm\) {
1155
- padding-inline: var(--layout-px-sm);
1156
- }
1157
- .px-\(--layout-px-xl\) {
1158
- padding-inline: var(--layout-px-xl);
1159
- }
1160
- .px-\(--layout-px-xs\) {
1161
- padding-inline: var(--layout-px-xs);
1162
- }
1163
- .px-\(--section-px-lg\) {
1164
- padding-inline: var(--section-px-lg);
1165
- }
1166
- .px-\(--section-px-md\) {
1167
- padding-inline: var(--section-px-md);
1100
+ .px-\(--px\) {
1101
+ padding-inline: var(--px);
1168
1102
  }
1169
- .px-\(--section-px-sm\) {
1170
- padding-inline: var(--section-px-sm);
1171
- }
1172
- .px-\(--section-px-xl\) {
1173
- padding-inline: var(--section-px-xl);
1174
- }
1175
- .px-\(--section-px-xs\) {
1176
- padding-inline: var(--section-px-xs);
1103
+ .px-\(--ui-px\) {
1104
+ padding-inline: var(--ui-px);
1177
1105
  }
1178
1106
  .px-1 {
1179
1107
  padding-inline: calc(var(--spacing) * 1);
@@ -1202,41 +1130,11 @@
1202
1130
  .px-6 {
1203
1131
  padding-inline: calc(var(--spacing) * 6);
1204
1132
  }
1205
- .px-8 {
1206
- padding-inline: calc(var(--spacing) * 8);
1207
- }
1208
- .px-10 {
1209
- padding-inline: calc(var(--spacing) * 10);
1210
- }
1211
- .py-\(--layout-py-lg\) {
1212
- padding-block: var(--layout-py-lg);
1213
- }
1214
- .py-\(--layout-py-md\) {
1215
- padding-block: var(--layout-py-md);
1216
- }
1217
- .py-\(--layout-py-sm\) {
1218
- padding-block: var(--layout-py-sm);
1219
- }
1220
- .py-\(--layout-py-xl\) {
1221
- padding-block: var(--layout-py-xl);
1222
- }
1223
- .py-\(--layout-py-xs\) {
1224
- padding-block: var(--layout-py-xs);
1133
+ .py-\(--py\) {
1134
+ padding-block: var(--py);
1225
1135
  }
1226
- .py-\(--section-py-lg\) {
1227
- padding-block: var(--section-py-lg);
1228
- }
1229
- .py-\(--section-py-md\) {
1230
- padding-block: var(--section-py-md);
1231
- }
1232
- .py-\(--section-py-sm\) {
1233
- padding-block: var(--section-py-sm);
1234
- }
1235
- .py-\(--section-py-xl\) {
1236
- padding-block: var(--section-py-xl);
1237
- }
1238
- .py-\(--section-py-xs\) {
1239
- padding-block: var(--section-py-xs);
1136
+ .py-\(--ui-py\) {
1137
+ padding-block: var(--ui-py);
1240
1138
  }
1241
1139
  .py-0 {
1242
1140
  padding-block: calc(var(--spacing) * 0);
@@ -1717,6 +1615,99 @@
1717
1615
  --tw-duration: 200ms;
1718
1616
  transition-duration: 200ms;
1719
1617
  }
1618
+ .\[--aspect-ratio\:1\.5\] {
1619
+ --aspect-ratio: 1.5;
1620
+ }
1621
+ .\[--aspect-ratio\:1\.6\] {
1622
+ --aspect-ratio: 1.6;
1623
+ }
1624
+ .\[--aspect-ratio\:1\.75\] {
1625
+ --aspect-ratio: 1.75;
1626
+ }
1627
+ .\[--aspect-ratio\:1\] {
1628
+ --aspect-ratio: 1;
1629
+ }
1630
+ .\[--aspect-ratio\:2\.5\] {
1631
+ --aspect-ratio: 2.5;
1632
+ }
1633
+ .\[--aspect-ratio\:2\] {
1634
+ --aspect-ratio: 2;
1635
+ }
1636
+ .\[--aspect-ratio\:3\] {
1637
+ --aspect-ratio: 3;
1638
+ }
1639
+ .\[--aspect-ratio\:4\] {
1640
+ --aspect-ratio: 4;
1641
+ }
1642
+ .\[--gap-unit\:0\.5\] {
1643
+ --gap-unit: 0.5;
1644
+ }
1645
+ .\[--gap-unit\:1\.5\] {
1646
+ --gap-unit: 1.5;
1647
+ }
1648
+ .\[--gap-unit\:1\] {
1649
+ --gap-unit: 1;
1650
+ }
1651
+ .\[--gap-unit\:2\.5\] {
1652
+ --gap-unit: 2.5;
1653
+ }
1654
+ .\[--gap-unit\:2\] {
1655
+ --gap-unit: 2;
1656
+ }
1657
+ .\[--gap-unit\:3\] {
1658
+ --gap-unit: 3;
1659
+ }
1660
+ .\[--gap-unit\:4\] {
1661
+ --gap-unit: 4;
1662
+ }
1663
+ .\[--gap-unit\:5\] {
1664
+ --gap-unit: 5;
1665
+ }
1666
+ .\[--gap-unit\:6\] {
1667
+ --gap-unit: 6;
1668
+ }
1669
+ .\[--py-unit\:0\.5\] {
1670
+ --py-unit: 0.5;
1671
+ }
1672
+ .\[--py-unit\:0\] {
1673
+ --py-unit: 0;
1674
+ }
1675
+ .\[--py-unit\:1\.5\] {
1676
+ --py-unit: 1.5;
1677
+ }
1678
+ .\[--py-unit\:1\] {
1679
+ --py-unit: 1;
1680
+ }
1681
+ .\[--py-unit\:2\.5\] {
1682
+ --py-unit: 2.5;
1683
+ }
1684
+ .\[--py-unit\:2\] {
1685
+ --py-unit: 2;
1686
+ }
1687
+ .\[--py-unit\:3\] {
1688
+ --py-unit: 3;
1689
+ }
1690
+ .\[--py-unit\:4\] {
1691
+ --py-unit: 4;
1692
+ }
1693
+ .\[--py-unit\:5\] {
1694
+ --py-unit: 5;
1695
+ }
1696
+ .\[--py-unit\:6\] {
1697
+ --py-unit: 6;
1698
+ }
1699
+ .\[--py-unit\:8\] {
1700
+ --py-unit: 8;
1701
+ }
1702
+ .\[--py-unit\:12\] {
1703
+ --py-unit: 12;
1704
+ }
1705
+ .\[--py-unit\:16\] {
1706
+ --py-unit: 16;
1707
+ }
1708
+ .\[--py-unit\:20\] {
1709
+ --py-unit: 20;
1710
+ }
1720
1711
  .ring-inset {
1721
1712
  --tw-ring-inset: inset;
1722
1713
  }
@@ -2491,7 +2482,21 @@
2491
2482
  }
2492
2483
  }
2493
2484
  }
2494
- @layer theme;
2485
+ @layer theme {
2486
+ @layer base {
2487
+ :where(*) {
2488
+ --gap-unit: 1;
2489
+ --gap: calc(var(--gap-unit) * var(--layout-spacing));
2490
+ --ui-gap: calc(var(--gap-unit) * var(--ui-spacing));
2491
+ --aspect-ratio: 1;
2492
+ --py-unit: 1;
2493
+ --px: calc(var(--aspect-ratio) * var(--py-unit) * var(--layout-spacing));
2494
+ --py: calc(var(--py-unit) * var(--layout-spacing));
2495
+ --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
2496
+ --ui-py: calc(var(--py-unit) * var(--ui-spacing));
2497
+ }
2498
+ }
2499
+ }
2495
2500
  @property --tw-rotate-x {
2496
2501
  syntax: "*";
2497
2502
  inherits: false;
package/dist/vars.css CHANGED
@@ -1,4 +1,4 @@
1
- @theme inline {
1
+ @theme {
2
2
  /* Text Colors */
3
3
  --color-text-default: var(--color-gray-900);
4
4
  --color-text-primary: var(--color-blue-600);
@@ -147,12 +147,12 @@
147
147
  --color-border-filled-link: var(--color-blue-600);
148
148
 
149
149
  /* UI Component Border Radius Sizes */
150
- --ui-br-spacing: 0.125rem;
151
- --ui-br-xs: calc(1 * var(--ui-br-spacing));
152
- --ui-br-sm: calc(2 * var(--ui-br-spacing));
153
- --ui-br-md: calc(3 * var(--ui-br-spacing));
154
- --ui-br-lg: calc(4 * var(--ui-br-spacing));
155
- --ui-br-xl: calc(5 * var(--ui-br-spacing));
150
+ --ui-br-unit: 0.125rem;
151
+ --ui-br-xs: calc(1 * var(--ui-br-unit));
152
+ --ui-br-sm: calc(2 * var(--ui-br-unit));
153
+ --ui-br-md: calc(3 * var(--ui-br-unit));
154
+ --ui-br-lg: calc(4 * var(--ui-br-unit));
155
+ --ui-br-xl: calc(5 * var(--ui-br-unit));
156
156
 
157
157
  /* Layout Component Border Radius Sizes */
158
158
  --layout-br-spacing: 0.25rem;
@@ -162,39 +162,24 @@
162
162
  --layout-br-lg: calc(6 * var(--layout-br-spacing));
163
163
  --layout-br-xl: calc(7 * var(--layout-br-spacing));
164
164
 
165
- /* Layout Component Gap Sizes */
166
- --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.375rem);
167
- --layout-gap-xs: calc(2 * var(--layout-spacing));
168
- --layout-gap-sm: calc(3 * var(--layout-spacing));
169
- --layout-gap-md: calc(4 * var(--layout-spacing));
170
- --layout-gap-lg: calc(5 * var(--layout-spacing));
171
- --layout-gap-xl: calc(6 * var(--layout-spacing));
172
-
173
- /* Layout Component Horizontal Padding Sizes */
174
- --layout-px-xs: calc(2 * var(--layout-spacing));
175
- --layout-px-sm: calc(3 * var(--layout-spacing));
176
- --layout-px-md: calc(4 * var(--layout-spacing));
177
- --layout-px-lg: calc(5 * var(--layout-spacing));
178
- --layout-px-xl: calc(6 * var(--layout-spacing));
179
-
180
- /* Layout Component Vertical Padding Sizes */
181
- --layout-py-xs: calc(2 * var(--layout-spacing));
182
- --layout-py-sm: calc(3 * var(--layout-spacing));
183
- --layout-py-md: calc(4 * var(--layout-spacing));
184
- --layout-py-lg: calc(5 * var(--layout-spacing));
185
- --layout-py-xl: calc(6 * var(--layout-spacing));
186
-
187
- /* Section Component Horizontal Padding Sizes */
188
- --section-px-xs: calc(5 * var(--layout-spacing));
189
- --section-px-sm: calc(6 * var(--layout-spacing));
190
- --section-px-md: calc(7 * var(--layout-spacing));
191
- --section-px-lg: calc(8 * var(--layout-spacing));
192
- --section-px-xl: calc(9 * var(--layout-spacing));
193
-
194
- /* Section Component Vertical Padding Sizes */
195
- --section-py-xs: calc(4 * var(--layout-spacing));
196
- --section-py-sm: calc(8 * var(--layout-spacing));
197
- --section-py-md: calc(12 * var(--layout-spacing));
198
- --section-py-lg: calc(16 * var(--layout-spacing));
199
- --section-py-xl: calc(20 * var(--layout-spacing));
165
+ --layout-spacing: clamp(0.1rem, 0.16rem + 0.4vw, 0.25rem);
166
+ --ui-spacing: var(--spacing);
200
167
  }
168
+
169
+ @layer base {
170
+ :where(*) {
171
+ /* Layout Gap: the --gap-unit variable is set depending on component and it's size */
172
+ --gap-unit: 1;
173
+ --gap: calc(var(--gap-unit) * var(--layout-spacing));
174
+ --ui-gap: calc(var(--gap-unit) * var(--ui-spacing));
175
+
176
+ --aspect-ratio: 1;
177
+ --py-unit: 1;
178
+
179
+ --px: calc(var(--aspect-ratio) * var(--py-unit) * var(--layout-spacing));
180
+ --py: calc(var(--py-unit) * var(--layout-spacing));
181
+
182
+ --ui-px: calc(var(--aspect-ratio) * var(--py-unit) * var(--ui-spacing));
183
+ --ui-py: calc(var(--py-unit) * var(--ui-spacing));
184
+ }
185
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaneui/ui",
3
- "version": "0.3.1-alpha.20250917170051.b819c80",
3
+ "version": "0.3.1-alpha.20250925201320.8b6a424",
4
4
  "description": "A simple and lightweight UI component library for React, built with Tailwind CSS.",
5
5
  "author": "",
6
6
  "license": "ISC",