@auriel/peppertino 0.2.0 → 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.
- package/CHANGELOG.txt +76 -10
- package/README.md +236 -43
- package/dist/carousel.js +152 -0
- package/dist/carousel.js.map +7 -0
- package/dist/header.js +30 -3
- package/dist/header.js.map +2 -2
- package/dist/main.css +1359 -8
- package/dist/main.css.map +1 -1
- package/dist/modal.js +61 -2
- package/dist/modal.js.map +2 -2
- package/dist/peppertino.js +427 -17
- package/dist/peppertino.js.map +4 -4
- package/dist/select.js +25 -8
- package/dist/select.js.map +3 -3
- package/dist/tabs.js +31 -4
- package/dist/tabs.js.map +2 -2
- package/dist/validation.js +130 -0
- package/dist/validation.js.map +7 -0
- package/index.html +921 -39
- package/package.json +1 -1
- package/src/js/carousel.js +148 -0
- package/src/js/peppertino.js +2 -0
- package/src/js/validation.js +132 -0
- package/src/scss/base.scss +26 -6
- package/src/scss/carousel.scss +313 -0
- package/src/scss/footer.scss +224 -0
- package/src/scss/forms/fieldset.scss +127 -0
- package/src/scss/forms/form-instructions.scss +133 -0
- package/src/scss/forms/label.scss +115 -0
- package/src/scss/forms/text-field.scss +240 -0
- package/src/scss/forms/validation.scss +215 -0
- package/src/scss/forms.scss +8 -0
- package/src/scss/main.scss +3 -0
- package/.claude/settings.local.json +0 -8
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
// PeppertinoCSS — Footer
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'base' as *;
|
|
5
|
+
|
|
6
|
+
// ─── Shell ────────────────────────────────────────────────────────────────────
|
|
7
|
+
.pp-footer {
|
|
8
|
+
width: 100%;
|
|
9
|
+
background: $color-neutral-50;
|
|
10
|
+
border-top: 1px solid $color-border;
|
|
11
|
+
padding: spacing(16) spacing(8) spacing(8);
|
|
12
|
+
font-family: $font-sans;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// ─── Top section: brand + columns ────────────────────────────────────────────
|
|
16
|
+
.pp-footer__top {
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-columns: 1fr repeat(3, auto);
|
|
19
|
+
gap: spacing(12);
|
|
20
|
+
align-items: start;
|
|
21
|
+
padding-bottom: spacing(10);
|
|
22
|
+
border-bottom: 1px solid $color-border;
|
|
23
|
+
|
|
24
|
+
@include respond-to('xl') {
|
|
25
|
+
grid-template-columns: 1fr repeat(4, auto);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// ─── Brand block ─────────────────────────────────────────────────────────────
|
|
30
|
+
.pp-footer__brand {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: spacing(3);
|
|
34
|
+
max-width: 260px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pp-footer__logo {
|
|
38
|
+
font-size: font-size('lg');
|
|
39
|
+
font-weight: map.get($font-weights, 'semibold');
|
|
40
|
+
letter-spacing: -0.02em;
|
|
41
|
+
color: $color-on-surface;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
|
|
44
|
+
&:hover { color: $color-primary; }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pp-footer__tagline {
|
|
48
|
+
font-size: font-size('sm');
|
|
49
|
+
color: $color-neutral-500;
|
|
50
|
+
line-height: 1.6;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// ─── Nav column ──────────────────────────────────────────────────────────────
|
|
54
|
+
.pp-footer__col {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: spacing(3);
|
|
58
|
+
min-width: 140px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pp-footer__col-title {
|
|
62
|
+
font-size: font-size('xs');
|
|
63
|
+
font-weight: map.get($font-weights, 'semibold');
|
|
64
|
+
letter-spacing: 0.08em;
|
|
65
|
+
text-transform: uppercase;
|
|
66
|
+
color: $color-neutral-900;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pp-footer__nav {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
gap: spacing(2);
|
|
73
|
+
list-style: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.pp-footer__nav-link {
|
|
77
|
+
font-size: font-size('sm');
|
|
78
|
+
color: $color-neutral-500;
|
|
79
|
+
text-decoration: none;
|
|
80
|
+
transition: color $transition-fast;
|
|
81
|
+
line-height: 1.5;
|
|
82
|
+
|
|
83
|
+
&:hover { color: $color-on-surface; }
|
|
84
|
+
&:focus-visible {
|
|
85
|
+
outline: 2px solid $color-primary;
|
|
86
|
+
outline-offset: 2px;
|
|
87
|
+
border-radius: 2px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ─── Bottom bar ───────────────────────────────────────────────────────────────
|
|
92
|
+
.pp-footer__bottom {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
flex-wrap: wrap;
|
|
97
|
+
gap: spacing(4);
|
|
98
|
+
padding-top: spacing(8);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.pp-footer__legal {
|
|
102
|
+
font-size: font-size('xs');
|
|
103
|
+
color: $color-neutral-400;
|
|
104
|
+
line-height: 1.6;
|
|
105
|
+
|
|
106
|
+
a {
|
|
107
|
+
color: inherit;
|
|
108
|
+
text-decoration: underline;
|
|
109
|
+
text-underline-offset: 2px;
|
|
110
|
+
transition: color $transition-fast;
|
|
111
|
+
|
|
112
|
+
&:hover { color: $color-on-surface; }
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.pp-footer__social {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
gap: spacing(2);
|
|
120
|
+
list-style: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.pp-footer__social-link {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
width: 32px;
|
|
128
|
+
height: 32px;
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
border: 1px solid $color-border;
|
|
131
|
+
color: $color-neutral-500;
|
|
132
|
+
text-decoration: none;
|
|
133
|
+
transition:
|
|
134
|
+
color $transition-fast,
|
|
135
|
+
border-color $transition-fast,
|
|
136
|
+
background $transition-fast;
|
|
137
|
+
|
|
138
|
+
&:hover {
|
|
139
|
+
color: $color-on-surface;
|
|
140
|
+
border-color: $color-neutral-400;
|
|
141
|
+
background: $color-neutral-100;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:focus-visible {
|
|
145
|
+
outline: 2px solid $color-primary;
|
|
146
|
+
outline-offset: 2px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
svg {
|
|
150
|
+
width: 16px;
|
|
151
|
+
height: 16px;
|
|
152
|
+
stroke: currentColor;
|
|
153
|
+
fill: none;
|
|
154
|
+
stroke-width: 2;
|
|
155
|
+
stroke-linecap: round;
|
|
156
|
+
stroke-linejoin: round;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ─── Gradient accent strip ────────────────────────────────────────────────────
|
|
161
|
+
.pp-footer--accent {
|
|
162
|
+
border-top: none;
|
|
163
|
+
position: relative;
|
|
164
|
+
|
|
165
|
+
&::before {
|
|
166
|
+
content: '';
|
|
167
|
+
display: block;
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: 0;
|
|
170
|
+
left: 0;
|
|
171
|
+
right: 0;
|
|
172
|
+
height: 3px;
|
|
173
|
+
background: linear-gradient(90deg, $gradient-start, $gradient-end);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// ─── Dark variant ─────────────────────────────────────────────────────────────
|
|
178
|
+
.pp-footer--dark {
|
|
179
|
+
background: $color-neutral-900;
|
|
180
|
+
border-top-color: $color-neutral-700;
|
|
181
|
+
|
|
182
|
+
.pp-footer__logo { color: #fff; &:hover { color: $color-primary-light; } }
|
|
183
|
+
.pp-footer__tagline { color: $color-neutral-400; }
|
|
184
|
+
.pp-footer__col-title { color: #fff; }
|
|
185
|
+
.pp-footer__nav-link { color: $color-neutral-400; &:hover { color: #fff; } }
|
|
186
|
+
.pp-footer__legal { color: $color-neutral-600; a:hover { color: $color-neutral-300; } }
|
|
187
|
+
.pp-footer__social-link {
|
|
188
|
+
border-color: $color-neutral-700;
|
|
189
|
+
color: $color-neutral-400;
|
|
190
|
+
&:hover { border-color: $color-neutral-500; color: #fff; background: $color-neutral-800; }
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.pp-footer__top { border-bottom-color: $color-neutral-700; }
|
|
194
|
+
.pp-footer__bottom { border-top-color: $color-neutral-700; }
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// ─── Responsive ───────────────────────────────────────────────────────────────
|
|
198
|
+
@media (max-width: 767px) {
|
|
199
|
+
.pp-footer {
|
|
200
|
+
padding: spacing(10) spacing(4) spacing(6);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.pp-footer__top {
|
|
204
|
+
grid-template-columns: 1fr 1fr;
|
|
205
|
+
gap: spacing(8);
|
|
206
|
+
|
|
207
|
+
.pp-footer__brand {
|
|
208
|
+
grid-column: 1 / -1;
|
|
209
|
+
max-width: 100%;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.pp-footer__bottom {
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
align-items: flex-start;
|
|
216
|
+
gap: spacing(4);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (max-width: 479px) {
|
|
221
|
+
.pp-footer__top {
|
|
222
|
+
grid-template-columns: 1fr;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// PeppertinoCSS — Forms / Fieldset & Legend
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use '../base' as *;
|
|
5
|
+
|
|
6
|
+
// ─── Fieldset ─────────────────────────────────────────────────────────────────
|
|
7
|
+
.pp-fieldset,
|
|
8
|
+
fieldset.pp-fieldset {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: spacing(4);
|
|
12
|
+
width: 100%;
|
|
13
|
+
padding: spacing(6);
|
|
14
|
+
margin: 0;
|
|
15
|
+
background: #fff;
|
|
16
|
+
border: 1px solid $color-border;
|
|
17
|
+
border-radius: 12px;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// ─── Legend ──────────────────────────────────────────────────────────────────
|
|
22
|
+
.pp-legend,
|
|
23
|
+
.pp-fieldset > legend {
|
|
24
|
+
float: left;
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding: 0 0 spacing(4) 0;
|
|
27
|
+
margin-bottom: spacing(2);
|
|
28
|
+
border-bottom: 1px solid $color-border;
|
|
29
|
+
font-family: $font-sans;
|
|
30
|
+
font-size: font-size('sm');
|
|
31
|
+
font-weight: map.get($font-weights, 'semibold');
|
|
32
|
+
letter-spacing: 0.06em;
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
color: $color-neutral-500;
|
|
35
|
+
line-height: 1.4;
|
|
36
|
+
|
|
37
|
+
& + * { clear: both; }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ─── Variants ────────────────────────────────────────────────────────────────
|
|
41
|
+
.pp-fieldset--ghost {
|
|
42
|
+
background: $color-neutral-50;
|
|
43
|
+
border-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pp-fieldset--filled {
|
|
47
|
+
background: $color-neutral-100;
|
|
48
|
+
border-color: $color-neutral-200;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pp-fieldset--primary {
|
|
52
|
+
border-color: rgba($color-primary, 0.35);
|
|
53
|
+
box-shadow: 0 0 0 3px rgba($color-primary, 0.06);
|
|
54
|
+
|
|
55
|
+
.pp-fieldset > legend,
|
|
56
|
+
.pp-legend {
|
|
57
|
+
color: $color-primary;
|
|
58
|
+
border-bottom-color: rgba($color-primary, 0.2);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pp-fieldset--error {
|
|
63
|
+
border-color: rgba($color-error, 0.4);
|
|
64
|
+
box-shadow: 0 0 0 3px rgba($color-error, 0.06);
|
|
65
|
+
|
|
66
|
+
.pp-fieldset > legend,
|
|
67
|
+
.pp-legend {
|
|
68
|
+
color: $color-error;
|
|
69
|
+
border-bottom-color: rgba($color-error, 0.2);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.pp-fieldset[disabled],
|
|
74
|
+
.pp-fieldset[aria-disabled='true'] {
|
|
75
|
+
opacity: 0.5;
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// ─── Legend size modifiers ────────────────────────────────────────────────────
|
|
81
|
+
.pp-legend--sm {
|
|
82
|
+
font-size: font-size('xs');
|
|
83
|
+
padding-bottom: spacing(3);
|
|
84
|
+
margin-bottom: spacing(1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pp-legend--lg {
|
|
88
|
+
font-size: font-size('base');
|
|
89
|
+
font-weight: map.get($font-weights, 'bold');
|
|
90
|
+
letter-spacing: -0.01em;
|
|
91
|
+
text-transform: none;
|
|
92
|
+
padding-bottom: spacing(4);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.pp-legend--inline {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: spacing(2);
|
|
99
|
+
|
|
100
|
+
svg,
|
|
101
|
+
[data-lucide] {
|
|
102
|
+
flex-shrink: 0;
|
|
103
|
+
width: 1em;
|
|
104
|
+
height: 1em;
|
|
105
|
+
stroke: currentColor;
|
|
106
|
+
fill: none;
|
|
107
|
+
stroke-width: 2;
|
|
108
|
+
stroke-linecap: round;
|
|
109
|
+
stroke-linejoin: round;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ─── Forced-colors ───────────────────────────────────────────────────────────
|
|
114
|
+
@media (forced-colors: active) {
|
|
115
|
+
.pp-fieldset,
|
|
116
|
+
fieldset.pp-fieldset {
|
|
117
|
+
border-color: ButtonText;
|
|
118
|
+
forced-color-adjust: auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pp-legend,
|
|
122
|
+
.pp-fieldset > legend {
|
|
123
|
+
color: ButtonText;
|
|
124
|
+
border-bottom-color: ButtonText;
|
|
125
|
+
forced-color-adjust: auto;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// PeppertinoCSS — Forms / Form Instructions
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use '../base' as *;
|
|
5
|
+
|
|
6
|
+
// ─── Pre-form instructions block ─────────────────────────────────────────────
|
|
7
|
+
.pp-form-instructions {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: spacing(2);
|
|
11
|
+
width: 100%;
|
|
12
|
+
padding: spacing(4) spacing(5);
|
|
13
|
+
border-left: 3px solid $color-primary;
|
|
14
|
+
border-radius: 0 map.get($radius, 'md') map.get($radius, 'md') 0;
|
|
15
|
+
background: rgba($color-primary, 0.04);
|
|
16
|
+
font-family: $font-sans;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pp-form-instructions__title {
|
|
20
|
+
font-size: font-size('sm');
|
|
21
|
+
font-weight: map.get($font-weights, 'semibold');
|
|
22
|
+
color: $color-neutral-800;
|
|
23
|
+
line-height: 1.4;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pp-form-instructions__list {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: spacing(1);
|
|
30
|
+
list-style: none;
|
|
31
|
+
padding: 0;
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pp-form-instructions__item {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
gap: spacing(2);
|
|
39
|
+
font-size: font-size('sm');
|
|
40
|
+
font-weight: map.get($font-weights, 'regular');
|
|
41
|
+
color: $color-neutral-600;
|
|
42
|
+
line-height: 1.6;
|
|
43
|
+
|
|
44
|
+
&::before {
|
|
45
|
+
content: '';
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
width: 5px;
|
|
48
|
+
height: 5px;
|
|
49
|
+
margin-top: 0.45em;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
background: $color-primary;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// ─── Variants ────────────────────────────────────────────────────────────────
|
|
56
|
+
.pp-form-instructions--neutral {
|
|
57
|
+
border-left-color: $color-neutral-400;
|
|
58
|
+
background: $color-neutral-50;
|
|
59
|
+
|
|
60
|
+
.pp-form-instructions__item::before { background: $color-neutral-400; }
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pp-form-instructions--warning {
|
|
64
|
+
border-left-color: $color-warning;
|
|
65
|
+
background: rgba($color-warning, 0.06);
|
|
66
|
+
|
|
67
|
+
.pp-form-instructions__title { color: #92400e; }
|
|
68
|
+
.pp-form-instructions__item { color: #92400e; }
|
|
69
|
+
.pp-form-instructions__item::before { background: $color-warning; }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.pp-form-instructions--error {
|
|
73
|
+
border-left-color: $color-error;
|
|
74
|
+
background: rgba($color-error, 0.05);
|
|
75
|
+
|
|
76
|
+
.pp-form-instructions__title { color: $color-primary-dark; }
|
|
77
|
+
.pp-form-instructions__item { color: $color-primary-dark; }
|
|
78
|
+
.pp-form-instructions__item::before { background: $color-error; }
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ─── In-form hint ─────────────────────────────────────────────────────────────
|
|
82
|
+
.pp-form-hint {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: flex-start;
|
|
85
|
+
gap: spacing(2);
|
|
86
|
+
font-family: $font-sans;
|
|
87
|
+
font-size: font-size('xs');
|
|
88
|
+
font-weight: map.get($font-weights, 'regular');
|
|
89
|
+
color: $color-neutral-600;
|
|
90
|
+
line-height: 1.6;
|
|
91
|
+
padding: spacing(2) 0;
|
|
92
|
+
|
|
93
|
+
[data-lucide], svg {
|
|
94
|
+
flex-shrink: 0;
|
|
95
|
+
width: 14px;
|
|
96
|
+
height: 14px;
|
|
97
|
+
margin-top: 1px;
|
|
98
|
+
stroke: $color-neutral-400;
|
|
99
|
+
fill: none;
|
|
100
|
+
stroke-width: 2;
|
|
101
|
+
stroke-linecap: round;
|
|
102
|
+
stroke-linejoin: round;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// ─── Required-field note ─────────────────────────────────────────────────────
|
|
107
|
+
.pp-form-required-note {
|
|
108
|
+
font-family: $font-sans;
|
|
109
|
+
font-size: font-size('xs');
|
|
110
|
+
color: $color-neutral-600;
|
|
111
|
+
line-height: 1.5;
|
|
112
|
+
|
|
113
|
+
abbr {
|
|
114
|
+
font-weight: map.get($font-weights, 'semibold');
|
|
115
|
+
color: $color-primary-dark;
|
|
116
|
+
text-decoration: none;
|
|
117
|
+
border: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// ─── Forced-colors ───────────────────────────────────────────────────────────
|
|
122
|
+
@media (forced-colors: active) {
|
|
123
|
+
.pp-form-instructions {
|
|
124
|
+
border-left-color: Highlight;
|
|
125
|
+
background: transparent;
|
|
126
|
+
forced-color-adjust: auto;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.pp-form-instructions__item::before {
|
|
130
|
+
background: Highlight;
|
|
131
|
+
forced-color-adjust: none;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// PeppertinoCSS — Forms / Label
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use '../base' as *;
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--pp-label-primary: #{$color-neutral-900};
|
|
8
|
+
--pp-label-secondary: #{$color-neutral-500};
|
|
9
|
+
--pp-label-tertiary: #{$color-neutral-400};
|
|
10
|
+
--pp-label-quaternary: #{$color-neutral-300};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// ─── Base ─────────────────────────────────────────────────────────────────────
|
|
14
|
+
.pp-label {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
font-family: $font-sans;
|
|
17
|
+
font-size: font-size('base');
|
|
18
|
+
font-weight: map.get($font-weights, 'regular');
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
letter-spacing: -0.011em;
|
|
21
|
+
color: var(--pp-label-primary);
|
|
22
|
+
user-select: none;
|
|
23
|
+
cursor: default;
|
|
24
|
+
max-width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ─── Importance tiers ────────────────────────────────────────────────────────
|
|
28
|
+
.pp-label--primary { color: var(--pp-label-primary); }
|
|
29
|
+
.pp-label--secondary { color: var(--pp-label-secondary); }
|
|
30
|
+
.pp-label--tertiary { color: var(--pp-label-tertiary); }
|
|
31
|
+
.pp-label--quaternary { color: var(--pp-label-quaternary); }
|
|
32
|
+
|
|
33
|
+
// ─── Size scale ──────────────────────────────────────────────────────────────
|
|
34
|
+
.pp-label--headline {
|
|
35
|
+
font-size: font-size('xl');
|
|
36
|
+
font-weight: map.get($font-weights, 'semibold');
|
|
37
|
+
letter-spacing: -0.02em;
|
|
38
|
+
line-height: 1.25;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pp-label--subheadline {
|
|
42
|
+
font-size: font-size('base');
|
|
43
|
+
font-weight: map.get($font-weights, 'medium');
|
|
44
|
+
letter-spacing: -0.011em;
|
|
45
|
+
line-height: 1.4;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pp-label--body {
|
|
49
|
+
font-size: font-size('base');
|
|
50
|
+
font-weight: map.get($font-weights, 'regular');
|
|
51
|
+
letter-spacing: -0.011em;
|
|
52
|
+
line-height: 1.5;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pp-label--callout {
|
|
56
|
+
font-size: font-size('sm');
|
|
57
|
+
font-weight: map.get($font-weights, 'regular');
|
|
58
|
+
letter-spacing: -0.009em;
|
|
59
|
+
line-height: 1.5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pp-label--footnote {
|
|
63
|
+
font-size: font-size('xs');
|
|
64
|
+
font-weight: map.get($font-weights, 'regular');
|
|
65
|
+
letter-spacing: 0;
|
|
66
|
+
line-height: 1.4;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.pp-label--caption {
|
|
70
|
+
font-size: font-size('xs');
|
|
71
|
+
font-weight: map.get($font-weights, 'medium');
|
|
72
|
+
letter-spacing: 0.01em;
|
|
73
|
+
line-height: 1.4;
|
|
74
|
+
text-transform: uppercase;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ─── Modifiers ───────────────────────────────────────────────────────────────
|
|
78
|
+
.pp-label--selectable {
|
|
79
|
+
user-select: text;
|
|
80
|
+
cursor: text;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.pp-label--truncate {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
display: block;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ─── Icon + label row ────────────────────────────────────────────────────────
|
|
91
|
+
.pp-label-row {
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: spacing(2);
|
|
95
|
+
color: var(--pp-label-primary);
|
|
96
|
+
|
|
97
|
+
svg,
|
|
98
|
+
[data-lucide] {
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
width: 1em;
|
|
101
|
+
height: 1em;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// ─── Forced-colors ───────────────────────────────────────────────────────────
|
|
106
|
+
@media (forced-colors: active) {
|
|
107
|
+
.pp-label,
|
|
108
|
+
.pp-label--primary,
|
|
109
|
+
.pp-label--secondary,
|
|
110
|
+
.pp-label--tertiary,
|
|
111
|
+
.pp-label--quaternary {
|
|
112
|
+
color: ButtonText;
|
|
113
|
+
forced-color-adjust: auto;
|
|
114
|
+
}
|
|
115
|
+
}
|