antonyz89/yii2-material-design-lite

Material Design Lite for Yii2

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 3

Language:JavaScript

Type:yii2-extension

v0.0.1-beta 2021-07-20 03:55 UTC

This package is auto-updated.

Last update: 2024-11-29 06:22:56 UTC


README

Material Design Lite for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist antonyz89/yii2-material-design-lite "*"

or add

"antonyz89/yii2-material-design-lite": "*"

to the require section of your composer.json file.

Usage

Before use:

  1. Remove bootstrap css
  2. Remove Kartik's DialogBootstrap js and css
# common/config/main.php

[
    'components' => [
        'assetManager' => [
            //'forceCopy' => true,
            'converter' => [
                //'forceConvert' => true,
                'commands' => [
                    'scss' => ['css', 'sass {from} {to} --source-map'],
                ]
            ],
            'bundles' => [
                BootstrapAsset::class => ['css' => []],
                DialogBootstrapAsset::class => ['js' => [], 'css' => []]
            ]
        ]
    ] 
];
  1. add MaterialAsset::class to your AppAsset::class
use antonyz89\mdl\MaterialAsset;
use yii\web\YiiAsset;

class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';

    public $css = [];
    public $js = [];
    public $depends = [
        // ...
        YiiAsset::class,
        MaterialAsset::class
    ];
}

FEATURES

  • Material Design via Material Design Lite

  • Ecmascript 6 (with babel)

  • Responsive dark and white Material Design.

  • User experience focused

  • Sass

  • D3 and NVD3

  • MIT License

CREDITS

Support the project

  • Star the repo
  • Create issue report or feature request