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

Customizing Colors and Fonts #436

Open
0x15F9 opened this issue Jun 28, 2022 · 3 comments
Open

Customizing Colors and Fonts #436

0x15F9 opened this issue Jun 28, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@0x15F9
Copy link

0x15F9 commented Jun 28, 2022

Hello. Can you draft the steps required to use some custom fonts and colors? Thanks

@uipoet
Copy link
Member

uipoet commented Jun 28, 2022

Thank you for the interest, I will add some documentation to the website.

In the meantime, you can override the default CSS variables in your app's global CSS file.

font variables: https://github.com/ninja/ninjakit/blob/master/src/lib/style.css#L1

color variables: https://github.com/ninja/ninjakit/blob/master/src/lib/color-scheme/default.css#L1

@uipoet uipoet added the documentation Improvements or additions to documentation label Jun 28, 2022
@0x15F9
Copy link
Author

0x15F9 commented Jun 29, 2022

Great! Thank you. I went through the code and it seems that the styles get auto generated from some .json files. I thought it was the figma token's but it's not the case. Which tool are you using to get the .json files?

@uipoet
Copy link
Member

uipoet commented Jul 1, 2022

I used Material Theme Builder to export the tokens as JSON. When ninjaKit builds, it runs extract.mjs to extract the tokens as CSS files. Looks like Material Theme Builder now exports CSS directly, so the build step is probably no longer necessary and will eventually be deprecated.

@uipoet uipoet changed the title Documentation request Customizing Colors and Fonts Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants