Problem
When you use a Codex component by requiring the @wikimedia/codex package from NPM and importing a component in your code, most build tools will not automatically pull in that component's CSS. Instead, you have to manually load it somewhere. This is not clearly documented and should be.
Solution
Document how to include CSS on the Usage page, and consider adding a note or full instructions to the main repo's README.
The compiled CSS can be included in the following ways:
- In the main entry scripe, e.g. import '@wikimedia/codex/dist/codex.style.css';
- In a CSS or Less file, e.g. @import '@wikimedia/codex/dist/codex.style.css';
- In a <link> element in the <head> of the document if you want to party like it's 1999
Acceptance criteria
- Document inclusion of Codex CSS when using the npm package in the Usage docs
- Consider also adding a note, or full instructions, in the README