glasslikeui 0.2.1 → 0.2.2

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.
@@ -93,17 +93,17 @@
93
93
  .button.variant-filled {
94
94
  background: var(--color-accent);
95
95
  color: white;
96
- box-shadow: 0 4px 16px -4px rgba(0, 113, 227, 0.5);
96
+ box-shadow: 0 4px 16px -4px var(--color-accent-50);
97
97
  }
98
98
 
99
99
  .button.variant-filled:hover {
100
100
  background: var(--color-accent-hover);
101
- transform: translateY(-2px);
102
- box-shadow: 0 8px 24px -4px rgba(0, 113, 227, 0.5);
101
+ box-shadow: 0 8px 28px -6px var(--color-accent-50);
103
102
  }
104
103
 
105
104
  .button.variant-filled:active {
106
- transform: translateY(0);
105
+ background: var(--color-accent-active);
106
+ box-shadow: 0 2px 10px -4px var(--color-accent-50);
107
107
  }
108
108
 
109
109
  /* Glass variant */
@@ -120,7 +120,13 @@
120
120
 
121
121
  .button.variant-glass:hover {
122
122
  background: var(--glass-button-hover);
123
- transform: translateY(-2px);
123
+ box-shadow:
124
+ inset 0 1px 0 0 var(--glass-highlight),
125
+ 0 8px 24px -6px var(--glass-shadow);
126
+ }
127
+
128
+ .button.variant-glass:active {
129
+ background: var(--glass-active-bg);
124
130
  }
125
131
 
126
132
  /* Outlined variant */
@@ -131,7 +137,13 @@
131
137
  }
132
138
 
133
139
  .button.variant-outlined:hover {
134
- background: rgba(0, 113, 227, 0.1);
140
+ background: var(--color-accent-10);
141
+ border-color: var(--color-accent-hover);
142
+ color: var(--color-accent-hover);
143
+ }
144
+
145
+ .button.variant-outlined:active {
146
+ background: var(--color-accent-15);
135
147
  }
136
148
 
137
149
  /* Plain variant */
@@ -141,33 +153,39 @@
141
153
  }
142
154
 
143
155
  .button.variant-plain:hover {
156
+ color: var(--color-accent-hover);
144
157
  text-decoration: underline;
145
158
  }
146
159
 
147
160
  /* Tinted variant */
148
161
  .button.variant-tinted {
149
- background: rgba(0, 113, 227, 0.15);
162
+ background: var(--color-accent-15);
150
163
  color: var(--color-accent);
151
164
  }
152
165
 
153
166
  .button.variant-tinted:hover {
154
- background: rgba(0, 113, 227, 0.25);
167
+ background: var(--color-accent-25);
168
+ color: var(--color-accent-hover);
169
+ }
170
+
171
+ .button.variant-tinted:active {
172
+ background: var(--color-accent-10);
155
173
  }
156
174
 
157
175
  /* Destructive variant */
158
176
  .button.variant-destructive {
159
177
  background: var(--color-danger, #ef4444);
160
178
  color: white;
161
- box-shadow: 0 4px 16px -4px rgba(239, 68, 68, 0.5);
179
+ box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--color-danger, #ef4444) 50%, transparent);
162
180
  }
163
181
 
164
182
  .button.variant-destructive:hover {
165
183
  background: var(--color-danger-hover, #dc2626);
166
- transform: translateY(-2px);
167
- box-shadow: 0 8px 24px -4px rgba(239, 68, 68, 0.5);
184
+ box-shadow: 0 8px 28px -6px color-mix(in srgb, var(--color-danger, #ef4444) 50%, transparent);
168
185
  }
169
186
 
170
187
  .button.variant-destructive:active {
171
- transform: translateY(0);
188
+ background: color-mix(in srgb, var(--color-danger, #ef4444) 85%, black);
189
+ box-shadow: 0 2px 10px -4px color-mix(in srgb, var(--color-danger, #ef4444) 50%, transparent);
172
190
  }
173
191
  </style>
@@ -47,6 +47,20 @@
47
47
  /* Glass sheet */
48
48
  --glass-sheet-bg: rgba(28, 28, 30, 0.95);
49
49
 
50
+ /* ========================================
51
+ Accent System
52
+ Override --color-accent to re-theme interactive components.
53
+ --color-accent-hover / --color-accent-active are auto-derived via
54
+ color-mix; consumers can override them independently if desired.
55
+ ======================================== */
56
+ --color-accent: #0071e3;
57
+ --color-accent-hover: color-mix(in srgb, var(--color-accent) 85%, white);
58
+ --color-accent-active: color-mix(in srgb, var(--color-accent) 85%, black);
59
+ --color-accent-10: color-mix(in srgb, var(--color-accent) 10%, transparent);
60
+ --color-accent-15: color-mix(in srgb, var(--color-accent) 15%, transparent);
61
+ --color-accent-25: color-mix(in srgb, var(--color-accent) 25%, transparent);
62
+ --color-accent-50: color-mix(in srgb, var(--color-accent) 50%, transparent);
63
+
50
64
  /* ========================================
51
65
  Glass Radius System
52
66
  ======================================== */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glasslikeui",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Component library for Svelte with liquid glass effects",
5
5
  "license": "MIT",
6
6
  "type": "module",