Skip to content

[Theming] More color options and better docs#5939

Merged
cchaos merged 23 commits intoelastic:mainfrom
cchaos:emotion/more_colors
Jun 2, 2022
Merged

[Theming] More color options and better docs#5939
cchaos merged 23 commits intoelastic:mainfrom
cchaos:emotion/more_colors

Conversation

@cchaos
Copy link
Copy Markdown
Contributor

@cchaos cchaos commented May 31, 2022

This PR mostly tackles a lot of documentation organization by leaning into the GuideTabbedPage and adding tabs with sub-sections to the theming docs (and a lot of snapshots).

Slight adjustment to lightestShade

This PR makes a non-noticeable adjustment to lightestShade to be slightly less blue but then adjusts the tint of the body color to be slightly darker which also affects the subdued panel color. This is in preparation of some work I've been doing to simplify the amount of gray variations we use.

Updates to color mixin

Added optional method for declaring if it should return an opaque or transparent version of the color. This will be helpful for when we re-use this method for button colors.

Screen Shot 2022-06-01 at 08 54 54 AM

New button color mixins

Added placeholder mixins/functions for creating button-specific colors called BUTTON_COLORS, useEuiButtonColorCSS(), and euiButtonColor()

Updated the colors / contrast section to show all three types of background colors:
CleanShot 2022-05-31 at 16 32 24

These calculations were based on these started in Figma:

image

Docs Moved:

Checklist

  • Checked in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs and playground toggles
  • Added documentation
  • [ ] Checked Code Sandbox works for any docs examples
  • Added or updated jest and cypress tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • Updated the Figma library counterpart
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_5939/

Copy link
Copy Markdown
Contributor Author

@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.

This PR is now ready for review. Again, the reason it looks so large is because of moving the some of the old utility section pages to the theme pages (and snapshot updates).

export const LanguageSelector = ({
onChange,
showTour = true,
showTour = false,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Finally removing the language toggle tour

href: sectionHref,
className: isCurrentlyOpenSubSection
? 'guideSideNav__item--openSubTitle'
: '',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is me fixing the double blue color of open sections

@cchaos cchaos marked this pull request as ready for review June 1, 2022 13:37
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_5939/

Copy link
Copy Markdown
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

Found one minor issue. The following link still linking to the old page.

typography@2x

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_5939/

@cchaos cchaos merged commit e0f9876 into elastic:main Jun 2, 2022
@cchaos cchaos deleted the emotion/more_colors branch June 2, 2022 17:04
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.

3 participants