@jobber/design 0.36.0 → 0.37.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/README.mdx CHANGED
@@ -1,6 +1,7 @@
1
1
  # Foundation
2
2
 
3
- Foundational colors and rhythm for the Jobber Atlantis Design System
3
+ Foundational colors, styling and design tokens for the Jobber Atlantis Design
4
+ System
4
5
 
5
6
  ## Installation
6
7
 
@@ -77,3 +78,26 @@ module.exports = {
77
78
  ],
78
79
  };
79
80
  ```
81
+
82
+ ## Usage With React Native
83
+
84
+ To use JobberStyles with React Native, add the following to the file containing
85
+ your project's global styling:
86
+
87
+ ```ts
88
+ // Import from `foundation.native` instead of `foundation` because foundation
89
+ // would resolve the typescript for the web foundation instead of the React Native version.
90
+ import { JobberStyle as mobileFoundationBase } from "@jobber/design/foundation.native";
91
+ import { Platform } from "react-native";
92
+
93
+ const JobberStyle: typeof mobileFoundationBase = Platform.select({
94
+ ios: () => require("@jobber/design/foundation.ios").JobberStyle,
95
+ android: () => require("@jobber/design/foundation.android").JobberStyle,
96
+ default: () => require("@jobber/design/foundation.native").JobberStyle,
97
+ })();
98
+
99
+ export const GlobalStyling = {
100
+ ...JobberStyle,
101
+ ...otherStyles,
102
+ };
103
+ ```
@@ -0,0 +1,220 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /* This file is automatically generated and should not be edited. */
4
+ export const JobberStyle: {
5
+ "border-base": number;
6
+ "border-thick": number;
7
+ "border-thicker": number;
8
+ "border-thickest": number;
9
+ "color-interactive": string;
10
+ "color-interactive--hover": string;
11
+ "color-destructive": string;
12
+ "color-destructive--hover": string;
13
+ "color-interactive--subtle": string;
14
+ "color-interactive--subtle--hover": string;
15
+ "color-disabled": string;
16
+ "color-disabled--secondary": string;
17
+ "color-focus": string;
18
+ "color-critical": string;
19
+ "color-critical--surface": string;
20
+ "color-critical--onSurface": string;
21
+ "color-warning": string;
22
+ "color-warning--surface": string;
23
+ "color-warning--onSurface": string;
24
+ "color-success": string;
25
+ "color-success--surface": string;
26
+ "color-success--onSurface": string;
27
+ "color-informative": string;
28
+ "color-informative--surface": string;
29
+ "color-informative--onSurface": string;
30
+ "color-inactive": string;
31
+ "color-inactive--surface": string;
32
+ "color-inactive--onSurface": string;
33
+ "color-heading": string;
34
+ "color-text": string;
35
+ "color-text--secondary": string;
36
+ "color-text--reverse": string;
37
+ "color-text--reverse--secondary": string;
38
+ "color-surface": string;
39
+ "color-surface--hover": string;
40
+ "color-surface--active": string;
41
+ "color-surface--background": string;
42
+ "color-surface--reverse": string;
43
+ "color-border": string;
44
+ "color-border--section": string;
45
+ "color-overlay": string;
46
+ "color-overlay--dimmed": string;
47
+ "color-brand": string;
48
+ "color-brand--highlight": string;
49
+ "color-request": string;
50
+ "color-quote": string;
51
+ "color-job": string;
52
+ "color-visit": string;
53
+ "color-task": string;
54
+ "color-event": string;
55
+ "color-invoice": string;
56
+ "color-payments": string;
57
+ "color-client": string;
58
+ "color-blue": string;
59
+ "color-blue--light": string;
60
+ "color-blue--lighter": string;
61
+ "color-blue--lightest": string;
62
+ "color-blue--dark": string;
63
+ "color-green": string;
64
+ "color-green--light": string;
65
+ "color-green--lighter": string;
66
+ "color-green--lightest": string;
67
+ "color-green--dark": string;
68
+ "color-lime": string;
69
+ "color-lime--light": string;
70
+ "color-lime--lighter": string;
71
+ "color-lime--lightest": string;
72
+ "color-lime--dark": string;
73
+ "color-yellowGreen": string;
74
+ "color-yellowGreen--light": string;
75
+ "color-yellowGreen--lighter": string;
76
+ "color-yellowGreen--lightest": string;
77
+ "color-yellowGreen--dark": string;
78
+ "color-yellow": string;
79
+ "color-yellow--light": string;
80
+ "color-yellow--lighter": string;
81
+ "color-yellow--lightest": string;
82
+ "color-yellow--dark": string;
83
+ "color-red": string;
84
+ "color-red--light": string;
85
+ "color-red--lighter": string;
86
+ "color-red--lightest": string;
87
+ "color-red--dark": string;
88
+ "color-grey": string;
89
+ "color-grey--light": string;
90
+ "color-grey--lighter": string;
91
+ "color-grey--lightest": string;
92
+ "color-grey--dark": string;
93
+ "color-greyBlue--rgb": string;
94
+ "color-greyBlue": string;
95
+ "color-greyBlue--light": string;
96
+ "color-greyBlue--lighter": string;
97
+ "color-greyBlue--lightest": string;
98
+ "color-greyBlue--dark": string;
99
+ "color-lightBlue": string;
100
+ "color-lightBlue--light": string;
101
+ "color-lightBlue--lighter": string;
102
+ "color-lightBlue--lightest": string;
103
+ "color-lightBlue--dark": string;
104
+ "color-purple": string;
105
+ "color-purple--light": string;
106
+ "color-purple--lighter": string;
107
+ "color-purple--lightest": string;
108
+ "color-purple--dark": string;
109
+ "color-pink": string;
110
+ "color-pink--light": string;
111
+ "color-pink--lighter": string;
112
+ "color-pink--lightest": string;
113
+ "color-pink--dark": string;
114
+ "color-teal": string;
115
+ "color-teal--light": string;
116
+ "color-teal--lighter": string;
117
+ "color-teal--lightest": string;
118
+ "color-teal--dark": string;
119
+ "color-orange": string;
120
+ "color-orange--light": string;
121
+ "color-orange--lighter": string;
122
+ "color-orange--lightest": string;
123
+ "color-orange--dark": string;
124
+ "color-brown": string;
125
+ "color-brown--light": string;
126
+ "color-brown--lighter": string;
127
+ "color-brown--lightest": string;
128
+ "color-brown--dark": string;
129
+ "color-navy": string;
130
+ "color-navy--light": string;
131
+ "color-navy--lighter": string;
132
+ "color-navy--lightest": string;
133
+ "color-navy--dark": string;
134
+ "color-indigo": string;
135
+ "color-indigo--light": string;
136
+ "color-indigo--lighter": string;
137
+ "color-indigo--lightest": string;
138
+ "color-indigo--dark": string;
139
+ "color-white--rgb": string;
140
+ "color-white": string;
141
+ "color-black--rgb": string;
142
+ "color-black": string;
143
+ "radius-base": number;
144
+ "radius-large": number;
145
+ "radius-larger": number;
146
+ "radius-circle": number;
147
+ "base-unit": number;
148
+ "space-minuscule": number;
149
+ "space-smallest": number;
150
+ "space-smaller": number;
151
+ "space-small": number;
152
+ "space-base": number;
153
+ "space-large": number;
154
+ "space-larger": number;
155
+ "space-largest": number;
156
+ "space-extravagant": number;
157
+ "shadow-low": {
158
+ shadowColor: string;
159
+ shadowOffset: {
160
+ width: number;
161
+ height: number;
162
+ };
163
+ shadowOpacity: number;
164
+ shadowRadius: number;
165
+ elevation: number;
166
+ };
167
+ "shadow-base": {
168
+ shadowColor: string;
169
+ shadowOffset: {
170
+ width: number;
171
+ height: number;
172
+ };
173
+ shadowOpacity: number;
174
+ shadowRadius: number;
175
+ elevation: number;
176
+ };
177
+ "shadow-high": {
178
+ shadowColor: string;
179
+ shadowOffset: {
180
+ width: number;
181
+ height: number;
182
+ };
183
+ shadowOpacity: number;
184
+ shadowRadius: number;
185
+ elevation: number;
186
+ };
187
+ "timing-quick": number;
188
+ "timing-base": number;
189
+ "timing-slow": number;
190
+ "timing-slower": number;
191
+ "timing-slowest": number;
192
+ "timing-loading": number;
193
+ "timing-loading--extended": number;
194
+ "opacity-overlay": number;
195
+ "opacity-pressed": number;
196
+ "elevation-base": number;
197
+ "elevation-menu": number;
198
+ "elevation-datepicker": number;
199
+ "elevation-modal": number;
200
+ "elevation-tooltip": number;
201
+ "elevation-toast": number;
202
+ "typography--letterSpacing-base": number;
203
+ "typography--letterSpacing-loose": number;
204
+ "typography--fontFamily-normal": string;
205
+ "typography--fontFamily-display": string;
206
+ "typography--fontSize-extravagant": number;
207
+ "typography--fontSize-jumbo": number;
208
+ "typography--fontSize-largest": number;
209
+ "typography--fontSize-larger": number;
210
+ "typography--fontSize-large": number;
211
+ "typography--fontSize-base": number;
212
+ "typography--fontSize-small": number;
213
+ "typography--fontSize-smaller": number;
214
+ "typography--lineHeight-large": number;
215
+ "typography--lineHeight-base": number;
216
+ "typography--lineHeight-tight": number;
217
+ "typography--lineHeight-tighter": number;
218
+ "typography--lineHeight-tightest": number;
219
+ "typography--lineHeight-miniscule": number;
220
+ };
@@ -0,0 +1,220 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /* This file is automatically generated and should not be edited. */
4
+ export const JobberStyle = {
5
+ "border-base": 1,
6
+ "border-thick": 2,
7
+ "border-thicker": 4,
8
+ "border-thickest": 8,
9
+ "color-interactive": "rgb(125, 176, 14)",
10
+ "color-interactive--hover": "rgb(81, 114, 9)",
11
+ "color-destructive": "rgb(201, 66, 33)",
12
+ "color-destructive--hover": "rgb(128, 25, 0)",
13
+ "color-interactive--subtle": "rgba(101, 120, 132, 1)",
14
+ "color-interactive--subtle--hover": "rgb(66, 78, 86)",
15
+ "color-disabled": "rgb(181, 181, 181)",
16
+ "color-disabled--secondary": "rgb(225, 225, 225)",
17
+ "color-focus": "rgb(231, 213, 87)",
18
+ "color-critical": "rgb(201, 66, 33)",
19
+ "color-critical--surface": "rgb(255, 226, 219)",
20
+ "color-critical--onSurface": "rgb(128, 25, 0)",
21
+ "color-warning": "rgb(221, 195, 15)",
22
+ "color-warning--surface": "rgb(250, 246, 219)",
23
+ "color-warning--onSurface": "rgb(144, 127, 10)",
24
+ "color-success": "rgb(125, 176, 14)",
25
+ "color-success--surface": "rgb(236, 243, 219)",
26
+ "color-success--onSurface": "rgb(81, 114, 9)",
27
+ "color-informative": "rgb(60, 162, 224)",
28
+ "color-informative--surface": "rgb(226, 241, 250)",
29
+ "color-informative--onSurface": "rgb(39, 105, 146)",
30
+ "color-inactive": "rgb(77, 105, 116)",
31
+ "color-inactive--surface": "rgb(217, 223, 225)",
32
+ "color-inactive--onSurface": "rgb(1, 27, 37)",
33
+ "color-heading": "rgb(1, 41, 57)",
34
+ "color-text": "rgb(66, 78, 86)",
35
+ "color-text--secondary": "rgba(101, 120, 132, 1)",
36
+ "color-text--reverse": "rgba(255, 255, 255, 1)",
37
+ "color-text--reverse--secondary": "rgb(193, 201, 206)",
38
+ "color-surface": "rgba(255, 255, 255, 1)",
39
+ "color-surface--hover": "rgb(250, 246, 219)",
40
+ "color-surface--active": "rgb(236, 243, 219)",
41
+ "color-surface--background": "rgb(244, 244, 244)",
42
+ "color-surface--reverse": "rgb(1, 41, 57)",
43
+ "color-border": "rgb(225, 225, 225)",
44
+ "color-border--section": "rgb(1, 41, 57)",
45
+ "color-overlay": "rgba(0, 0, 0, 0.32)",
46
+ "color-overlay--dimmed": "rgba(255, 255, 255, 0.6)",
47
+ "color-brand": "rgb(125, 176, 14)",
48
+ "color-brand--highlight": "rgb(160, 215, 42)",
49
+ "color-request": "rgb(85, 106, 203)",
50
+ "color-quote": "rgb(179, 96, 150)",
51
+ "color-job": "rgb(187, 197, 32)",
52
+ "color-visit": "rgb(125, 176, 14)",
53
+ "color-task": "rgb(75, 106, 150)",
54
+ "color-event": "rgb(221, 195, 15)",
55
+ "color-invoice": "rgb(136, 112, 196)",
56
+ "color-payments": "rgb(243, 150, 36)",
57
+ "color-client": "rgb(62, 173, 146)",
58
+ "color-blue": "rgb(1, 41, 57)",
59
+ "color-blue--light": "rgb(77, 105, 116)",
60
+ "color-blue--lighter": "rgb(153, 169, 176)",
61
+ "color-blue--lightest": "rgb(217, 223, 225)",
62
+ "color-blue--dark": "rgb(1, 27, 37)",
63
+ "color-green": "rgb(125, 176, 14)",
64
+ "color-green--light": "rgb(164, 200, 86)",
65
+ "color-green--lighter": "rgb(203, 223, 159)",
66
+ "color-green--lightest": "rgb(236, 243, 219)",
67
+ "color-green--dark": "rgb(81, 114, 9)",
68
+ "color-lime": "rgb(153, 193, 70)",
69
+ "color-lime--light": "rgb(184, 212, 126)",
70
+ "color-lime--lighter": "rgb(214, 230, 181)",
71
+ "color-lime--lightest": "rgb(240, 246, 227)",
72
+ "color-lime--dark": "rgb(99, 125, 46)",
73
+ "color-yellowGreen": "rgb(187, 197, 32)",
74
+ "color-yellowGreen--light": "rgb(207, 214, 99)",
75
+ "color-yellowGreen--lighter": "rgb(228, 232, 166)",
76
+ "color-yellowGreen--lightest": "rgb(245, 246, 222)",
77
+ "color-yellowGreen--dark": "rgb(122, 128, 21)",
78
+ "color-yellow": "rgb(221, 195, 15)",
79
+ "color-yellow--light": "rgb(231, 213, 87)",
80
+ "color-yellow--lighter": "rgb(241, 231, 159)",
81
+ "color-yellow--lightest": "rgb(250, 246, 219)",
82
+ "color-yellow--dark": "rgb(144, 127, 10)",
83
+ "color-red": "rgb(201, 66, 33)",
84
+ "color-red--light": "rgb(233, 141, 119)",
85
+ "color-red--lighter": "rgb(255, 206, 194)",
86
+ "color-red--lightest": "rgb(255, 226, 219)",
87
+ "color-red--dark": "rgb(128, 25, 0)",
88
+ "color-grey": "rgb(181, 181, 181)",
89
+ "color-grey--light": "rgb(203, 203, 203)",
90
+ "color-grey--lighter": "rgb(225, 225, 225)",
91
+ "color-grey--lightest": "rgb(244, 244, 244)",
92
+ "color-grey--dark": "rgb(118, 118, 118)",
93
+ "color-greyBlue--rgb": "101, 120, 132",
94
+ "color-greyBlue": "rgba(101, 120, 132, 1)",
95
+ "color-greyBlue--light": "rgb(147, 161, 169)",
96
+ "color-greyBlue--lighter": "rgb(193, 201, 206)",
97
+ "color-greyBlue--lightest": "rgb(232, 235, 237)",
98
+ "color-greyBlue--dark": "rgb(66, 78, 86)",
99
+ "color-lightBlue": "rgb(60, 162, 224)",
100
+ "color-lightBlue--light": "rgb(119, 190, 233)",
101
+ "color-lightBlue--lighter": "rgb(177, 218, 243)",
102
+ "color-lightBlue--lightest": "rgb(226, 241, 250)",
103
+ "color-lightBlue--dark": "rgb(39, 105, 146)",
104
+ "color-purple": "rgb(136, 112, 196)",
105
+ "color-purple--light": "rgb(172, 155, 214)",
106
+ "color-purple--lighter": "rgb(207, 198, 231)",
107
+ "color-purple--lightest": "rgb(237, 234, 246)",
108
+ "color-purple--dark": "rgb(88, 73, 127)",
109
+ "color-pink": "rgb(179, 96, 150)",
110
+ "color-pink--light": "rgb(202, 144, 182)",
111
+ "color-pink--lighter": "rgb(225, 191, 213)",
112
+ "color-pink--lightest": "rgb(244, 231, 239)",
113
+ "color-pink--dark": "rgb(116, 62, 98)",
114
+ "color-teal": "rgb(62, 173, 146)",
115
+ "color-teal--light": "rgb(120, 198, 179)",
116
+ "color-teal--lighter": "rgb(178, 222, 211)",
117
+ "color-teal--lightest": "rgb(226, 243, 239)",
118
+ "color-teal--dark": "rgb(40, 112, 95)",
119
+ "color-orange": "rgb(243, 150, 36)",
120
+ "color-orange--light": "rgb(247, 182, 102)",
121
+ "color-orange--lighter": "rgb(250, 213, 167)",
122
+ "color-orange--lightest": "rgb(253, 239, 222)",
123
+ "color-orange--dark": "rgb(158, 98, 23)",
124
+ "color-brown": "rgb(130, 107, 70)",
125
+ "color-brown--light": "rgb(168, 151, 126)",
126
+ "color-brown--lighter": "rgb(205, 196, 181)",
127
+ "color-brown--lightest": "rgb(236, 233, 227)",
128
+ "color-brown--dark": "rgb(85, 70, 46)",
129
+ "color-navy": "rgb(75, 106, 150)",
130
+ "color-navy--light": "rgb(129, 151, 182)",
131
+ "color-navy--lighter": "rgb(183, 195, 213)",
132
+ "color-navy--lightest": "rgb(228, 233, 239)",
133
+ "color-navy--dark": "rgb(49, 69, 98)",
134
+ "color-indigo": "rgb(85, 106, 203)",
135
+ "color-indigo--light": "rgb(136, 151, 219)",
136
+ "color-indigo--lighter": "rgb(187, 195, 234)",
137
+ "color-indigo--lightest": "rgb(230, 233, 247)",
138
+ "color-indigo--dark": "rgb(55, 69, 132)",
139
+ "color-white--rgb": "255, 255, 255",
140
+ "color-white": "rgba(255, 255, 255, 1)",
141
+ "color-black--rgb": "0, 0, 0",
142
+ "color-black": "rgba(0, 0, 0, 1)",
143
+ "radius-base": 2,
144
+ "radius-large": 4,
145
+ "radius-larger": 8,
146
+ "radius-circle": 100,
147
+ "base-unit": 16,
148
+ "space-minuscule": 1,
149
+ "space-smallest": 2,
150
+ "space-smaller": 4,
151
+ "space-small": 8,
152
+ "space-base": 16,
153
+ "space-large": 24,
154
+ "space-larger": 32,
155
+ "space-largest": 48,
156
+ "space-extravagant": 64,
157
+ "shadow-low": {
158
+ "shadowColor": "rgba(0, 0, 0, 1)",
159
+ "shadowOffset": {
160
+ "width": 0,
161
+ "height": 1
162
+ },
163
+ "shadowOpacity": 0.2,
164
+ "shadowRadius": 1,
165
+ "elevation": 2
166
+ },
167
+ "shadow-base": {
168
+ "shadowColor": "rgba(0,0,0,0.9)",
169
+ "shadowOffset": {
170
+ "width": 0,
171
+ "height": 1
172
+ },
173
+ "shadowOpacity": 0.16,
174
+ "shadowRadius": 4,
175
+ "elevation": 6
176
+ },
177
+ "shadow-high": {
178
+ "shadowColor": "rgba(0,0,0,0.5)",
179
+ "shadowOffset": {
180
+ "width": 0,
181
+ "height": 8
182
+ },
183
+ "shadowOpacity": 0.125,
184
+ "shadowRadius": 16,
185
+ "elevation": 12
186
+ },
187
+ "timing-quick": 100,
188
+ "timing-base": 200,
189
+ "timing-slow": 300,
190
+ "timing-slower": 400,
191
+ "timing-slowest": 500,
192
+ "timing-loading": 1000,
193
+ "timing-loading--extended": 2000,
194
+ "opacity-overlay": 0.8,
195
+ "opacity-pressed": 0.6,
196
+ "elevation-base": 1,
197
+ "elevation-menu": 6,
198
+ "elevation-datepicker": 6,
199
+ "elevation-modal": 1001,
200
+ "elevation-tooltip": 1002,
201
+ "elevation-toast": 1003,
202
+ "typography--letterSpacing-base": 0,
203
+ "typography--letterSpacing-loose": 0.4,
204
+ "typography--fontFamily-normal": "\"Inter\", Helvetica, Arial, sans-serif",
205
+ "typography--fontFamily-display": "\"Jobber Pro\", \"Poppins\", Helvetica, Arial, sans-serif",
206
+ "typography--fontSize-extravagant": 48,
207
+ "typography--fontSize-jumbo": 36,
208
+ "typography--fontSize-largest": 24,
209
+ "typography--fontSize-larger": 20,
210
+ "typography--fontSize-large": 16,
211
+ "typography--fontSize-base": 14,
212
+ "typography--fontSize-small": 12,
213
+ "typography--fontSize-smaller": 10,
214
+ "typography--lineHeight-large": 1.34,
215
+ "typography--lineHeight-base": 1.25,
216
+ "typography--lineHeight-tight": 1.2,
217
+ "typography--lineHeight-tighter": 1.143,
218
+ "typography--lineHeight-tightest": 1.12,
219
+ "typography--lineHeight-miniscule": 1.08
220
+ }