You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Design spec for OneSignal SDK demo/sample apps. Values use platform-independent units (px). Adapt to the equivalent on each platform (dp on Android, pt on iOS, px in CSS, etc.).
3
+
Design spec for OneSignal SDK demo/sample apps. Values use platform-independent units (px). Adapt to the equivalent on each platform (dp on Android, pt on iOS, px in CSS, etc.). Token names use camelCase; convert to kebab-case (e.g. `os-primary`) for CSS/USS platforms.
| gap | 8 | Gap between elements inside a section|
25
-
| Section spacing | 24 vertical, 16 horizontal| Gap between sections. CSS platforms can use `gap: 24` on the list container instead of per-section padding |
| Section spacing | 24 vertical, 16 horizontal | Gap between sections. CSS platforms can use `gap: 24` on the list container instead of per-section padding |
Use the platform's standard light shadow (elevation 1 on Android/Flutter, a subtle `box-shadow` in CSS). No header/toolbar shadow. Also applies to the warning/guidance banner.
39
45
40
46
For CSS-based platforms, the equivalent shadow layers are:
@@ -68,11 +75,11 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
68
75
69
76
- Size: bodySmall (12)
70
77
- Weight: bold
71
-
- Color: sectionHeaderText
78
+
- Color: osGrey700
72
79
- Letter spacing: 0.5
73
80
- Transform: uppercase
74
81
- Bottom padding: 8 (gap)
75
-
- Info icon: 18, color sectionHeaderText
82
+
- Info icon: 18, color osGrey500
76
83
77
84
### Card Row Labels
78
85
@@ -81,12 +88,12 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
81
88
### Card Row Values
82
89
83
90
- Style: bodySmall (12)
84
-
- Font: monospace
91
+
- Font: monospace (applies to ID values like App ID, Push Subscription ID, External ID, and status text)
85
92
86
93
### Toggle Row
87
94
88
95
- Label: bodyMedium (14)
89
-
- Description: bodySmall (12), color subtleText
96
+
- Description: bodySmall (12), color osGrey600
90
97
91
98
### Radio Button Labels (Dialogs)
92
99
@@ -97,16 +104,19 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
97
104
### Primary Button
98
105
99
106
- Full width
100
-
- Background: oneSignalRed
107
+
- Background: osPrimary
101
108
- Text color: white
109
+
- Font weight: semibold/600
102
110
- Height: 48
103
111
- Corner radius: 8
112
+
- Leading icon (when present): size 18, 8 gap before label
104
113
105
114
### Destructive / Outlined Button
106
115
107
116
- Full width
108
117
- Background: transparent
109
-
- Border + text color: oneSignalRed
118
+
- Border + text color: osPrimary
119
+
- Font weight: semibold/600
110
120
- Height: 48
111
121
- Corner radius: 8
112
122
@@ -131,47 +141,47 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
131
141
132
142
## Warning Banner
133
143
134
-
- Uses card styling (shadow, corner radius) with warningBackground color
144
+
- Uses card styling (shadow, corner radius) with osWarningBackground color
135
145
- Text: bodySmall (12)
136
-
- Link: bodySmall (12), color oneSignalRed, weight semibold/600, no underline, no gap above
146
+
- Link: bodySmall (12), color osPrimary, weight semibold/600, no underline, no gap above
137
147
138
148
## List Items
139
149
140
150
Items displayed inside cards (e.g. tags, aliases, emails, SMS numbers). The list sits inside a card with standard card padding (12 horizontal, 12 vertical).
0 commit comments