@rokkit/themes 1.0.0-next.111 → 1.0.0-next.113

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/themes",
3
- "version": "1.0.0-next.111",
3
+ "version": "1.0.0-next.113",
4
4
  "description": "Themes for use with rokkit components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -4,7 +4,7 @@ rk-icon {
4
4
  /* @apply h-6 min-h-6 w-6; */
5
5
  }
6
6
  button > rk-icon {
7
- @apply text-md aspect-square cursor-pointer select-none p-2 focus:outline;
7
+ @apply text-md aspect-square cursor-pointer select-none;
8
8
  }
9
9
  rk-icon > i {
10
10
  @apply mx-auto aspect-square text-current;
package/src/base/core.css CHANGED
@@ -5,6 +5,9 @@
5
5
  *[tabindex='-1']:focus {
6
6
  @apply outline-none;
7
7
  }
8
+ * {
9
+ @apply box-border;
10
+ }
8
11
 
9
12
  /* Body styles */
10
13
  body {
@@ -105,5 +105,5 @@ rk-input-field > label.required::after {
105
105
  }
106
106
 
107
107
  rk-select > select {
108
- @apply min-h-9 min-w-40 rounded px-3;
108
+ @apply min-w-40 rounded px-3 leading-loose;
109
109
  }
@@ -5,7 +5,7 @@ rk-checkbox {
5
5
 
6
6
  rk-switch,
7
7
  rk-toggle {
8
- @apply flex items-center gap-2;
8
+ @apply flex items-center;
9
9
  }
10
10
 
11
11
  rk-radio-group label {
@@ -13,9 +13,5 @@ rk-radio-group label {
13
13
  }
14
14
 
15
15
  rk-toggle {
16
- @apply text-primary-700;
17
- }
18
-
19
- rk-toggle button {
20
- @apply flex h-8 w-8 items-center justify-center rounded-sm;
16
+ @apply text-primary-700 flex items-center justify-center rounded-sm;
21
17
  }
@@ -4,11 +4,6 @@
4
4
  @apply even:bg-neutral-zebra hover:bg-neutral-50;
5
5
  }
6
6
 
7
- /* Styles for 'rk-icon' class */
8
- /* [data-style="rokkit"] rk-icon {
9
- @apply text-neutral-700 focus:outline-none;
10
- } */
11
-
12
7
  /* Styles for input[type='number'] */
13
8
  [data-style='rokkit'] input[type='number'] {
14
9
  @apply text-right;
@@ -23,13 +18,14 @@
23
18
  }
24
19
 
25
20
  /* Styles for 'searchable' class */
26
- .searchable input {
21
+ [data-style='rokkit'] .searchable input {
27
22
  @apply border-neutral-subtle border;
28
23
  }
29
-
24
+ [data-style='rokkit'] a.button {
25
+ @apply no-underline;
26
+ }
30
27
  [data-style='rokkit'] a {
31
28
  @apply text-primary-800 cursor-pointer underline underline-offset-4;
32
- /* text-underline-offset: 0.25rem; */
33
29
  }
34
30
  [data-style='rokkit'] a:hover {
35
31
  @apply text-secondary-700 cursor-pointer;
@@ -51,6 +47,6 @@
51
47
  @apply text-primary-100;
52
48
  }
53
49
 
54
- [data-style='rokkit'].dark ::-webkit-calendar-picker-indicator {
50
+ [data-style='rokkit'] .dark ::-webkit-calendar-picker-indicator {
55
51
  filter: invert(1);
56
52
  }
@@ -43,15 +43,10 @@
43
43
  @apply bg-error rounded px-2;
44
44
  }
45
45
 
46
- [data-style='rokkit'] rk-select,
47
- [data-style='rokkit'] rk-toggle {
48
- @apply p-2px border-neutral-subtle box-border rounded-md border;
49
- }
50
-
51
- [data-style='rokkit'] rk-toggle {
52
- @apply aspect-square h-9 w-9;
46
+ [data-style='rokkit'] rk-select {
47
+ @apply border-neutral-subtle box-border h-9 rounded-md border;
53
48
  }
54
49
 
55
50
  [data-style='rokkit'] rk-select > select {
56
- @apply bg-neutral-subtle text-on-neutral-subtle;
51
+ @apply bg-neutral-subtle text-on-neutral-subtle h-full;
57
52
  }
@@ -57,12 +57,6 @@
57
57
  @apply top-0.75 h-6 w-6 rounded-full;
58
58
  @apply from-primary to-secondary bg-gradient-to-r;
59
59
  }
60
- [data-style='rokkit'] rk-toggle > button {
61
- @apply items-center justify-center rounded-md p-0;
62
- }
63
- [data-style='rokkit'] rk-toggle > button > rk-icon {
64
- @apply aspect-square items-center justify-center;
65
- }
66
60
 
67
61
  /* Styles for 'rating' class */
68
62
  [data-style='rokkit'] rating {
@@ -82,10 +82,10 @@
82
82
  @apply from-primary to-secondary bg-gradient-to-r text-white;
83
83
  }
84
84
  [data-style='rokkit'] a.square > rk-icon {
85
- @apply text-on-neutral-subtle bg-neutral-subtle h-full w-full rounded-md;
85
+ @apply text-on-neutral-subtle h-full w-full;
86
86
  }
87
87
  [data-style='rokkit'] a.square {
88
- @apply border-neutral-subtle p-2px flex h-10 w-10 items-center justify-center rounded-md border;
88
+ @apply border-neutral-subtle bg-neutral-subtle flex items-center justify-center rounded-md border leading-loose;
89
89
  }
90
90
  [data-style='rokkit'] button-group {
91
91
  @apply gap-1px m-auto flex items-center justify-center py-1;
@@ -8,7 +8,7 @@
8
8
  }
9
9
  [data-style='rokkit'] rk-switch:focus-within,
10
10
  [data-style='rokkit'] rk-toggle:focus-within {
11
- @apply ring-primary-500 outline-none ring-2;
11
+ @apply ring-primary-500 px-2 outline-none;
12
12
  }
13
13
 
14
14
  [data-style='rokkit'] rk-switch.minimal {
@@ -18,16 +18,47 @@
18
18
  @apply text-md h-4;
19
19
  }
20
20
  [data-style='rokkit'] rk-toggle {
21
- @apply min-h-10 min-w-10 rounded-md;
21
+ @apply border-neutral-subtle bg-neutral-subtle box-border aspect-square h-9 border;
22
+ @apply flex items-center justify-center rounded-md leading-loose;
22
23
  }
23
24
 
24
- [data-style='rokkit'] rk-toggle button {
25
- @apply m-0 h-full w-full p-0;
25
+ [data-style='rokkit'] rk-toggle:focus-within,
26
+ [data-style='rokkit'] a.button.square:focus-within {
27
+ @apply ring-secondary border-neutral-base border ring-2;
28
+ }
29
+ [data-style='rokkit'] rk-toggle:focus-within button {
30
+ @apply p-0;
26
31
  }
32
+ [data-style='rokkit'] rk-toggle > button {
33
+ @apply p-0 outline-none;
34
+ }
35
+ /* [data-style='rokkit'] rk-toggle rk-icon {
36
+ @apply bg-neutral-base flex rounded p-0 leading-loose;
37
+ } */
27
38
 
28
- [data-style='rokkit'] rk-toggle.small {
29
- @apply p-2px flex aspect-square flex-col items-center justify-center;
39
+ [data-style='rokkit'] a.square {
40
+ @apply aspect-square min-h-9 min-w-9;
41
+ }
42
+ [data-style='rokkit'] a.button {
43
+ @apply p-0;
30
44
  }
45
+ [data-style='rokkit'] rk-toggle rk-icon {
46
+ @apply bg-neutral-subtle h-full w-full rounded-md;
47
+ }
48
+
49
+ /* [data-style='rokkit'] rk-toggle > button {
50
+ @apply items-center justify-center rounded-md p-0;
51
+ }
52
+ [data-style='rokkit'] rk-toggle > button > rk-icon {
53
+ @apply aspect-square items-center justify-center;
54
+ } */
55
+ /* [data-style='rokkit'] rk-toggle button {
56
+ @apply m-0 h-full w-full p-0;
57
+ } */
58
+
59
+ /* [data-style='rokkit'] rk-toggle.small {
60
+ @apply p-2px flex aspect-square flex-col items-center justify-center;
61
+ } */
31
62
  /* [data-style="rokkit"] rk-toggle:focus-within button {
32
63
  @apply bg-neutral-base text-neutral hover:text-primary rounded-sm;
33
64
  } */