chakra-ui-docs icon indicating copy to clipboard operation
chakra-ui-docs copied to clipboard

Add theme-tools to documentation

Open ryanirilli opened this issue 2 years ago • 14 comments

Subject

Switch

Description

We have noticed that there is a need to use the cssVar export from @chakra/theme-tools to properly style the Switch component size. This is not a part of the official framework documentation for component style.

If using cssVar for styling Chakra components is a public part of the theme framework and not an implementation detail, it should be documented in CSS variables and in the components that require its usage.

Discord conversation Codesandbox example

Thank you for your consideration!

ryanirilli avatar Jan 06 '22 14:01 ryanirilli

Thanks for your feedback @ryanirilli, we will look into this and update docs accordingly :)

noobinthisgame avatar Mar 08 '22 23:03 noobinthisgame

Some of the @chakra-ui/theme-tools functionalities are meant for internal use only, so maybe @segunadebayo can provide his input on this one.

nikolovlazar avatar Mar 09 '22 07:03 nikolovlazar

@nikolovlazar The theme tools can be used publicly. We mentioned it in the docs somewhere (I think breakpoints).

So yes, @ryanirilli is right. We should document the public API in theme tools so others can learn about it.

Some ideas to consider:

  • Perhaps a dedicated theme tools page might help document all the tools available to our users.
  • Add cssVar docs to the CSS variable page
  • Create an anamtomy page to document the anatomy

segunadebayo avatar Mar 16 '22 10:03 segunadebayo

@segunadebayo About the anatomy. I would put the anatomy and parts of the different components on their respective pages, to help the discoverability. That could also play into what we want to achieve in this issue https://github.com/chakra-ui/chakra-ui-docs/issues/75

noobinthisgame avatar Mar 16 '22 10:03 noobinthisgame

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 02:04 stale[bot]

Could I be assigned to this? Unless someone else has already been working on it behind the scenes, I've started a draft of it... At least a page for the main set of tools.

The only other thing about this group is that some of them have been notated as deprecated, to be removed "in the next major release". But these were notated prior to v2. Is there still a plan to deprecate them, to be replaced by something else?

TylerAPfledderer avatar May 22 '22 19:05 TylerAPfledderer

Go for it @TylerAPfledderer 🚀🚀

noobinthisgame avatar May 22 '22 20:05 noobinthisgame

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Jun 23 '22 07:06 stale[bot]

Not stale

TylerAPfledderer avatar Jun 23 '22 14:06 TylerAPfledderer

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Jul 31 '22 07:07 stale[bot]

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 03:09 stale[bot]

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Oct 30 '22 12:10 stale[bot]

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar Jan 08 '23 03:01 stale[bot]

Hi! This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs within 5 days. Thank you for your contributions.

stale[bot] avatar May 21 '23 22:05 stale[bot]