openedx / paragon

💎 An accessible, theme-ready design system built for learning applications and Open edX.

Home Page:https://paragon-openedx.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[alpha] Refactoring the generate-component script

PKulkoRaccoonGang opened this issue · comments

After switching to design tokens, in the Paragon repository (alpha branch), we stopped using the _variables.scss file in Paragon components. Given these changes, we must update the internal generate-component script in order to correctly generate the template for new components. This script still creates the _variables.scss.

image

We also need to update the documentation about the component generator on the corresponding page of the Paragon website

image
image

Tasks

Since we are not adding many components, will we need a "component generator"? I would consider deprecating the component generator altogether and removing it from the code base. 🤔

@adamstankiewicz Verify whether the Segment event with this CLI command is used by consumers.

Let's not delete this script, it might be usefull in the future and it does not hurt anybody if it stays in the repository.

@PKulkoRaccoonGang please make these fixes, it will take you at most 10 minutes to do this 🙂

Resolved in: #3076