@luminescent/ui 6.2.5 → 6.3.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/src/index.css +8 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminescent/ui",
3
- "version": "6.2.5",
3
+ "version": "6.3.0",
4
4
  "description": "Luminescent UI library",
5
5
  "exports": {
6
6
  ".": "./src/index.css",
package/src/index.css CHANGED
@@ -13,7 +13,8 @@
13
13
  --lum-default-alpha: 100;
14
14
  --lum-btn-p-x: 2;
15
15
  --lum-input-p-x: 1.5;
16
- --lum-border-radius: var(--radius-md);
16
+ --lum-border-radius: var(--radius-lg);
17
+ --lum-border-superellipse: 1;
17
18
  --lum-border-mix: 20%;
18
19
  --lum-depth: 0;
19
20
  --color-lum-border: var(--color-gray-300);
@@ -37,17 +38,7 @@
37
38
 
38
39
  &:focus {
39
40
  /* Border fades out when depth is active */
40
- border-color: color-mix(
41
- in oklab,
42
- var(--color-lum-accent),
43
- transparent calc(var(--lum-depth) * 100%)
44
- );
45
-
46
- /* Shadow fades in when depth is active */
47
- box-shadow:
48
- inset 0 calc(1px * var(--lum-depth)) calc(2px * var(--lum-depth)) var(--color-lum-accent),
49
- 0 calc(1px * var(--lum-depth)) calc(2px * var(--lum-depth)) rgba(0, 0, 0, 0.05),
50
- 0 calc(1px * var(--lum-depth)) calc(3px * var(--lum-depth)) rgba(0, 0, 0, 0.1);
41
+ border-color: var(--color-lum-accent);
51
42
  }
52
43
 
53
44
  /* Border fades out when depth is active */
@@ -134,10 +125,12 @@
134
125
 
135
126
  @utility rounded-lum {
136
127
  border-radius: var(--lum-border-radius);
128
+ corner-shape: superellipse(var(--lum-border-superellipse));
137
129
  }
138
130
 
139
131
  @utility rounded-lum-* {
140
132
  border-radius: calc(var(--lum-border-radius) - calc(var(--spacing) * --value(integer)));
133
+ corner-shape: superellipse(var(--lum-border-superellipse));
141
134
  }
142
135
 
143
136
  @utility border-gradient-* {
@@ -172,16 +165,19 @@
172
165
  @utility lum-input {
173
166
  @apply flex motion-safe:transition duration-300 hover:duration-75 active:duration-75 ease-out disabled:opacity-50 hover:drop-shadow-lg active:drop-shadow-lg whitespace-nowrap touch-manipulation select-none lum-input-p-2 lum-bg-lum-input-bg hover:lum-bg-lum-input-hover-bg active:lum-bg-lum-input-hover-bg;
174
167
  border-radius: var(--lum-border-radius);
168
+ corner-shape: superellipse(var(--lum-border-superellipse));
175
169
  }
176
170
 
177
171
  @utility lum-btn {
178
172
  @apply flex items-center motion-safe:transition duration-300 hover:duration-75 active:duration-75 ease-out disabled:opacity-50 hover:drop-shadow-lg active:drop-shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none lum-btn-p-2 text-base lum-bg-lum-input-bg hover:lum-bg-lum-input-hover-bg active:lum-bg-lum-input-hover-bg;
179
173
  border-radius: var(--lum-border-radius);
174
+ corner-shape: superellipse(var(--lum-border-superellipse));
180
175
  }
181
176
 
182
177
  @utility lum-card {
183
178
  @apply flex flex-col gap-3 whitespace-pre-wrap lum-bg-lum-card-bg p-7;
184
179
  border-radius: var(--lum-border-radius);
180
+ corner-shape: superellipse(var(--lum-border-superellipse));
185
181
  }
186
182
 
187
183
  @utility lum-hoverable {