feat(tokens): drop-shadow composites, component typography snippets#6161
feat(tokens): drop-shadow composites, component typography snippets#6161
Conversation
|
| rgb(0 0 0 / 16%), | ||
| rgb(0 0 0 / 48%) | ||
| ); | ||
| --swc-drop-shadow-emphasized: |
| }); | ||
| } | ||
|
|
||
| function normalizeCompositeValue(value, options) { |
There was a problem hiding this comment.
I recommend skipping to the test cases to see the practical results of the changes here (which Chat via Codex assisted me with)
📚 Branch Preview Links🔍 First Generation Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
| * OF ANY KIND, either express or implied. See the License for the specific language | ||
| * governing permissions and limitations under the License. | ||
| */ | ||
|
|
There was a problem hiding this comment.
The point of this file is to auto-generate the type-component-... snippets and expand their properties to correct CSS syntax, as seen in the next file containing the snippets.
| @@ -0,0 +1,167 @@ | |||
| { | |||
There was a problem hiding this comment.
Auto-generated by script in previous file, produces the snippet suggestions/output.
| @@ -464,21 +464,21 @@ | |||
| "y": "2px", | |||
There was a problem hiding this comment.
Results of the updated token processing as used by the extension.
Rajdeepc
left a comment
There was a problem hiding this comment.
Clean extraction and loved how it is shaping up. Before i can give the final approval would you be okay to add these?
- a
lookupTokentest for composite drop-shadow token - Please fix the single quote inconsistency in snippet generation.
Description
This PR improves token tooling in two areas:
@adobe/swc-tokensnow serializes composite drop-shadow tokens into a single CSS custom property that can be used directly in box-shadow.swc-vscode-token(the extension) now provides snippets for grouped typography tokens, using atype-prefix such astype-component-m-regular.Will require locally updating the extension from the VSIX file.
Motivation and context
Previous token processing was skipping the composite drop-shadow tokens. Snippets were complementary upgrade to add efficiency to current migration work.
Related issue(s)
SWC-1437
Screenshots (if appropriate)
Snippets will provide the typography related properties as may be exposed for component typography style tokens, visible in Figma within Typography as the "Name" value:

Typing

typewill bring up a list and preview of associated properties:component-snippets.mov
Note: may still need adjusted to expose custom properties on as-needed basis.
Author's checklist
Reviewer's checklist
Manual review test cases
Validate new
drop-shadow-tokens present in final stylesheettokens.cssbox-shadowsyntaxValidate extension updates
2nd-gen/packages/tools/swc-vscode-token/README.mdtoken()can access new drop-shadow tokenstypeinside of a CSS rule to see suggestions, and test selecting