tree: 232b77aad99a9f8985aca161d125be65bce0dd27
  1. dist/
  2. src/
  3. .gitignore
  4. .stylelintignore
  5. .stylelintrc.json
  6. package-lock.json
  7. package.json
  8. README.md
  9. rollup.config.js
resources/newssite/news-site-css/README.md

news-site-css

How to use

This package allows you to use the stylesheets in various ways, either by including the complete rules (index.css, index.min.css) in a link tag, or by importing partial css / css module files in your code.

install the package

npm install news-site-css

including the styles in html with a link tag

<link href="news-site-css/dist/index.min.css" rel="stylesheet" />

importing the styles in JavaScript:

import "news-site-css/dist/global.css";

importing a css module in React:

import styles from "news-site-css/dist/footer.module.css";

export default function Footer() {
    return <footer className={styles.footer}></footer>;
}