Skip to content

Commit 7a59f5a

Browse files
committed
update README
- Fix theme.
1 parent e680743 commit 7a59f5a

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

.changeset/perfect-jeans-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@9am/ctrl-panel': patch
3+
---
4+
5+
Fix theme.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
<img alt="ctrl-panel" src="https://user-images.githubusercontent.com/1435457/202668072-2d92cdc5-e723-4b1f-bc0a-b6126d5af1ba.png" width="240" />
33
<h1>ctrl-panel</h1>
44
<p>A simple control panel.</p>
5+
<p>
6+
<a href="https://github.com/9am/ctrl-panel/blob/main/LICENSE">
7+
<img alt="GitHub" src="https://img.shields.io/github/license/9am/ctrl-panel?style=flat-square&color=success">
8+
</a>
9+
<a href="https://www.npmjs.com/package/@9am/ctrl-panel">
10+
<img alt="npm" src="https://img.shields.io/npm/v/@9am/ctrl-panel?style=flat-square&color=orange">
11+
</a>
12+
<a href="https://www.npmjs.com/package/@9am/ctrl-panel">
13+
<img alt="npm" src="https://img.shields.io/npm/dt/@9am/ctrl-panel?style=flat-square&color=blue">
14+
</a>
15+
<a href="https://bundlephobia.com/package/@9am/ctrl-panel@latest">
16+
<img alt="npm bundle size" src="https://img.shields.io/bundlephobia/minzip/@9am/ctrl-panel?style=flat-square">
17+
</a>
18+
</p>
519
</div>
620

721
---

lib/ctrl-color/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class CtrlColor extends CtrlBase {
5252
return this._input.value;
5353
}
5454
get default(): Value {
55-
return this.getAttribute('default') || '';
55+
return this.getAttribute('default') || '#000000';
5656
}
5757
}
5858

lib/theme/neumorphism.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,14 @@
4444
border-radius: 6px;
4545
border: var(--border);
4646
box-shadow: var(--shadow-l-up);
47-
& > .label {
48-
color: red;
49-
}
5047
}
5148
&::part(meter) {
5249
--color-1: rgba(255,255,255,0.5);
5350
--color-2: lightgrey;
5451
--color-3: lightgrey;
5552
}
5653
&::part(g-label) {
57-
transform: translateY(80%);
54+
transform: translateY(50%);
5855
}
5956
&::part(i-track) {
6057
}

0 commit comments

Comments
 (0)