Skip to content

Simple and minimal mail template / theme for Laravel (with dark-mode support ๐Ÿ˜Ž)

License

Notifications You must be signed in to change notification settings

mansoorkhan96/slick-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Slick Mail

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Slick Mail is a simple and minimal mail theme / template for Laravel applications. It provides a fresh look, dark mode support and configuration options to set primary color and logo without publishing the views.

Installation

You can install the package via composer:

composer require mansoorkhan/slick-mail

Configuration

Once you have installed the package, you will need to instruct Laravel to load the mail views from Slick Mail. You can do so by adding following configuration to config/mail.php file.

'markdown' => [
    'paths' => [
        __DIR__.'/../vendor/mansoor/slick-mail/resources/views',
    ],
]

That's it! You should be able to see a new theme in your emails.

The package provides a configuration file which allows you to change the primary color and the mail logo. You can publish the config file using:

php artisan vendor:publish --tag="slick-mail-config"

Customization

You may customize the Slick Mail components and the theme CSS file. It is very similar to how you would do it for the default Laravel mail. You will need to publish the slick mail views and apply your changes.

You can publish the views using

php artisan vendor:publish --tag="slick-mail-views"

Make sure to update the config/mail.php to point to the newly published views.

'markdown' => [
    'paths' => [
        resource_path('views/vendor/slick-mail'),
    ],
]

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Simple and minimal mail template / theme for Laravel (with dark-mode support ๐Ÿ˜Ž)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published