Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mrcthms/b4dd0c344cc220e6133efc3d3f1a7df2 to your computer and use it in GitHub Desktop.
Save mrcthms/b4dd0c344cc220e6133efc3d3f1a7df2 to your computer and use it in GitHub Desktop.
:root {
--hds-spacing-1: 4px;
--hds-spacing-2: 8px;
/* etc */
}
.hds-theme-light {
--hds-palette-primary-100: #ff3366;
}
.hds-theme-dark {
--hds-palette-primary-100: #6633ff;
}
:root {
--hds-spacing-1: 4px;
--hds-spacing-2: 8px;
/* etc */
}
/**
* All class-scoped variables, and the class declarations are removed, so all of the
.hds-theme-light {
--hds-palette-primary-100: #ff3366;
}
.hds-theme-dark {
--hds-palette-primary-100: #6633ff;
}
gets removed.
*/
.local-file-scope {
--works-fine: 'yes'
}
.local-file-scope {
--works-fine: 'yes';
}
@import "@invisionapp/helios-base/dist/variables.css";
@import "./path/to/local/file.css";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment