@neatui/css 3.9.0 → 3.10.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/core/theme.scss +11 -6
  2. package/package.json +1 -1
package/core/theme.scss CHANGED
@@ -88,7 +88,7 @@
88
88
  note: mix-int(map.get($s, 'text'), map.get($s, 'fore'), 35%),
89
89
  case: mix-int(map.get($s, 'text'), map.get($s, 'fore'), 20%),
90
90
  line: mix-int(map.get($s, 'text'), map.get($s, 'fore'), 10%),
91
- weak: mix-int(map.get($s, 'text'), map.get($s, 'fore'), 3%),
91
+ weak: mix-int(map.get($s, 'text'), map.get($s, 'fore'), 3.5%),
92
92
  deep: deep-color(map.get($s, 'back')),
93
93
  );
94
94
  $theme: map.merge(
@@ -101,7 +101,7 @@
101
101
  }
102
102
 
103
103
  // 生成变量
104
- $levels: xs, ss, sm, sl, ms, mm, ml, ls, lm, ll, xl;
104
+ $levels: xxs, xs, ss, sm, sl, ms, mm, ml, ls, lm, ll, xl, xxl;
105
105
  $colors: main, text, well, warn, risk;
106
106
  $f: list.nth(list.nth($theme, 1), 1);
107
107
  @each $i in $theme {
@@ -121,7 +121,7 @@
121
121
  --co-#{$k}-text: #{mix-int($v, map.get($s, 'text'), 100%)};
122
122
  }
123
123
 
124
- $ls: 0.05;
124
+ $ls: 0.035;
125
125
  @each $l in $levels {
126
126
  // 透明度
127
127
  @if ($k != 'none') {
@@ -133,7 +133,10 @@
133
133
  --co-#{$k}-text-#{$l}: #{mix-int($v, map.get($s, 'text'), $ls * 100%)};
134
134
  }
135
135
  }
136
- @if ($ls <= 0.1 or $ls >= 0.8) {
136
+
137
+ @if ($ls == 0.035) {
138
+ $ls: 0.05;
139
+ } @else if($ls <= 0.1 or $ls >= 0.8) {
137
140
  $ls: $ls + 0.05;
138
141
  } @else {
139
142
  $ls: $ls + 0.1;
@@ -156,7 +159,7 @@
156
159
  --co-#{$k}-text: #{mix-int($v, map.get($s, 'text'), 100%)};
157
160
  }
158
161
 
159
- $ls: 0.05;
162
+ $ls: 0.035;
160
163
  @each $l in $levels {
161
164
  // 透明度
162
165
  @if ($k != 'none') {
@@ -170,7 +173,9 @@
170
173
  --co-#{$k}-text-#{$l}: #{mix-int($v, map.get($s, 'text'), $ls * 100%)};
171
174
  }
172
175
  }
173
- @if ($ls <= 0.1 or $ls >= 0.8) {
176
+ @if ($ls == 0.035) {
177
+ $ls: 0.05;
178
+ } @else if($ls <= 0.1 or $ls >= 0.8) {
174
179
  $ls: $ls + 0.05;
175
180
  } @else {
176
181
  $ls: $ls + 0.1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/css",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "neatui",
5
5
  "main": "./neatui.scss",
6
6
  "license": "MIT",