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

Create Angular Schematics to Add Primitives to a Project #252

Open
pimenovoleg opened this issue Jan 11, 2025 · 0 comments
Open

Create Angular Schematics to Add Primitives to a Project #252

pimenovoleg opened this issue Jan 11, 2025 · 0 comments

Comments

@pimenovoleg
Copy link
Contributor

Feature request

Overview

We need Angular Schematics that streamline adding our headless primitives into an existing Angular project. The generated structure must be flexible enough to accommodate different styling approaches. Ideally, developers should be able to choose between traditional CSS or Tailwind CSS when scaffolding new primitives.

Additional context

Styling Options

  • Include a flag (e.g., --style=css or --style=tailwind) to automatically set up the chosen styling approach.
  • If CSS is selected, create a .css file and link it in the component.
  • If Tailwind CSS is selected, configure and import Tailwind accordingly or extend existing Tailwind settings in the project.

Configurability

  • Provide user prompts or CLI flags for optional parameters (e.g., component name, path, additional config).
  • Make it easy to extend or customize further (e.g., theming, additional dependencies).

Documentation

  • Provide inline code comments explaining how to adjust or customize the generated files.
  • Update the README with detailed instructions for using the schematic (installation, usage, troubleshooting).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant