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
44
40
45
For CSS-based platforms, the equivalent shadow layers are:
@@ -68,11 +74,11 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
68
74
69
75
- Size: bodySmall (12)
70
76
- Weight: bold
71
-
- Color: sectionHeaderText
77
+
- Color: osGrey700
72
78
- Letter spacing: 0.5
73
79
- Transform: uppercase
74
80
- Bottom padding: 8 (gap)
75
-
- Info icon: 18, color sectionHeaderText
81
+
- Info icon: 18, color osGrey500
76
82
77
83
### Card Row Labels
78
84
@@ -86,7 +92,7 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
86
92
### Toggle Row
87
93
88
94
- Label: bodyMedium (14)
89
-
- Description: bodySmall (12), color subtleText
95
+
- Description: bodySmall (12), color osGrey600
90
96
91
97
### Radio Button Labels (Dialogs)
92
98
@@ -97,7 +103,7 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
97
103
### Primary Button
98
104
99
105
- Full width
100
-
- Background: oneSignalRed
106
+
- Background: osPrimary
101
107
- Text color: white
102
108
- Height: 48
103
109
- Corner radius: 8
@@ -106,7 +112,7 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
106
112
107
113
- Full width
108
114
- Background: transparent
109
-
- Border + text color: oneSignalRed
115
+
- Border + text color: osPrimary
110
116
- Height: 48
111
117
- Corner radius: 8
112
118
@@ -131,47 +137,47 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
131
137
132
138
## Warning Banner
133
139
134
-
- Uses card styling (shadow, corner radius) with warningBackground color
140
+
- Uses card styling (shadow, corner radius) with osWarningBackground color
135
141
- Text: bodySmall (12)
136
-
- Link: bodySmall (12), color oneSignalRed, weight semibold/600, no underline, no gap above
142
+
- Link: bodySmall (12), color osPrimary, weight semibold/600, no underline, no gap above
137
143
138
144
## List Items
139
145
140
146
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