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

Support more files, and arrays in theme #43

Merged

Conversation

thompsongl
Copy link

@thompsongl thompsongl commented Mar 16, 2021

Not sure if you want to actually merge this or just use it as a reference, but this helps with:

  • Preventing comment-related errors (getOwnPropertyDescriptor)
  • Moving things to different files
  • Including arrays as theme values
  • Typing reduce

ghost: '#FFF',
ink: '#000',
};

/* DEFAULT THEME */
// TODO: All theme files need to be imported here or else they error out.
// Creation of the themes shouldn't be restricted to a particular file

export const light = {
Copy link
Owner

Choose a reason for hiding this comment

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

Have you tried moving this actual object creation to a separate file?

Basically what I was trying to accomplish was to have a theme file for the default theme and one for the Amsterdam theme in their respective theme folders, similar to like the manifest SASS index.scss files.

Copy link
Author

Choose a reason for hiding this comment

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

Should be no problem. Just moved all of Amsterdam in b2cd915
I'm guessing any problems you saw previously were due to that comment bug, which is now fixed.

Comment on lines +79 to +84
type EuiFontSize = {
[mapType in EuiFontScale]: {
fontSize: string;
lineHeight: string;
};
};
Copy link
Owner

Choose a reason for hiding this comment

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

🙏

Copy link
Owner

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

👍 Sweet. I'll go ahead and merge and continue to clean up. Thank you!

@cchaos cchaos merged commit 93098f7 into cchaos:feature/css-in-js_themes Mar 16, 2021
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.

2 participants