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

Add Multi-Build Usage Example #26

Open
tylerkrupicka opened this issue Sep 30, 2020 · 2 comments
Open

Add Multi-Build Usage Example #26

tylerkrupicka opened this issue Sep 30, 2020 · 2 comments
Labels
enhancement New feature or request hacktoberfest

Comments

@tylerkrupicka
Copy link
Contributor

This is similar to #23 and #22!

This project has a niche option called forceSingleTheme, which only outputs one theme. We use this with DS-CLI Multi Build to generate multiple theme files for a single component.

Basically:

  • Create a component with two themes.
  • Run PostCSS once to generate a file with multiple themes.
  • Run PostCSS again to create a CSS file with only Theme1.
  • Run PostCSS again to create a CSS file with only Theme2.

While we have this working on an internal project, we don't have any public examples of these two projects working together! If you are interested in learning more about DS-CLI or our theme architecture, this is the perfect project.

I would like to create a folder in the repository called examples and in it add a folder called multibuild which has a simple app using the modern theme configuration and PostCSS.

This would require:

  • Creating the folders.
  • Create a sample design system with a single component in it.
  • Set up DS-CLI multi build to run multiple PostCSS configurations.
  • Write some documentation to show the setup and have people inspect the generated output.
@tylerkrupicka tylerkrupicka added enhancement New feature or request hacktoberfest labels Sep 30, 2020
@anchal0997
Copy link

Hi @tylerkrupicka, I would like to contribute to this issue.

@rum1887
Copy link

rum1887 commented Oct 2, 2023

Hi @tylerkrupicka, if this issue is still open, can this be assigned to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants