PHPackages                             ouun/stage-laravel-tailwind-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ouun/stage-laravel-tailwind-config

ActiveLibrary

ouun/stage-laravel-tailwind-config
==================================

Get access to the tailwind config values in your Sage &amp; Stage Project

v1.0.0(6y ago)49592MITPHPPHP &gt;=7.2

Since Apr 7Pushed 6y agoCompare

[ Source](https://github.com/ouun/stage-laravel-tailwind-config)[ Packagist](https://packagist.org/packages/ouun/stage-laravel-tailwind-config)[ RSS](/packages/ouun-stage-laravel-tailwind-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Tailwind Config
=======================

[](#laravel-tailwind-config)

This is a fork form [approvedio/laravel-mix-export-tailwind-config](https://github.com/approvedio/laravel-mix-export-tailwind-config) to use with [Roots Sage](https://roots.io/sage) &gt; 10 &amp; Stage. The original author [Michael Boffey](https://github.com/boffey) described it like this:

"I've recently found myself using Tailwind more and more but have run into a few situations where I need to access tailwind config values within my blade templates. The most recent event occurred when building a admin section and i needed to access a color defined within the tailwind config file to pass to a charting library. Instead of hardcoding the value I decided to create this library."

Installation
------------

[](#installation)

```
composer require ouun/stage-laravel-tailwind-config
```

### Publish Config

[](#publish-config)

```
$  wp acorn vendor:publish --provider="Stage\Tailwind\TailwindServiceProvider"

```

The application service provider and facade will be automatically registered for you.

Or add the service provider to your app.php config file

```
Stage\Tailwind\TailwindServiceProvider::class,
```

Optionally you can add the alias to the Aliases section of your app.php config file

```
'Tailwind' => Stage\Tailwind\Facades\Tailwind::class,
```

Usage
-----

[](#usage)

You can use the facade

```
Tailwind::get('colors.red-light', '#FF0000');
```

You can use the helper method

```
tailwind('colors.red-light', '#FF0000');
```

Config
------

[](#config)

By default we assume your tailwind config file is called tailwind.json in the `/dist folder of your project. you can override this configuration by publishing the config and updating the path to your tailwind.json file.

```
'cache_path' => base_path('dist/tailwind.json'),
```

To generate the tailwind.json file from your config you will either need to use a Webpack export package such as [this one](https://github.com/approvedio/laravel-mix-export-tailwind-config) or add the following Mix extension to your webpack.mix.js:

```
mix.extend('exportTailwindConfig', function(webpackConfig, configPath = './tailwind.js') {
    let fs = require('fs');
    let config = require(configPath);
    let json = JSON.stringify(config, null, 2);

    fs.writeFile('./tailwind.json', json);
});
```

And then call the following mix function to generate this file

```
mix.exportTailwindConfig('./tailwind.js');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1119667d96ab4063e83fd0cd4797ec2e010d86e24e1a4bec13ce9cc5f5b045f?d=identicon)[ouun](/maintainers/ouun)

---

Top Contributors

[![ouun](https://avatars.githubusercontent.com/u/32090713?v=4)](https://github.com/ouun "ouun (6 commits)")[![boffey](https://avatars.githubusercontent.com/u/1876437?v=4)](https://github.com/boffey "boffey (5 commits)")[![oxyc](https://avatars.githubusercontent.com/u/302736?v=4)](https://github.com/oxyc "oxyc (1 commits)")

### Embed Badge

![Health badge](/badges/ouun-stage-laravel-tailwind-config/health.svg)

```
[![Health](https://phpackages.com/badges/ouun-stage-laravel-tailwind-config/health.svg)](https://phpackages.com/packages/ouun-stage-laravel-tailwind-config)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
