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

Add support for passing theme colors to init script #2269

Closed
Tracked by #2271
mimarz opened this issue Aug 16, 2024 · 0 comments · Fixed by #2290
Closed
Tracked by #2271

Add support for passing theme colors to init script #2269

mimarz opened this issue Aug 16, 2024 · 0 comments · Fixed by #2290
Assignees
Labels
cli @digdir/designsystemet

Comments

@mimarz
Copy link
Collaborator

mimarz commented Aug 16, 2024

We can expand the init script (or some other command) to take a set of hex colors and generate the correct json files with colors and fonts.

@mimarz mimarz added the cli @digdir/designsystemet label Aug 16, 2024
@mimarz mimarz changed the title update init to support theme colors Add support for passing theme colors to init script Aug 16, 2024
@mimarz mimarz added this to the V1 milestone Aug 16, 2024
@mimarz mimarz self-assigned this Aug 20, 2024
mimarz added a commit that referenced this issue Aug 27, 2024
resolves #2269

Use theme-builder to select desired colors
<img width="1440" alt="image"
src="https://github.com/user-attachments/assets/42828ba6-76cf-4989-b835-5b369c29f42f">

Paste provided cli command in a terminal to generate desired
design-tokens
<img width="1238" alt="image"
src="https://github.com/user-attachments/assets/be61c86d-a62e-480b-b1d3-ec7fdb014b41">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli @digdir/designsystemet
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant