@auriel/peppertino 0.1.1 → 0.3.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 (45) hide show
  1. package/CHANGELOG.txt +136 -0
  2. package/README.md +343 -30
  3. package/build.js +27 -12
  4. package/dist/carousel.js +152 -0
  5. package/dist/carousel.js.map +7 -0
  6. package/dist/header.js +69 -0
  7. package/dist/header.js.map +7 -0
  8. package/dist/main.css +2780 -0
  9. package/dist/main.css.map +1 -0
  10. package/dist/modal.js +112 -0
  11. package/dist/modal.js.map +7 -0
  12. package/dist/peppertino.js +637 -0
  13. package/dist/peppertino.js.map +7 -0
  14. package/dist/select.js +99 -0
  15. package/dist/select.js.map +7 -0
  16. package/dist/tabs.js +79 -0
  17. package/dist/tabs.js.map +7 -0
  18. package/dist/validation.js +130 -0
  19. package/dist/validation.js.map +7 -0
  20. package/index.html +1137 -22
  21. package/package.json +1 -1
  22. package/src/js/carousel.js +148 -0
  23. package/src/js/header.js +43 -4
  24. package/src/js/modal.js +134 -0
  25. package/src/js/peppertino.js +9 -0
  26. package/src/js/select.js +103 -0
  27. package/src/js/tabs.js +94 -0
  28. package/src/js/validation.js +132 -0
  29. package/src/scss/base.scss +26 -6
  30. package/src/scss/button.scss +87 -20
  31. package/src/scss/card.scss +121 -0
  32. package/src/scss/carousel.scss +313 -0
  33. package/src/scss/footer.scss +224 -0
  34. package/src/scss/forms/fieldset.scss +127 -0
  35. package/src/scss/forms/form-instructions.scss +133 -0
  36. package/src/scss/forms/label.scss +115 -0
  37. package/src/scss/forms/text-field.scss +240 -0
  38. package/src/scss/forms/validation.scss +215 -0
  39. package/src/scss/forms.scss +8 -0
  40. package/src/scss/header.scss +27 -6
  41. package/src/scss/main.scss +7 -0
  42. package/src/scss/modal.scss +188 -0
  43. package/src/scss/section.scss +1 -1
  44. package/src/scss/select.scss +210 -0
  45. package/src/scss/tabs.scss +156 -0
@@ -92,7 +92,8 @@
92
92
  visibility $transition-base;
93
93
 
94
94
  .pp-header__nav-item:hover > &,
95
- .pp-header__nav-item:focus-within > & {
95
+ .pp-header__nav-item:focus-within > &,
96
+ [aria-expanded='true'] + & {
96
97
  opacity: 1;
97
98
  visibility: visible;
98
99
  transform: translateY(0);
@@ -176,6 +177,8 @@
176
177
  border-bottom: 1px solid $color-border;
177
178
  box-shadow: $shadow-md;
178
179
 
180
+ // CSS-only: hidden by default, visible when toggle is focused/active
181
+ // JS enhances this with .is-open for outside-click + burger animation
179
182
  opacity: 0;
180
183
  visibility: hidden;
181
184
  transform: translateY(-8px);
@@ -184,19 +187,30 @@
184
187
  transform $transition-base,
185
188
  visibility $transition-base;
186
189
 
187
- &.is-open {
190
+ // CSS-only fallback — drawer opens when toggle button is :focus-within
191
+ .pp-header:focus-within &,
192
+ &.is-open,
193
+ &[aria-hidden='false'] {
188
194
  opacity: 1;
189
195
  visibility: visible;
190
196
  transform: translateY(0);
191
197
  }
192
198
  }
193
199
 
200
+ // Re-hide when focus moves inside the nav itself (not the toggle)
201
+ // JS takes over for a better UX; this is the no-JS baseline
202
+ .pp-header__nav:focus-within {
203
+ opacity: 1;
204
+ visibility: visible;
205
+ transform: translateY(0);
206
+ }
207
+
194
208
  .pp-header__nav-link {
195
209
  font-size: font-size('base');
196
210
  padding: spacing(3) spacing(4);
197
211
  }
198
212
 
199
- // Inline dropdown on mobile (no absolute positioning)
213
+ // Inline dropdown on mobile
200
214
  .pp-header__dropdown {
201
215
  position: static;
202
216
  opacity: 1;
@@ -208,10 +222,17 @@
208
222
  background: transparent;
209
223
  backdrop-filter: none;
210
224
  padding-left: spacing(4);
211
- display: none;
225
+ // CSS-only: always visible on mobile (no JS toggle needed)
226
+ display: block;
227
+
228
+ // JS can hide/show individual dropdowns with .is-open
229
+ &.is-js-controlled {
230
+ display: none;
212
231
 
213
- .pp-header__nav-item.is-open > & {
214
- display: block;
232
+ .pp-header__nav-item.is-open > &,
233
+ [aria-expanded='true'] + & {
234
+ display: block;
235
+ }
215
236
  }
216
237
  }
217
238
  }
@@ -2,8 +2,15 @@
2
2
  @use 'reset';
3
3
  @use 'base';
4
4
  @use 'button';
5
+ @use 'card';
6
+ @use 'carousel';
7
+ @use 'footer';
8
+ @use 'forms';
5
9
  @use 'gradient';
6
10
  @use 'header';
11
+ @use 'modal';
7
12
  @use 'section';
13
+ @use 'select';
8
14
  @use 'table';
15
+ @use 'tabs';
9
16
  @use 'typography';
@@ -0,0 +1,188 @@
1
+ // PeppertinoCSS — Modal
2
+ // CSS-only baseline: uses <dialog> [open] attribute.
3
+ // JS enhances with backdrop-click, Escape, focus trap, animations.
4
+
5
+ @use 'sass:map';
6
+ @use 'base' as *;
7
+
8
+ // ─── Backdrop ────────────────────────────────────────────────────────────────
9
+ // Native <dialog>::backdrop handles the overlay when showModal() is used.
10
+ // Fallback .pp-modal-backdrop div is also supported for non-dialog usage.
11
+
12
+ dialog.pp-modal-backdrop,
13
+ .pp-modal-backdrop {
14
+ display: none;
15
+ position: fixed;
16
+ inset: 0;
17
+ background: rgba(0, 0, 0, 0.4);
18
+ backdrop-filter: blur(8px) saturate(120%);
19
+ -webkit-backdrop-filter: blur(8px) saturate(120%);
20
+ align-items: center;
21
+ justify-content: center;
22
+ z-index: z('modal');
23
+ padding: spacing(6);
24
+ border: none;
25
+ width: 100%;
26
+ max-width: 100%;
27
+ max-height: 100%;
28
+ overflow: visible;
29
+
30
+ // CSS-only open states — no JS needed
31
+ &[open],
32
+ &.is-open,
33
+ &[aria-hidden='false'] {
34
+ display: flex;
35
+ }
36
+ }
37
+
38
+ // Native <dialog> backdrop tint
39
+ dialog.pp-modal-backdrop::backdrop {
40
+ background: rgba(0, 0, 0, 0.4);
41
+ backdrop-filter: blur(8px) saturate(120%);
42
+ -webkit-backdrop-filter: blur(8px) saturate(120%);
43
+ }
44
+
45
+ // ─── Enter animation — only when JS adds .is-animated ────────────────────────
46
+ // Without JS the modal just appears; JS adds the class for smooth entry.
47
+ .pp-modal-backdrop.is-animated {
48
+ animation: pp-backdrop-in $transition-base forwards;
49
+ }
50
+
51
+ @keyframes pp-backdrop-in {
52
+ from { opacity: 0; }
53
+ to { opacity: 1; }
54
+ }
55
+
56
+ // ─── Modal container — glassmorphic ──────────────────────────────────────────
57
+ .pp-modal {
58
+ position: relative;
59
+ width: 100%;
60
+ max-width: 420px;
61
+ background: rgba(255, 255, 255, 0.12);
62
+ backdrop-filter: blur(24px) saturate(200%);
63
+ -webkit-backdrop-filter: blur(24px) saturate(200%);
64
+ border: 1px solid rgba(255, 255, 255, 0.2);
65
+ border-radius: 20px;
66
+ padding: spacing(6);
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: spacing(2);
70
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
71
+
72
+ // JS adds .is-animated for the scale-in effect
73
+ .is-animated & {
74
+ animation: pp-modal-in $transition-base forwards;
75
+ }
76
+ }
77
+
78
+ @keyframes pp-modal-in {
79
+ from { transform: scale(0.95) translateY(8px); opacity: 0; }
80
+ to { transform: scale(1) translateY(0); opacity: 1; }
81
+ }
82
+
83
+ // ─── Gradient accent strip ───────────────────────────────────────────────────
84
+ .pp-modal::before {
85
+ content: '';
86
+ display: block;
87
+ height: 3px;
88
+ width: 60px;
89
+ border-radius: 980px;
90
+ background: linear-gradient(90deg, $gradient-start, $gradient-end);
91
+ margin-bottom: spacing(2);
92
+ }
93
+
94
+ // ─── Title ───────────────────────────────────────────────────────────────────
95
+ .pp-modal__title {
96
+ font-family: $font-sans;
97
+ font-size: font-size('lg');
98
+ font-weight: map.get($font-weights, 'bold');
99
+ color: #fff;
100
+ margin-bottom: spacing(1);
101
+ }
102
+
103
+ // ─── Description ─────────────────────────────────────────────────────────────
104
+ .pp-modal__description {
105
+ font-family: $font-sans;
106
+ font-size: font-size('sm');
107
+ font-weight: map.get($font-weights, 'regular');
108
+ color: rgba(#fff, 0.7);
109
+ margin-bottom: spacing(2);
110
+ }
111
+
112
+ // ─── Actions list ────────────────────────────────────────────────────────────
113
+ .pp-modal__actions {
114
+ display: flex;
115
+ flex-direction: column;
116
+ gap: spacing(2);
117
+ list-style: none;
118
+ }
119
+
120
+ .pp-modal__action {
121
+ display: block;
122
+ width: 100%;
123
+ padding: spacing(3) spacing(4);
124
+ text-align: center;
125
+ font-family: $font-sans;
126
+ font-size: font-size('base');
127
+ font-weight: map.get($font-weights, 'regular');
128
+ color: rgba(#fff, 0.9);
129
+ background: rgba(#fff, 0.08);
130
+ border: 1.5px dashed rgba(#fff, 0.25);
131
+ border-radius: 980px;
132
+ cursor: pointer;
133
+ transition:
134
+ background $transition-fast,
135
+ border-color $transition-fast,
136
+ color $transition-fast;
137
+
138
+ &:hover {
139
+ background: rgba(#fff, 0.18);
140
+ border-color: rgba(#fff, 0.5);
141
+ color: #fff;
142
+ }
143
+
144
+ &:active { background: rgba(#fff, 0.25); }
145
+
146
+ &.pp-modal__action--destructive {
147
+ color: rgba(#ffb3b3, 0.9);
148
+ border-color: rgba(#ffb3b3, 0.3);
149
+
150
+ &:hover {
151
+ background: rgba($color-primary, 0.25);
152
+ border-color: rgba(#ffb3b3, 0.65);
153
+ color: #ffb3b3;
154
+ }
155
+ }
156
+
157
+ &.pp-modal__action--cancel {
158
+ color: rgba(#fff, 0.4);
159
+ border-color: rgba(#fff, 0.15);
160
+ border-style: solid;
161
+
162
+ &:hover {
163
+ color: rgba(#fff, 0.75);
164
+ border-color: rgba(#fff, 0.35);
165
+ }
166
+ }
167
+ }
168
+
169
+ // ─── Close button ─────────────────────────────────────────────────────────────
170
+ .pp-modal__close {
171
+ position: absolute;
172
+ top: spacing(4);
173
+ right: spacing(4);
174
+ width: 28px;
175
+ height: 28px;
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: center;
179
+ background: rgba(#fff, 0.1);
180
+ border: 1px solid rgba(#fff, 0.2);
181
+ border-radius: 50%;
182
+ color: rgba(#fff, 0.7);
183
+ font-size: font-size('sm');
184
+ cursor: pointer;
185
+ transition: background $transition-fast, color $transition-fast;
186
+
187
+ &:hover { background: rgba(#fff, 0.2); color: #fff; }
188
+ }
@@ -39,7 +39,7 @@ html{
39
39
  flex-direction: column;
40
40
  align-items: center;
41
41
  justify-content: center;
42
- overflow: hidden;
42
+ overflow: visible;
43
43
  box-sizing: border-box;
44
44
  padding: spacing(16) spacing(8);
45
45
 
@@ -0,0 +1,210 @@
1
+ // PeppertinoCSS — Select / Dropdown
2
+ // 1. Native <select> restyled
3
+ // 2. .pp-select custom dropdown (CSS-only baseline, JS enhances)
4
+
5
+ @use 'sass:map';
6
+ @use 'base' as *;
7
+
8
+ // ─── 1. Native <select> ──────────────────────────────────────────────────────
9
+ select {
10
+ appearance: none;
11
+ -webkit-appearance: none;
12
+ display: block;
13
+ width: 100%;
14
+ padding: 10px spacing(4) 10px spacing(4);
15
+ font-family: $font-sans;
16
+ font-size: font-size('base');
17
+ font-weight: map.get($font-weights, 'regular');
18
+ color: $color-on-surface;
19
+ background-color: #fff;
20
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
21
+ background-repeat: no-repeat;
22
+ background-position: right spacing(4) center;
23
+ border: 1px solid $color-border;
24
+ border-radius: map.get($radius, 'md');
25
+ cursor: pointer;
26
+ transition: border-color $transition-fast, box-shadow $transition-fast;
27
+
28
+ &:hover {
29
+ border-color: $color-neutral-400;
30
+ }
31
+
32
+ &:focus {
33
+ outline: none;
34
+ border-color: $color-primary;
35
+ box-shadow: 0 0 0 3px rgba($color-primary, 0.15);
36
+ }
37
+
38
+ &:disabled {
39
+ opacity: 0.5;
40
+ cursor: not-allowed;
41
+ background-color: $color-neutral-100;
42
+ }
43
+ }
44
+
45
+ // ─── 2. Custom .pp-select ────────────────────────────────────────────────────
46
+ // CSS-only: uses <details>/<summary> for open/close with no JS.
47
+ // JS enhances with outside-click close and keyboard nav.
48
+
49
+ .pp-select {
50
+ position: relative;
51
+ display: inline-block;
52
+ width: 100%;
53
+ font-family: $font-sans;
54
+ user-select: none;
55
+ }
56
+
57
+ // The trigger — styled like a select input
58
+ .pp-select__trigger {
59
+ display: flex;
60
+ align-items: center;
61
+ justify-content: space-between;
62
+ gap: spacing(3);
63
+ padding: 10px spacing(4);
64
+ font-size: font-size('base');
65
+ font-weight: map.get($font-weights, 'regular');
66
+ color: $color-on-surface;
67
+ background: #fff;
68
+ border: 1px solid $color-border;
69
+ border-radius: map.get($radius, 'md');
70
+ cursor: pointer;
71
+ transition: border-color $transition-fast, box-shadow $transition-fast;
72
+ width: 100%;
73
+ text-align: left;
74
+
75
+ &:hover {
76
+ border-color: $color-neutral-400;
77
+ }
78
+
79
+ &:focus {
80
+ outline: none;
81
+ border-color: $color-primary;
82
+ box-shadow: 0 0 0 3px rgba($color-primary, 0.15);
83
+ }
84
+ }
85
+
86
+ // Chevron icon
87
+ .pp-select__chevron {
88
+ flex-shrink: 0;
89
+ width: 12px;
90
+ height: 12px;
91
+ transition: transform $transition-base;
92
+
93
+ &::after {
94
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
95
+ display: block;
96
+ line-height: 0;
97
+ }
98
+ }
99
+
100
+ // Dropdown panel
101
+ .pp-select__panel {
102
+ position: absolute;
103
+ top: calc(100% + spacing(1));
104
+ left: 0;
105
+ right: 0;
106
+ background: #fff;
107
+ border: 1px solid $color-border;
108
+ border-radius: map.get($radius, 'lg');
109
+ box-shadow: $shadow-lg;
110
+ padding: spacing(1);
111
+ list-style: none;
112
+ z-index: z('overlay');
113
+
114
+ // CSS-only: hidden by default
115
+ display: none;
116
+ }
117
+
118
+ // Option item
119
+ .pp-select__option {
120
+ display: block;
121
+ width: 100%;
122
+ padding: spacing(2) spacing(3);
123
+ font-size: font-size('sm');
124
+ font-weight: map.get($font-weights, 'regular');
125
+ color: $color-neutral-700;
126
+ background: transparent;
127
+ border: none;
128
+ border-radius: map.get($radius, 'md');
129
+ cursor: pointer;
130
+ text-align: left;
131
+ transition: background $transition-fast, color $transition-fast;
132
+
133
+ &:hover,
134
+ &:focus {
135
+ background: $color-neutral-100;
136
+ color: $color-on-surface;
137
+ outline: none;
138
+ }
139
+
140
+ &.is-selected {
141
+ color: $color-primary;
142
+ font-weight: map.get($font-weights, 'medium');
143
+
144
+ &::after {
145
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23e90111' stroke-width='1.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
146
+ float: right;
147
+ line-height: 1.4;
148
+ }
149
+ }
150
+ }
151
+
152
+ // Divider between option groups
153
+ .pp-select__divider {
154
+ height: 1px;
155
+ background: $color-border;
156
+ margin: spacing(1) 0;
157
+ }
158
+
159
+ // Group label
160
+ .pp-select__group-label {
161
+ display: block;
162
+ padding: spacing(2) spacing(3) spacing(1);
163
+ font-size: font-size('xs');
164
+ font-weight: map.get($font-weights, 'semibold');
165
+ letter-spacing: 0.06em;
166
+ text-transform: uppercase;
167
+ color: $color-neutral-400;
168
+ }
169
+
170
+ // ─── Open state ──────────────────────────────────────────────────────────────
171
+ // CSS-only via :focus-within; JS sets .is-open and aria-expanded='true'
172
+ .pp-select:focus-within .pp-select__panel,
173
+ .pp-select.is-open .pp-select__panel,
174
+ .pp-select:has(.pp-select__trigger[aria-expanded='true']) .pp-select__panel {
175
+ display: block;
176
+ }
177
+
178
+ .pp-select:focus-within .pp-select__chevron,
179
+ .pp-select.is-open .pp-select__chevron,
180
+ .pp-select:has(.pp-select__trigger[aria-expanded='true']) .pp-select__chevron {
181
+ transform: rotate(180deg);
182
+ }
183
+
184
+ .pp-select:focus-within .pp-select__trigger,
185
+ .pp-select.is-open .pp-select__trigger,
186
+ .pp-select__trigger[aria-expanded='true'] {
187
+ border-color: $color-primary;
188
+ box-shadow: 0 0 0 3px rgba($color-primary, 0.15);
189
+ }
190
+
191
+ // Disabled state
192
+ .pp-select__trigger[aria-disabled='true'],
193
+ .pp-select__option[aria-disabled='true'] {
194
+ opacity: 0.45;
195
+ cursor: not-allowed;
196
+ pointer-events: none;
197
+ }
198
+
199
+ // ─── Variants ────────────────────────────────────────────────────────────────
200
+ .pp-select--sm .pp-select__trigger,
201
+ .pp-select--sm .pp-select__option {
202
+ padding: spacing(1) spacing(3);
203
+ font-size: font-size('sm');
204
+ }
205
+
206
+ .pp-select--lg .pp-select__trigger,
207
+ .pp-select--lg .pp-select__option {
208
+ padding: spacing(3) spacing(5);
209
+ font-size: font-size('lg');
210
+ }
@@ -0,0 +1,156 @@
1
+ // PeppertinoCSS — Tabs (pill-style, icon + label)
2
+
3
+ @use 'sass:map';
4
+ @use 'base' as *;
5
+
6
+ // ─── Track ────────────────────────────────────────────────────────────────────
7
+ .pp-tabs {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ gap: spacing(1);
11
+ background: rgba($color-neutral-800, 0.8);
12
+ border-radius: 980px;
13
+ padding: spacing(1);
14
+ }
15
+
16
+ // ─── Tab item base ────────────────────────────────────────────────────────────
17
+ .pp-tabs__item {
18
+ display: flex;
19
+ flex-direction: column;
20
+ align-items: center;
21
+ justify-content: center;
22
+ gap: spacing(1);
23
+ padding: spacing(2) spacing(4);
24
+ border-radius: 980px;
25
+ cursor: pointer;
26
+ border: 1.5px solid transparent;
27
+ background: transparent;
28
+ color: rgba(#fff, 0.6);
29
+ font-family: $font-sans;
30
+ font-size: font-size('sm');
31
+ font-weight: map.get($font-weights, 'medium');
32
+ transition:
33
+ background $transition-base,
34
+ color $transition-base,
35
+ border-color $transition-base,
36
+ box-shadow $transition-base;
37
+ min-width: 72px;
38
+ white-space: nowrap;
39
+
40
+ svg {
41
+ width: 22px;
42
+ height: 22px;
43
+ stroke: currentColor;
44
+ stroke-width: 1.75;
45
+ fill: none;
46
+ transition: stroke $transition-base;
47
+ }
48
+
49
+ &:hover { color: rgba(#fff, 0.85); }
50
+
51
+ // Default active — filled primary
52
+ &[aria-selected='true'],
53
+ &.is-active {
54
+ background: $color-primary;
55
+ color: #fff;
56
+ border-color: transparent;
57
+ box-shadow: 0 4px 16px rgba($color-primary, 0.45);
58
+ }
59
+ }
60
+
61
+ // ─── Variant: outline active pill ────────────────────────────────────────────
62
+ .pp-tabs--outline {
63
+ background: rgba($color-neutral-800, 0.8);
64
+
65
+ .pp-tabs__item {
66
+ &[aria-selected='true'],
67
+ &.is-active {
68
+ background: transparent;
69
+ border-color: $color-primary;
70
+ color: $color-primary;
71
+ box-shadow: 0 0 0 3px rgba($color-primary, 0.15);
72
+ }
73
+ }
74
+ }
75
+
76
+ // ─── Variant: gradient active pill ───────────────────────────────────────────
77
+ .pp-tabs--gradient {
78
+ background: rgba($color-neutral-800, 0.6);
79
+ backdrop-filter: blur(12px);
80
+ -webkit-backdrop-filter: blur(12px);
81
+
82
+ .pp-tabs__item {
83
+ &[aria-selected='true'],
84
+ &.is-active {
85
+ background: linear-gradient(135deg, $gradient-start, $gradient-end);
86
+ border-color: transparent;
87
+ color: #fff;
88
+ box-shadow: 0 4px 16px rgba($gradient-end, 0.4);
89
+ }
90
+ }
91
+ }
92
+
93
+ // ─── Variant: gradient outline active pill ───────────────────────────────────
94
+ .pp-tabs--gradient-outline {
95
+ background: rgba($color-neutral-800, 0.6);
96
+ backdrop-filter: blur(12px);
97
+ -webkit-backdrop-filter: blur(12px);
98
+
99
+ .pp-tabs__item {
100
+ &[aria-selected='true'],
101
+ &.is-active {
102
+ background: transparent;
103
+ border-color: $gradient-end;
104
+ color: $gradient-start;
105
+ // Simulate gradient border via box-shadow layering
106
+ box-shadow:
107
+ 0 0 0 1.5px $gradient-end,
108
+ inset 0 0 0 1.5px $gradient-start,
109
+ 0 4px 16px rgba($gradient-end, 0.25);
110
+ }
111
+ }
112
+ }
113
+
114
+ // ─── Variant: light track ────────────────────────────────────────────────────
115
+ .pp-tabs--light {
116
+ background: $color-neutral-100;
117
+
118
+ .pp-tabs__item {
119
+ color: $color-neutral-500;
120
+
121
+ &:hover { color: $color-neutral-700; }
122
+
123
+ &[aria-selected='true'],
124
+ &.is-active {
125
+ background: #fff;
126
+ border-color: transparent;
127
+ color: $color-primary;
128
+ box-shadow: $shadow-md;
129
+ }
130
+ }
131
+
132
+ &.pp-tabs--outline .pp-tabs__item {
133
+ &[aria-selected='true'],
134
+ &.is-active {
135
+ background: transparent;
136
+ border-color: $color-primary;
137
+ color: $color-primary;
138
+ box-shadow: 0 0 0 3px rgba($color-primary, 0.12);
139
+ }
140
+ }
141
+ }
142
+
143
+ // ─── Sizes ────────────────────────────────────────────────────────────────────
144
+ .pp-tabs--sm .pp-tabs__item {
145
+ padding: spacing(1) spacing(3);
146
+ font-size: font-size('xs');
147
+ min-width: 56px;
148
+ svg { width: 16px; height: 16px; }
149
+ }
150
+
151
+ .pp-tabs--lg .pp-tabs__item {
152
+ padding: spacing(3) spacing(6);
153
+ font-size: font-size('base');
154
+ min-width: 96px;
155
+ svg { width: 26px; height: 26px; }
156
+ }