@sticker-pop/web 0.0.0-stage → 0.1.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.md +54 -0
- package/LICENSE +27 -0
- package/README.md +58 -2
- package/fonts/BricolageGrotesque-Variable.ttf +0 -0
- package/fonts/OFL.txt +93 -0
- package/package.json +68 -4
- package/src/behaviors.mjs +1011 -0
- package/src/charts.mjs +50 -0
- package/src/components.css +837 -0
- package/src/fills.css +14 -0
- package/src/format.d.ts +7 -0
- package/src/format.mjs +119 -0
- package/src/sticker-pop.css +4 -0
- package/src/tokens.css +365 -0
- package/src/tokens.d.ts +332 -0
- package/src/tokens.mjs +332 -0
package/src/fills.css
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* GENERATED by tools/build-tokens.mjs from tokens/sticker-pop.tokens.json. Do not edit. */
|
|
2
|
+
|
|
3
|
+
/* Fills: load after components.css (sticker-pop.css does this). */
|
|
4
|
+
.sp-fill-white { background: var(--sp-color-white); }
|
|
5
|
+
.sp-fill-paper { background: var(--sp-color-paper); }
|
|
6
|
+
.sp-fill-yellow { background: var(--sp-color-yellow); }
|
|
7
|
+
.sp-fill-pink { background: var(--sp-color-pink); }
|
|
8
|
+
.sp-fill-blue { background: var(--sp-color-blue); }
|
|
9
|
+
.sp-fill-mint { background: var(--sp-color-mint); }
|
|
10
|
+
.sp-fill-lilac { background: var(--sp-color-lilac); }
|
|
11
|
+
.sp-fill-orange { background: var(--sp-color-orange); }
|
|
12
|
+
.sp-fill-sunrise { background: var(--sp-gradient-sunrise); }
|
|
13
|
+
.sp-fill-candy { background: var(--sp-gradient-candy); }
|
|
14
|
+
.sp-fill-lagoon { background: var(--sp-gradient-lagoon); }
|
package/src/format.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type PopSign = 'auto' | 'always' | 'none';
|
|
2
|
+
export declare function groupIndian(value: number): string;
|
|
3
|
+
export declare function formatInr(paise: number, options?: { sign?: PopSign; alwaysPaise?: boolean }): string;
|
|
4
|
+
export declare function formatInrCompact(paise: number, options?: { sign?: PopSign }): string;
|
|
5
|
+
export declare function formatPopDate(date: Date, now?: Date): string;
|
|
6
|
+
export declare function formatPopMonth(date: Date): string;
|
|
7
|
+
export declare function formatPopTime(date: Date): string;
|
package/src/format.mjs
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Sticker Pop content formats for the web: Indian rupees with Indian digit
|
|
2
|
+
// grouping, compact amounts, and short dates and times. Amounts are integer
|
|
3
|
+
// paise. Output matches every other platform (parity/format-cases.json).
|
|
4
|
+
|
|
5
|
+
const MINUS = '−'; // −, a real minus sign
|
|
6
|
+
|
|
7
|
+
/** @typedef {'auto' | 'always' | 'none'} PopSign */
|
|
8
|
+
|
|
9
|
+
/** Groups digits the Indian way: 1,25,000 and 12,34,56,789. */
|
|
10
|
+
export function groupIndian(value) {
|
|
11
|
+
const digits = String(Math.abs(Math.trunc(value)));
|
|
12
|
+
if (digits.length <= 3) return digits;
|
|
13
|
+
const last3 = digits.slice(-3);
|
|
14
|
+
let rest = digits.slice(0, -3);
|
|
15
|
+
const parts = [];
|
|
16
|
+
while (rest.length > 2) {
|
|
17
|
+
parts.unshift(rest.slice(-2));
|
|
18
|
+
rest = rest.slice(0, -2);
|
|
19
|
+
}
|
|
20
|
+
if (rest) parts.unshift(rest);
|
|
21
|
+
return `${parts.join(',')},${last3}`;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function signFor(paise, sign) {
|
|
25
|
+
if (sign === 'none') return '';
|
|
26
|
+
if (sign === 'always') return paise < 0 ? MINUS : paise > 0 ? '+' : '';
|
|
27
|
+
return paise < 0 ? MINUS : '';
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** ₹1,25,000 or ₹1,250.50. Paise show only when non-zero, unless alwaysPaise. */
|
|
31
|
+
/**
|
|
32
|
+
* Applies one keypad key ("0"–"9", "." or "⌫") to an amount being typed:
|
|
33
|
+
* one decimal point, at most `decimals` decimal places, no leading zeros,
|
|
34
|
+
* at most `maxDigits` digits before the point.
|
|
35
|
+
*/
|
|
36
|
+
export function applyPopKey(current, key, { decimals = 2, maxDigits = 9 } = {}) {
|
|
37
|
+
if (key === '⌫') return current.slice(0, -1);
|
|
38
|
+
if (key === '.') return decimals === 0 || current.includes('.') ? current : current === '' ? '0.' : `${current}.`;
|
|
39
|
+
if (!/^\d$/.test(key)) return current;
|
|
40
|
+
const dot = current.indexOf('.');
|
|
41
|
+
if (dot >= 0 && current.length - dot - 1 >= decimals) return current;
|
|
42
|
+
if (dot < 0 && current.replace(/^0/, '').length >= maxDigits) return current;
|
|
43
|
+
if (current === '0') return key;
|
|
44
|
+
return current + key;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Up to two initials: the first letters of the first and last words. */
|
|
48
|
+
export function popInitials(name) {
|
|
49
|
+
const words = String(name).trim().split(/\s+/).filter(Boolean);
|
|
50
|
+
if (!words.length) return '?';
|
|
51
|
+
return (Array.from(words[0])[0] + (words.length > 1 ? Array.from(words.at(-1))[0] : '')).toUpperCase();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Which bright a name gets, the same on every platform: the sum of its UTF-16 code units, modulo six. */
|
|
55
|
+
export function popAvatarColor(name) {
|
|
56
|
+
const fills = ['yellow', 'pink', 'blue', 'mint', 'lilac', 'orange'];
|
|
57
|
+
let sum = 0;
|
|
58
|
+
const s = String(name).trim();
|
|
59
|
+
for (let i = 0; i < s.length; i++) sum += s.charCodeAt(i);
|
|
60
|
+
return fills[sum % fills.length];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function formatInr(paise, { sign = 'auto', alwaysPaise = false } = {}) {
|
|
64
|
+
const abs = Math.abs(paise);
|
|
65
|
+
const rupees = Math.floor(abs / 100);
|
|
66
|
+
const rem = abs % 100;
|
|
67
|
+
const body = rem !== 0 || alwaysPaise ? `${groupIndian(rupees)}.${String(rem).padStart(2, '0')}` : groupIndian(rupees);
|
|
68
|
+
return `${signFor(paise, sign)}₹${body}`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function trim(v) {
|
|
72
|
+
const decimals = v >= 100 ? 0 : v >= 10 ? 1 : 2;
|
|
73
|
+
let s = v.toFixed(decimals);
|
|
74
|
+
if (s.includes('.')) s = s.replace(/0+$/, '').replace(/\.$/, '');
|
|
75
|
+
return s;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** ₹950, ₹51.2k, ₹1.25L, ₹2.1Cr: at most three significant figures. */
|
|
79
|
+
export function formatInrCompact(paise, { sign = 'auto' } = {}) {
|
|
80
|
+
const rupees = Math.abs(paise) / 100;
|
|
81
|
+
let body;
|
|
82
|
+
if (rupees >= 1e7) body = `${trim(rupees / 1e7)}Cr`;
|
|
83
|
+
else if (rupees >= 1e5) body = `${trim(rupees / 1e5)}L`;
|
|
84
|
+
else if (rupees >= 1e3) body = `${trim(rupees / 1e3)}k`;
|
|
85
|
+
else body = groupIndian(Math.round(rupees));
|
|
86
|
+
return `${signFor(paise, sign)}₹${body}`;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
90
|
+
const dayNumber = (d) => Math.round(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate()) / 86400000);
|
|
91
|
+
|
|
92
|
+
/** "Today", "Yesterday", or "18 Nov 2026". Dates are local Date objects. */
|
|
93
|
+
export function formatPopDate(date, now = new Date()) {
|
|
94
|
+
const days = dayNumber(now) - dayNumber(date);
|
|
95
|
+
if (days === 0) return 'Today';
|
|
96
|
+
if (days === 1) return 'Yesterday';
|
|
97
|
+
return `${date.getDate()} ${MONTHS[date.getMonth()]} ${date.getFullYear()}`;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** "Nov 2026". */
|
|
101
|
+
export const formatPopMonth = (date) => `${MONTHS[date.getMonth()]} ${date.getFullYear()}`;
|
|
102
|
+
|
|
103
|
+
/** 12-hour time: "1:12 pm", "9:05 am", "12:00 pm". */
|
|
104
|
+
export function formatPopTime(date) {
|
|
105
|
+
const h = date.getHours() % 12 === 0 ? 12 : date.getHours() % 12;
|
|
106
|
+
return `${h}:${String(date.getMinutes()).padStart(2, '0')} ${date.getHours() < 12 ? 'am' : 'pm'}`;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The page slots to show for `page` of `count` (both from 1): every page
|
|
111
|
+
* when there are 7 or fewer, otherwise always 7 slots with null for "…",
|
|
112
|
+
* e.g. 1 … 4 5 6 … 12. The same rule runs on every platform.
|
|
113
|
+
*/
|
|
114
|
+
export function popPageItems(page, count) {
|
|
115
|
+
if (count <= 7) return Array.from({ length: Math.max(count, 0) }, (_, i) => i + 1);
|
|
116
|
+
if (page <= 4) return [1, 2, 3, 4, 5, null, count];
|
|
117
|
+
if (page >= count - 3) return [1, null, count - 4, count - 3, count - 2, count - 1, count];
|
|
118
|
+
return [1, null, page - 1, page, page + 1, null, count];
|
|
119
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/* GENERATED by tools/build-tokens.mjs from tokens/sticker-pop.tokens.json. Do not edit. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--sp-color-paper: #fff3d6;
|
|
5
|
+
--sp-color-paper-dot: #ebd9a6;
|
|
6
|
+
--sp-color-ink: #141414;
|
|
7
|
+
--sp-color-ink-muted: #4a4a4a;
|
|
8
|
+
--sp-color-white: #ffffff;
|
|
9
|
+
--sp-color-divider: #e3d3a6;
|
|
10
|
+
--sp-color-yellow: #ffd43b;
|
|
11
|
+
--sp-color-pink: #ff6fae;
|
|
12
|
+
--sp-color-blue: #8db8ff;
|
|
13
|
+
--sp-color-mint: #5ee0a8;
|
|
14
|
+
--sp-color-lilac: #c3aeff;
|
|
15
|
+
--sp-color-orange: #ff9c5b;
|
|
16
|
+
--sp-color-scrim: #141414b8;
|
|
17
|
+
--sp-color-paper-scrim: #fff3d6e0;
|
|
18
|
+
--sp-gradient-sunrise: linear-gradient(135deg, var(--sp-color-yellow) 0%, var(--sp-color-orange) 100%);
|
|
19
|
+
--sp-gradient-candy: linear-gradient(135deg, var(--sp-color-pink) 0%, var(--sp-color-lilac) 100%);
|
|
20
|
+
--sp-gradient-lagoon: linear-gradient(135deg, var(--sp-color-blue) 0%, var(--sp-color-mint) 100%);
|
|
21
|
+
--sp-font-family: 'Bricolage Grotesque', 'BricolageGrotesque', system-ui, sans-serif;
|
|
22
|
+
--sp-font-weight-body: 600;
|
|
23
|
+
--sp-font-weight-label: 700;
|
|
24
|
+
--sp-font-weight-strong: 800;
|
|
25
|
+
--sp-space-xs: 4px;
|
|
26
|
+
--sp-space-sm: 8px;
|
|
27
|
+
--sp-space-md: 12px;
|
|
28
|
+
--sp-space-lg: 16px;
|
|
29
|
+
--sp-space-xl: 20px;
|
|
30
|
+
--sp-space-xxl: 24px;
|
|
31
|
+
--sp-space-screen: var(--sp-space-xl);
|
|
32
|
+
--sp-space-card: var(--sp-space-lg);
|
|
33
|
+
--sp-space-card-gap: var(--sp-space-lg);
|
|
34
|
+
--sp-space-section: var(--sp-space-xxl);
|
|
35
|
+
--sp-border-regular: 2.5px;
|
|
36
|
+
--sp-border-thin: 2px;
|
|
37
|
+
--sp-border-spotlight: 3px;
|
|
38
|
+
--sp-border-swatch: 1.5px;
|
|
39
|
+
--sp-border-divider: 2px;
|
|
40
|
+
--sp-radius-card: 22px;
|
|
41
|
+
--sp-radius-button: 20px;
|
|
42
|
+
--sp-radius-add-button: 20px;
|
|
43
|
+
--sp-radius-tile: 18px;
|
|
44
|
+
--sp-radius-pill: 19px;
|
|
45
|
+
--sp-radius-field: 14px;
|
|
46
|
+
--sp-radius-badge: 10px;
|
|
47
|
+
--sp-radius-sheet: 24px;
|
|
48
|
+
--sp-radius-snackbar: 16px;
|
|
49
|
+
--sp-radius-menu: 16px;
|
|
50
|
+
--sp-radius-checkbox: 7px;
|
|
51
|
+
--sp-radius-skeleton-line: 6px;
|
|
52
|
+
--sp-radius-spotlight: 18px;
|
|
53
|
+
--sp-radius-switch-track: 15px;
|
|
54
|
+
--sp-radius-nav-pill: 12px;
|
|
55
|
+
--sp-radius-progress-track: 9px;
|
|
56
|
+
--sp-radius-progress-fill: 7px;
|
|
57
|
+
--sp-radius-swatch: 4px;
|
|
58
|
+
--sp-shadow-none: 0px;
|
|
59
|
+
--sp-shadow-chip: 2px;
|
|
60
|
+
--sp-shadow-small: 3px;
|
|
61
|
+
--sp-shadow-regular: 4px;
|
|
62
|
+
--sp-shadow-large: 6px;
|
|
63
|
+
--sp-tilt-card-max: 3deg;
|
|
64
|
+
--sp-tilt-hero: -1.5deg;
|
|
65
|
+
--sp-tilt-hero-alt: 1.5deg;
|
|
66
|
+
--sp-tilt-badge: -4deg;
|
|
67
|
+
--sp-tilt-category-dot: -5deg;
|
|
68
|
+
--sp-tilt-add-button: -6deg;
|
|
69
|
+
--sp-tilt-max: 6deg;
|
|
70
|
+
--sp-size-tap-target: 48px;
|
|
71
|
+
--sp-size-button: 58px;
|
|
72
|
+
--sp-size-icon-button: 46px;
|
|
73
|
+
--sp-size-chip: 40px;
|
|
74
|
+
--sp-size-segment: 44px;
|
|
75
|
+
--sp-size-switch-width: 52px;
|
|
76
|
+
--sp-size-switch-height: 30px;
|
|
77
|
+
--sp-size-switch-knob: 21px;
|
|
78
|
+
--sp-size-category-dot: 42px;
|
|
79
|
+
--sp-size-row-min: 52px;
|
|
80
|
+
--sp-size-field-label-column: 76px;
|
|
81
|
+
--sp-size-progress-bar: 18px;
|
|
82
|
+
--sp-size-progress-dot: 10px;
|
|
83
|
+
--sp-size-progress-dot-current: 22px;
|
|
84
|
+
--sp-size-swatch: 12px;
|
|
85
|
+
--sp-size-dial-option: 56px;
|
|
86
|
+
--sp-size-top-bar: 64px;
|
|
87
|
+
--sp-size-date-tile-width: 56px;
|
|
88
|
+
--sp-size-date-tile-height: 68px;
|
|
89
|
+
--sp-size-calendar-day: 40px;
|
|
90
|
+
--sp-size-spinner: 24px;
|
|
91
|
+
--sp-size-slider-knob: 28px;
|
|
92
|
+
--sp-size-keypad-key: 56px;
|
|
93
|
+
--sp-size-state-tile: 96px;
|
|
94
|
+
--sp-size-skeleton-line: 14px;
|
|
95
|
+
--sp-size-checkbox: 24px;
|
|
96
|
+
--sp-size-radio-dot: 10px;
|
|
97
|
+
--sp-size-menu-min-width: 180px;
|
|
98
|
+
--sp-size-menu-max-width: 280px;
|
|
99
|
+
--sp-size-menu-max-height: 360px;
|
|
100
|
+
--sp-size-icon-nav: 22px;
|
|
101
|
+
--sp-size-icon-chip: 16px;
|
|
102
|
+
--sp-size-icon-tile: 26px;
|
|
103
|
+
--sp-size-icon-add: 28px;
|
|
104
|
+
--sp-size-paper-dot-radius: 1.3px;
|
|
105
|
+
--sp-size-paper-dot-step: 18px;
|
|
106
|
+
--sp-size-sheet-max-height-fraction: 0.9;
|
|
107
|
+
--sp-motion-toggle: 150ms;
|
|
108
|
+
--sp-motion-sheet: 250ms;
|
|
109
|
+
--sp-motion-fade: 150ms;
|
|
110
|
+
--sp-motion-snackbar: 3000ms;
|
|
111
|
+
--sp-motion-snackbar-with-action: 6000ms;
|
|
112
|
+
--sp-motion-dial-open: 280ms;
|
|
113
|
+
--sp-motion-dial-close: 180ms;
|
|
114
|
+
--sp-motion-dial-stagger: 40ms;
|
|
115
|
+
--sp-motion-dial-scrim: 200ms;
|
|
116
|
+
--sp-motion-dial-press: 90ms;
|
|
117
|
+
--sp-motion-pulse: 900ms;
|
|
118
|
+
--sp-motion-spin: 800ms;
|
|
119
|
+
--sp-opacity-scrim: 0.72;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.sp-text-welcome-title {
|
|
123
|
+
font-family: var(--sp-font-family);
|
|
124
|
+
font-size: 44px;
|
|
125
|
+
font-weight: 800;
|
|
126
|
+
font-variation-settings: 'wght' 800;
|
|
127
|
+
letter-spacing: -1.5px;
|
|
128
|
+
color: var(--sp-color-ink);
|
|
129
|
+
}
|
|
130
|
+
.sp-text-screen-title {
|
|
131
|
+
font-family: var(--sp-font-family);
|
|
132
|
+
font-size: 34px;
|
|
133
|
+
font-weight: 800;
|
|
134
|
+
font-variation-settings: 'wght' 800;
|
|
135
|
+
letter-spacing: -1px;
|
|
136
|
+
color: var(--sp-color-ink);
|
|
137
|
+
}
|
|
138
|
+
.sp-text-hero-amount {
|
|
139
|
+
font-family: var(--sp-font-family);
|
|
140
|
+
font-size: 40px;
|
|
141
|
+
font-weight: 800;
|
|
142
|
+
font-variation-settings: 'wght' 800;
|
|
143
|
+
font-variant-numeric: tabular-nums;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
color: var(--sp-color-ink);
|
|
146
|
+
}
|
|
147
|
+
.sp-text-amount-entry {
|
|
148
|
+
font-family: var(--sp-font-family);
|
|
149
|
+
font-size: 32px;
|
|
150
|
+
font-weight: 800;
|
|
151
|
+
font-variation-settings: 'wght' 800;
|
|
152
|
+
font-variant-numeric: tabular-nums;
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
color: var(--sp-color-ink);
|
|
155
|
+
}
|
|
156
|
+
.sp-text-sub-screen-title {
|
|
157
|
+
font-family: var(--sp-font-family);
|
|
158
|
+
font-size: 30px;
|
|
159
|
+
font-weight: 800;
|
|
160
|
+
font-variation-settings: 'wght' 800;
|
|
161
|
+
letter-spacing: -1px;
|
|
162
|
+
color: var(--sp-color-ink);
|
|
163
|
+
}
|
|
164
|
+
.sp-text-card-figure {
|
|
165
|
+
font-family: var(--sp-font-family);
|
|
166
|
+
font-size: 28px;
|
|
167
|
+
font-weight: 800;
|
|
168
|
+
font-variation-settings: 'wght' 800;
|
|
169
|
+
font-variant-numeric: tabular-nums;
|
|
170
|
+
white-space: nowrap;
|
|
171
|
+
color: var(--sp-color-ink);
|
|
172
|
+
}
|
|
173
|
+
.sp-text-sheet-title {
|
|
174
|
+
font-family: var(--sp-font-family);
|
|
175
|
+
font-size: 22px;
|
|
176
|
+
font-weight: 800;
|
|
177
|
+
font-variation-settings: 'wght' 800;
|
|
178
|
+
color: var(--sp-color-ink);
|
|
179
|
+
}
|
|
180
|
+
.sp-text-section-heading {
|
|
181
|
+
font-family: var(--sp-font-family);
|
|
182
|
+
font-size: 20px;
|
|
183
|
+
font-weight: 800;
|
|
184
|
+
font-variation-settings: 'wght' 800;
|
|
185
|
+
color: var(--sp-color-ink);
|
|
186
|
+
}
|
|
187
|
+
.sp-text-button-label {
|
|
188
|
+
font-family: var(--sp-font-family);
|
|
189
|
+
font-size: 18px;
|
|
190
|
+
font-weight: 800;
|
|
191
|
+
font-variation-settings: 'wght' 800;
|
|
192
|
+
color: var(--sp-color-white);
|
|
193
|
+
}
|
|
194
|
+
.sp-text-row-title {
|
|
195
|
+
font-family: var(--sp-font-family);
|
|
196
|
+
font-size: 16px;
|
|
197
|
+
font-weight: 800;
|
|
198
|
+
font-variation-settings: 'wght' 800;
|
|
199
|
+
color: var(--sp-color-ink);
|
|
200
|
+
}
|
|
201
|
+
.sp-text-row-amount {
|
|
202
|
+
font-family: var(--sp-font-family);
|
|
203
|
+
font-size: 16px;
|
|
204
|
+
font-weight: 800;
|
|
205
|
+
font-variation-settings: 'wght' 800;
|
|
206
|
+
font-variant-numeric: tabular-nums;
|
|
207
|
+
white-space: nowrap;
|
|
208
|
+
color: var(--sp-color-ink);
|
|
209
|
+
}
|
|
210
|
+
.sp-text-input {
|
|
211
|
+
font-family: var(--sp-font-family);
|
|
212
|
+
font-size: 16px;
|
|
213
|
+
font-weight: 700;
|
|
214
|
+
font-variation-settings: 'wght' 700;
|
|
215
|
+
color: var(--sp-color-ink);
|
|
216
|
+
}
|
|
217
|
+
.sp-text-input-hint {
|
|
218
|
+
font-family: var(--sp-font-family);
|
|
219
|
+
font-size: 16px;
|
|
220
|
+
font-weight: 600;
|
|
221
|
+
font-variation-settings: 'wght' 600;
|
|
222
|
+
color: var(--sp-color-ink-muted);
|
|
223
|
+
}
|
|
224
|
+
.sp-text-body {
|
|
225
|
+
font-family: var(--sp-font-family);
|
|
226
|
+
font-size: 15px;
|
|
227
|
+
font-weight: 600;
|
|
228
|
+
font-variation-settings: 'wght' 600;
|
|
229
|
+
line-height: 1.3;
|
|
230
|
+
color: var(--sp-color-ink);
|
|
231
|
+
}
|
|
232
|
+
.sp-text-tile-label {
|
|
233
|
+
font-family: var(--sp-font-family);
|
|
234
|
+
font-size: 15px;
|
|
235
|
+
font-weight: 800;
|
|
236
|
+
font-variation-settings: 'wght' 800;
|
|
237
|
+
color: var(--sp-color-ink);
|
|
238
|
+
}
|
|
239
|
+
.sp-text-keypad-key {
|
|
240
|
+
font-family: var(--sp-font-family);
|
|
241
|
+
font-size: 26px;
|
|
242
|
+
font-weight: 800;
|
|
243
|
+
font-variation-settings: 'wght' 800;
|
|
244
|
+
font-variant-numeric: tabular-nums;
|
|
245
|
+
white-space: nowrap;
|
|
246
|
+
color: var(--sp-color-ink);
|
|
247
|
+
}
|
|
248
|
+
.sp-text-menu-item {
|
|
249
|
+
font-family: var(--sp-font-family);
|
|
250
|
+
font-size: 15px;
|
|
251
|
+
font-weight: 700;
|
|
252
|
+
font-variation-settings: 'wght' 700;
|
|
253
|
+
color: var(--sp-color-ink);
|
|
254
|
+
}
|
|
255
|
+
.sp-text-text-button {
|
|
256
|
+
font-family: var(--sp-font-family);
|
|
257
|
+
font-size: 15px;
|
|
258
|
+
font-weight: 800;
|
|
259
|
+
font-variation-settings: 'wght' 800;
|
|
260
|
+
color: var(--sp-color-ink);
|
|
261
|
+
}
|
|
262
|
+
.sp-text-chip {
|
|
263
|
+
font-family: var(--sp-font-family);
|
|
264
|
+
font-size: 14px;
|
|
265
|
+
font-weight: 700;
|
|
266
|
+
font-variation-settings: 'wght' 700;
|
|
267
|
+
color: var(--sp-color-ink);
|
|
268
|
+
}
|
|
269
|
+
.sp-text-chip-selected {
|
|
270
|
+
font-family: var(--sp-font-family);
|
|
271
|
+
font-size: 14px;
|
|
272
|
+
font-weight: 800;
|
|
273
|
+
font-variation-settings: 'wght' 800;
|
|
274
|
+
color: var(--sp-color-ink);
|
|
275
|
+
}
|
|
276
|
+
.sp-text-segment {
|
|
277
|
+
font-family: var(--sp-font-family);
|
|
278
|
+
font-size: 15px;
|
|
279
|
+
font-weight: 700;
|
|
280
|
+
font-variation-settings: 'wght' 700;
|
|
281
|
+
color: var(--sp-color-ink);
|
|
282
|
+
}
|
|
283
|
+
.sp-text-segment-selected {
|
|
284
|
+
font-family: var(--sp-font-family);
|
|
285
|
+
font-size: 15px;
|
|
286
|
+
font-weight: 800;
|
|
287
|
+
font-variation-settings: 'wght' 800;
|
|
288
|
+
color: var(--sp-color-ink);
|
|
289
|
+
}
|
|
290
|
+
.sp-text-field-label {
|
|
291
|
+
font-family: var(--sp-font-family);
|
|
292
|
+
font-size: 14px;
|
|
293
|
+
font-weight: 700;
|
|
294
|
+
font-variation-settings: 'wght' 700;
|
|
295
|
+
color: var(--sp-color-ink-muted);
|
|
296
|
+
}
|
|
297
|
+
.sp-text-form-error {
|
|
298
|
+
font-family: var(--sp-font-family);
|
|
299
|
+
font-size: 14px;
|
|
300
|
+
font-weight: 800;
|
|
301
|
+
font-variation-settings: 'wght' 800;
|
|
302
|
+
color: var(--sp-color-ink);
|
|
303
|
+
}
|
|
304
|
+
.sp-text-legend-label {
|
|
305
|
+
font-family: var(--sp-font-family);
|
|
306
|
+
font-size: 14px;
|
|
307
|
+
font-weight: 700;
|
|
308
|
+
font-variation-settings: 'wght' 700;
|
|
309
|
+
color: var(--sp-color-ink);
|
|
310
|
+
}
|
|
311
|
+
.sp-text-legend-value {
|
|
312
|
+
font-family: var(--sp-font-family);
|
|
313
|
+
font-size: 14px;
|
|
314
|
+
font-weight: 800;
|
|
315
|
+
font-variation-settings: 'wght' 800;
|
|
316
|
+
font-variant-numeric: tabular-nums;
|
|
317
|
+
white-space: nowrap;
|
|
318
|
+
color: var(--sp-color-ink);
|
|
319
|
+
}
|
|
320
|
+
.sp-text-caption {
|
|
321
|
+
font-family: var(--sp-font-family);
|
|
322
|
+
font-size: 13px;
|
|
323
|
+
font-weight: 600;
|
|
324
|
+
font-variation-settings: 'wght' 600;
|
|
325
|
+
color: var(--sp-color-ink-muted);
|
|
326
|
+
}
|
|
327
|
+
.sp-text-section-label {
|
|
328
|
+
font-family: var(--sp-font-family);
|
|
329
|
+
font-size: 13px;
|
|
330
|
+
font-weight: 800;
|
|
331
|
+
font-variation-settings: 'wght' 800;
|
|
332
|
+
letter-spacing: 0.6px;
|
|
333
|
+
text-transform: uppercase;
|
|
334
|
+
color: var(--sp-color-ink);
|
|
335
|
+
}
|
|
336
|
+
.sp-text-nav-label {
|
|
337
|
+
font-family: var(--sp-font-family);
|
|
338
|
+
font-size: 12px;
|
|
339
|
+
font-weight: 700;
|
|
340
|
+
font-variation-settings: 'wght' 700;
|
|
341
|
+
color: var(--sp-color-ink-muted);
|
|
342
|
+
}
|
|
343
|
+
.sp-text-nav-label-selected {
|
|
344
|
+
font-family: var(--sp-font-family);
|
|
345
|
+
font-size: 12px;
|
|
346
|
+
font-weight: 800;
|
|
347
|
+
font-variation-settings: 'wght' 800;
|
|
348
|
+
color: var(--sp-color-ink);
|
|
349
|
+
}
|
|
350
|
+
.sp-text-badge {
|
|
351
|
+
font-family: var(--sp-font-family);
|
|
352
|
+
font-size: 12px;
|
|
353
|
+
font-weight: 800;
|
|
354
|
+
font-variation-settings: 'wght' 800;
|
|
355
|
+
letter-spacing: 0.6px;
|
|
356
|
+
text-transform: uppercase;
|
|
357
|
+
color: var(--sp-color-ink);
|
|
358
|
+
}
|
|
359
|
+
.sp-text-snackbar {
|
|
360
|
+
font-family: var(--sp-font-family);
|
|
361
|
+
font-size: 15px;
|
|
362
|
+
font-weight: 700;
|
|
363
|
+
font-variation-settings: 'wght' 700;
|
|
364
|
+
color: var(--sp-color-white);
|
|
365
|
+
}
|