timvir 0.2.39 → 0.2.43

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +200 -47
  4. package/blocks/Arbitrary/styles.css +222 -6
  5. package/blocks/Code/Code.d.ts +0 -6
  6. package/blocks/Code/docs/index.mdx +0 -11
  7. package/blocks/Code/index.js +211 -110
  8. package/blocks/Code/styles.css +158 -15
  9. package/blocks/ColorBar/docs/index.mdx +8 -2
  10. package/blocks/ColorBar/index.js +205 -46
  11. package/blocks/ColorBar/styles.css +157 -4
  12. package/blocks/ColorBook/docs/index.mdx +1 -1
  13. package/blocks/ColorBook/index.js +205 -39
  14. package/blocks/ColorBook/styles.css +224 -6
  15. package/blocks/Cover/index.js +175 -34
  16. package/blocks/Cover/styles.css +82 -0
  17. package/blocks/Exhibit/index.js +199 -40
  18. package/blocks/Exhibit/styles.css +126 -3
  19. package/blocks/Font/index.js +196 -58
  20. package/blocks/Font/styles.css +142 -8
  21. package/blocks/Grid/docs/index.mdx +4 -4
  22. package/blocks/Grid/index.js +183 -33
  23. package/blocks/Grid/styles.css +78 -1
  24. package/blocks/Icon/docs/index.mdx +13 -13
  25. package/blocks/Icon/index.js +25 -43
  26. package/blocks/Icon/styles.css +117 -5
  27. package/blocks/Message/docs/index.mdx +5 -8
  28. package/blocks/Message/index.js +240 -54
  29. package/blocks/Message/styles.css +154 -6
  30. package/blocks/Swatch/docs/index.mdx +16 -16
  31. package/blocks/Swatch/index.js +187 -34
  32. package/blocks/Swatch/styles.css +142 -4
  33. package/blocks/Viewport/index.js +209 -89
  34. package/blocks/Viewport/styles.css +313 -14
  35. package/blocks/WebLink/index.js +199 -47
  36. package/blocks/WebLink/styles.css +226 -8
  37. package/blocks/styles.css +2158 -97
  38. package/builtins/components.d.ts +2 -2
  39. package/builtins/index.d.ts +0 -1
  40. package/builtins/index.js +307 -243
  41. package/builtins/styles.css +323 -25
  42. package/context/index.d.ts +6 -1
  43. package/core/components/Commands/Commands.d.ts +5 -1
  44. package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
  45. package/core/components/Page/Page.d.ts +12 -3
  46. package/core/components/Page/docs/index.mdx +44 -11
  47. package/core/index.d.ts +191 -2
  48. package/core/index.js +415 -256
  49. package/core/layout.d.ts +41 -0
  50. package/core/styles.css +857 -88
  51. package/global.css +79 -0
  52. package/internal/cx.d.ts +1 -0
  53. package/package.json +1 -2
  54. package/search/index.js +2 -223
  55. package/styles.css +3426 -235
  56. package/blocks/Code/theme.d.ts +0 -2
  57. package/bus/styles.css +0 -1
  58. package/context/styles.css +0 -1
  59. package/core/theme/index.d.ts +0 -1
  60. package/hooks/styles.css +0 -1
  61. package/search/Search/internal/Dialog.d.ts +0 -20
  62. package/search/Search/internal/index.d.ts +0 -1
  63. package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
  64. package/search/SearchBoxInput/docs/api.mdx +0 -76
  65. package/search/SearchBoxInput/docs/index.mdx +0 -6
  66. package/search/SearchBoxInput/index.d.ts +0 -1
  67. package/search/SearchBoxInput/samples/basic.d.ts +0 -1
  68. package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
  69. package/search/SearchBoxListItem/docs/api.mdx +0 -76
  70. package/search/SearchBoxListItem/docs/index.mdx +0 -30
  71. package/search/SearchBoxListItem/index.d.ts +0 -1
  72. package/search/SearchBoxListItem/samples/basic.d.ts +0 -1
  73. package/search/styles.css +0 -16
@@ -16,13 +16,13 @@ import { Code } from "../../Code";
16
16
  ## Variants
17
17
 
18
18
  <Grid>
19
- <Exhibit caption="info">
19
+ <Exhibit caption="info" style={{ margin: 0, gridColumn: "initial" }}>
20
20
  <Sample variant="basic" props={{ variant: "info" }} />
21
21
  </Exhibit>
22
- <Exhibit caption="warning">
22
+ <Exhibit caption="warning" style={{ margin: 0, gridColumn: "initial" }}>
23
23
  <Sample variant="basic" props={{ variant: "warning" }} />
24
24
  </Exhibit>
25
- <Exhibit caption="alert">
25
+ <Exhibit caption="alert" style={{ margin: 0, gridColumn: "initial" }}>
26
26
  <Sample variant="basic" props={{ variant: "alert" }} />
27
27
  </Exhibit>
28
28
  </Grid>
@@ -32,20 +32,17 @@ import { Code } from "../../Code";
32
32
  Make the title bold and place it before the message, or use a level 3 heading. You can use arbitrary markdown inside the message.
33
33
 
34
34
  <Grid>
35
- <Exhibit caption="Inline title">
35
+ <Exhibit caption="Inline title" style={{ margin: 0, gridColumn: "initial" }}>
36
36
  <Sample variant="basic">
37
37
 
38
-
39
38
  **Short Messages** should place the title in front of the message and make it stand out.
40
39
 
41
40
  </Sample>
42
41
  </Exhibit>
43
42
 
44
-
45
- <Exhibit caption="Title as a separate block elment">
43
+ <Exhibit caption="Title as a separate block elment" style={{ margin: 0, gridColumn: "initial" }}>
46
44
  <Sample variant="basic">
47
45
 
48
-
49
46
  ### Longer Messages
50
47
 
51
48
  Longer messages should make the title a separate block element. This body uses [links](#) and _italic_ text.
@@ -2,75 +2,261 @@ import * as React from 'react';
2
2
  import * as Icons from 'react-feather';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
 
5
- // src/css.ts
6
-
7
- // src/cx.ts
8
- var cx = function cx2() {
9
- const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
10
- const atomicClasses = {};
11
- const nonAtomicClasses = [];
12
- presentClassNames.forEach((arg) => {
13
- const individualClassNames = arg ? arg.split(" ") : [];
14
- individualClassNames.forEach((className) => {
15
- if (className.startsWith("atm_")) {
16
- const [, keyHash] = className.split("_");
17
- atomicClasses[keyHash] = className;
18
- } else {
19
- nonAtomicClasses.push(className);
20
- }
5
+ var styleq = {};
6
+ var hasRequiredStyleq;
7
+ function requireStyleq() {
8
+ if (hasRequiredStyleq) return styleq;
9
+ hasRequiredStyleq = 1;
10
+ Object.defineProperty(styleq, "__esModule", {
11
+ value: true
21
12
  });
22
- });
23
- const result = [];
24
- for (const keyHash in atomicClasses) {
25
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
26
- result.push(atomicClasses[keyHash]);
13
+ styleq.styleq = void 0;
14
+ var cache = new WeakMap();
15
+ var compiledKey = '$$css';
16
+ function createStyleq(options) {
17
+ var disableCache;
18
+ var disableMix;
19
+ var transform;
20
+ if (options != null) {
21
+ disableCache = options.disableCache === true;
22
+ disableMix = options.disableMix === true;
23
+ transform = options.transform;
24
+ }
25
+ return function styleq() {
26
+ var definedProperties = [];
27
+ var className = '';
28
+ var inlineStyle = null;
29
+ var debugString = '';
30
+ var nextCache = disableCache ? null : cache;
31
+ var styles = new Array(arguments.length);
32
+ for(var i = 0; i < arguments.length; i++){
33
+ styles[i] = arguments[i];
34
+ }
35
+ while(styles.length > 0){
36
+ var possibleStyle = styles.pop();
37
+ if (possibleStyle == null || possibleStyle === false) {
38
+ continue;
39
+ }
40
+ if (Array.isArray(possibleStyle)) {
41
+ for(var _i = 0; _i < possibleStyle.length; _i++){
42
+ styles.push(possibleStyle[_i]);
43
+ }
44
+ continue;
45
+ }
46
+ var style = transform != null ? transform(possibleStyle) : possibleStyle;
47
+ if (style.$$css != null) {
48
+ var classNameChunk = '';
49
+ if (nextCache != null && nextCache.has(style)) {
50
+ var cacheEntry = nextCache.get(style);
51
+ if (cacheEntry != null) {
52
+ classNameChunk = cacheEntry[0];
53
+ debugString = cacheEntry[2];
54
+ definedProperties.push.apply(definedProperties, cacheEntry[1]);
55
+ nextCache = cacheEntry[3];
56
+ }
57
+ } else {
58
+ var definedPropertiesChunk = [];
59
+ for(var prop in style){
60
+ var value = style[prop];
61
+ if (prop === compiledKey) {
62
+ var compiledKeyValue = style[prop];
63
+ if (compiledKeyValue !== true) {
64
+ debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;
65
+ }
66
+ continue;
67
+ }
68
+ if (typeof value === 'string' || value === null) {
69
+ if (!definedProperties.includes(prop)) {
70
+ definedProperties.push(prop);
71
+ if (nextCache != null) {
72
+ definedPropertiesChunk.push(prop);
73
+ }
74
+ if (typeof value === 'string') {
75
+ classNameChunk += classNameChunk ? ' ' + value : value;
76
+ }
77
+ }
78
+ } else {
79
+ console.error("styleq: ".concat(prop, " typeof ").concat(String(value), " is not \"string\" or \"null\"."));
80
+ }
81
+ }
82
+ if (nextCache != null) {
83
+ var weakMap = new WeakMap();
84
+ nextCache.set(style, [
85
+ classNameChunk,
86
+ definedPropertiesChunk,
87
+ debugString,
88
+ weakMap
89
+ ]);
90
+ nextCache = weakMap;
91
+ }
92
+ }
93
+ if (classNameChunk) {
94
+ className = className ? classNameChunk + ' ' + className : classNameChunk;
95
+ }
96
+ } else {
97
+ if (disableMix) {
98
+ if (inlineStyle == null) {
99
+ inlineStyle = {};
100
+ }
101
+ inlineStyle = Object.assign({}, style, inlineStyle);
102
+ } else {
103
+ var subStyle = null;
104
+ for(var _prop in style){
105
+ var _value = style[_prop];
106
+ if (_value !== undefined) {
107
+ if (!definedProperties.includes(_prop)) {
108
+ if (_value != null) {
109
+ if (inlineStyle == null) {
110
+ inlineStyle = {};
111
+ }
112
+ if (subStyle == null) {
113
+ subStyle = {};
114
+ }
115
+ subStyle[_prop] = _value;
116
+ }
117
+ definedProperties.push(_prop);
118
+ nextCache = null;
119
+ }
120
+ }
121
+ }
122
+ if (subStyle != null) {
123
+ inlineStyle = Object.assign(subStyle, inlineStyle);
124
+ }
125
+ }
126
+ }
127
+ }
128
+ var styleProps = [
129
+ className,
130
+ inlineStyle,
131
+ debugString
132
+ ];
133
+ return styleProps;
134
+ };
27
135
  }
28
- }
29
- result.push(...nonAtomicClasses);
30
- return result.join(" ");
31
- };
32
- var cx_default = cx;
136
+ var styleq$1 = styleq.styleq = createStyleq();
137
+ styleq$1.factory = createStyleq;
138
+ return styleq;
139
+ }
140
+ var styleqExports = requireStyleq();
141
+ function props(...styles) {
142
+ const [className, style, dataStyleSrc] = styleqExports.styleq(styles);
143
+ const result = {};
144
+ if (className != null && className !== '') {
145
+ result.className = className;
146
+ }
147
+ if (style != null && Object.keys(style).length > 0) {
148
+ result.style = style;
149
+ }
150
+ if (dataStyleSrc != null && dataStyleSrc !== '') {
151
+ result['data-style-src'] = dataStyleSrc;
152
+ }
153
+ return result;
154
+ }
155
+
156
+ const layoutStyles = {
157
+ block: {
158
+ kBCFzs: "timvir-s-htle6",
159
+ k7Eaqz: "timvir-s-euugli",
160
+ kogj98: "timvir-s-1t4wa6b",
161
+ $$css: true
162
+ }};
33
163
 
34
- /**
35
- * The underlying DOM element which is rendered by this component.
36
- */
37
164
  const Root = "div";
38
- function Message(props, ref) {
165
+ function Message(props$1, ref) {
39
166
  const {
40
167
  variant,
41
- className,
42
168
  children,
43
169
  ...rest
44
- } = props;
170
+ } = props$1;
45
171
  return /*#__PURE__*/jsxs(Root, {
46
172
  ref: ref,
47
- className: cx_default(className, "r1ssql2z", variant !== undefined && variantStyles[variant]),
173
+ ...props(layoutStyles.block, styles.root, variant && styles[variant]),
48
174
  ...rest,
49
- children: [variant && /*#__PURE__*/jsx("div", {
50
- className: icon,
51
- children: {
52
- info: /*#__PURE__*/jsx(Icons.ChevronsRight, {
53
- size: "1.5em"
54
- }),
55
- warning: /*#__PURE__*/jsx(Icons.AlertCircle, {
56
- size: "1.5em"
57
- }),
58
- alert: /*#__PURE__*/jsx(Icons.XOctagon, {
59
- size: "1.5em"
60
- })
61
- }[variant]
62
- }), /*#__PURE__*/jsx("div", {
63
- className: "dhvu07f",
64
- children: children
175
+ children: [variant && {
176
+ info: /*#__PURE__*/jsx(Icons.ChevronsRight, {
177
+ className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1h1xus1"
178
+ }),
179
+ warning: /*#__PURE__*/jsx(Icons.AlertCircle, {
180
+ className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-4u77bm"
181
+ }),
182
+ alert: /*#__PURE__*/jsx(Icons.XOctagon, {
183
+ className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1mz1spe"
184
+ })
185
+ }[variant], /*#__PURE__*/jsx("div", {
186
+ children: React.Children.toArray(children).map((child, index, array) => {
187
+ if (/*#__PURE__*/React.isValidElement(child)) {
188
+ const style = {
189
+ marginTop: index === 0 ? "0" : undefined,
190
+ marginBottom: index === array.length - 1 ? "0" : undefined
191
+ };
192
+ if (Object.keys(style).length > 0) {
193
+ const props = child.props;
194
+ return /*#__PURE__*/React.cloneElement(child, {
195
+ style: {
196
+ ...props?.style,
197
+ ...style
198
+ }
199
+ });
200
+ }
201
+ return child;
202
+ }
203
+ return child;
204
+ })
65
205
  })]
66
206
  });
67
207
  }
68
208
  var Message$1 = /*#__PURE__*/React.forwardRef(Message);
69
- const icon = "i1dz18jz";
70
- const variantStyles = {
71
- info: "i41wipx",
72
- warning: "wi7iy6",
73
- alert: "a1d5oxsn"
209
+ const styles = {
210
+ root: {
211
+ kVAEAm: "timvir-s-1n2onr6",
212
+ kWkggS: "timvir-s-m75j3u",
213
+ kMwMTN: "timvir-s-1mqxbix",
214
+ kaIpWk: "timvir-s-18zih8k",
215
+ kmVPX3: "timvir-s-qb5aye",
216
+ kGVxlE: "timvir-s-1w911z",
217
+ k1xSpc: "timvir-s-78zum5",
218
+ kGNEyG: "timvir-s-1cy8zhl",
219
+ kGuDYH: "timvir-s-kpwil5",
220
+ kLWn49: "timvir-s-1evy7pa",
221
+ $$css: true
222
+ },
223
+ icon: {
224
+ kUk6DE: "timvir-s-3psx0u",
225
+ k1xSpc: "timvir-s-1lliihq",
226
+ kVAEAm: "timvir-s-1n2onr6",
227
+ k87sOh: "timvir-s-xk6nc9",
228
+ kogj98: "timvir-s-jvto2c",
229
+ kzqmXN: "timvir-s-dpf0h8",
230
+ kZKoxP: "timvir-s-ozkzq6",
231
+ $$css: true
232
+ },
233
+ info: {
234
+ kWkggS: "timvir-s-1a1mm2c",
235
+ kMwMTN: "timvir-s-1mqxbix",
236
+ $$css: true
237
+ },
238
+ warning: {
239
+ kWkggS: "timvir-s-1nd4xj2",
240
+ kMwMTN: "timvir-s-1mqxbix",
241
+ $$css: true
242
+ },
243
+ alert: {
244
+ kWkggS: "timvir-s-18vcsbs",
245
+ kMwMTN: "timvir-s-1mqxbix",
246
+ $$css: true
247
+ },
248
+ iconInfo: {
249
+ kMwMTN: "timvir-s-1h1xus1",
250
+ $$css: true
251
+ },
252
+ iconWarning: {
253
+ kMwMTN: "timvir-s-4u77bm",
254
+ $$css: true
255
+ },
256
+ iconAlert: {
257
+ kMwMTN: "timvir-s-1mz1spe",
258
+ $$css: true
259
+ }
74
260
  };
75
261
 
76
262
  export { Message$1 as Message };
@@ -1,7 +1,155 @@
1
- .r1ssql2z{position:relative;background:var(--c-p-0);color:black;border-radius:3px;padding:16px 24px 16px 24px;box-shadow:inset 0 0 0 1px rgba(16, 22, 26, 0.2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;font-size:0.875rem;line-height:1.5;}
2
- .dhvu07f>*:first-child{margin-top:0;}.dhvu07f>*:last-child{margin-bottom:0;}.dhvu07f>h3:before{display:none;}
3
- .i1dz18jz{position:relative;top:3px;margin:-2px 12px 0 -4px;}.i1dz18jz>svg{display:block;}
4
- .i41wipx{background:#f0f2fc;color:black;}.i41wipx .i1dz18jz{color:#2a47d5;}
5
- .wi7iy6{background:#fcf9f0;color:black;}.wi7iy6 .i1dz18jz{color:#a68521;}
6
- .a1d5oxsn{background:#fcf0f0;color:black;}.a1d5oxsn .i1dz18jz{color:#da4444;}
1
+ @layer priority1 {
2
+ .timvir-s-1f9b50e {
3
+ --timvir-margin: var(--timvir-page-margin);
4
+ }
7
5
 
6
+ .timvir-s-1hz7z82 {
7
+ --timvir-page-margin: 16px;
8
+ }
9
+
10
+ @media (width >= 48rem) {
11
+ .timvir-s-1i3za4p.timvir-s-1i3za4p {
12
+ --timvir-page-margin: 24px;
13
+ }
14
+ }
15
+ }
16
+
17
+ @layer priority2 {
18
+ .timvir-s-jvto2c {
19
+ margin: -2px 12px 0 -4px;
20
+ }
21
+
22
+ .timvir-s-1t4wa6b {
23
+ margin: 0 0 2rem;
24
+ }
25
+
26
+ .timvir-s-qb5aye {
27
+ padding: 16px 24px;
28
+ }
29
+ }
30
+
31
+ @layer priority3 {
32
+ .timvir-s-18zih8k {
33
+ border-radius: 3px;
34
+ }
35
+
36
+ .timvir-s-3psx0u {
37
+ flex: none;
38
+ }
39
+
40
+ .timvir-s-htle6 {
41
+ grid-column: lc / rc;
42
+ }
43
+
44
+ .timvir-s-1ywaqmw {
45
+ grid-column: le / re;
46
+ }
47
+
48
+ .timvir-s-bldiei {
49
+ grid-column: lex / rex;
50
+ }
51
+ }
52
+
53
+ @layer priority4 {
54
+ .timvir-s-1cy8zhl {
55
+ align-items: flex-start;
56
+ }
57
+
58
+ .timvir-s-1a1mm2c {
59
+ background-color: #f0f2fc;
60
+ }
61
+
62
+ .timvir-s-18vcsbs {
63
+ background-color: #fcf0f0;
64
+ }
65
+
66
+ .timvir-s-1nd4xj2 {
67
+ background-color: #fcf9f0;
68
+ }
69
+
70
+ .timvir-s-m75j3u {
71
+ background-color: var(--c-p-0);
72
+ }
73
+
74
+ .timvir-s-1w911z {
75
+ box-shadow: inset 0 0 0 1px #10161a33;
76
+ }
77
+
78
+ .timvir-s-1h1xus1 {
79
+ color: #2a47d5;
80
+ }
81
+
82
+ .timvir-s-4u77bm {
83
+ color: #a68521;
84
+ }
85
+
86
+ .timvir-s-1mz1spe {
87
+ color: #da4444;
88
+ }
89
+
90
+ .timvir-s-1mqxbix {
91
+ color: #000;
92
+ }
93
+
94
+ .timvir-s-1lliihq {
95
+ display: block;
96
+ }
97
+
98
+ .timvir-s-78zum5 {
99
+ display: flex;
100
+ }
101
+
102
+ .timvir-s-rvj5dj {
103
+ display: grid;
104
+ }
105
+
106
+ .timvir-s-kpwil5 {
107
+ font-size: .875rem;
108
+ }
109
+
110
+ .timvir-s-3xbxsf {
111
+ grid-auto-rows: min-content;
112
+ }
113
+
114
+ .timvir-s-12c0rpe {
115
+ grid-template-columns: [le] var(--timvir-page-margin) [lex lc] 1fr[rc rex] var(--timvir-page-margin) [re];
116
+ }
117
+
118
+ .timvir-s-1evy7pa {
119
+ line-height: 1.5;
120
+ }
121
+
122
+ .timvir-s-1n2onr6 {
123
+ position: relative;
124
+ }
125
+
126
+ @media (width >= 72rem) {
127
+ .timvir-s-1mxrek7.timvir-s-1mxrek7 {
128
+ grid-template-columns: [le] 1fr var(--timvir-page-margin) [lex] minmax(0, 12rem) [lc] 48rem[rc] minmax(0, 12rem) [rex] var(--timvir-page-margin) 1fr[re];
129
+ }
130
+ }
131
+
132
+ @media (width >= 48rem) {
133
+ .timvir-s-9q0i6z.timvir-s-9q0i6z {
134
+ grid-template-columns: [le] var(--timvir-page-margin) [lex] 1fr[lc] minmax(0, 48rem) [rc] 1fr[rex] var(--timvir-page-margin) [re];
135
+ }
136
+ }
137
+ }
138
+
139
+ @layer priority5 {
140
+ .timvir-s-ozkzq6 {
141
+ height: 1.5em;
142
+ }
143
+
144
+ .timvir-s-euugli {
145
+ min-width: 0;
146
+ }
147
+
148
+ .timvir-s-xk6nc9 {
149
+ top: 3px;
150
+ }
151
+
152
+ .timvir-s-dpf0h8 {
153
+ width: 1.5em;
154
+ }
155
+ }
@@ -5,35 +5,35 @@ import { Grid } from "../../Grid";
5
5
  # Swatch
6
6
 
7
7
  <Exhibit caption="Plain color" style={{ marginBottom: 24 }}>
8
- <Swatch value="#FF00FF" />
8
+ <Swatch value="#FF00FF" style={{ margin: 0 }} />
9
9
  </Exhibit>
10
10
 
11
11
  <Exhibit caption="Give the color a meaningful name" style={{ marginBottom: 24 }}>
12
- <Swatch value="#FF00FF" name="Primary" />
12
+ <Swatch value="#FF00FF" name="Primary" style={{ margin: 0 }} />
13
13
  </Exhibit>
14
14
 
15
15
  <Exhibit caption="Add a note about its ancenstry (how or where from it was derived)" style={{ marginBottom: 24 }}>
16
- <Swatch value="#FF00FF" name="Primary" ancestry="Red 700" />
16
+ <Swatch value="#FF00FF" name="Primary" ancestry="Red 700" style={{ margin: 0 }} />
17
17
  </Exhibit>
18
18
 
19
19
  ## In a Grid
20
20
 
21
21
  <Grid style={{ gridGap: 6 }}>
22
- <Swatch value="#0E5A8A" contrastValue="#FFFFFF" name="@blue1" />
23
- <Swatch value="#106BA3" contrastValue="#FFFFFF" name="@blue2" />
24
- <Swatch value="#137CBD" contrastValue="#FFFFFF" name="@blue3" />
25
- <Swatch value="#2B95D6" contrastValue="#000000" name="@blue4" />
26
- <Swatch value="#48AFF0" contrastValue="#000000" name="@blue5" />
22
+ <Swatch value="#0E5A8A" contrastValue="#FFFFFF" name="@blue1" style={{ margin: 0, gridColumn: "initial" }} />
23
+ <Swatch value="#106BA3" contrastValue="#FFFFFF" name="@blue2" style={{ margin: 0, gridColumn: "initial" }} />
24
+ <Swatch value="#137CBD" contrastValue="#FFFFFF" name="@blue3" style={{ margin: 0, gridColumn: "initial" }} />
25
+ <Swatch value="#2B95D6" contrastValue="#000000" name="@blue4" style={{ margin: 0, gridColumn: "initial" }} />
26
+ <Swatch value="#48AFF0" contrastValue="#000000" name="@blue5" style={{ margin: 0, gridColumn: "initial" }} />
27
27
  </Grid>
28
28
 
29
29
  ## Another example
30
30
 
31
- <div style={{display: "grid", gridGap: 6 }}>
32
- <Swatch value="#F58221" name="Access" ancestry="Orange 300" />
33
- <Swatch value="#D9418D" name="Use" ancestry="Red 500" />
34
- <Swatch value="#B87AF2" name="Innovation" ancestry="Violett 500" />
35
- <Swatch value="#4188D9" name="Jobs" ancestry="Blue 500" />
36
- <Swatch value="#4AE6CC" name="Society" ancestry="…" />
37
- <Swatch value="#1FD35B" name="Trust" ancestry="Green 400" />
38
- <Swatch value="#C4D534" name="Market Openness" ancestry="…" />
31
+ <div style={{ gridColumn: "lc / rc", display: "grid", gridGap: 6 }}>
32
+ <Swatch value="#F58221" name="Access" ancestry="Orange 300" style={{ margin: 0, gridColumn: "initial" }} />
33
+ <Swatch value="#D9418D" name="Use" ancestry="Red 500" style={{ margin: 0, gridColumn: "initial" }} />
34
+ <Swatch value="#B87AF2" name="Innovation" ancestry="Violett 500" style={{ margin: 0, gridColumn: "initial" }} />
35
+ <Swatch value="#4188D9" name="Jobs" ancestry="Blue 500" style={{ margin: 0, gridColumn: "initial" }} />
36
+ <Swatch value="#4AE6CC" name="Society" ancestry="…" style={{ margin: 0, gridColumn: "initial" }} />
37
+ <Swatch value="#1FD35B" name="Trust" ancestry="Green 400" style={{ margin: 0, gridColumn: "initial" }} />
38
+ <Swatch value="#C4D534" name="Market Openness" ancestry="…" style={{ margin: 0, gridColumn: "initial" }} />
39
39
  </div>