Streamline the Laravel SaaS Starter Kit - Launch Your Next SaaS Today

Documentation

Learn how to download and use Turbine UI components in your own projects

Download

Turbine UI Core is free and can be downloaded via composer

                
composer require brandymedia/turbine-ui-core

Quick Demo

Here is a quick demonstration on how to use Turbine UI:

Installation

Requirements

  • MUST be using at least Laravel 10
  • MUST be using at least PHP 8.1
  • MUST be using Tailwind CSS

Tailwind CSS

Once installed you'll need to update your tailwind.config.js file.

In the 'content' section, add ./vendor/brandymedia/turbine-ui-core/**/*.php as a new line:

                
content: [
'...'
'./vendor/brandymedia/turbine-ui-core/**/*.php',
],

You'll also need to make sure you're using the Tailwind Forms plugin in your tailwind.config.js file. This is normally included by default when using a starter kit such as Laravel Breeze.

                
import forms from '@tailwindcss/forms';
 
export default {
...
plugins: [forms],
};

Then in development run:

                
npm run dev

Or in production run:

                
npm run build

Theming

Turbine UI Core comes with 1 theme by default with further themes available with Turbine UI Pro:

  • Kinetic (default)
  • Primal (Pro)

You can switch themes by adding the TURBINE_UI_THEME key to your .env file:

                
TURBINE_UI_THEME=kinetic|primal

You can also edit themes by publishing the packages assets:

                
php artisan vendor:publish --tag=turbine-ui-themes

This makes local copies of the themes in the ./resources/views/vendor/turbine-ui/themes directory which can then be edited to meet your requirements.

To use local themes, you will need to update your tailwind.config.js file.

In the 'content' section, add ./resources/views/**/*.php as a new line:

                
content: [
'...'
'./resources/views/**/*.php',
],

Variants

Think of variants as colour palettes. The default themes already come with several predefined variants but you can create your own, or even overwrite existing one.

To create a new variant, run the following command in your CLI:

                
php artisan turbine:create-variant

You will then be prompted to enter the variants name. To overwrite an existing theme level variant, use the same name for example primary.

Once the new variant has been created you will find it here ../resources/views/vendor/turbine-ui/variants

To use local variants, you will need to update your tailwind.config.js file.

In the 'content' section, add ./resources/views/**/*.php as a new line:

                
content: [
'...'
'./resources/views/**/*.php',
],

You can now use your new variant on your components using kebab-case formatting.

Elements

Coming soon...

JavaScript

Some of the Turbine UI components require JavaScript to function properly.

You'll need to first publish the js files:

                
php artisan vendor:publish --tag=turbine-ui-js

Then add the Turbine UI blade directive to your head:

                
@turbineUI

Components

You can view the documentation for each of the components here.

Theme