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
TODO: decide what to do with Spacing/Sizing since they are pretty much rolled up into Dimensions?
32
+
25
33
Spacing props like `margin` and `padding` accept values on a **4px grid**. These are specified in `px` and get converted to `rem`. In addition to numbers, these named options are available:
26
34
27
35
-`edge-to-text` – default spacing between the edge of a control and its text. Relative to control height.
@@ -38,6 +46,7 @@ Size props like `width` and `height` accept arbitrary pixel values. Values are c
38
46
## Text
39
47
40
48
// TODO: edit copy
49
+
41
50
Spectrum 2 typography is applied via the `font` shorthand, which sets `fontFamily`, `fontSize`, `fontWeight`, `lineHeight`, and `color`. You can override any of these individually.
42
51
43
52
```tsx
@@ -55,8 +64,12 @@ Type scales include: UI, Body, Heading, Title, Detail, and Code. Each scale has
@@ -740,6 +741,11 @@ export function StyleMacroProperties({properties}: StyleMacroPropertiesProps) {
740
741
<React.Fragmentkey={`type-${i}`}>
741
742
<Punctuation>{' | '}</Punctuation>
742
743
<TypePopovername={typeName}>
744
+
{typeName==='baseColors'&&(
745
+
<pclassName={style({font: 'body'})}>
746
+
A base set of colors defined by Spectrum. See the global and semantic colors in the color reference above.
747
+
</p>
748
+
)}
743
749
{typeName==='LengthPercentage'&&(
744
750
<pclassName={style({font: 'body'})}>
745
751
A CSS length value with percentage or viewport units. Examples: <codeclassName={codeStyle}>'50%'</code>, <codeclassName={codeStyle}>'100vw'</code>, <codeclassName={codeStyle}>'50vh'</code>
0 commit comments