Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
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.
bigiron.css
Advanced tools
A drop-in collection of CSS styles to make simple websites just a little nicer
🌊 A drop-in collection of CSS styles to make simple websites just a little nicer
Just stick this in your <head>
:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bigiron.css@2/out/bigiron.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bigiron.css@2/out/dark.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bigiron.css@2/out/light.min.css">
Do you want to make some adjustments or build your own theme completely different from the official dark or light themes? Since Bigiron.css is built with CSS variables this is super easy to do! Here's a list list of all the variables you can change to your liking:
--background-body
--background
--background-alt
--selection
--text-main
--text-bright
--text-muted
--links
--focus
--border
--code
--animation-duration
--button-hover
--scrollbar-thumb
--scrollbar-thumb-hover
--form-placeholder
--form-text
--variable
--highlight
--select-arrow
⚠ If you use a version with support for legacy browsers like Internet Explorer, skip to Compiling your own theme!
Bigiron.css uses Custom Properties ("CSS variables") to define its base styles such as colors. These can be changed and overwritten right in the browser.
Because of this, you can simply add your own stylesheet to the page and set your own CSS variables there. As long as your stylesheet comes after Bigiron.css in the HTML, your values will override the default ones and your theme is applied!
This short example will use Bigiron.css, but color all links red:
<style>
:root {
--links: red;
}
</style>
If you want to change a value for dark or light mode only, use a media query like this:
<style>
:root {
--links: blue; /* Always applied */
}
@media (prefers-color-scheme: dark) {
:root {
--links: yellow; /* Only applied in dark mode (overrides blue) */
}
}
</style>
If you are targeting browsers without support for CSS Custom Properties such as Internet Explorer, runtime theming is not an option. To apply your own theming, you'll need to make your changes in the source files themselves, then re-compile the CSS files. This works like the following:
npm i
to install dependenciessrc/variables-*.css
npm build
to compile the CSS filesout/
directory on your siteBigiron.css becomes better for everyone when people like you help make it better!
To publish, commit a conventional commit message with your changes,
e.g. fix: fixed some-ting
, and github should build your package for you.
FAQs
A drop-in collection of CSS styles to make simple websites just a little nicer
We found that bigiron.css 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
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.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.