Skip to content

Support more files, and arrays in theme#43

Merged
cchaos merged 4 commits intocchaos:feature/css-in-js_themesfrom
thompsongl:feature/css-in-js_themes
Mar 16, 2021
Merged

Support more files, and arrays in theme#43
cchaos merged 4 commits intocchaos:feature/css-in-js_themesfrom
thompsongl:feature/css-in-js_themes

Conversation

@thompsongl
Copy link
Copy Markdown

@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

// 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

Choose a reason for hiding this comment

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

🙏

Copy link
Copy Markdown
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