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

Getting Started

Bourbon is a lightweight mixin library for Sass, providing clean, modern, and semantic helper functions and mixins. Since it's archived (as of 2023), it’s considered stable but no longer actively developed—ideal for legacy or stable-codebase use. Begin by installing via npm or yarn:

npm install --save-dev bourbon  
# or  
yarn add --dev bourbon  

Include Bourbon in your Sass entrypoint (e.g., app.scss):

@import "~bourbon/core/bourbon";  

The first use case is typically cleaning up vendor-prefixed properties—e.g., using @include border-radius(8px); instead of manually writing border-radius, -webkit-border-radius, and -moz-border-radius.

Implementation Patterns

  • Legacy Codebases: Still useful in Rails apps (via the bourbon gem) or older Node/Sass pipelines where upgrading to newer tools like sass-mixins or @fontsource-style packages isn’t feasible.
  • Clean Syntax & Customization: Combine Bourbon’s @include mixins with your own utility classes. Its neat grid system (separate package) pairs well for responsive layouts.
  • Minimal Setup: Unlike Bootstrap, Bourbon doesn’t enforce structure—you define your own CSS cascade and naming conventions. Mixins like @include size(100%, auto); simplify common patterns.
  • Preprocessor Compatibility: Works best with Dart Sass (libsass is deprecated). Ensure your build pipeline (e.g., Webpack, Vite with sass, Laravel Mix) compiles .scss with silence-deprecation: true for best compatibility.

Gotchas and Tips

  • No New Features: Since archived (2023), modern CSS features (e.g., gap, row-gap, new flexbox helpers) won’t be added—use native CSS or Superseded-Bourbon alternatives like @csstools/postcss-plugins.
  • Deprecated in New Projects: For new apps, prefer built-in Sass features (e.g., @mixin, @function) or sass:math—Bourbon adds little value over vanilla Sass now.
  • Build Errors: If seeing File to import not found or unreadable: bourbon, verify includePaths config in sass-loader (e.g., add node_modules or ~bourbon/core).
  • Naming Conflicts: Avoid importing bourbon and neat into the same scope without namespacing to prevent mixin collisions.
  • Migrating Off: To move away, replace @include transition(...), @include clearfix, etc., with equivalents in PostCSS (via postcss-preset-env) or native CSS.
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