@raxium/themes 0.1.4 → 0.1.5

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.
@@ -103,7 +103,7 @@
103
103
  --text-2xs--line-height: 1.25;
104
104
  --font-rob-bold: Roboto-Bold, var(--font-sans);
105
105
  --font-rz-bold: RazerF5-Bold, var(--font-sans);
106
- --outline: 2px solid var(--color-rz-green);
106
+ --outline: 2px solid transparent;
107
107
  --disabled-opacity: var(--opacity-50, 0.5);
108
108
  --color-rui-parimary: var(--color-rz-green);
109
109
  --color-rui-toggle-text: var(--color-h88);
@@ -115,6 +115,7 @@
115
115
  --color-rui-warning: var(--color-rz-orange);
116
116
  --color-rui-close: var(--color-h88);
117
117
  --color-rui-close-hover: var(--color-hff);
118
+ --shadow-rui-outline: 0 0 0 1px oklch(76.87% 0.2343 141.32);
118
119
  }
119
120
  }
120
121
  @layer base {
@@ -1758,7 +1759,7 @@
1758
1759
  }
1759
1760
  *:focus-visible {
1760
1761
  outline: var(--outline);
1761
- outline-offset: 2px;
1762
+ box-shadow: var(--shadow-rui-outline);
1762
1763
  }
1763
1764
  }
1764
1765
  @layer components {
@@ -2467,28 +2468,28 @@
2467
2468
  &[data-theme-bordered] {
2468
2469
  border-color: var(--color-h00);
2469
2470
  }
2470
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2471
+ &:where([data-theme-surface=dark]) {
2471
2472
  &[data-theme-bordered] {
2472
2473
  border-color: var(--color-h33);
2473
2474
  }
2474
2475
  }
2475
- &:where([data-theme-surface=razer], [data-theme-surface=razer] *) {
2476
+ &:where([data-theme-surface=razer]) {
2476
2477
  border-color: var(--color-h00);
2477
2478
  }
2478
2479
  }
2479
2480
  .rui-tooltip-content, .rui-tooltip-content-inner {
2480
2481
  background-color: var(--color-hff);
2481
2482
  color: var(--color-h00);
2482
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2483
+ &:where([data-theme-surface=dark]) {
2483
2484
  background-color: var(--color-h00);
2484
2485
  }
2485
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2486
+ &:where([data-theme-surface=dark]) {
2486
2487
  color: var(--color-hff);
2487
2488
  }
2488
- &:where([data-theme-surface=razer], [data-theme-surface=razer] *) {
2489
+ &:where([data-theme-surface=razer]) {
2489
2490
  background-color: var(--color-rz-green);
2490
2491
  }
2491
- &:where([data-theme-surface=razer], [data-theme-surface=razer] *) {
2492
+ &:where([data-theme-surface=razer]) {
2492
2493
  color: var(--color-h00);
2493
2494
  }
2494
2495
  }
@@ -2609,7 +2610,7 @@
2609
2610
  &[data-theme-bordered] {
2610
2611
  border-color: var(--color-h00);
2611
2612
  }
2612
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2613
+ &:where([data-theme-surface=dark]) {
2613
2614
  &[data-theme-bordered] {
2614
2615
  border-color: var(--color-h33);
2615
2616
  }
@@ -2618,10 +2619,10 @@
2618
2619
  .rui-hover-card-content, .rui-hover-card-content-inner {
2619
2620
  background-color: var(--color-hff);
2620
2621
  color: var(--color-h00);
2621
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2622
+ &:where([data-theme-surface=dark]) {
2622
2623
  background-color: var(--color-h00);
2623
2624
  }
2624
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2625
+ &:where([data-theme-surface=dark]) {
2625
2626
  color: var(--color-hff);
2626
2627
  }
2627
2628
  }
@@ -2634,7 +2635,7 @@
2634
2635
  &[data-theme-bordered] {
2635
2636
  border-color: var(--color-h00);
2636
2637
  }
2637
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2638
+ &:where([data-theme-surface=dark]) {
2638
2639
  &[data-theme-bordered] {
2639
2640
  border-color: var(--color-h33);
2640
2641
  }
@@ -2643,10 +2644,10 @@
2643
2644
  .rui-popover-content, .rui-popover-content-inner {
2644
2645
  background-color: var(--color-hff);
2645
2646
  color: var(--color-h00);
2646
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2647
+ &:where([data-theme-surface=dark]) {
2647
2648
  background-color: var(--color-h00);
2648
2649
  }
2649
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2650
+ &:where([data-theme-surface=dark]) {
2650
2651
  color: var(--color-hff);
2651
2652
  }
2652
2653
  }
@@ -2657,7 +2658,7 @@
2657
2658
  color: var(--color-h00);
2658
2659
  }
2659
2660
  }
2660
- &:where([data-theme-surface=dark], [data-theme-surface=dark] *) {
2661
+ &:where([data-theme-surface=dark]) {
2661
2662
  &:hover {
2662
2663
  @media (hover: hover) {
2663
2664
  color: var(--color-rui-close-hover);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@raxium/themes",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "description": "Themes for Raxium",
6
6
  "author": {
7
7
  "name": "Hwacc",
@@ -2,9 +2,9 @@
2
2
 
3
3
  @custom-variant skin-razer (&:where(html[data-theme-skin=razer], html[data-theme-skin=razer] *));
4
4
 
5
- @custom-variant surface-dark (&:where([data-theme-surface=dark], [data-theme-surface=dark] *));
6
- @custom-variant surface-light (&:where([data-theme-surface=light], [data-theme-surface=light] *));
7
- @custom-variant surface-razer (&:where([data-theme-surface=razer], [data-theme-surface=razer] *));
5
+ @custom-variant surface-dark (&:where([data-theme-surface=dark]));
6
+ @custom-variant surface-light (&:where([data-theme-surface=light]));
7
+ @custom-variant surface-razer (&:where([data-theme-surface=razer]));
8
8
 
9
9
  @custom-variant success (&:where([data-type=success], [data-type=success] *));
10
10
  @custom-variant error (&:where([data-type=error], [data-type=error] *));
@@ -119,7 +119,7 @@
119
119
  --radius-lg: calc(var(--radius) + 0.25rem); /* 6px */
120
120
 
121
121
  /* Other */
122
- --outline: 2px solid var(--color-rz-green);
122
+ --outline: 2px solid transparent;
123
123
  --disabled-opacity: var(--opacity-50, 0.5);
124
124
 
125
125
  /* RUI Theme*/
@@ -147,6 +147,7 @@
147
147
 
148
148
  --shadow-rui-popper: 0 0.25rem 0.375rem 0 oklch(0% 0 0 / 80%);
149
149
  --shadow-rui-popper-top: 0 -0.25rem 0.375rem 0 oklch(0% 0 0 / 80%);
150
+ --shadow-rui-outline: 0 0 0 1px oklch(76.87% 0.2343 141.32)
150
151
  }
151
152
 
152
153
  @theme inline {
@@ -170,7 +171,7 @@
170
171
 
171
172
  *:focus-visible {
172
173
  outline: var(--outline);
173
- outline-offset: 2px;
174
+ box-shadow: var(--shadow-rui-outline);
174
175
  }
175
176
  }
176
177