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

Try/global styles support #17

Closed
wants to merge 2 commits into from
Closed

Try/global styles support #17

wants to merge 2 commits into from

Conversation

oandregal
Copy link
Member

@oandregal oandregal commented Feb 11, 2020

Work In Progress - see an alternative at #22

This is an experiment to try global styles on the Parisienne theme.

@kjellr kjellr requested review from jffng and kjellr February 11, 2020 17:51
"foreground": "#141414",
"background": "#F3EBE8",
"button-text": "white",
"button": "#817359",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we have a "button" and "button-text" variables, these seem too specific to me. Why . not just use "primary" for buttons and "light-text" or something for the button text (same for nav).

I think we should try to limit the number of variables as much as possible and compute the others.

Copy link
Member Author

Choose a reason for hiding this comment

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

Those are good thoughts that I also agree with!

The first step was just extracting what Parisienne had and see how that looked. The next iteration for this PR should consolidate them into something general (for what we need to come up with a set of variables and its derivatives).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I do agree that these seem overly specific for now. Feel free to just assign primary/background colors here.

I think we should try to limit the number of variables as much as possible and compute the others.

I agree that this makes sense for the defaults, but I do think it'll be important to make sure theme authors (and users) can override these computed values with custom ones on a theme + global styles level.

@oandregal
Copy link
Member Author

Note that this is not ready for review! At the moment it's sort of a playground to demo Global Styles with edit-site. If anyone would add the "In Progress" label I'd be grateful (I don't have permissions to do it myself).

@oandregal
Copy link
Member Author

Closing this in favor of #22

@oandregal oandregal closed this Feb 27, 2020
@oandregal oandregal deleted the try/global-styles-support branch February 27, 2020 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants