@redseed/redseed-ui-tailwindcss 7.65.0 → 7.66.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.
Files changed (57) hide show
  1. package/components/activity_feed.css +1 -1
  2. package/components/badge.css +4 -4
  3. package/components/badge_group.css +8 -8
  4. package/components/breadcrumbs.css +2 -2
  5. package/components/button_group_item.css +2 -2
  6. package/components/button_slot.css +7 -7
  7. package/components/card_group.css +3 -3
  8. package/components/column_picker.css +3 -3
  9. package/components/comment.css +16 -16
  10. package/components/comments.css +1 -1
  11. package/components/drawer.css +5 -5
  12. package/components/dropdown_menu.css +1 -1
  13. package/components/dropdown_option.css +1 -1
  14. package/components/empty.css +3 -3
  15. package/components/feed_item.css +4 -4
  16. package/components/form_field_checkbox.css +1 -1
  17. package/components/form_field_combobox.css +7 -7
  18. package/components/form_field_date_range.css +9 -9
  19. package/components/form_field_radio_group.css +2 -2
  20. package/components/form_field_select.css +3 -3
  21. package/components/form_field_slot.css +5 -5
  22. package/components/form_field_text.css +2 -2
  23. package/components/form_field_textarea.css +1 -1
  24. package/components/form_field_tree_select.css +9 -9
  25. package/components/form_field_uploader.css +3 -3
  26. package/components/form_fieldset.css +5 -5
  27. package/components/form_slot.css +6 -6
  28. package/components/link_slot.css +1 -1
  29. package/components/linked_list_item.css +1 -1
  30. package/components/list.css +3 -3
  31. package/components/list_control.css +2 -2
  32. package/components/list_item.css +6 -6
  33. package/components/message_box.css +6 -6
  34. package/components/meta_info.css +1 -1
  35. package/components/modal.css +8 -8
  36. package/components/pagination.css +4 -4
  37. package/components/pagination_item.css +1 -1
  38. package/components/progress_bar.css +1 -1
  39. package/components/progress_tracker.css +3 -3
  40. package/components/progress_tracker_step.css +3 -3
  41. package/components/radio_card.css +3 -3
  42. package/components/read_more.css +1 -1
  43. package/components/record_count.css +1 -1
  44. package/components/section_header.css +1 -1
  45. package/components/section_slider.css +3 -3
  46. package/components/switcher.css +3 -3
  47. package/components/switcher_item.css +2 -2
  48. package/components/tab_slider_item.css +1 -1
  49. package/components/table.css +1 -1
  50. package/components/td.css +1 -1
  51. package/components/td_user.css +1 -1
  52. package/components/th.css +4 -4
  53. package/components/toggle.css +2 -2
  54. package/components/tooltip.css +1 -1
  55. package/components/two_column_layout.css +3 -3
  56. package/package.json +1 -1
  57. package/tokens.css +18 -3
@@ -8,7 +8,7 @@
8
8
 
9
9
  .rsui-form-field-tree-select__trigger {
10
10
  @apply block w-full border ring-0 bg-none cursor-pointer appearance-none transition;
11
- @apply py-3 px-5 truncate text-left;
11
+ @apply py-space-sm px-5 truncate text-left;
12
12
  @apply text-base rounded-lg outline-hidden focus:outline-hidden;
13
13
  @apply bg-background-primary text-text-primary placeholder-text-secondary border-border-primary;
14
14
  @apply focus:border-border-primary;
@@ -21,31 +21,31 @@
21
21
  }
22
22
 
23
23
  .rsui-form-field-tree-select__modal-header {
24
- @apply flex flex-col gap-y-2 xs:gap-y-0 xs:flex-row xs:items-center xs:justify-between;
24
+ @apply flex flex-col gap-y-space-xs xs:gap-y-0 xs:flex-row xs:items-center xs:justify-between;
25
25
  }
26
26
 
27
27
  .rsui-form-field-tree-select__search {
28
- @apply mb-4;
28
+ @apply mb-space-md;
29
29
  }
30
30
 
31
31
  .rsui-form-field-tree-select__tree {
32
- @apply max-h-96 flex flex-col gap-3 overflow-y-auto pt-1 pl-1;
32
+ @apply max-h-96 flex flex-col gap-space-sm overflow-y-auto pt-space-xxs pl-space-xxs;
33
33
  }
34
34
 
35
35
  .rsui-form-field-tree-select-children {
36
- @apply flex flex-col gap-3 ml-4 sm:ml-6 md:ml-7;
36
+ @apply flex flex-col gap-space-sm ml-space-md sm:ml-space-lg md:ml-7;
37
37
  }
38
38
 
39
39
  .rsui-form-field-tree-select-item {
40
- @apply flex items-start gap-x-1 sm:gap-x-1 md:gap-x-2;
40
+ @apply flex items-start gap-x-space-xxs sm:gap-x-space-xxs md:gap-x-space-xs;
41
41
  }
42
42
 
43
43
  .rsui-form-field-tree-select-item__controls {
44
- @apply flex items-start gap-x-0 sm:gap-x-1 md:gap-x-2;
44
+ @apply flex items-start gap-x-0 sm:gap-x-space-xxs md:gap-x-space-xs;
45
45
  }
46
46
 
47
47
  .rsui-form-field-tree-select-item__opener {
48
- @apply pt-1 md:pt-0.5 w-5 text-text-secondary;
48
+ @apply pt-space-xxs md:pt-0.5 w-5 text-text-secondary;
49
49
  }
50
50
 
51
51
  .rsui-form-field-tree-select-item__opener--clickable {
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  .rsui-form-field-tree-select-item__name {
64
- @apply font-medium select-none cursor-pointer text-xs sm:text-sm md:text-base pt-1 sm:pt-0.5 md:pt-0;
64
+ @apply font-medium select-none cursor-pointer text-xs sm:text-sm md:text-base pt-space-xxs sm:pt-0.5 md:pt-0;
65
65
  }
66
66
 
67
67
  .rsui-form-field-tree-select-item__name--searched {
@@ -2,8 +2,8 @@
2
2
  @apply w-fit max-w-80 bg-background-secondary;
3
3
  @apply relative select-none;
4
4
  @apply rounded-lg border border-border-primary border-dashed;
5
- @apply flex flex-nowrap justify-center items-center gap-4;
6
- @apply px-4 py-2.5;
5
+ @apply flex flex-nowrap justify-center items-center gap-space-md;
6
+ @apply px-space-md py-2.5;
7
7
  }
8
8
 
9
9
  .rsui-form-field-uploader__container--success {
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  .rsui-form-field-uploader__content {
14
- @apply relative flex flex-nowrap justify-center items-center gap-4;
14
+ @apply relative flex flex-nowrap justify-center items-center gap-space-md;
15
15
  @apply text-text-primary;
16
16
  }
17
17
 
@@ -3,11 +3,11 @@
3
3
  }
4
4
 
5
5
  .rsui-form-fieldset__fields {
6
- @apply flex flex-col gap-3;
6
+ @apply flex flex-col gap-space-sm;
7
7
  }
8
8
 
9
9
  .rsui-form-fieldset__fields--padded {
10
- @apply mt-3 px-2;
10
+ @apply mt-space-sm px-space-xs;
11
11
  }
12
12
 
13
13
  .rsui-form-fieldset__fields .rsui-form-field-slot label {
@@ -34,14 +34,14 @@
34
34
  .rsui-form-fieldset__fields .rsui-form-field-slot--compact input[type='time'],
35
35
  .rsui-form-fieldset__fields .rsui-form-field-slot--compact input[type='url'],
36
36
  .rsui-form-fieldset__fields .rsui-form-field-slot--compact input[type='week'] {
37
- @apply py-1.5 px-2;
37
+ @apply py-1.5 px-space-xs;
38
38
  }
39
39
 
40
40
  .rsui-form-fieldset__fields .rsui-form-field-slot--compact select {
41
- @apply py-1.5 pl-3 pr-12 text-sm;
41
+ @apply py-1.5 pl-space-sm pr-space-2xl text-sm;
42
42
  }
43
43
 
44
44
  .rsui-form-fieldset__fields .rsui-form-field-select__icon { @apply right-2; }
45
45
  .rsui-form-fieldset__fields .rsui-form-field-select__icon svg { @apply size-5; }
46
- .rsui-form-fieldset__fields .rsui-form-field-select__option { @apply py-3 px-2; }
46
+ .rsui-form-fieldset__fields .rsui-form-field-select__option { @apply py-space-sm px-space-xs; }
47
47
  .rsui-form-fieldset__fields .rsui-form-field-select__option-label { @apply text-sm; }
@@ -5,11 +5,11 @@
5
5
  }
6
6
 
7
7
  .rsui-form-slot__image {
8
- @apply mb-8;
8
+ @apply mb-space-xl;
9
9
  }
10
10
 
11
11
  .rsui-form-slot__social-divider {
12
- @apply w-full relative flex justify-center mb-2;
12
+ @apply w-full relative flex justify-center mb-space-xs;
13
13
  }
14
14
 
15
15
  .rsui-form-slot__social-divider-line {
@@ -17,18 +17,18 @@
17
17
  }
18
18
 
19
19
  .rsui-form-slot__social-divider-or {
20
- @apply relative z-1 bg-background-primary px-6 text-text-primary;
20
+ @apply relative z-1 bg-background-primary px-space-lg text-text-primary;
21
21
  }
22
22
 
23
23
  .rsui-form-slot__content {
24
- @apply w-full sm:max-w-md px-10 xs:px-12 md:px-16 py-10 bg-background-primary shadow-md overflow-hidden rounded-lg;
24
+ @apply w-full sm:max-w-md px-10 xs:px-space-2xl md:px-space-3xl py-10 bg-background-primary shadow-md overflow-hidden rounded-lg;
25
25
  }
26
26
 
27
27
  .rsui-form-slot__content > * {
28
- @apply first:mt-0 mt-4;
28
+ @apply first:mt-0 mt-space-md;
29
29
  }
30
30
 
31
31
  .rsui-form-slot__content form > * {
32
- @apply first:mt-0 mt-4;
32
+ @apply first:mt-0 mt-space-md;
33
33
  }
34
34
 
@@ -7,7 +7,7 @@
7
7
  @apply focus-visible:ring-offset-2 focus-visible:ring-2 focus-visible:ring-border-primary;
8
8
 
9
9
  /* default text styles */
10
- @apply font-medium text-text-primary gap-2;
10
+ @apply font-medium text-text-primary gap-space-xs;
11
11
  }
12
12
 
13
13
  .rsui-link-slot--disabled {
@@ -1,5 +1,5 @@
1
1
  .rsui-linked-list-item {
2
- @apply pl-9 pr-3 pt-0 pb-2 relative text-text-disabled;
2
+ @apply pl-9 pr-space-sm pt-0 pb-space-xs relative text-text-disabled;
3
3
  }
4
4
 
5
5
  .rsui-linked-list-item::before {
@@ -1,12 +1,12 @@
1
1
  .rsui-list__items {
2
- @apply mt-6;
2
+ @apply mt-space-lg;
3
3
  }
4
4
 
5
5
  .rsui-list__empty {
6
- @apply mt-6;
6
+ @apply mt-space-lg;
7
7
  }
8
8
 
9
9
  .rsui-list__control-bottom {
10
- @apply mt-3;
10
+ @apply mt-space-sm;
11
11
  }
12
12
 
@@ -1,5 +1,5 @@
1
1
  .rsui-list-control {
2
- @apply flex flex-wrap justify-between gap-x-2 gap-y-3;
2
+ @apply flex flex-wrap justify-between gap-x-space-xs gap-y-space-sm;
3
3
  }
4
4
 
5
5
  .rsui-list-control--sm .rsui-list-control__filters {
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  .rsui-list-control__filters {
52
- @apply grid gap-2;
52
+ @apply grid gap-space-xs;
53
53
  }
54
54
 
55
55
  .rsui-list-control__sort {
@@ -3,7 +3,7 @@
3
3
  cramped against its neighbours, which is the note that came back from laying these
4
4
  out on a real page. Horizontal padding is unchanged. Half-steps are already used
5
5
  across the button sizes, so 3.5 is in keeping. */
6
- @apply relative flex flex-col rounded-xl px-3 py-3.5 overflow-hidden;
6
+ @apply relative flex flex-col rounded-xl px-space-sm py-3.5 overflow-hidden;
7
7
  }
8
8
 
9
9
  .rsui-list-item--clickable {
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .rsui-list-item--avatar {
17
- @apply pl-12 lg:pl-16 *:pl-2 *:lg:pl-1;
17
+ @apply pl-space-2xl lg:pl-space-3xl *:pl-space-xs *:lg:pl-space-xxs;
18
18
  }
19
19
 
20
20
  .rsui-list-item--wide .rsui-list-item__status {
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  .rsui-list-item__header {
25
- @apply relative z-1 flex flex-wrap items-center gap-2 pointer-events-none;
25
+ @apply relative z-1 flex flex-wrap items-center gap-space-xs pointer-events-none;
26
26
  }
27
27
 
28
28
  .rsui-list-item__bg {
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  .rsui-list-item__avatar {
42
- @apply absolute top-0 ml-1 -left-10 lg:-left-14;
42
+ @apply absolute top-0 ml-space-xxs -left-10 lg:-left-14;
43
43
  @apply aspect-square overflow-hidden size-9 lg:size-12;
44
44
  }
45
45
 
@@ -70,7 +70,7 @@
70
70
  }
71
71
 
72
72
  .rsui-list-item__meta {
73
- @apply mt-2 flex flex-wrap gap-x-4 gap-y-2;
73
+ @apply mt-space-xs flex flex-wrap gap-x-space-md gap-y-space-xs;
74
74
  }
75
75
 
76
76
  /* Leading icon. Inline, unlike .rsui-list-item__avatar above, which hangs outside the row
@@ -133,5 +133,5 @@
133
133
  }
134
134
 
135
135
  .rsui-list-item__description {
136
- @apply line-clamp-2 mt-2 text-base;
136
+ @apply line-clamp-2 mt-space-xs text-base;
137
137
  }
@@ -4,7 +4,7 @@
4
4
  * against a tall body.
5
5
  */
6
6
  .rsui-message-box {
7
- @apply border rounded-lg overflow-hidden p-4 flex items-start gap-x-3;
7
+ @apply border rounded-lg overflow-hidden p-space-md flex items-start gap-x-space-sm;
8
8
  }
9
9
 
10
10
  /*
@@ -12,7 +12,7 @@
12
12
  * box with no icon and no actions lays out exactly as it did before.
13
13
  */
14
14
  .rsui-message-box__main {
15
- @apply flex-1 flex flex-col gap-y-3;
15
+ @apply flex-1 flex flex-col gap-y-space-sm;
16
16
  }
17
17
 
18
18
  /*
@@ -31,7 +31,7 @@
31
31
  * rhythm. Inert at `sm:flex-nowrap`, where there is only ever one line.
32
32
  */
33
33
  .rsui-message-box--with-icon {
34
- @apply flex-wrap gap-y-3 sm:flex-nowrap;
34
+ @apply flex-wrap gap-y-space-sm sm:flex-nowrap;
35
35
  }
36
36
 
37
37
  .rsui-message-box--with-icon .rsui-message-box__close {
@@ -78,11 +78,11 @@
78
78
  }
79
79
 
80
80
  .rsui-message-box__head {
81
- @apply flex items-center gap-x-2;
81
+ @apply flex items-center gap-x-space-xs;
82
82
  }
83
83
 
84
84
  .rsui-message-box__content {
85
- @apply flex items-start gap-x-2;
85
+ @apply flex items-start gap-x-space-xs;
86
86
  }
87
87
 
88
88
  /*
@@ -104,7 +104,7 @@
104
104
  * puts beside it, which is the only hierarchy this row needs.
105
105
  */
106
106
  .rsui-message-box__actions {
107
- @apply flex flex-wrap items-center gap-x-4 gap-y-2 pt-1;
107
+ @apply flex flex-wrap items-center gap-x-space-md gap-y-space-xs pt-space-xxs;
108
108
  }
109
109
 
110
110
  .rsui-message-box__dismiss,
@@ -13,7 +13,7 @@
13
13
  caption floor. Fix the size and 8px becomes correct; that belongs with the MetaInfo
14
14
  size ramp in #316, not here. Until then this is the size the component ships at, and
15
15
  the gap has to suit it. */
16
- @apply flex flex-col gap-y-1;
16
+ @apply flex flex-col gap-y-space-xxs;
17
17
  }
18
18
 
19
19
  /* gap-x rather than space-x: space-* works by adding margins to children, which is the
@@ -1,7 +1,7 @@
1
1
  .rsui-modal {
2
2
  @apply fixed inset-0 z-50 overflow-y-auto transition-all;
3
3
  @apply flex flex-col;
4
- @apply px-4 py-6 md:px-0;
4
+ @apply px-space-md py-space-lg md:px-0;
5
5
  height: 100dvh;
6
6
  }
7
7
 
@@ -15,7 +15,7 @@
15
15
 
16
16
  .rsui-modal__content {
17
17
  @apply relative max-h-full overflow-scroll overscroll-contain transform transition-all;
18
- @apply rounded-xl shadow-full md:w-full md:mx-auto mx-4;
18
+ @apply rounded-xl shadow-full md:w-full md:mx-auto mx-space-md;
19
19
  @apply bg-background-primary;
20
20
  -ms-overflow-style: none;
21
21
  scrollbar-width: none;
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  .rsui-modal__content--sm {
29
- @apply sm:max-w-sm xs:mx-4 sm:mx-auto;
29
+ @apply sm:max-w-sm xs:mx-space-md sm:mx-auto;
30
30
  }
31
31
 
32
32
  .rsui-modal__content--md {
@@ -62,7 +62,7 @@
62
62
  }
63
63
 
64
64
  .rsui-modal__header--padded {
65
- @apply p-4;
65
+ @apply p-space-md;
66
66
  }
67
67
 
68
68
  .rsui-modal__body {
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  .rsui-modal__body--padded {
75
- @apply p-4;
75
+ @apply p-space-md;
76
76
  }
77
77
 
78
78
  .rsui-modal__body::-webkit-scrollbar {
@@ -80,13 +80,13 @@
80
80
  }
81
81
 
82
82
  .rsui-modal__footer {
83
- @apply sticky inset-x-0 bottom-0 z-1 p-0 bg-background-secondary shrink-0 flex flex-col items-stretch gap-y-2;
84
- @apply sm:flex-row sm:items-center sm:justify-end sm:gap-x-2 sm:gap-y-0;
83
+ @apply sticky inset-x-0 bottom-0 z-1 p-0 bg-background-secondary shrink-0 flex flex-col items-stretch gap-y-space-xs;
84
+ @apply sm:flex-row sm:items-center sm:justify-end sm:gap-x-space-xs sm:gap-y-0;
85
85
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
86
86
  }
87
87
 
88
88
  .rsui-modal__footer--padded {
89
- @apply p-4;
89
+ @apply p-space-md;
90
90
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
91
91
  }
92
92
 
@@ -1,13 +1,13 @@
1
1
  .rsui-pagination {
2
- @apply flex flex-nowrap items-center w-fit border border-border-secondary rounded-full p-1 bg-background-primary divide-x divide-border-secondary;
2
+ @apply flex flex-nowrap items-center w-fit border border-border-secondary rounded-full p-space-xxs bg-background-primary divide-x divide-border-secondary;
3
3
  }
4
4
 
5
5
  .rsui-pagination__previous {
6
- @apply size-full flex items-center pr-1;
6
+ @apply size-full flex items-center pr-space-xxs;
7
7
  }
8
8
 
9
9
  .rsui-pagination__items {
10
- @apply size-full flex items-center gap-px px-1;
10
+ @apply size-full flex items-center gap-px px-space-xxs;
11
11
  }
12
12
 
13
13
  .rsui-pagination__items-group {
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .rsui-pagination__next {
18
- @apply size-full flex items-center pl-1;
18
+ @apply size-full flex items-center pl-space-xxs;
19
19
  }
20
20
 
21
21
  .rsui-pagination-parent {
@@ -1,6 +1,6 @@
1
1
  .rsui-pagination-item {
2
2
  @apply inline-flex items-center justify-center overflow-hidden select-none;
3
- @apply min-w-9 w-fit h-7 p-1 rounded-lg cursor-pointer transition;
3
+ @apply min-w-9 w-fit h-7 p-space-xxs rounded-lg cursor-pointer transition;
4
4
  @apply bg-background-primary hover:bg-background-primary-invert text-text-secondary text-sm;
5
5
 
6
6
  /* focus state */
@@ -1,5 +1,5 @@
1
1
  .rsui-progress-bar {
2
- @apply flex items-center gap-3 w-full;
2
+ @apply flex items-center gap-space-sm w-full;
3
3
  }
4
4
 
5
5
  .rsui-progress-bar__track {
@@ -3,13 +3,13 @@
3
3
  }
4
4
 
5
5
  .rsui-progress-tracker--sm {
6
- @apply gap-8 text-xs;
6
+ @apply gap-space-xl text-xs;
7
7
  }
8
8
 
9
9
  .rsui-progress-tracker--md {
10
- @apply gap-8 sm:gap-12 text-xs sm:text-base;
10
+ @apply gap-space-xl sm:gap-space-2xl text-xs sm:text-base;
11
11
  }
12
12
 
13
13
  .rsui-progress-tracker--lg {
14
- @apply gap-8 sm:gap-16 text-xs sm:text-xl;
14
+ @apply gap-space-xl sm:gap-space-3xl text-xs sm:text-xl;
15
15
  }
@@ -9,21 +9,21 @@
9
9
  }
10
10
 
11
11
  .rsui-progress-tracker-step--sm {
12
- @apply gap-2;
12
+ @apply gap-space-xs;
13
13
 
14
14
  @apply after:top-3.5;
15
15
  @apply after:-left-4;
16
16
  }
17
17
 
18
18
  .rsui-progress-tracker-step--md {
19
- @apply gap-2;
19
+ @apply gap-space-xs;
20
20
 
21
21
  @apply after:top-3.5 sm:after:top-4.5;
22
22
  @apply after:-left-4;
23
23
  }
24
24
 
25
25
  .rsui-progress-tracker-step--lg {
26
- @apply gap-2 sm:gap-4;
26
+ @apply gap-space-xs sm:gap-space-md;
27
27
 
28
28
  @apply after:top-3.5 sm:after:top-6;
29
29
  @apply after:-left-4 sm:after:-left-8;
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  .rsui-radio-card__title-row {
55
- @apply relative text-xl leading-[1.3] font-medium text-text-primary line-clamp-3 min-h-6 pr-8;
55
+ @apply relative text-xl leading-[1.3] font-medium text-text-primary line-clamp-3 min-h-6 pr-space-xl;
56
56
 
57
57
  @apply after:content-[''] after:absolute after:top-0 after:right-0;
58
58
  @apply after:size-6 after:rounded-full after:transition-all;
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  .rsui-radio-card__title-row--radio-start {
63
- @apply pl-8 pr-0;
63
+ @apply pl-space-xl pr-0;
64
64
  @apply after:left-0 after:right-auto;
65
65
  }
66
66
 
@@ -88,7 +88,7 @@
88
88
  }
89
89
 
90
90
  .rsui-radio-card__content-row--radio-start {
91
- @apply pl-8 pr-0;
91
+ @apply pl-space-xl pr-0;
92
92
  }
93
93
 
94
94
  .rsui-radio-card__meta-row {
@@ -3,6 +3,6 @@
3
3
  }
4
4
 
5
5
  .rsui-read-more__link {
6
- @apply mt-4;
6
+ @apply mt-space-md;
7
7
  }
8
8
 
@@ -1,4 +1,4 @@
1
1
  .record-count {
2
- @apply my-2 text-sm text-text-secondary;
2
+ @apply my-space-xs text-sm text-text-secondary;
3
3
  }
4
4
 
@@ -47,7 +47,7 @@
47
47
  between two elements. Same category as the control offsets in checkbox_card and
48
48
  card_group, which are also deliberately raw. */
49
49
  .rsui-section-header__text--with-toolbar {
50
- @apply pt-1;
50
+ @apply pt-space-xxs;
51
51
  }
52
52
 
53
53
  .rsui-section-header__title {
@@ -59,7 +59,7 @@
59
59
  * width and still grows if the consumer puts something wider inside.
60
60
  */
61
61
  .rsui-section-slider__view-all {
62
- @apply min-w-64 items-center justify-center gap-3 border-dashed p-space-lg text-center;
62
+ @apply min-w-64 items-center justify-center gap-space-sm border-dashed p-space-lg text-center;
63
63
  @apply font-semibold;
64
64
  @apply hover:cursor-pointer hover:shadow-md;
65
65
  @apply focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-primary outline-hidden;
@@ -162,7 +162,7 @@
162
162
  * use it.
163
163
  */
164
164
  .rsui-section-slider__container {
165
- @apply relative flex gap-x-3 lg:gap-x-6 overflow-x-auto lg:overflow-x-hidden focus:outline-hidden scroll-smooth snap-x snap-mandatory scroll-pl-space-lg;
165
+ @apply relative flex gap-x-space-sm lg:gap-x-space-lg overflow-x-auto lg:overflow-x-hidden focus:outline-hidden scroll-smooth snap-x snap-mandatory scroll-pl-space-lg;
166
166
  @apply focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-primary;
167
167
  }
168
168
 
@@ -242,7 +242,7 @@
242
242
  * be covering content to duplicate a gesture the user already has.
243
243
  */
244
244
  .rsui-section-slider__actions {
245
- @apply hidden lg:flex absolute inset-0 z-10 items-center justify-between px-3 pointer-events-none;
245
+ @apply hidden lg:flex absolute inset-0 z-10 items-center justify-between px-space-sm pointer-events-none;
246
246
  }
247
247
 
248
248
  /*
@@ -1,6 +1,6 @@
1
1
  .rsui-switcher {
2
- @apply w-fit flex flex-col sm:flex-row sm:items-center overflow-hidden gap-1;
3
- @apply bg-background-disabled p-1 rounded-xl;
2
+ @apply w-fit flex flex-col sm:flex-row sm:items-center overflow-hidden gap-space-xxs;
3
+ @apply bg-background-disabled p-space-xxs rounded-xl;
4
4
  }
5
5
 
6
6
  .rsui-switcher--full {
@@ -89,7 +89,7 @@
89
89
  Every rule below has to out-specify a same-specificity rule above it, so this
90
90
  block must stay last in the file. */
91
91
  .rsui-switcher--chips {
92
- @apply w-full flex-row items-center flex-nowrap gap-2;
92
+ @apply w-full flex-row items-center flex-nowrap gap-space-xs;
93
93
  @apply bg-transparent p-0 rounded-none;
94
94
 
95
95
  /* The default is overflow-hidden; this row is meant to scroll. Scrollbar
@@ -12,8 +12,8 @@
12
12
  color: inherit;
13
13
 
14
14
  @apply h-fit inline-flex shrink-0 items-center justify-center select-none outline-hidden whitespace-nowrap will-change-transform cursor-pointer;
15
- @apply font-semibold gap-2 rounded-lg border border-transparent transition;
16
- @apply text-base px-3 py-2;
15
+ @apply font-semibold gap-space-xs rounded-lg border border-transparent transition;
16
+ @apply text-base px-space-sm py-space-xs;
17
17
 
18
18
  /* The class list above sets outline-hidden, which previously left the item with no focus
19
19
  indicator at all once it became focusable. Drawn inset because .rsui-switcher is
@@ -15,7 +15,7 @@
15
15
  color: inherit;
16
16
 
17
17
  @apply inline-flex shrink-0 items-center justify-center select-none cursor-pointer whitespace-nowrap;
18
- @apply text-base px-4 py-3 gap-2 border-b-2 border-transparent -mb-px;
18
+ @apply text-base px-space-md py-space-sm gap-space-xs border-b-2 border-transparent -mb-px;
19
19
  @apply text-text-secondary;
20
20
 
21
21
  /* Focus is drawn inside the box: .rsui-tab-slider is an overflow-x-auto scroller, so an
@@ -58,5 +58,5 @@
58
58
  }
59
59
 
60
60
  .rsui-table__footer {
61
- @apply w-full border-t border-border-primary overflow-hidden py-3 px-6;
61
+ @apply w-full border-t border-border-primary overflow-hidden py-space-sm px-space-lg;
62
62
  }
package/components/td.css CHANGED
@@ -1,6 +1,6 @@
1
1
  .rsui-td {
2
2
  @apply text-left;
3
- @apply py-3 px-5 text-sm leading-6 text-text-secondary;
3
+ @apply py-space-sm px-5 text-sm leading-6 text-text-secondary;
4
4
  }
5
5
 
6
6
  .rsui-td--center {
@@ -1,5 +1,5 @@
1
1
  .rsui-td-user {
2
- @apply flex items-center gap-3;
2
+ @apply flex items-center gap-space-sm;
3
3
  }
4
4
 
5
5
  .rsui-td-user__avatar {
package/components/th.css CHANGED
@@ -1,6 +1,6 @@
1
1
  .rsui-th {
2
2
  @apply text-left;
3
- @apply py-3 px-5 text-sm leading-6 text-text-secondary;
3
+ @apply py-space-sm px-5 text-sm leading-6 text-text-secondary;
4
4
  }
5
5
 
6
6
  .rsui-th--center {
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  .rsui-th__content {
58
- @apply inline-flex gap-1 items-center;
58
+ @apply inline-flex gap-space-xxs items-center;
59
59
  }
60
60
 
61
61
  /* Sortable header trigger — a real <button> reset to match the header text,
@@ -65,8 +65,8 @@
65
65
  valid click target. Focus ring lives here (the th itself is no longer focusable).
66
66
  Default justify-start matches the base left-aligned header. */
67
67
  .rsui-th__button {
68
- @apply flex w-full gap-1 items-center justify-start;
69
- @apply py-3 px-5 cursor-pointer m-0;
68
+ @apply flex w-full gap-space-xxs items-center justify-start;
69
+ @apply py-space-sm px-5 cursor-pointer m-0;
70
70
  @apply focus-visible:outline-2 focus-visible:outline-border-primary;
71
71
  font: inherit;
72
72
  color: inherit;
@@ -1,5 +1,5 @@
1
1
  .rsui-toggle {
2
- @apply flex flex-col gap-y-2 border-0 bg-transparent p-0;
2
+ @apply flex flex-col gap-y-space-xs border-0 bg-transparent p-0;
3
3
  }
4
4
 
5
5
  .rsui-toggle--disabled label {
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .rsui-toggle__control {
24
- @apply justify-between flex items-center gap-x-4;
24
+ @apply justify-between flex items-center gap-x-space-md;
25
25
  }
26
26
 
27
27
  .rsui-toggle__control--label-end {
@@ -55,7 +55,7 @@
55
55
 
56
56
  /* Content panel — positioned via inline styles (fixed, teleported to body) */
57
57
  .rsui-tooltip__content {
58
- @apply relative px-3 py-2 w-max max-w-60;
58
+ @apply relative px-space-sm py-space-xs w-max max-w-60;
59
59
  @apply text-sm text-text-on-color bg-background-primary-contrast rounded-lg shadow-lg;
60
60
  @apply pointer-events-auto;
61
61
  }