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
Copy file name to clipboardExpand all lines: packages/color/README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,26 @@ import { grayscale } from '@theme-ui/color'
170
170
// grayscale('primary')
171
171
```
172
172
173
-
### Related
173
+
## Advanced Usage
174
+
175
+
If you want to do something more complex, such as setting up gradients, you can do that with some extra workarounds.
176
+
177
+
We can take the result of any of the above helper functions (which return a function) and call it with the theme object to generate a string in place. This is useful for interpolating values into complex CSS declarations:
0 commit comments