Skip to content
Discussion options

You must be logged in to vote

I tried moving the color definitions to file "light-colors.scss" and "dark-colors.scss" and the rest of the rules into "style.scss"

This seems like a good solution, but you need to use correct order and correct content in each file

style.scss light dark
/*-- scss:defaults --*/

$body-bg: $col1;
$body-color: $col2;

/*-- scss:rules --*/
a {
    color: $col3;
    text-decoration: none;
}
/*-- scss:defaults --*/
$col1: #002b36;
$col2: #073642;
$col3: #586e75;
/*-- scss:defaults --*/
$col3: #002b36;
$col2: #073642;
$col1: #586e75;

Then you need to load last, the scss with defines the variables needed in other scss file

format:
  html: 
    theme:
      light: [cosmo, styles.scss, li…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by josherrickson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
html Issues with HTML and related web technology (html/css/scss/js) themes Related to HTML theming or any other style related issue (like highlight-style)
3 participants