@auriel/peppertino 0.2.0 → 0.4.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 (46) hide show
  1. package/CHANGELOG.txt +122 -56
  2. package/README.md +333 -38
  3. package/dist/accordion.js +51 -0
  4. package/dist/accordion.js.map +7 -0
  5. package/dist/carousel.js +152 -0
  6. package/dist/carousel.js.map +7 -0
  7. package/dist/header.js +30 -3
  8. package/dist/header.js.map +2 -2
  9. package/dist/main.css +4660 -710
  10. package/dist/main.css.map +1 -1
  11. package/dist/modal.js +61 -2
  12. package/dist/modal.js.map +2 -2
  13. package/dist/peppertino.js +477 -17
  14. package/dist/peppertino.js.map +4 -4
  15. package/dist/select.js +25 -8
  16. package/dist/select.js.map +3 -3
  17. package/dist/tabs.js +31 -4
  18. package/dist/tabs.js.map +2 -2
  19. package/dist/validation.js +130 -0
  20. package/dist/validation.js.map +7 -0
  21. package/index.html +1493 -42
  22. package/package.json +1 -1
  23. package/src/js/accordion.js +61 -0
  24. package/src/js/carousel.js +148 -0
  25. package/src/js/peppertino.js +4 -0
  26. package/src/js/validation.js +132 -0
  27. package/src/scss/accordion.scss +156 -0
  28. package/src/scss/alert.scss +204 -0
  29. package/src/scss/base.scss +130 -16
  30. package/src/scss/card.scss +4 -4
  31. package/src/scss/carousel.scss +313 -0
  32. package/src/scss/dark-mode.scss +474 -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 +8 -8
  41. package/src/scss/main.scss +7 -0
  42. package/src/scss/section.scss +1 -1
  43. package/src/scss/select.scss +5 -5
  44. package/src/scss/table.scss +5 -5
  45. package/src/scss/utilities.scss +243 -0
  46. package/.claude/settings.local.json +0 -8
@@ -0,0 +1,215 @@
1
+ // PeppertinoCSS — Forms / Validation
2
+
3
+ @use 'sass:map';
4
+ @use '../base' as *;
5
+
6
+ // ─── Native pseudo-class states ───────────────────────────────────────────────
7
+ .pp-field--validate {
8
+ .pp-field__input:valid,
9
+ .pp-field__textarea:valid {
10
+ border-color: $color-success;
11
+ &:focus { box-shadow: 0 0 0 3px rgba($color-success, 0.12); }
12
+ }
13
+
14
+ .pp-field__input:invalid,
15
+ .pp-field__textarea:invalid {
16
+ border-color: $color-error;
17
+ &:focus { box-shadow: 0 0 0 3px rgba($color-error, 0.12); }
18
+ }
19
+
20
+ .pp-field__input:user-valid,
21
+ .pp-field__textarea:user-valid { border-color: $color-success; }
22
+
23
+ .pp-field__input:user-invalid,
24
+ .pp-field__textarea:user-invalid { border-color: $color-error; }
25
+ }
26
+
27
+ // ─── aria-invalid attribute states ───────────────────────────────────────────
28
+ .pp-field__input[aria-invalid='true'],
29
+ .pp-field__textarea[aria-invalid='true'] {
30
+ border-color: $color-error;
31
+ &:focus { border-color: $color-error; box-shadow: 0 0 0 3px rgba($color-error, 0.12); }
32
+ }
33
+
34
+ .pp-field__input[aria-invalid='false'],
35
+ .pp-field__textarea[aria-invalid='false'] {
36
+ border-color: $color-success;
37
+ &:focus { border-color: $color-success; box-shadow: 0 0 0 3px rgba($color-success, 0.12); }
38
+ }
39
+
40
+ // ─── Validating (async in progress) ──────────────────────────────────────────
41
+ .pp-field--validating {
42
+ .pp-field__input,
43
+ .pp-field__textarea {
44
+ border-color: $color-neutral-300;
45
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
46
+ background-repeat: no-repeat;
47
+ background-position: right spacing(3) center;
48
+ background-size: 16px;
49
+ padding-right: spacing(10);
50
+ animation: pp-field-spin 0.8s linear infinite;
51
+ }
52
+ }
53
+
54
+ @keyframes pp-field-spin {
55
+ from { filter: none; }
56
+ to { filter: hue-rotate(360deg); }
57
+ }
58
+
59
+ // ─── Validation summary ───────────────────────────────────────────────────────
60
+ .pp-validation-summary {
61
+ display: flex;
62
+ flex-direction: column;
63
+ gap: spacing(3);
64
+ padding: spacing(4) spacing(5);
65
+ background: rgba($color-error, 0.05);
66
+ border: 1px solid rgba($color-error, 0.3);
67
+ border-left: 3px solid $color-error;
68
+ border-radius: 0 map.get($radius, 'md') map.get($radius, 'md') 0;
69
+ width: 100%;
70
+
71
+ &:not(.is-visible):not([aria-hidden='false']) { display: none; }
72
+ }
73
+
74
+ .pp-validation-summary__title {
75
+ display: flex;
76
+ align-items: center;
77
+ gap: spacing(2);
78
+ font-family: $font-sans;
79
+ font-size: font-size('sm');
80
+ font-weight: map.get($font-weights, 'semibold');
81
+ color: $color-primary-dark;
82
+ line-height: 1.4;
83
+
84
+ [data-lucide], svg {
85
+ flex-shrink: 0;
86
+ width: 16px;
87
+ height: 16px;
88
+ stroke: $color-error;
89
+ fill: none;
90
+ stroke-width: 2;
91
+ stroke-linecap: round;
92
+ stroke-linejoin: round;
93
+ }
94
+ }
95
+
96
+ .pp-validation-summary__list {
97
+ display: flex;
98
+ flex-direction: column;
99
+ gap: spacing(1);
100
+ list-style: none;
101
+ padding: 0;
102
+ margin: 0;
103
+ }
104
+
105
+ .pp-validation-summary__item {
106
+ display: flex;
107
+ align-items: baseline;
108
+ gap: spacing(2);
109
+ font-family: $font-sans;
110
+ font-size: font-size('sm');
111
+ color: $color-primary-dark;
112
+ line-height: 1.6;
113
+
114
+ &::before {
115
+ content: '';
116
+ flex-shrink: 0;
117
+ width: 5px;
118
+ height: 5px;
119
+ margin-bottom: 1px;
120
+ border-radius: 50%;
121
+ background: $color-error;
122
+ align-self: center;
123
+ }
124
+
125
+ a {
126
+ color: $color-primary-dark;
127
+ text-decoration: underline;
128
+ text-underline-offset: 2px;
129
+ font-weight: map.get($font-weights, 'medium');
130
+ transition: color $transition-fast;
131
+
132
+ &:hover { color: $color-primary; }
133
+ &:focus-visible {
134
+ outline: 2px solid $color-primary;
135
+ outline-offset: 2px;
136
+ border-radius: 2px;
137
+ }
138
+ }
139
+ }
140
+
141
+ // ─── Confirmation checkbox ────────────────────────────────────────────────────
142
+ .pp-confirm {
143
+ display: flex;
144
+ align-items: flex-start;
145
+ gap: spacing(3);
146
+ padding: spacing(4);
147
+ background: var(--pp-neutral-50);
148
+ border: 1px solid $color-border;
149
+ border-radius: map.get($radius, 'md');
150
+ cursor: pointer;
151
+ transition: border-color $transition-fast, background $transition-fast;
152
+
153
+ &:has(input:checked) {
154
+ border-color: $color-primary;
155
+ background: rgba($color-primary, 0.04);
156
+ }
157
+
158
+ &:has(input:focus-visible) {
159
+ outline: 2px solid $color-primary;
160
+ outline-offset: 2px;
161
+ }
162
+ }
163
+
164
+ .pp-confirm__input {
165
+ flex-shrink: 0;
166
+ width: 18px;
167
+ height: 18px;
168
+ margin-top: 1px;
169
+ accent-color: $color-primary;
170
+ cursor: pointer;
171
+
172
+ &:focus-visible { outline: none; }
173
+ }
174
+
175
+ .pp-confirm__label {
176
+ font-family: $font-sans;
177
+ font-size: font-size('sm');
178
+ font-weight: map.get($font-weights, 'regular');
179
+ color: $color-neutral-700;
180
+ line-height: 1.6;
181
+ cursor: pointer;
182
+ user-select: none;
183
+ }
184
+
185
+ .pp-confirm--destructive {
186
+ border-color: rgba($color-error, 0.3);
187
+ background: rgba($color-error, 0.03);
188
+
189
+ &:has(input:checked) {
190
+ border-color: $color-error;
191
+ background: rgba($color-error, 0.06);
192
+ }
193
+
194
+ .pp-confirm__label { color: $color-primary-dark; }
195
+ }
196
+
197
+ // Gated submit — disabled until confirmation checkbox is checked
198
+ form:has(.pp-confirm__input:not(:checked)) [type='submit'].pp-submit--gated {
199
+ opacity: 0.4;
200
+ pointer-events: none;
201
+ cursor: not-allowed;
202
+ }
203
+
204
+ // ─── Forced-colors ───────────────────────────────────────────────────────────
205
+ @media (forced-colors: active) {
206
+ .pp-validation-summary {
207
+ border-color: Mark;
208
+ forced-color-adjust: auto;
209
+ }
210
+
211
+ .pp-confirm {
212
+ border-color: ButtonText;
213
+ forced-color-adjust: auto;
214
+ }
215
+ }
@@ -0,0 +1,8 @@
1
+ // PeppertinoCSS — Forms
2
+ // Aggregates all form component partials in alphabetical order.
3
+
4
+ @use 'forms/fieldset';
5
+ @use 'forms/form-instructions';
6
+ @use 'forms/label';
7
+ @use 'forms/text-field';
8
+ @use 'forms/validation';
@@ -14,10 +14,10 @@
14
14
  height: 56px;
15
15
 
16
16
  // Glassmorphism
17
- background: rgb(255 255 255 / 0.65);
17
+ background: var(--pp-bg-header);
18
18
  backdrop-filter: blur(16px) saturate(180%);
19
19
  -webkit-backdrop-filter: blur(16px) saturate(180%);
20
- border-bottom: 1px solid rgb(255 255 255 / 0.3);
20
+ border-bottom: 1px solid var(--pp-glass-border);
21
21
  }
22
22
 
23
23
  // ─── Brand / title (right side) ──────────────────────────────────────────────
@@ -59,7 +59,7 @@
59
59
 
60
60
  &:hover {
61
61
  color: $color-on-surface;
62
- background: rgb(0 0 0 / 0.05);
62
+ background: var(--pp-glass-hover);
63
63
  }
64
64
 
65
65
  &[aria-current='page'],
@@ -74,7 +74,7 @@
74
74
  top: calc(100% + spacing(2));
75
75
  right: 0;
76
76
  min-width: 180px;
77
- background: rgb(255 255 255 / 0.85);
77
+ background: var(--pp-bg-dropdown);
78
78
  backdrop-filter: blur(16px) saturate(180%);
79
79
  -webkit-backdrop-filter: blur(16px) saturate(180%);
80
80
  border: 1px solid $color-border;
@@ -110,7 +110,7 @@
110
110
 
111
111
  &:hover {
112
112
  color: $color-on-surface;
113
- background: rgb(0 0 0 / 0.05);
113
+ background: var(--pp-glass-hover);
114
114
  }
115
115
  }
116
116
 
@@ -130,7 +130,7 @@
130
130
  transition: background $transition-fast;
131
131
 
132
132
  &:hover {
133
- background: rgb(0 0 0 / 0.05);
133
+ background: var(--pp-glass-hover);
134
134
  }
135
135
 
136
136
  span {
@@ -171,10 +171,10 @@
171
171
  align-items: stretch;
172
172
  gap: 0;
173
173
  padding: spacing(2);
174
- background: rgb(255 255 255 / 0.9);
174
+ background: var(--pp-bg-header-mobile);
175
175
  backdrop-filter: blur(16px) saturate(180%);
176
176
  -webkit-backdrop-filter: blur(16px) saturate(180%);
177
- border-bottom: 1px solid $color-border;
177
+ border-bottom: 1px solid var(--pp-border);
178
178
  box-shadow: $shadow-md;
179
179
 
180
180
  // CSS-only: hidden by default, visible when toggle is focused/active
@@ -1,8 +1,13 @@
1
1
  // PeppertinoCSS — Entry point
2
2
  @use 'reset';
3
3
  @use 'base';
4
+ @use 'accordion';
5
+ @use 'alert';
4
6
  @use 'button';
5
7
  @use 'card';
8
+ @use 'carousel';
9
+ @use 'footer';
10
+ @use 'forms';
6
11
  @use 'gradient';
7
12
  @use 'header';
8
13
  @use 'modal';
@@ -11,3 +16,5 @@
11
16
  @use 'table';
12
17
  @use 'tabs';
13
18
  @use 'typography';
19
+ @use 'utilities';
20
+ @use 'dark-mode';
@@ -70,7 +70,7 @@ html{
70
70
  }
71
71
 
72
72
  .pp-section--muted {
73
- background: $color-neutral-100;
73
+ background: var(--pp-section-muted-bg);
74
74
  }
75
75
 
76
76
  .pp-section--gradient {
@@ -16,7 +16,7 @@ select {
16
16
  font-size: font-size('base');
17
17
  font-weight: map.get($font-weights, 'regular');
18
18
  color: $color-on-surface;
19
- background-color: #fff;
19
+ background-color: var(--pp-bg-select);
20
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
21
  background-repeat: no-repeat;
22
22
  background-position: right spacing(4) center;
@@ -38,7 +38,7 @@ select {
38
38
  &:disabled {
39
39
  opacity: 0.5;
40
40
  cursor: not-allowed;
41
- background-color: $color-neutral-100;
41
+ background-color: var(--pp-neutral-100);
42
42
  }
43
43
  }
44
44
 
@@ -64,7 +64,7 @@ select {
64
64
  font-size: font-size('base');
65
65
  font-weight: map.get($font-weights, 'regular');
66
66
  color: $color-on-surface;
67
- background: #fff;
67
+ background: var(--pp-bg-select);
68
68
  border: 1px solid $color-border;
69
69
  border-radius: map.get($radius, 'md');
70
70
  cursor: pointer;
@@ -103,7 +103,7 @@ select {
103
103
  top: calc(100% + spacing(1));
104
104
  left: 0;
105
105
  right: 0;
106
- background: #fff;
106
+ background: var(--pp-bg-select-panel);
107
107
  border: 1px solid $color-border;
108
108
  border-radius: map.get($radius, 'lg');
109
109
  box-shadow: $shadow-lg;
@@ -132,7 +132,7 @@ select {
132
132
 
133
133
  &:hover,
134
134
  &:focus {
135
- background: $color-neutral-100;
135
+ background: var(--pp-neutral-100);
136
136
  color: $color-on-surface;
137
137
  outline: none;
138
138
  }
@@ -8,8 +8,8 @@
8
8
  border-collapse: collapse;
9
9
  font-size: font-size('base');
10
10
  font-family: $font-sans;
11
- background: #fff;
12
- color: #000;
11
+ background: var(--pp-bg-card);
12
+ color: var(--pp-on-surface);
13
13
 
14
14
  th,
15
15
  td {
@@ -23,7 +23,7 @@
23
23
  th:first-child {
24
24
  font-weight: map.get($font-weights, 'bold');
25
25
  font-size: font-size('2xl');
26
- color: #000;
26
+ color: var(--pp-on-surface);
27
27
  white-space: nowrap;
28
28
  padding-left: 0;
29
29
  width: 1%;
@@ -31,7 +31,7 @@
31
31
 
32
32
  // Header row — no background, just a bottom divider
33
33
  thead tr {
34
- border-bottom: 1px solid $color-neutral-200;
34
+ border-bottom: 1px solid var(--pp-border);
35
35
  }
36
36
 
37
37
  thead th {
@@ -42,7 +42,7 @@
42
42
 
43
43
  // Body rows separated by a light divider
44
44
  tbody tr {
45
- border-bottom: 1px solid $color-neutral-200;
45
+ border-bottom: 1px solid var(--pp-border);
46
46
 
47
47
  &:last-child {
48
48
  border-bottom: none;
@@ -0,0 +1,243 @@
1
+ // PeppertinoCSS — Utilities
2
+ // Margin, padding, display, visibility, flex, grid helpers
3
+
4
+ @use 'sass:map';
5
+ @use 'sass:string';
6
+ @use 'base' as *;
7
+
8
+ // ─── Display ──────────────────────────────────────────────────────────────────
9
+ .d-block { display: block; }
10
+ .d-inline { display: inline; }
11
+ .d-inline-block { display: inline-block; }
12
+ .d-flex { display: flex; }
13
+ .d-inline-flex { display: inline-flex; }
14
+ .d-grid { display: grid; }
15
+ .d-inline-grid { display: inline-grid; }
16
+ .d-none { display: none; }
17
+ .d-contents { display: contents; }
18
+
19
+ // ─── Visibility ───────────────────────────────────────────────────────────────
20
+ .visible { visibility: visible; }
21
+ .invisible { visibility: hidden; }
22
+ .sr-only {
23
+ position: absolute;
24
+ width: 1px;
25
+ height: 1px;
26
+ padding: 0;
27
+ margin: -1px;
28
+ overflow: hidden;
29
+ clip: rect(0, 0, 0, 0);
30
+ white-space: nowrap;
31
+ border-width: 0;
32
+ }
33
+ .not-sr-only {
34
+ position: static;
35
+ width: auto;
36
+ height: auto;
37
+ padding: 0;
38
+ margin: 0;
39
+ overflow: visible;
40
+ clip: auto;
41
+ white-space: normal;
42
+ }
43
+
44
+ // ─── Opacity ──────────────────────────────────────────────────────────────────
45
+ .opacity-0 { opacity: 0; }
46
+ .opacity-25 { opacity: 0.25; }
47
+ .opacity-50 { opacity: 0.5; }
48
+ .opacity-75 { opacity: 0.75; }
49
+ .opacity-100 { opacity: 1; }
50
+
51
+ // ─── Spacing helpers — generate .m-*, .mt-*, .mx-*, .p-*, etc. ───────────────
52
+ // Keys: 0 1 2 3 4 5 6 8 10 12 16 20 24 32 + auto
53
+ // Sides: (none)=all, t=top, b=bottom, l=left, r=right, x=horizontal, y=vertical
54
+
55
+ $_sides: (
56
+ '': '',
57
+ 't': '-top',
58
+ 'b': '-bottom',
59
+ 'l': '-left',
60
+ 'r': '-right',
61
+ );
62
+
63
+ @each $abbr, $prop in $_sides {
64
+ @each $key, $value in $spacing {
65
+ .m#{$abbr}-#{$key} { margin#{$prop}: $value; }
66
+ .p#{$abbr}-#{$key} { padding#{$prop}: $value; }
67
+ }
68
+ .m#{$abbr}-auto { margin#{$prop}: auto; }
69
+ }
70
+
71
+ // x / y axes
72
+ @each $key, $value in $spacing {
73
+ .mx-#{$key} { margin-left: $value; margin-right: $value; }
74
+ .my-#{$key} { margin-top: $value; margin-bottom: $value; }
75
+ .px-#{$key} { padding-left: $value; padding-right: $value; }
76
+ .py-#{$key} { padding-top: $value; padding-bottom: $value; }
77
+ }
78
+ .mx-auto { margin-left: auto; margin-right: auto; }
79
+ .my-auto { margin-top: auto; margin-bottom: auto; }
80
+
81
+ // ─── Gap ──────────────────────────────────────────────────────────────────────
82
+ @each $key, $value in $spacing {
83
+ .gap-#{$key} { gap: $value; }
84
+ .gap-x-#{$key} { column-gap: $value; }
85
+ .gap-y-#{$key} { row-gap: $value; }
86
+ }
87
+
88
+ // ─── Flex helpers ─────────────────────────────────────────────────────────────
89
+ .flex-row { flex-direction: row; }
90
+ .flex-row-reverse { flex-direction: row-reverse; }
91
+ .flex-col { flex-direction: column; }
92
+ .flex-col-reverse { flex-direction: column-reverse; }
93
+
94
+ .flex-wrap { flex-wrap: wrap; }
95
+ .flex-nowrap { flex-wrap: nowrap; }
96
+ .flex-wrap-reverse { flex-wrap: wrap-reverse; }
97
+
98
+ .flex-1 { flex: 1 1 0%; }
99
+ .flex-auto { flex: 1 1 auto; }
100
+ .flex-none { flex: none; }
101
+ .flex-shrink-0 { flex-shrink: 0; }
102
+ .flex-grow { flex-grow: 1; }
103
+ .flex-grow-0 { flex-grow: 0; }
104
+
105
+ // Justify content
106
+ .justify-start { justify-content: flex-start; }
107
+ .justify-end { justify-content: flex-end; }
108
+ .justify-center { justify-content: center; }
109
+ .justify-between { justify-content: space-between; }
110
+ .justify-around { justify-content: space-around; }
111
+ .justify-evenly { justify-content: space-evenly; }
112
+
113
+ // Align items
114
+ .items-start { align-items: flex-start; }
115
+ .items-end { align-items: flex-end; }
116
+ .items-center { align-items: center; }
117
+ .items-baseline { align-items: baseline; }
118
+ .items-stretch { align-items: stretch; }
119
+
120
+ // Align self
121
+ .self-auto { align-self: auto; }
122
+ .self-start { align-self: flex-start; }
123
+ .self-end { align-self: flex-end; }
124
+ .self-center { align-self: center; }
125
+ .self-stretch { align-self: stretch; }
126
+
127
+ // ─── Grid helpers ─────────────────────────────────────────────────────────────
128
+ .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
129
+ .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
130
+ .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
131
+ .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
132
+ .grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
133
+ .grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
134
+ .grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
135
+
136
+ .grid-rows-1 { grid-template-rows: repeat(1, minmax(0, 1fr)); }
137
+ .grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
138
+ .grid-rows-3 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
139
+ .grid-rows-4 { grid-template-rows: repeat(4, minmax(0, 1fr)); }
140
+
141
+ // Col span
142
+ .col-span-1 { grid-column: span 1 / span 1; }
143
+ .col-span-2 { grid-column: span 2 / span 2; }
144
+ .col-span-3 { grid-column: span 3 / span 3; }
145
+ .col-span-4 { grid-column: span 4 / span 4; }
146
+ .col-span-6 { grid-column: span 6 / span 6; }
147
+ .col-span-full { grid-column: 1 / -1; }
148
+
149
+ // Row span
150
+ .row-span-1 { grid-row: span 1 / span 1; }
151
+ .row-span-2 { grid-row: span 2 / span 2; }
152
+ .row-span-3 { grid-row: span 3 / span 3; }
153
+ .row-span-full { grid-row: 1 / -1; }
154
+
155
+ // ─── Width ────────────────────────────────────────────────────────────────────
156
+ .w-full { width: 100%; }
157
+ .w-screen { width: 100vw; }
158
+ .w-auto { width: auto; }
159
+ .w-fit { width: fit-content; }
160
+ .w-min { width: min-content; }
161
+ .w-max { width: max-content; }
162
+ .w-half { width: 50%; }
163
+
164
+ // ─── Height ───────────────────────────────────────────────────────────────────
165
+ .h-full { height: 100%; }
166
+ .h-screen { height: 100vh; }
167
+ .h-auto { height: auto; }
168
+ .h-fit { height: fit-content; }
169
+
170
+ // ─── Overflow ─────────────────────────────────────────────────────────────────
171
+ .overflow-auto { overflow: auto; }
172
+ .overflow-hidden { overflow: hidden; }
173
+ .overflow-visible { overflow: visible; }
174
+ .overflow-scroll { overflow: scroll; }
175
+ .overflow-x-auto { overflow-x: auto; }
176
+ .overflow-y-auto { overflow-y: auto; }
177
+ .overflow-x-hidden { overflow-x: hidden; }
178
+ .overflow-y-hidden { overflow-y: hidden; }
179
+
180
+ // ─── Position ─────────────────────────────────────────────────────────────────
181
+ .static { position: static; }
182
+ .relative { position: relative; }
183
+ .absolute { position: absolute; }
184
+ .fixed { position: fixed; }
185
+ .sticky { position: sticky; }
186
+
187
+ // ─── Z-index ──────────────────────────────────────────────────────────────────
188
+ @each $key, $value in $z {
189
+ .z-#{$key} { z-index: $value; }
190
+ }
191
+
192
+ // ─── Border radius ────────────────────────────────────────────────────────────
193
+ @each $key, $value in $radius {
194
+ .rounded-#{$key} { border-radius: $value; }
195
+ }
196
+ .rounded { border-radius: map.get($radius, 'base'); }
197
+
198
+ // ─── Box shadow ───────────────────────────────────────────────────────────────
199
+ .shadow-none { box-shadow: none; }
200
+ .shadow-sm { box-shadow: $shadow-sm; }
201
+ .shadow { box-shadow: $shadow; }
202
+ .shadow-md { box-shadow: $shadow-md; }
203
+ .shadow-lg { box-shadow: $shadow-lg; }
204
+ .shadow-xl { box-shadow: $shadow-xl; }
205
+
206
+ // ─── Pointer / cursor ────────────────────────────────────────────────────────
207
+ .cursor-default { cursor: default; }
208
+ .cursor-pointer { cursor: pointer; }
209
+ .cursor-not-allowed { cursor: not-allowed; }
210
+ .cursor-grab { cursor: grab; }
211
+ .cursor-text { cursor: text; }
212
+
213
+ .pointer-events-none { pointer-events: none; }
214
+ .pointer-events-auto { pointer-events: auto; }
215
+
216
+ // ─── User select ─────────────────────────────────────────────────────────────
217
+ .select-none { user-select: none; }
218
+ .select-text { user-select: text; }
219
+ .select-all { user-select: all; }
220
+ .select-auto { user-select: auto; }
221
+
222
+ // ─── Responsive display helpers ──────────────────────────────────────────────
223
+ // .sm-d-none, .md-d-flex, .xl-d-grid, .w2xl-d-none (2xl → w2xl, digit prefix invalid)
224
+ $_bp-aliases: (
225
+ 'sm': 'sm',
226
+ 'md': 'md',
227
+ 'lg': 'lg',
228
+ 'xl': 'xl',
229
+ '2xl': 'w2xl',
230
+ );
231
+
232
+ @each $bp, $alias in $_bp-aliases {
233
+ $val: map.get($breakpoints, $bp);
234
+ @media (min-width: $val) {
235
+ .#{$alias}-d-none { display: none; }
236
+ .#{$alias}-d-block { display: block; }
237
+ .#{$alias}-d-flex { display: flex; }
238
+ .#{$alias}-d-grid { display: grid; }
239
+ .#{$alias}-d-inline { display: inline; }
240
+ .#{$alias}-d-inline-flex { display: inline-flex; }
241
+ .#{$alias}-d-inline-block { display: inline-block; }
242
+ }
243
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "WebFetch(domain:feathericons.com)",
5
- "WebFetch(domain:github.com)"
6
- ]
7
- }
8
- }