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

Minimal spectre imports #1288

Closed
linonetwo opened this issue Feb 21, 2023 · 1 comment
Closed

Minimal spectre imports #1288

linonetwo opened this issue Feb 21, 2023 · 1 comment

Comments

@linonetwo
Copy link

General information

importing whole spectre.css will influence many other styles.

import 'spectre.css/dist/spectre.min.css';

Expected behavior

Only import selected set of scss.

@linonetwo
Copy link
Author

My solution

@import "../../../node_modules/spectre.css/src/variables";
@import "../../../node_modules/spectre.css/src/mixins/shadow";
@import "../../../node_modules/spectre.css/src/mixins/button";
@import "../../../node_modules/spectre.css/src/mixins/label";
@import "../../../node_modules/spectre.css/src/buttons";
@import "../../../node_modules/spectre.css/src/forms";
@import "../../../node_modules/spectre.css/src/labels";
@import "../../../node_modules/spectre.css/src/layout";

And needs to do picturepan2/spectre#694

linonetwo added a commit to tiddly-gittly/super-tag that referenced this issue Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant