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

feat: Add support for design tokens #34

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

xitij2000
Copy link
Member

This change adds support for design tokens to simple theme.

@xitij2000 xitij2000 force-pushed the kshitij/design-tokens branch 3 times, most recently from d5462f3 to a8ef5ae Compare November 14, 2023 08:42
@xitij2000 xitij2000 force-pushed the kshitij/design-tokens branch 2 times, most recently from 2fbec38 to ef5091d Compare November 23, 2023 11:23
@navinkarkera
Copy link
Member

@xitij2000 We should add some steps describing the process of updating the tokens and building the theme.

This change adds support for design tokens to simple theme.
README.md Outdated Show resolved Hide resolved

This is a two-step process:

1. Building the tokens: The `paragon build-tokens` build tokens command compiles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Building the tokens: The `paragon build-tokens` build tokens command compiles
1. Building the tokens: The `npm build-tokens` build tokens command compiles

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command being the scenes is paragon. I'm just running it via npm scripts.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xitij2000 Yes, I know. People will need to use npm as they cannot directly run paragon commands which is why I am suggesting this change.

the JSON style dictionaries into CSS file sin the `paragon/css/` directory.
These are supposed to be committed to the repository.
2. Building the SCSS: The build token CSS files are then compiled into a brand
theme in the dist folder using the `paragon build-scss` command. The contents
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
theme in the dist folder using the `paragon build-scss` command. The contents
theme in the dist folder using the `npm build-scss` command. The contents

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants