Commit 66c3e41780e0a5e78d678d96cbf93699f0b37dee

Authored by Evandro Junior
1 parent 6be9287d

improve readme.md

Showing 1 changed file with 11 additions and 2 deletions   Show diff stats
@@ -55,18 +55,27 @@ See some important folders bellow: @@ -55,18 +55,27 @@ See some important folders bellow:
55 55
56 - Create an any scss file into: `app/layout/skins/` 56 - Create an any scss file into: `app/layout/skins/`
57 > **Suggestion:** Create a `sass` file partial. Something like: **`_mycustom.scss`**. 57 > **Suggestion:** Create a `sass` file partial. Something like: **`_mycustom.scss`**.
58 - 58 +
59 - Extend your skin css class from `%skin-base` scss placeholder selector. Something like this: 59 - Extend your skin css class from `%skin-base` scss placeholder selector. Something like this:
60 > **Suggestion:** Use the prefix **`skin-`** to the css class 60 > **Suggestion:** Use the prefix **`skin-`** to the css class
61 61
62 ```sass 62 ```sass
63 -.skin-custom { 63 +.skin-mycustom {
64 @extend %skin-base 64 @extend %skin-base
65 } 65 }
66 ``` 66 ```
67 - Configure application to use the new theme, e.g.: 67 - Configure application to use the new theme, e.g.:
68 `npm config set angular-theme:skin skin-mycustom` 68 `npm config set angular-theme:skin skin-mycustom`
69 69
  70 +**N.B.**
  71 +
  72 +1-The full name of the scss class should be used as the parameter for the command `npm config set angular-theme:`, like in _skin-mycustom_. DO NOT use the file name of the skin as the parameter.
  73 +
  74 +2-The skin's file should be the named as the scss class without the word `skin`, preceded by an underline. Otherwise it will raise an error during `npm install`.
  75 +
  76 +Example: _mycustom.
  77 +
  78 +
70 - Start the application with `npm start` scripts or make a build 79 - Start the application with `npm start` scripts or make a build
71 > **PS:** If the configured skin is invalid, an error message is showed in the terminal. 80 > **PS:** If the configured skin is invalid, an error message is showed in the terminal.
72 81