Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@sendgrid/style-guide
Advanced tools
The SendGrid Style Guide is a library for developing consistent UI/UX at SendGrid.
style-guide
contains all of SendGrid's styles for customer facing applications, such as Mako and Marketing Campaigns. It also hosts a living style guide at sendgrid.github.io/style-guide.
git clone git@github.com:sendgrid/style-guide.git
cd style-guide
npm install
Depending on your locally installed gems, you may also need to install scss_lint.
gem install scss_lint
npm start
Before contributing code, make sure you are familiar with our standards:
The primary driving philosophy behind style-guide is OOCSS:
Separate structure from skin: Define repeating visual features (like background
and border
styles) as separate "skins" that you can mix-and-match with your various objects to achieve a large amount of visual variety without much code
Separate container and content: Essentially, this means "rarely use location-dependent styles". An object should look the same no matter where you put it. Don't deeply nest your selectors. Only use the SCSS &
symbol for tightly coupled selectors, such as :hover
or :before
pseudo selectors
We use SMACSS for categorizing our SCSS files. We organize files into three directories: global
, tiara
, and components
.
We follow the conventions outlined in codeguide.co.
All pull requests should get reviewed by the style-guide owner (Jason Walker). If you are modifying existing styles, you need a cross-team front-end developer from the Mako or Marketing Applications team to also review.
When you open a pull request, you'll see a provided checklist of things to do before merging, which are:
To create production assets, you can run:
npm run build
The build task will compress and concatenate all the .css, .js, optimize images, and copy the fonts directory over to the dist folder. Once the build task has completed running, you can copy the contents of dist into the gh-pages branch of style-guide. Pushing gh-pages will automatically update the demo site.
FAQs
Style Guide's Grid-specific styles
The npm package @sendgrid/style-guide receives a total of 0 weekly downloads. As such, @sendgrid/style-guide popularity was classified as not popular.
We found that @sendgrid/style-guide demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.