Skip to content

Commit ac86c03

Browse files
authored
Finalize Glossy theme, closes #491 (#525)
* Initial glassy theme progress * Add fallback to slider thumb box shadow * Remove redundant `wa-dark` styles and refactor shadows * Rename to 'Glossy' since it fits the vibe better
1 parent 6b07c9a commit ac86c03

File tree

7 files changed

+242
-219
lines changed

7 files changed

+242
-219
lines changed

docs/docs/experimental/themer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ hasOutline: false
506506
<wa-option data-alpha="remove" value="playful">Playful</wa-option>
507507
<wa-option data-alpha="remove" value="brutalist">Brutalist</wa-option>
508508
<wa-option data-alpha="remove" value="tailspin">Tailspin</wa-option>
509-
<wa-option data-alpha="remove" value="glassy">Glassy</wa-option>
509+
<wa-option data-alpha="remove" value="glossy">Glossy</wa-option>
510510
<wa-option data-alpha="remove" value="active">Active</wa-option>
511511
<wa-option value="classic">Classic</wa-option>
512512
</wa-select>
@@ -886,7 +886,7 @@ hasOutline: false
886886
case 'active':
887887
colorPalette = 'rudimentary';
888888
break;
889-
case 'glassy':
889+
case 'glossy':
890890
colorPalette = 'elegant';
891891
break;
892892
case 'premium':
@@ -1049,7 +1049,7 @@ hasOutline: false
10491049
case 'brutalist':
10501050
case 'classic':
10511051
case 'awesome':
1052-
case 'glassy':
1052+
case 'glossy':
10531053
case 'active':
10541054
assetFolder = themeSelect.value;
10551055
break;
@@ -1259,7 +1259,7 @@ hasOutline: false
12591259
case 'tailspin':
12601260
presetLogoIcons = ['wind', 'feather', 'lemon', 'wind-turbine'];
12611261
break;
1262-
case 'glassy':
1262+
case 'glossy':
12631263
presetLogoIcons = ['raindrops', 'citrus-slice', 'lighthouse', 'kiwi-bird'];
12641264
break;
12651265
case 'active':

docs/docs/resources/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ During the alpha period, things might break! We take breaking changes very serio
1717

1818
- Added `.wa-callout` utility class
1919
- Added new themes:
20+
- Glossy
2021
- Premium
2122

2223
## 3.0.0-alpha.8

docs/docs/themes/glassy.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/docs/themes/glossy.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Glossy
3+
description: Bustling with plenty of luster and shine.
4+
isPro: true
5+
tags: pro
6+
defaultPalette: elegant
7+
---

src/styles/native/slider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ input[type='range'] {
9696
border-radius: 50%;
9797
background-color: var(--thumb-color);
9898
box-shadow:
99-
var(--thumb-shadow),
99+
var(--thumb-shadow, 0 0 transparent),
100100
0 0 0 var(--thumb-gap) var(--wa-color-surface-default);
101101
transition-property: background-color, border-color, box-shadow, color;
102102
transition-duration: var(--wa-transition-normal);

src/styles/themes/glassy.css

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)