open-props
open-props copied to clipboard
Add `border-image` scrim style
figure {
border-image: fill 0 linear-gradient(#0003, #000);
}
https://codepen.io/t_afif/pen/vYbdVjb
there's more!
https://www.smashingmagazine.com/2024/01/css-border-image-property/
This seems interesting and I would love to take a crack at making some of these. Though I would appreciate some guidance on where to start off 😄 What kind of variations did you have in mind? Different patterns, colors, opacities, etc?
A good place to start is to make a Codepen that captures as many border-image
one-liners as it can. There's some good precedence and background onto adding a set of props over here where we discussed masks.
workflow goes something like this:
- aggregate one-liner props into a central place and give them meaningful names
- when applicable, offer 1-3 variants
- iterate to find the right set
- add them to the src/ directory
- document them in the docsite
- add a build script entry
- add them to the exports in package.json
Step 1 is the fun part, same with step 2. If you want to start there I can certainly guide you through the rest 🙂