ada-ui 5.2.0 → 5.3.1
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.
- package/CHANGELOG.md +16 -0
- package/css/ada.blue.css +1 -1
- package/index.html +8 -2
- package/package.json +1 -1
- package/scss/_ada.theme-base.scss +23 -6
- package/scss/ada.blue.scss +0 -6
- package/style.css +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# ada-ui
|
|
2
2
|
|
|
3
|
+
## 5.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d04cec7: Simplify light theme logic by using a hard-coded light theme lightness and chroma base
|
|
8
|
+
|
|
9
|
+
## 5.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 619db2d: Add base values for lightness and chroma which can be overriden for light theme
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 619db2d: Fix wrong foreground colors for color variants in light theme
|
|
18
|
+
|
|
3
19
|
## 5.2.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/css/ada.blue.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.warn,.shade2,.shade3,.shade1,.primary,:root{--
|
|
1
|
+
.warn,.shade2,.shade3,.shade1,.primary,:root{--l-base: 0.31;--c-base: 0.07;--bg-body: var(--color950);--fg-body: var(--color100);--color100: oklch(0.91 0.05 var(--hue));--color500: oklch( calc(var(--l-base) + 0.15) calc(var(--c-base) + 0.06) var(--hue) );--color600: oklch( calc(var(--l-base) + 0.1) calc(var(--c-base) + 0.04) var(--hue) );--color700: oklch( calc(var(--l-base) + 0.05) calc(var(--c-base) + 0.02) var(--hue) );--color800: oklch(var(--l-base) var(--c-base) var(--hue));--color950: oklch(0.18 0.03 var(--hue));--panel-background: oklch(var(--500) / 0.1)}.light-theme.warn,.light-theme.shade2,.light-theme.shade3,.light-theme.shade1,.light-theme.primary,.light-theme:root,:root.light-theme .warn,:root.light-theme .shade2,:root.light-theme .shade3,:root.light-theme .shade1,:root.light-theme .primary,:root.light-theme :root{--l-base: 0.4;--c-base: 0.1;--bg-body: var(--color100);--fg-body: var(--color800)}.primary,:root{--hue: 246}.shade1{--hue: 225}.shade3{--hue: 165}.shade2{--hue: 190}.warn{--hue: 29}
|
package/index.html
CHANGED
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
<a href="#input" class="command">Input</a>
|
|
45
45
|
<a href="#spinner" class="command">Spinner</a>
|
|
46
46
|
<div style="flex: 1" class="spacer"></div>
|
|
47
|
+
<button
|
|
48
|
+
class="command"
|
|
49
|
+
onclick="document.documentElement.classList.toggle('light-theme'); this.textContent = this.textContent === 'Dark' ? 'Light' : 'Dark'"
|
|
50
|
+
>
|
|
51
|
+
Light
|
|
52
|
+
</button>
|
|
47
53
|
<div class="spacer"></div>
|
|
48
54
|
</div>
|
|
49
55
|
<div class="panel">
|
|
@@ -271,7 +277,7 @@
|
|
|
271
277
|
</p>
|
|
272
278
|
<p
|
|
273
279
|
class="warn"
|
|
274
|
-
style="font-size: var(--scale-lg); color: var(--
|
|
280
|
+
style="font-size: var(--scale-lg); color: var(--fg-body)"
|
|
275
281
|
>
|
|
276
282
|
Double check if ellipsis is really needed and if yes, that the
|
|
277
283
|
full text is visible with another interaction (no tooltip, since
|
|
@@ -394,7 +400,7 @@
|
|
|
394
400
|
<footer></footer>
|
|
395
401
|
</div>
|
|
396
402
|
</article>
|
|
397
|
-
<footer>Ada Version 5
|
|
403
|
+
<footer>Ada Version 5</footer>
|
|
398
404
|
</div>
|
|
399
405
|
</body>
|
|
400
406
|
</html>
|
package/package.json
CHANGED
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
%colourShades {
|
|
2
|
+
--l-base: 0.31;
|
|
3
|
+
--c-base: 0.07;
|
|
4
|
+
--bg-body: var(--color950);
|
|
5
|
+
--fg-body: var(--color100);
|
|
6
|
+
|
|
7
|
+
&.light-theme,
|
|
8
|
+
:root.light-theme & {
|
|
9
|
+
--l-base: 0.4;
|
|
10
|
+
--c-base: 0.1;
|
|
11
|
+
--bg-body: var(--color100);
|
|
12
|
+
--fg-body: var(--color800);
|
|
13
|
+
}
|
|
14
|
+
|
|
2
15
|
--color100: oklch(0.91 0.05 var(--hue));
|
|
3
16
|
|
|
4
|
-
--color500: oklch(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--
|
|
17
|
+
--color500: oklch(
|
|
18
|
+
calc(var(--l-base) + 0.15) calc(var(--c-base) + 0.06) var(--hue)
|
|
19
|
+
);
|
|
20
|
+
--color600: oklch(
|
|
21
|
+
calc(var(--l-base) + 0.1) calc(var(--c-base) + 0.04) var(--hue)
|
|
22
|
+
);
|
|
23
|
+
--color700: oklch(
|
|
24
|
+
calc(var(--l-base) + 0.05) calc(var(--c-base) + 0.02) var(--hue)
|
|
25
|
+
);
|
|
26
|
+
--color800: oklch(var(--l-base) var(--c-base) var(--hue));
|
|
8
27
|
|
|
9
28
|
--color950: oklch(0.18 0.03 var(--hue));
|
|
10
29
|
|
|
11
|
-
--bg-body: var(--bg-body-override, var(--color950));
|
|
12
|
-
--fg-body: var(--fg-body-override, var(--color100));
|
|
13
30
|
--panel-background: oklch(var(--500) / 0.1);
|
|
14
31
|
}
|
package/scss/ada.blue.scss
CHANGED