Skip to content

smbc-digital/stockport-styleguide

Repository files navigation

Stockport Styleguide GitHub issues

Stockport styleguide is a React application to showcase the reusable components for the Stockport Council website. This project contains both the SASS styleing of the components and a showcase of the smbc-react-components used within the Council's website.

Installation

Requirements

  • Node
  • npm

$ npm run setup

Linting

This project makes use of sass-lint and es-lint. To make use of these packages you will need to install these npm packages and then install the relevant IDE addons:

Usage

<button class="button-primary">Next step</button>
.button-primary {
    @extend .button;
    @include button-colors($teal-darker, $white);
}
@mixin button-colors ($buttonColour, $textColour) {
    color: $textColour;
    background-color: $buttonColour;

    a {
        color: $textColour;
    }

    &:hover, &:focus {
        background-color: lighten($buttonColour, 5%);
    }

    &:active {
        background-color: darken($buttonColour, 5%);
    }
}

Development

Within the package.json file there is a pre-commit that will run $npm run build which bundles up the packages and adds them to the commit.

Roadmap

There are different sections to the styleguide that have been styled but not yet been made into react components.

Mark Description
🚫 not started
🏃 on-going
☑️ completed
  • ☑️ Colours
  • ☑️ Typography
  • 🚫 Navigation
  • ☑️ Buttons
  • 🏃 Form elements
  • ☑️ Alerts
  • 🚫 Tables
  • 🚫 Profiles
  • ☑️ Icons
  • ☑️ Promotions

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Home to the Digital Team's shared styles and design patterns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published