-
Notifications
You must be signed in to change notification settings - Fork 66
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
Design tokens README
usage instructions lead to "Missing script" errors
#2086
Comments
Ah, bringing the conversation about this issue back here instead of the PR itself 😄 Originally, the intent was that we'd be transforming tokens -> CSS variables and then replacing the existing SCSS variable's value with the new CSS variable as the new value instead. This would effectively mean any existing usages of SCSS variables (in Paragon and in consuming applications) would not really need to make any code changes (i.e, replace the SCSS variable to use the CSS variable directly). However, upon further reflection, we realized that to really achieve the goal of this project to "build the theme once" instead of requiring each consuming applications to effectively build the theme separately, we really need to move away from consumers using Paragon's existing SCSS variables. As such, we're no longer going to be associating the CSS variables as values for the existing SCSS variables. Instead, we're proposing that Paragon and consuming applications will need to use the new CSS variables directly instead. See #2018 and #2014 for more details Because of that, we no longer really have a need for the CLI commands to replace the original SCSS variable value with a CSS variable instead, and neither will consumers. The docs in the README in |
Here's some updated pseudo-docs describing the intended future that might be helpful: Compiling CSS from design tokens for Paragon contributions (in this repo)
Compiling CSS from design tokens for
|
Additional clarification on the above, the aforementioned |
@adamstankiewicz Those pseudo-docs look great! Based on your comment on #1905, would it make sense to close that one too? I'm thinking since the alpha branch is an alpha, it would make sense to update the |
@brian-smith-tcril Makes sense to me! I closed out the now-stale README docs PR in favor of this new one instead: #2088 |
Closing this issue as #2088 merged. Brian, feel free to re-open if you deem it necessary! |
No need to re-open! #2088 goes above and beyond resolving this! |
When following the instructions here https://github.com/openedx/paragon/tree/alpha#usage, the last 2 commands lead to "Missing script" errors
I have a PR out for the first one #2085, but the second one seems to be ambiguous, as there are 2
replace-variables-*
scripts in thepackage.json
I'd love to get some clarification on what these steps should be, and what (if any) scripts should be added to the
package.json
The text was updated successfully, but these errors were encountered: