Replies: 5 comments 5 replies
-
|
Hi @GarthDB, Is this an update to the diagram in your proposal? Does this update mean: The existing work on the |
Beta Was this translation helpful? Give feedback.
-
|
We also would want to make sure that all the S1 components have their S2 equivalents outlined, per your migration guide point. SWC is still missing an implementation for Tray. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for putting this together Garth! One thing to clarify - It's not about when S2 is "done". It's more about when we will feel comfortable communicating that it's out of Beta I'll be driving conversations to align us all on this (websites, tokens, implementations, Figma libraries, etc) and that will impact the timeline for merging and communicating about this. |
Beta Was this translation helpful? Give feedback.
-
|
This does not change the S1 maintenance in the future. Anytime critical patches are needed on old versions, we can make patch releases. |
Beta Was this translation helpful? Give feedback.
-
|
Some comments have been made internally on this slack thread. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem statement
Currently, Spectrum 1 data has been released in @adobe/spectrum-tokens. This data can be found in the
latestnpm tag (v12.27.0) and themainGitHub branch in this repo. Spectrum 2 data can be found in thebetanpm tagged releases (13.0.0-beta.56) and thebetabranch in this repo.As the data is defined in these branches today, we don't have a very clear migration path from S1 to S2.
History
See the previous RFC discussion for more details on the history of the S2 work.
Proposal
In discussion with Spectrum Web Components and Spectrum CSS, the update proposed plan is to stop work on S2 Foundations and instead plan to release the S2 work in the
betabranch when Spectrum 2 is ready for release.Diagram
I've included an update diagram of the current relationship of the S1 and S2 data and the proposed merging strategy.
--- title: Spectrum Tokens S2 Release Proposal --- gitGraph TB: checkout main commit id: "41b962e" tag: "12.27.0" branch beta branch s2-foundations checkout s2-foundations commit id: "7b5c104" tag: "simplified corner rounding" commit id: "a0ec757" tag: "non-gray-800 colors update" checkout beta commit id: "7cc7930" tag: "13.0.0-beta.55" commit id: "5f67e9c" tag: "13.0.0-beta.56" checkout main merge beta commit id: "-" tag: "13.0.0"Alternatives considered
See the previous RFC discussion for more details on the previous alternatives considered.
Consequences or Required Actions
Other projects like React Spectrum and Spectrum iOS have already been using the S2 data in the
betabranch, and the Spectrum Design System Figma files are based on this data, so it will have less of an impact on projects than the previous proposal of the S2 Foundations work.Unresolved questions
What is the timeline for the S2 release? What requirements are needed for Spectrum 2 to be considered finished and ready for moving the
betadata to themainbranch?Most likely, the Spectrum Design team will need to finish the S2 component definitions, update the Spectrum Website, and release the Spectrum 2 Figma files, but none of this has been formally defined yet. The actual work for this project (Spectrum Tokens) would just involve replacing the
mainbranch withbetaand releasing it as version13.0.0on NPM. It might be beneficial to provide migration guides for engineering teams, but that would probably be best served by the implementations themselves, not tokens specifically.As pointed out by @Deanna-w1 in the comments below, "it's not about when S2 is 'done'. It's more about when we will feel comfortable communicating that it's out of Beta."
Conclusion / Actions
This RFC has been sent out to all the implementations that consume Spectrum Tokens, and following the feedback, we've found that this updated plan primarily impacts Spectrum Web Components and Spectrum CSS, as was expected. It should not impact the other implementations or platforms because they are either not yet testing S2 design data or they have been using the
betabranch data already.We still have unanswered questions about the timeline, but we will proceed further with this plan.
Beta Was this translation helpful? Give feedback.
All reactions