2.5.3 • Published 2 years ago

paragon-framework v2.5.3

Weekly downloads
29
License
MIT
Repository
github
Last release
2 years ago

Paragon

Styling framework

npm version

Browser Support

ChromeEdgeFirefoxOperaIESafari
LatestLatestLatestLatestIE 11+Safari 8+

Getting Started

Install the Component

The Paragon Framework is delivered as a npm component.

Install the paragon npm component. This will install the Paragon files in your project's node_modules folder.

npm i paragon-framework

Setting up your project with SASS

Sass is a great way to keep your project clean, organized and easy-to-manage. If you are unfamiliar with the workings of Sass, learn more here.

Including Paragon Styles

Copy and paste the following code snippet into your project. This will pull in normalize, along with Paragon base and module styles.

Note: If you wish to overwrite Paragon styles to add customization your project, skip through this step and head to the next section.

@import "node_modules/paragon-framework/vendor/normalize";
@import "node_modules/paragon-framework/base/base";
@import "node_modules/paragon-framework/modules/modules";

Including Custom Styles

While the Paragon Style Framework does provide a lot of core modules for you to utilize, it most likely won't have everything you need. Follow the SMACSS syntax in order to add a clean, organized structure to your custom stylesheets.

  1. Create five individual folders, named base, layout, modules, state and theme.

  2. Within each folder, create a stylesheet to match. (e.g. You would create a base.scss file within your base folder).

  3. Import everything to your main application folder. When you're all finished, it should look something like this:

    @import "node_modules/paragon-framework/vendor/normalize";
    @import "node_modules/paragon-framework/base/base";
    @import "theme/theme";
    @import "node_modules/paragon-framework/modules/modules";
    
    @import "base/base";
    @import "layout/layout";
    @import "modules/modules";
    @import "state/state";

    Note: By including a theme file, your modules will now look to that for color theming, rather than base.

Setting up your HTML file and importing styles

We've provided a starter HTML file to help you get running. Paste this code into your index.html file.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- These previous two meta tags *must* come first in the head -->
    <title>Paragon Template</title>

    <!-- Working with CSS – Use this link if prefer to use the vanilla css, without any customization -->
    <link rel="stylesheet" href="/node_modules/paragon-framework/paragon.css">

    <!-- Working with SCSS – Use this if you'd like to add any customization to the paragon modules. Note: The path and file name may differ for your project. -->
    <link rel="stylesheet" href="styles/application.css">
  </head>
  <body>
    <h1>Hello, world!</h1>
  </body>
</html>

Found a Bug?

Submit an issue if you need help, or submit a pull request with your own fixes or changes.

Contributors

Paragon is a product of Samaritan Ministries International.

Thanks to the following people who have contributed to this project:

License

MIT License

2.5.3

2 years ago

2.5.2

3 years ago

2.5.0

3 years ago

2.5.1

3 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-beta.7

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.5

5 years ago

1.0.0-beta.4

5 years ago

1.0.0-beta.3

5 years ago

1.0.0-beta.2

5 years ago

1.0.0-beta.1

5 years ago