Carbon for IBM.com Styles
npm install @carbon/ibmdotcom-stylesA single, shared CSS resource for Carbon for IBM.com.
To install @carbon/ibmdotcom-styles in your project, you will need to run the
following command using npm:
``bash`
npm i @carbon/ibmdotcom-styles
If you prefer Yarn, use the following command
instead:
`bash`
yarn add @carbon/ibmdotcom-styles
Import the package css into the top of your main CSS file.
`css`
@import '@carbon/ibmdotcom-styles/scss/components/footer/footer';
In Webpack, the full package can also be included to the root of your
application (though is recommended only for testing):
`javascript`
import '@carbon/ibmdotcom-styles';
š” There may be times pathing errors are encountered when importing certain
stylesheets. We're working hard to fix these, but in the meantime you can add
the following to your .env file to resolve:
``
SASS_PATH=node_modules:src
š” If importing carbon-components.min.css`, remember to import our CSS after
it.
- See our documentation site here for
full how-to docs and guidelines
- Contributing:
Guidelines for making contributions to this repo.
We're always looking for contributors to help us fix bugs, build new features,
or help us improve the project documentation. If you're interested, definitely
check out our
Contributing Guide
and our
Developer Guide!
š
This package uses IBM Telemetry to collect de-identified and anonymized metrics
data. By installing this package as a dependency you are agreeing to telemetry
collection. To opt out, see
Opting out of IBM Telemetry data collection.
For more information on the data being collected, please see the
IBM Telemetry documentation.
Licensed under the
Apache 2.0 License.