Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
netlify-styleguide
Advanced tools
This is the living styleguide for Netlify.
As with www.netlify.com, it's based on Victor Hugo and use the same general structure. The goal is to build out our universal base CMS - the bootstrap
of Netlify, and be able to pull it into both the marketing site and the app via NPM.
Be sure that you have the latest node and npm installed
Next, clone this repository and run:
npm install
npm start
Then visit http://localhost:3000/ - BrowserSync will automatically reload CSS or refresh the page when stylesheets or content changes.
To build your static output to the /dist
folder, use:
npm run build
via npm
npm install netlify-styleguide --save
via git
npm install git+https://github.com/netlify/styleguide --save
Add the a reference to the entry point for your css in webpack
import "netlify-styleguide/src/css/main.css"
Each page in the styleguide is a markdown document in the folder site/content/styleguide
.
Within the styleguide you can use the {{< example >}}
shortcode to show your HTML snippets.
Header tags will automatically be used to build a table of contents for the page in the sidebar.
To work on the actual CSS edit src/css/main.css
and any files imported there.
To make the styleguide project available via npm, deploy from the command using the following command.
npm pubslih
Always update the version number prior to publishing to npm
Linting is set up using the open source project stylelint. Rules for the linter are set up in the .stylelintrc and can be sourced from here
FAQs
The official style guide used at Netlify.
We found that netlify-styleguide demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.