Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css @apply

:root {
  --brand-color: red;/*   default value*/
  --header-theme: {
    color: var(--brand-color);
    font-family: cursive;
    font-weight: 600;
  };
}
  
h1 {
  @apply --header-theme;
}


h2 {
  --brand-color: green; 
  @apply --header-theme;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css
ADD COMMENT
Topic
Name
3+9 =