Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add border-image scrim style #437

Open
argyleink opened this issue Nov 20, 2023 · 3 comments
Open

Add border-image scrim style #437

argyleink opened this issue Nov 20, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@argyleink
Copy link
Owner

figure {
  border-image: fill 0 linear-gradient(#0003, #000);
}

https://codepen.io/t_afif/pen/vYbdVjb

@argyleink
Copy link
Owner Author

there's more!

https://www.smashingmagazine.com/2024/01/css-border-image-property/

@argyleink argyleink added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 19, 2024
@Brian-Pob
Copy link
Contributor

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?

@argyleink
Copy link
Owner Author

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:

  1. aggregate one-liner props into a central place and give them meaningful names
  2. when applicable, offer 1-3 variants
  3. iterate to find the right set
  4. add them to the src/ directory
  5. document them in the docsite
  6. add a build script entry
  7. 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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants