Bukwild Stylus Library is a collection of opinionated utility mixins, functions, and global conventions designed for Stylus CSS preprocessor projects. It aims to streamline development by providing pre-built solutions for common CSS patterns, particularly focusing on responsive design with its `fluid()` mixin for scaling property values. The library is currently at version 3.2.1. While Stylus itself has had periods of uncertainty regarding maintenance, this library appears to be actively maintained, with a recent update (v3.2.1) published in February 2022. Its key differentiators include the advanced `fluid()` mixin for complex responsive scaling and the provision of `boilerplate.styl` for quick setup with Bukwild's internal conventions. It is specifically built for Stylus, differentiating it from Sass or Less-based utility collections.
npm install bukwild-stylus-libraryVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import the main Stylus library and utilize the `fluid()` mixin for responsive scaling of CSS properties and custom properties.
If specific max-break behavior is required, explicitly set the `fluid-default-max-break` variable in your Stylus project before importing the library, e.g., `fluid-default-max-break = 1200px`.
Always ensure your `stylus` peer dependency is correctly installed. If encountering `npm ERR! code ETARGET` or similar during `npm install`, check for recent advisories regarding the main `stylus` package on npmjs.com or GitHub and consider temporary workarounds like using a specific version from the GitHub repository if the npm package is affected.
Always refer to the library's examples for correct mixin usage. For `fluid()`, ensure property name comes first, followed by values, and then optional named arguments (`min-break: value`). Avoid using CSS property names as mixin names to prevent 'transparent mixin' conflicts.
Check the `stylus` package's official npm page or GitHub repository for status updates. You might need to temporarily override the `stylus` version in your `package.json` to a known good one or use a GitHub reference if the npm registry version is unavailable.
Ensure `bukwild-stylus-library` is listed in your `package.json` and installed (`npm install` or `yarn install`). Verify your Stylus compiler configuration (e.g., in webpack, Gulp, or CLI) includes `node_modules` in its `paths` option for resolving `@import` statements starting with `~`.
Ensure that `@import "~bukwild-stylus-library/index.styl";` is present at the top of your main Stylus file or any file that requires the mixins. Also, verify that no syntax errors in the import path or the imported file itself are preventing successful loading.