Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@bjankord/style-guide-boilerplate
Advanced tools
A starting point for crafting living style guides.
A starting point for crafting living style guides.
Note: Sample patterns have been included in the demo. Your site will have its own unique patterns.
You can clone, fork, or download the repo from GitHub. Once you have the files for Style Guide Boilerplate, you'll create a directory on your site for them.
I recommend creating a directory named style-guide
in your site's root directory.
Style Guide Boilerplate is currently PHP based so you will need a server that supports PHP. Upload the files from the GitHub repo to your newly created directory.
In the <head>
of Style Guide Boilerplate are custom styles for the boilerplate itself. These have all been prefixed with sg- so they hopefully shouldn't cause any conflicts with your website's own styles.
Below the custom styles for the boilerplate, you will add in your own custom stylesheet(s) which you use on your live site.
<!-- Style Guide Boilerplate Styles -->
<link rel="stylesheet" href="css/sg-style.css">
<!-- Replace below stylesheet with your own stylesheet -->
<link rel="stylesheet" href="css/style.css">
You should be able to go to yoursite.com/style-guide/
and see how your live site's CSS affects base elements.
The last step is creating your site's custom patterns/modules.
To create custom patterns like buttons, breadcrumbs, alert messages, etc., create a new .html file and add your HTML markup into the file.
Save the file as pattern-name.html
into the markup/patterns
directory inside of your style-guide
directory.
You should now be able to see the new patterns at yoursite.com/style-guide/
You can use markdown or html to create personalized documentation for your examples. Create a new .md or .html file and name it whatever your markup snippet file is named.
Save the file as markup-name.md
or markup-name.html
into the doc/base
or doc/patterns
directory inside of your style-guide
directory.
For example, if you want to create doc for markup/patterns/breadcrumbs.html
, create a file called breadcrumbs.md
or breadcrumbs.html
and save it into doc/patterns
.
You should now be able to see the new doc at yoursite.com/style-guide/
You can run the application with PHP's built in web server. Run the following command:
php -S localhost:8000
Now, browse to http://localhost:8000 to see the website.
You can generate a static index.html version of style guide boilerplate by running the following command:
php index.php > index.html
I've built Style Guide Boilerplate with progressive enhancement in mind to work on a wide range of browsers.
Known supported browsers include:
If you come across any bugs, or have any other issues with the boilerplate, please open an issue here on GitHub.
Paul Robert Llyod's Style Guide
Thanks to:
Jeremy Keith for letting me build on top of Pattern Primer.
Please take a moment to review the guidelines for contributing.
Style Guide Boilerplate is licensed under the MIT License
FAQs
A starting point for crafting living style guides.
The npm package @bjankord/style-guide-boilerplate receives a total of 2 weekly downloads. As such, @bjankord/style-guide-boilerplate popularity was classified as not popular.
We found that @bjankord/style-guide-boilerplate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.