Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bourbon Laravel Package

thoughtbot/bourbon

Bourbon is a lightweight Sass/SCSS tool set for modern CSS. It provides simple, semantic mixins and functions, plus helpers for responsiveness and vendor prefixing, so you can write cleaner stylesheets without a heavy framework.

Deep Wiki
Context7

Bourbon is a lightweight, Sass-based mixin library from thoughtbot that helps you write clean, maintainable CSS without a bulky framework. It provides a focused set of helpers, functions, and mixins that smooth over common patterns and improve consistency across projects.

Designed to be composable and framework-agnostic, thoughtbot/bourbon fits easily into existing Sass workflows and pairs well with modern toolchains.

  • Sass mixins for common layout and UI patterns
  • Handy functions for math, units, and color utilities
  • Add-on friendly architecture (e.g., works well with Neat/Bitters)
  • Encourages semantic, readable styles over heavy abstractions
  • Simple install and integration with typical build pipelines
Frequently asked questions about Bourbon
Can I use Bourbon with Laravel Mix for frontend assets?
Technically yes, but it’s not recommended. Bourbon requires older Sass versions (3.4+), while Laravel Mix defaults to Dart Sass. You’d need to manually configure compatibility, risking broken builds or security gaps. Modern Sass features (like maps and functions) already cover Bourbon’s utilities, making it redundant.
Is Bourbon still maintained or safe for Laravel projects?
No, Bourbon is archived with no updates since 2023. It relies on outdated Sass versions, creating compatibility issues with Laravel’s toolchain. Using it introduces security risks from unpatched vulnerabilities and broken functionality. Always prefer actively maintained alternatives like `sass-mixins` or framework-specific solutions.
What Laravel versions support Bourbon in the frontend pipeline?
Bourbon isn’t a Laravel package—it’s a Sass library—but it *might* work with older Laravel versions (pre-8.x) using Webpack Encore or custom Mix setups. Newer Laravel releases (9.x+) use Dart Sass by default, which Bourbon won’t support. Test thoroughly if attempting integration.
Are there modern alternatives to Bourbon for Laravel’s frontend?
Yes. Use native Sass features (e.g., `@mixin`, `maps`) or libraries like `sass-mixins` for lightweight utilities. For structured CSS, consider Tailwind CSS or framework-agnostic tools like PostCSS. Laravel Mix already includes modern Sass—extend it instead of adding legacy dependencies.
How do I install Bourbon in a Laravel project?
Bourbon isn’t a Composer package—install it via npm (`npm install bourbon --save-dev`) and import it in your Sass files. However, this requires downgrading Sass to v3.x, which conflicts with Laravel Mix’s Dart Sass. Avoid this path unless maintaining a legacy project.
Will Bourbon break when upgrading Laravel or Node.js?
Almost certainly. Bourbon depends on Sass v3.x, but Laravel Mix uses Dart Sass (v1.x+). Upgrading Node.js or Laravel will likely break Bourbon’s functionality. Modern toolchains prioritize compatibility—Bourbon’s archived status guarantees future friction.
Can I use Bourbon with Laravel Vite or Inertia.js?
No, Bourbon is incompatible with Laravel Vite’s default Sass setup (Dart Sass). Vite uses `@vitejs/plugin-vue` or `@vitejs/plugin-react`, which assume modern Sass. Bourbon’s Sass 3.x dependency would require manual overrides, defeating Vite’s purpose. Stick to native Sass or Vite-compatible libraries.
Does Bourbon work with Tailwind CSS in Laravel?
No, Bourbon and Tailwind CSS are mutually exclusive. Tailwind already includes utility-first classes, eliminating the need for Bourbon’s mixins. Mixing them would bloat your build process and create style conflicts. Use Tailwind’s built-in features or lightweight Sass plugins instead.
How do I test Bourbon in a Laravel project before committing?
Test Bourbon in isolation by creating a standalone Sass file importing it, then compiling with `sass --version 3.4` (if you have Sass 3.x installed). Check for errors in Laravel Mix by temporarily overriding the Sass loader, but expect failures due to version mismatches. Document any workarounds as technical debt.
What are the production risks of using Bourbon in Laravel?
Production risks include broken CSS builds, security vulnerabilities from unpatched Sass 3.x, and compatibility issues with CDNs or caching layers expecting modern Sass. Bourbon’s lack of maintenance means no fixes for regressions in Laravel’s evolving toolchain. Prioritize stability by using maintained, framework-aligned tools.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport