1.3.6 • Published 7 months ago
seazon v1.3.6
Seazon
Installation
npm install seazon
How to use ?
Import theme from the library in your parent file
import theme from "seazon";
You inform your summer and winter seasons begining date in dd/MM format
theme.getThemeFromDate("20/06","18/12");
*The first date sets the start of the summer season and the second the end
Classes are automatically updated and can be declared in all project files. Here are the possible classes :
Class Name | season | Hex |
---|---|---|
seazon-main-color | winter | #ebf5ee |
seazon-second-color | winter | #283044 |
seazon-third-color | winter | #78A1BB |
seazon-main-color | summer | #f0ead2 |
seazon-second-color | summer | #adc178 |
seazon-third-color | summer | #dde5b6 |
Here is a list of functions included by the module :
- getThemeFromDate("date1","date2")