This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathvars.js
55 lines (43 loc) · 1.67 KB
/
vars.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// @ts-check
/**
* @typedef {import("../index").DrawerVars} DrawerVars
*/
import { rgba } from "polythene-core-css";
import { vars } from "polythene-theme";
import { sharedVars as shadowVars } from "polythene-css-shadow";
const themeVars = {
backdrop: false,
border: undefined, // set to `true` or `false`
cover: false,
floating: false,
mini: false,
permanent: false,
push: false,
z_index: vars.z_drawer,
...shadowVars
};
/**
* @type {DrawerVars} drawerVars
*/
const drawerVars = {
/**
* Generate general styles, not defined by variables
*/
general_styles: true,
animation_delay: "0s",
animation_duration: ".260s",
animation_timing_function: "ease-in-out",
border_radius: 0,
content_max_width: 5 * vars.increment, // 5 * 56
content_width: 240,
content_width_mini_collapsed: vars.increment, // 1 * 56
// color vars
color_light_backdrop_background: "rgba(0, 0, 0, .4)",
color_dark_backdrop_background: "rgba(0, 0, 0, .5)",
color_light_background: rgba(vars.color_light_background),
color_dark_background: rgba(vars.color_dark_background),
color_light_border: rgba(vars.color_light_foreground, vars.blend_light_border_light),
color_dark_border: rgba(vars.color_dark_foreground, vars.blend_dark_border_light),
...themeVars
};
export default drawerVars;