Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created May 21, 2024 03:57
Show Gist options
  • Select an option

  • Save SarahElson/50c47ad81ba3179d0872cabd83a96df0 to your computer and use it in GitHub Desktop.

Select an option

Save SarahElson/50c47ad81ba3179d0872cabd83a96df0 to your computer and use it in GitHub Desktop.
How to Use CSS Modules With React Applications
.button{
padding: 10px 20px;
border: none;
border-radius: 10px;
margin: 0 10px;
}
.primary{
composes:button;
background: linear-gradient(91.88deg,#2c57f3 .88%,#a506d8 98.71%);
color: white;
}
.secondary{
composes:button;
border: 1px solid black;
color: black;
background-color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment