@monospaced/set-skills 0.22.0 → 0.24.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/package.json
CHANGED
|
@@ -26,8 +26,8 @@ For embedded use (e.g. injecting Set into a portion of a non-Set page), omit `ap
|
|
|
26
26
|
`Surface` sets a color context for nested content. Wrap a region in `Surface` to apply a different context — e.g. a brand-coloured strip inside an otherwise-default page:
|
|
27
27
|
|
|
28
28
|
```tsx
|
|
29
|
-
<Surface variant="
|
|
30
|
-
{/* content renders against the brand surface */}
|
|
29
|
+
<Surface variant="brandSubtle">
|
|
30
|
+
{/* content renders against the subtle brand surface */}
|
|
31
31
|
</Surface>
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -36,7 +36,7 @@ For embedded use (e.g. injecting Set into a portion of a non-Set page), omit `ap
|
|
|
36
36
|
Several components (`Box`, `Card`, `Panel`, etc.) also accept a `surface` prop — switch context at the component level without a separate wrapper:
|
|
37
37
|
|
|
38
38
|
```tsx
|
|
39
|
-
<Box surface="
|
|
39
|
+
<Box surface="brandSubtle" paddingBlock="xl">
|
|
40
40
|
{/* ... */}
|
|
41
41
|
</Box>
|
|
42
42
|
```
|