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

var idea #1

Merged
merged 1 commit into from Jan 3, 2018
Merged

var idea #1

merged 1 commit into from Jan 3, 2018

Conversation

archae0pteryx
Copy link
Contributor

@archae0pteryx archae0pteryx commented Jan 3, 2018

just an idea... thought i'd throw it out there... love what you've done here! the simplicity is great!
Not sure how much this adds but it would be nice to have some easy overrides... like i said. just a thought.

@ajusa
Copy link
Owner

ajusa commented Jan 3, 2018

Thank you very much!
I definitely agree about having easy overrides, right now the document recommends trying to do a "ctrl-f" and replacing the values you want. I also didn't realize that most modern browsers support CSS next.

The only problem I have with your pull request is that it does add more bytes than I would like. Thankfully, there is a "PostCSS" plugin that can transform what you wrote directly to what I have, by replacing each variable with the correct value.

I will probably merge your PR in once I have this PostCSS stuff figured out.

--accent-color: #234567;
--link-color: gold;
--border-color: green;
--primary-button-bg: gold;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, could you change the "gold" back to the original hexadecimal value of #FA0? #FA0 saves one extra byte with gzip for some reason. If you want, you could add a comment after the "#FA0" saying "gold".

Other than that, I think that this is a great idea and will merge as soon as I figure out the PostCSS stuff!

@ajusa
Copy link
Owner

ajusa commented Jan 3, 2018

Just finished getting all Gulp and PostCSS set up for the first time. I'll try and do a merge here

@ajusa ajusa merged commit 086888b into ajusa:master Jan 3, 2018
@ajusa
Copy link
Owner

ajusa commented Jan 3, 2018

I did merge this in, but then I changed some significant parts of it. I liked the idea, so I kept most of the variables, and I renamed a few to make more sense to me.

I don't plan on adding secondary buttons or more components anytime soon.

@archae0pteryx
Copy link
Contributor Author

awesome! i’m glad you liked the idea! doing a find to replace seems like it might be a problem later if you ever update the repo. this way someone could define their own ‘primitive’ vars

that’s sweet! keep up the great work!

@ajusa
Copy link
Owner

ajusa commented Jan 3, 2018

Yeah, good point. Hope you enjoy using it!

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

Successfully merging this pull request may close these issues.

None yet

2 participants