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
@@ -86,7 +93,7 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
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,7 +104,7 @@ 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
102
109
- Height: 48
103
110
- Corner radius: 8
@@ -106,7 +113,7 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
106
113
107
114
- Full width
108
115
- Background: transparent
109
-
- Border + text color: oneSignalRed
116
+
- Border + text color: osPrimary
110
117
- Height: 48
111
118
- Corner radius: 8
112
119
@@ -131,47 +138,47 @@ All sizes in sp/px. Use the platform's default system font unless otherwise note
131
138
132
139
## Warning Banner
133
140
134
-
- Uses card styling (shadow, corner radius) with warningBackground color
141
+
- Uses card styling (shadow, corner radius) with osWarningBackground color
135
142
- Text: bodySmall (12)
136
-
- Link: bodySmall (12), color oneSignalRed, weight semibold/600, no underline, no gap above
143
+
- Link: bodySmall (12), color osPrimary, weight semibold/600, no underline, no gap above
137
144
138
145
## List Items
139
146
140
147
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