@oardi/css-utils 0.110.0 → 0.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scss/theme.scss +151 -141
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/css-utils",
3
- "version": "0.110.0",
3
+ "version": "0.111.0",
4
4
  "author": "Ardian Shala",
5
5
  "homepage": "https://css-utils.oardi.com",
6
6
  "description": "Powerful set of semantic css classes with support for breakpoints, directions and spacings",
package/scss/theme.scss CHANGED
@@ -1,159 +1,169 @@
1
1
  @use 'sass:map';
2
2
 
3
- $spacer: 1rem;
3
+ $-spacer: 1rem;
4
4
 
5
- $default-theme: (
6
- colors: (
7
- 'primary': (
8
- base: #8151dd,
9
- hover: #7c4cd9,
10
- active: #6f3bd2,
11
- on: #ffffff,
12
- ),
13
- 'secondary': (
14
- base: #526070,
15
- hover: #465362,
16
- active: #394551,
17
- on: #ffffff,
18
- ),
19
- 'success': (
20
- base: #087f5b,
21
- hover: #06704f,
22
- active: #055f43,
23
- on: #ffffff,
24
- ),
25
- 'warning': (
26
- base: #b45309,
27
- hover: #994407,
28
- active: #7c3605,
29
- on: #ffffff,
30
- ),
31
- 'error': (
32
- base: #d13a4b,
33
- hover: #bb2f40,
34
- active: #a22636,
35
- on: #ffffff,
36
- ),
5
+ $-colors: (
6
+ 'primary': (
7
+ base: #8151dd,
8
+ hover: #7c4cd9,
9
+ active: #6f3bd2,
10
+ on: #ffffff,
37
11
  ),
38
- dark-colors: (
39
- 'primary': (
40
- base: #ccb4f7,
41
- hover: #d6c1f8,
42
- active: #e2d3fb,
43
- on: #1a1a1a,
44
- ),
45
- 'secondary': (
46
- base: #aeb9c7,
47
- hover: #c0c9d4,
48
- active: #d1d8e0,
49
- on: #1a1a1a,
50
- ),
51
- 'success': (
52
- base: #58d3a1,
53
- hover: #72ddb2,
54
- active: #8ce6c3,
55
- on: #1a1a1a,
56
- ),
57
- 'warning': (
58
- base: #f4bf4f,
59
- hover: #f7cd70,
60
- active: #f9da91,
61
- on: #000000,
62
- ),
63
- 'error': (
64
- base: #fa8793,
65
- hover: #fba0aa,
66
- active: #fcb8bf,
67
- on: #1a1a1a,
68
- ),
12
+ 'secondary': (
13
+ base: #526070,
14
+ hover: #465362,
15
+ active: #394551,
16
+ on: #ffffff,
69
17
  ),
70
- grays: (
71
- 50: hsl(0, 0%, 95%),
72
- 100: hsl(0, 0%, 90%),
73
- 150: hsl(0, 0%, 85%),
74
- 200: hsl(0, 0%, 80%),
75
- 250: hsl(0, 0%, 75%),
76
- 300: hsl(0, 0%, 70%),
77
- 350: hsl(0, 0%, 65%),
78
- 400: hsl(0, 0%, 60%),
79
- 450: hsl(0, 0%, 55%),
80
- 500: hsl(0, 0%, 50%),
81
- 550: hsl(0, 0%, 45%),
82
- 600: hsl(0, 0%, 40%),
83
- 650: hsl(0, 0%, 35%),
84
- 700: hsl(0, 0%, 30%),
85
- 750: hsl(0, 0%, 25%),
86
- 800: hsl(0, 0%, 20%),
87
- 850: hsl(0, 0%, 15%),
88
- 900: hsl(0, 0%, 10%),
89
- 950: hsl(0, 0%, 5%),
18
+ 'success': (
19
+ base: #087f5b,
20
+ hover: #06704f,
21
+ active: #055f43,
22
+ on: #ffffff,
90
23
  ),
91
- directions: (
92
- t: top,
93
- e: inline-end,
94
- b: bottom,
95
- s: inline-start,
96
- // add x for left and right
97
- // add y for top and bottom
24
+ 'warning': (
25
+ base: #b45309,
26
+ hover: #994407,
27
+ active: #7c3605,
28
+ on: #ffffff,
98
29
  ),
99
- spacings: (
100
- 0: 0,
101
- 1: $spacer * 0.25,
102
- 2: $spacer * 0.5,
103
- 3: $spacer,
104
- 4: $spacer * 1.5,
105
- 5: $spacer * 3,
106
- // add auto
30
+ 'error': (
31
+ base: #d13a4b,
32
+ hover: #bb2f40,
33
+ active: #a22636,
34
+ on: #ffffff,
107
35
  ),
108
- positions: (
109
- relative,
110
- absolute,
111
- fixed,
112
- static,
113
- sticky,
114
- inherit,
115
- initial,
116
- unset,
36
+ );
37
+
38
+ $-dark-colors: (
39
+ 'primary': (
40
+ base: #ccb4f7,
41
+ hover: #d6c1f8,
42
+ active: #e2d3fb,
43
+ on: #1a1a1a,
117
44
  ),
118
- zIndexLevels: (
119
- n1: -1,
120
- 0: 0,
121
- 1: 1,
122
- 2: 2,
123
- 3: 3,
124
- header: 1000,
125
- tooltip: 1010,
126
- overlay: 1040,
127
- drawer: 1050,
128
- toast: 1060,
45
+ 'secondary': (
46
+ base: #aeb9c7,
47
+ hover: #c0c9d4,
48
+ active: #d1d8e0,
49
+ on: #1a1a1a,
129
50
  ),
130
- breakpoints: (
131
- sm: 576px,
132
- md: 768px,
133
- lg: 992px,
134
- xl: 1200px,
135
- xxl: 1400px,
51
+ 'success': (
52
+ base: #58d3a1,
53
+ hover: #72ddb2,
54
+ active: #8ce6c3,
55
+ on: #1a1a1a,
136
56
  ),
137
- lineHeights: (
138
- xs: 1,
139
- sm: 1.125,
140
- md: 1.25,
141
- lg: 1.5,
142
- xl: 1.75,
143
- xxl: 2,
144
- xxxl: 2.5,
57
+ 'warning': (
58
+ base: #f4bf4f,
59
+ hover: #f7cd70,
60
+ active: #f9da91,
61
+ on: #000000,
145
62
  ),
146
- fontSizes: (
147
- xs: 0.75rem,
148
- sm: 0.875rem,
149
- md: 1rem,
150
- lg: 1.125rem,
151
- xl: 1.25rem,
152
- xxl: 1.5rem,
153
- xxxl: 2rem,
63
+ 'error': (
64
+ base: #fa8793,
65
+ hover: #fba0aa,
66
+ active: #fcb8bf,
67
+ on: #1a1a1a,
154
68
  ),
155
69
  );
156
70
 
71
+ $-grays: (
72
+ 50: hsl(0, 0%, 95%),
73
+ 100: hsl(0, 0%, 90%),
74
+ 150: hsl(0, 0%, 85%),
75
+ 200: hsl(0, 0%, 80%),
76
+ 250: hsl(0, 0%, 75%),
77
+ 300: hsl(0, 0%, 70%),
78
+ 350: hsl(0, 0%, 65%),
79
+ 400: hsl(0, 0%, 60%),
80
+ 450: hsl(0, 0%, 55%),
81
+ 500: hsl(0, 0%, 50%),
82
+ 550: hsl(0, 0%, 45%),
83
+ 600: hsl(0, 0%, 40%),
84
+ 650: hsl(0, 0%, 35%),
85
+ 700: hsl(0, 0%, 30%),
86
+ 750: hsl(0, 0%, 25%),
87
+ 800: hsl(0, 0%, 20%),
88
+ 850: hsl(0, 0%, 15%),
89
+ 900: hsl(0, 0%, 10%),
90
+ 950: hsl(0, 0%, 5%),
91
+ );
92
+
93
+ $-directions: (
94
+ t: top,
95
+ e: inline-end,
96
+ b: bottom,
97
+ s: inline-start,
98
+ // add x for left and right
99
+ // add y for top and bottom
100
+ );
101
+
102
+ $-spacings: (
103
+ 0: 0,
104
+ 1: $-spacer * 0.25,
105
+ 2: $-spacer * 0.5,
106
+ 3: $-spacer,
107
+ 4: $-spacer * 1.5,
108
+ 5: $-spacer * 3, // add auto
109
+ );
110
+
111
+ $-positions: (relative, absolute, fixed, static, sticky, inherit, initial, unset);
112
+
113
+ $-z-index-levels: (
114
+ n1: -1,
115
+ 0: 0,
116
+ 1: 1,
117
+ 2: 2,
118
+ 3: 3,
119
+ header: 1000,
120
+ tooltip: 1010,
121
+ overlay: 1040,
122
+ drawer: 1050,
123
+ toast: 1060,
124
+ );
125
+
126
+ $-breakpoints: (
127
+ sm: 576px,
128
+ md: 768px,
129
+ lg: 992px,
130
+ xl: 1200px,
131
+ xxl: 1400px,
132
+ );
133
+
134
+ $-line-heights: (
135
+ xs: 1,
136
+ sm: 1.125,
137
+ md: 1.25,
138
+ lg: 1.5,
139
+ xl: 1.75,
140
+ xxl: 2,
141
+ xxxl: 2.5,
142
+ );
143
+
144
+ $-font-sizes: (
145
+ xs: 0.75rem,
146
+ sm: 0.875rem,
147
+ md: 1rem,
148
+ lg: 1.125rem,
149
+ xl: 1.25rem,
150
+ xxl: 1.5rem,
151
+ xxxl: 2rem,
152
+ );
153
+
154
+ $default-theme: (
155
+ colors: $-colors,
156
+ dark-colors: $-dark-colors,
157
+ grays: $-grays,
158
+ directions: $-directions,
159
+ spacings: $-spacings,
160
+ positions: $-positions,
161
+ zIndexLevels: $-z-index-levels,
162
+ breakpoints: $-breakpoints,
163
+ lineHeights: $-line-heights,
164
+ fontSizes: $-font-sizes,
165
+ );
166
+
157
167
  $theme: () !default; // user overrides via with()
158
168
 
159
169
  $theme: map.deep-merge($default-theme, $theme);