@rokkit/themes 1.0.0-next.105 → 1.0.0-next.106

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.
@@ -1,136 +1,136 @@
1
- .minimal rkt-item {
1
+ [data-style='minimal'] rk-item {
2
2
  @apply flex items-center gap-1;
3
3
  }
4
- .minimal rkt-accordion {
4
+ [data-style='minimal'] rk-accordion {
5
5
  @apply flex-grow overflow-y-scroll focus-within:outline-none;
6
6
  }
7
- .minimal rkt-accordion > div,
8
- .minimal rkt-accordion > details {
7
+ [data-style='minimal'] rk-accordion > div,
8
+ [data-style='minimal'] rk-accordion > details {
9
9
  @apply relative;
10
10
  }
11
- .minimal rkt-list,
12
- .minimal rkt-accordion summary {
11
+ [data-style='minimal'] rk-list,
12
+ [data-style='minimal'] rk-accordion rk-summary {
13
13
  @apply border-l-2px border-l-neutral-muted;
14
14
  }
15
- .minimal :not(accordion > div) rkt-list:focus-within {
15
+ [data-style='minimal'] :not(rk-accordion > div) rk-list:focus-within {
16
16
  @apply outline-offset-3 outline-secondary-700 outline;
17
17
  }
18
- .minimal rkt-list > rkt-item,
19
- .minimal rkt-accordion summary {
18
+ [data-style='minimal'] rk-list > rk-item,
19
+ [data-style='minimal'] rk-accordion summary {
20
20
  @apply bg-neutral-base items-center px-2 leading-8 text-neutral-700;
21
21
  }
22
22
 
23
- .minimal rkt-item > a {
23
+ [data-style='minimal'] rk-item > a {
24
24
  @apply gap-2 px-0;
25
25
  }
26
26
 
27
- .minimal rkt-list rkt-item:hover {
27
+ [data-style='minimal'] rk-list rk-item:hover {
28
28
  @apply -m-l-2px border-l-2px border-l-neutral-subtle;
29
29
  }
30
- .minimal rkt-accordion summary:hover {
30
+ [data-style='minimal'] rk-accordion summary:hover {
31
31
  @apply border-l-neutral-subtle;
32
32
  }
33
- .minimal rkt-list rkt-item[aria-selected='true'] {
33
+ [data-style='minimal'] rk-list rk-item[aria-selected='true'] {
34
34
  @apply -m-l-2px border-l-2px border-l-secondary-600 text-secondary-600 bg-neutral-subtle;
35
35
  }
36
- .minimal rkt-accordion .is-selected summary {
36
+ [data-style='minimal'] rk-accordion .is-selected summary {
37
37
  @apply border-l-2px border-l-secondary-600 bg-neutral-subtle;
38
38
  }
39
39
 
40
- .minimal rkt-accordion .is-expanded summary {
40
+ [data-style='minimal'] rk-accordion .is-expanded summary {
41
41
  @apply z-1 sticky top-0;
42
42
  }
43
- .minimal rkt-accordion rkt-item > a {
43
+ [data-style='minimal'] rk-accordion rk-item > a {
44
44
  @apply px-0;
45
45
  }
46
- .minimal rkt-item > img,
47
- .minimal rkt-item > a > img {
46
+ [data-style='minimal'] rk-item > img,
47
+ [data-style='minimal'] rk-item > a > img {
48
48
  @apply h-6 w-6;
49
49
  }
50
50
 
51
- .minimal rkt-accordion .is-selected summary,
52
- .minimal rkt-accordion .is-selected summary > a,
53
- .minimal rkt-accordion rkt-item[aria-selected='true'],
54
- .minimal rkt-accordion rkt-item[aria-selected='true'] > a {
51
+ [data-style='minimal'] rk-accordion .is-selected rk-summary,
52
+ [data-style='minimal'] rk-accordion .is-selected rk-summary > a,
53
+ [data-style='minimal'] rk-accordion rk-item[aria-selected='true'],
54
+ [data-style='minimal'] rk-accordion rk-item[aria-selected='true'] > a {
55
55
  @apply text-secondary-600;
56
56
  /* @apply hover:text-secondary; */
57
57
  }
58
58
 
59
- /* .minimal nested-list {
59
+ /* [data-style="minimal"] nested-list {
60
60
  @apply text-sm;
61
61
  } */
62
- .minimal rkt-node > div {
62
+ [data-style='minimal'] rk-node > div {
63
63
  @apply h-7 px-2 py-1;
64
64
  }
65
- .minimal rkt-node > rkt-item {
65
+ [data-style='minimal'] rk-node > rk-item {
66
66
  @apply gap-1 px-1;
67
67
  }
68
- .minimal rkt-node > div > span > i {
68
+ [data-style='minimal'] rk-node > div > span > i {
69
69
  @apply w-3 border-none;
70
70
  }
71
- .minimal rkt-node > div > rkt-icon {
71
+ [data-style='minimal'] rk-node > div > rk-icon {
72
72
  @apply text-xs text-neutral-400;
73
73
  }
74
- .minimal rkt-node[aria-selected='true'] > rkt-item > p {
74
+ [data-style='minimal'] rk-node[aria-selected='true'] > rk-item > p {
75
75
  @apply text-secondary-600;
76
76
  }
77
- .minimal rkt-node.is-selected rkt-icon {
77
+ [data-style='minimal'] rk-node.is-selected rk-icon {
78
78
  @apply text-secondary-600;
79
79
  @apply hover:text-secondary-600;
80
80
  }
81
81
 
82
- .minimal .small rkt-list > rkt-item,
83
- .minimal .small rkt-accordion summary {
82
+ [data-style='minimal'] .small rk-list > rk-item,
83
+ [data-style='minimal'] .small rk-accordion rk-summary {
84
84
  @apply text-sm;
85
85
  }
86
86
 
87
- .minimal .small rkt-node > div {
87
+ [data-style='minimal'] .small rk-node > div {
88
88
  @apply h-5 gap-1 text-sm;
89
89
  }
90
- .minimal .small rkt-node > div > rkt-icon {
90
+ [data-style='minimal'] .small rk-node > div > rk-icon {
91
91
  @apply text-sm;
92
92
  }
93
- .minimal .small rkt-item > img,
94
- .minimal .small rkt-item > a > img {
93
+ [data-style='minimal'] .small rk-item > img,
94
+ [data-style='minimal'] .small rk-item > a > img {
95
95
  @apply h-4 w-4;
96
96
  }
97
- .minimal .small rkt-item > a > rkt-icon {
97
+ [data-style='minimal'] .small rk-item > a > rk-icon {
98
98
  @apply text-sm leading-6;
99
99
  }
100
- .minimal rkt-accordion.indented rkt-list > rkt-item {
100
+ [data-style='minimal'] rk-accordion.indented rk-list > rk-item {
101
101
  @apply px-4;
102
102
  }
103
103
 
104
- .minimal .folder-tree {
104
+ [data-style='minimal'] .folder-tree {
105
105
  @apply bg-neutral-inset h-full min-w-40;
106
106
  }
107
107
 
108
- /* .minimal rkt-node > div > i {
108
+ /* [data-style="minimal"] rk-node > div > i {
109
109
  @apply border-neutral-muted;
110
110
  } */
111
111
 
112
- .minimal rkt-crumbs {
112
+ [data-style='minimal'] rk-crumbs {
113
113
  @apply flex-grow gap-1 text-sm;
114
114
  }
115
- .minimal rkt-crumbs rkt-crumb.is-selected {
115
+ [data-style='minimal'] rk-crumbs rk-crumb.is-selected {
116
116
  @apply text-secondary;
117
117
  }
118
118
 
119
- .minimal rkt-toggle {
119
+ [data-style='minimal'] rk-switch {
120
120
  @apply mx-auto min-h-6 min-w-12 rounded;
121
121
  @apply bg-neutral-subtle border-neutral-muted border;
122
122
  @apply p-2px leading-loose;
123
123
  }
124
- .minimal rkt-toggle rkt-item {
124
+ [data-style='minimal'] rk-switch rk-item {
125
125
  @apply items-center justify-center gap-1 px-3;
126
126
  @apply min-h-6 min-w-6 cursor-pointer rounded;
127
127
  }
128
- .minimal rkt-toggle.compact {
128
+ [data-style='minimal'] rk-switch.compact {
129
129
  @apply rounded-full;
130
130
  }
131
- .minimal rkt-toggle.compact > rkt-item {
131
+ [data-style='minimal'] rk-switch.compact > rk-item {
132
132
  @apply gap-0 rounded-full px-0;
133
133
  }
134
- .minimal rkt-toggle rkt-item[aria-selected='true'] {
134
+ [data-style='minimal'] rk-switch rk-item[aria-selected='true'] {
135
135
  @apply bg-secondary text-neutral-800;
136
136
  }
@@ -1,44 +1,44 @@
1
- .minimal rkt-tabs:focus {
1
+ [data-style='minimal'] rk-tabs:focus {
2
2
  @apply outline-none;
3
3
  }
4
- .minimal rkt-tabs {
4
+ [data-style='minimal'] rk-tabs {
5
5
  @apply border-neutral-subtle box-border cursor-pointer select-none gap-2 border-b-2 px-2;
6
6
  }
7
- .minimal rkt-tabs .tab {
7
+ [data-style='minimal'] rk-tabs .tab {
8
8
  @apply px-2 text-base leading-8;
9
9
  }
10
- .minimal rkt-tabs .tab rkt-icon[role='img'] {
10
+ [data-style='minimal'] rk-tabs .tab rk-icon[role='img'] {
11
11
  @apply h-6 w-6;
12
12
  }
13
- .minimal rkt-tabs .tab rkt-icon[role='button'] {
13
+ [data-style='minimal'] rk-tabs .tab rk-icon[role='button'] {
14
14
  @apply h-4 w-4;
15
15
  }
16
- .minimal rkt-tabs.is-below {
16
+ [data-style='minimal'] rk-tabs.is-below {
17
17
  @apply border-b-none border-t-2;
18
18
  }
19
- .minimal rkt-tabs > p {
19
+ [data-style='minimal'] rk-tabs > p {
20
20
  @apply pr-4;
21
21
  }
22
- .minimal rkt-tabs .tab {
22
+ [data-style='minimal'] rk-tabs .tab {
23
23
  @apply relative flex items-center gap-1;
24
24
  }
25
- .minimal rkt-tabs .tab > img {
25
+ [data-style='minimal'] rk-tabs .tab > img {
26
26
  @apply h-5 w-5;
27
27
  }
28
28
 
29
- .minimal rkt-tabs .tab[aria-selected='true'] {
29
+ [data-style='minimal'] rk-tabs .tab[aria-selected='true'] {
30
30
  @apply -mb-2px border-secondary-600 border-b-2;
31
31
  }
32
- .minimal rkt-tabs.is-below .tab {
32
+ [data-style='minimal'] rk-tabs.is-below .tab {
33
33
  @apply pt-2px;
34
34
  }
35
- .minimal rkt-tabs.is-below .tab[aria-selected='true'] {
35
+ [data-style='minimal'] rk-tabs.is-below .tab[aria-selected='true'] {
36
36
  @apply -mt-2px border-b-none border-b-secondary-600 mb-0 border-t-2;
37
37
  }
38
38
 
39
- .minimal .small rkt-tabs .tab {
39
+ [data-style='minimal'] .small rk-tabs .tab {
40
40
  @apply px-2 text-sm leading-8;
41
41
  }
42
- .minimal .small rkt-tabs rkt-tab > img {
42
+ [data-style='minimal'] .small rk-tabs rk-tab > img {
43
43
  @apply h-5 w-5;
44
44
  }
package/src/palette.css CHANGED
@@ -3,22 +3,22 @@
3
3
  --scroll-width: 0.5rem;
4
4
  }
5
5
  /* light theme colors */
6
- .light {
6
+ [data-mode='light'] {
7
7
  @apply rokkit-mode-light;
8
8
  }
9
9
  @media (prefers-color-scheme: dark) {
10
- body:not(.light) {
10
+ body:not([data-mode='light']) {
11
11
  @apply rokkit-mode-dark;
12
12
  }
13
13
  }
14
14
 
15
15
  /* dark theme colors */
16
- .dark {
16
+ [data-mode='dark'] {
17
17
  @apply rokkit-mode-dark;
18
18
  }
19
19
 
20
20
  @media (prefers-color-scheme: light) {
21
- body:not(.dark) {
21
+ body:not([data-mode='dark']) {
22
22
  @apply rokkit-mode-light;
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
1
  /* Styles for 'alert-list' class */
2
- .rokkit rkt-alert-list {
2
+ [data-style='rokkit'] rk-alert-list {
3
3
  @apply right-8 top-12 w-80;
4
4
  }
@@ -1,37 +1,24 @@
1
- /* General styles */
2
- .rokkit {
3
- @apply select-none;
4
- }
5
-
6
1
  /* Zebra styles */
7
- .rokkit .zebra rkt-item {
2
+ [data-style='rokkit'] .zebra rk-item,
3
+ [data-style='rokkit'] .zebra rk-list-item {
8
4
  @apply even:bg-neutral-zebra hover:bg-neutral-50;
9
5
  }
10
6
 
11
- /* Styles for 'rkt-icon' class */
12
- .rokkit rkt-icon {
7
+ /* Styles for 'rk-icon' class */
8
+ /* [data-style="rokkit"] rk-icon {
13
9
  @apply text-neutral-700 focus:outline-none;
14
- }
15
- .rokkit button {
16
- @apply hover:text-secondary rounded-md text-neutral-700 focus:rounded;
17
- }
18
- .rokkit button:focus {
19
- @apply from-primary to-secondary bg-gradient-to-r text-neutral-200 outline-none dark:text-neutral-800;
20
- }
21
- .rokkit button:disabled {
22
- @apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
23
- }
10
+ } */
24
11
 
25
12
  /* Styles for input[type='number'] */
26
- .rokkit input[type='number'] {
13
+ [data-style='rokkit'] input[type='number'] {
27
14
  @apply text-right;
28
15
  }
29
- .rokkit input[type='number']::-webkit-inner-spin-button,
30
- .rokkit input[type='number']::-webkit-outer-spin-button {
16
+ [data-style='rokkit'] input[type='number']::-webkit-inner-spin-button,
17
+ [data-style='rokkit'] input[type='number']::-webkit-outer-spin-button {
31
18
  -webkit-appearance: none;
32
19
  }
33
20
 
34
- .rokkit rkt-progress-bar rkt-value-bar {
21
+ [data-style='rokkit'] rk-progress-bar rk-value-bar {
35
22
  @apply from-primary to-secondary text-neutral-subtle bg-gradient-to-r dark:text-neutral-800;
36
23
  }
37
24
 
@@ -40,30 +27,30 @@
40
27
  @apply border-neutral-subtle border;
41
28
  }
42
29
 
43
- .rokkit a {
30
+ [data-style='rokkit'] a {
44
31
  @apply text-primary-800 cursor-pointer underline underline-offset-4;
45
32
  /* text-underline-offset: 0.25rem; */
46
33
  }
47
- .rokkit a:hover {
34
+ [data-style='rokkit'] a:hover {
48
35
  @apply text-secondary-700 cursor-pointer;
49
36
  }
50
- .rokkit a:visited {
37
+ [data-style='rokkit'] a:visited {
51
38
  @apply text-primary-700;
52
39
  }
53
- .rokkit a:focus {
40
+ [data-style='rokkit'] a:focus {
54
41
  @apply outline-none;
55
42
  }
56
43
 
57
- .rokkit [aria-current='true'] a {
44
+ [data-style='rokkit'] [aria-current='true'] a {
58
45
  @apply text-primary-100;
59
46
  }
60
- .rokkit [aria-current='true'] a:visited {
47
+ [data-style='rokkit'] [aria-current='true'] a:visited {
61
48
  @apply text-primary-100;
62
49
  }
63
- .rokkit [aria-current='true'] a:hover {
50
+ [data-style='rokkit'] [aria-current='true'] a:hover {
64
51
  @apply text-primary-100;
65
52
  }
66
53
 
67
- .rokkit.dark ::-webkit-calendar-picker-indicator {
54
+ [data-style='rokkit'].dark ::-webkit-calendar-picker-indicator {
68
55
  filter: invert(1);
69
56
  }
@@ -1,19 +1,19 @@
1
- rkt-carousel rkt-slide {
1
+ rk-carousel rk-slide {
2
2
  @apply min-h-100 items-center gap-3 px-12;
3
3
  }
4
- rkt-carousel rkt-slide > img {
4
+ rk-carousel rk-slide > img {
5
5
  @apply h-80 w-80 object-cover;
6
6
  }
7
- rkt-carousel rkt-slide > p {
7
+ rk-carousel rk-slide > p {
8
8
  @apply text-center text-2xl;
9
9
  }
10
- rkt-carousel rkt-dot-nav {
10
+ rk-carousel rk-dot-nav {
11
11
  @apply flex h-4 w-full justify-center gap-2;
12
12
  }
13
- rkt-carousel rkt-dot {
13
+ rk-carousel rk-dot {
14
14
  /* @apply block h-4 w-4 p-0 m-0 text-xs rounded-full bg-neutral-subtle cursor-pointer focus:outline-none; */
15
15
  @apply from-neutral-subtle to-neutral-subtle bg-gradient-to-r;
16
16
  }
17
- rkt-carousel rkt-dot[aria-checked='true'] {
17
+ rk-carousel rk-dot[aria-checked='true'] {
18
18
  @apply from-primary to-secondary bg-gradient-to-r;
19
19
  }
@@ -1,36 +1,57 @@
1
- /* Styles for 'rkt-input-field' class */
2
- .rokkit rkt-input-field rkt-field {
1
+ /* Styles for 'rk-input-field' class */
2
+
3
+ [data-style='rokkit'] rk-input-select select {
4
+ @apply border-none;
5
+ }
6
+ [data-style='rokkit'] rk-input-field rk-field,
7
+ [data-style='rokkit'] rk-input-select {
3
8
  @apply p-2px border-neutral-muted box-border rounded border;
4
9
  }
5
- .rokkit rkt-input-field input,
6
- .rokkit rkt-input-field textarea,
7
- .rokkit rkt-input-field select {
10
+ [data-style='rokkit'] rk-input-select {
11
+ @apply flex h-8 items-center px-2;
12
+ }
13
+ [data-style='rokkit'] rk-input-field input,
14
+ [data-style='rokkit'] rk-input-field textarea,
15
+ [data-style='rokkit'] rk-input-field select {
8
16
  @apply rounded-sm border-0;
9
17
  }
10
- .rokkit rkt-checkbox {
18
+ [data-style='rokkit'] rk-checkbox {
11
19
  @apply outline-none;
12
20
  }
13
- .rokkit rkt-input-field > label {
21
+ [data-style='rokkit'] rk-input-field > label {
14
22
  @apply text-secondary-600;
15
23
  }
16
- .rokkit rkt-input-field rkt-field > label {
24
+ [data-style='rokkit'] rk-input-field rk-field > label {
17
25
  @apply text-secondary-600 flex h-full w-full items-center text-xs uppercase;
18
26
  }
19
- .rokkit rkt-input-field:not(.disabled) rkt-field:focus-within {
27
+ [data-style='rokkit'] rk-input-field:not(.disabled) rk-field:focus-within {
20
28
  @apply border-neutral-base from-primary to-secondary bg-gradient-to-r;
21
29
  }
22
- .rokkit rkt-input-field.disabled label {
30
+ [data-style='rokkit'] rk-input-field.disabled label {
23
31
  @apply text-neutral-500;
24
32
  }
25
- /* .rokkit rkt-input-field.disabled rkt-field:focus-within {
33
+ /* [data-style="rokkit"] rk-input-field.disabled rk-field:focus-within {
26
34
  @apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
27
35
  } */
28
- .rokkit rkt-input-field > span {
36
+ [data-style='rokkit'] rk-input-field > span {
29
37
  @apply border-neutral-muted bg-neutral-base aspect-square h-full border-r px-1;
30
38
  }
31
- .rokkit rkt-input-field message {
39
+ [data-style='rokkit'] rk-input-field message {
32
40
  @apply bg-neutral-base rounded px-2 py-1;
33
41
  }
34
- .rokkit rkt-input-field.fail {
42
+ [data-style='rokkit'] rk-input-field.fail {
35
43
  @apply bg-error rounded px-2;
36
44
  }
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;
53
+ }
54
+
55
+ [data-style='rokkit'] rk-select > select {
56
+ @apply bg-neutral-subtle text-on-neutral-subtle;
57
+ }
@@ -1,17 +1,17 @@
1
- /* Styles for ' rkt-toggle' */
2
- .rokkit rkt-field rkt-toggle:focus-within {
1
+ /* Styles for ' rk-switch' */
2
+ [data-style='rokkit'] rk-field rk-switch:focus-within {
3
3
  @apply outline-none;
4
4
  }
5
- .rokkit rkt-field rkt-toggle {
6
- @apply min-h-10 items-center justify-center rounded-sm border-none px-1;
5
+ [data-style='rokkit'] rk-field rk-switch {
6
+ @apply min-h-8 items-center justify-center rounded-sm border-none px-1;
7
7
  }
8
- .rokkit rkt-field rkt-toggle rkt-item {
8
+ [data-style='rokkit'] rk-field rk-switch rk-item {
9
9
  @apply rounded-sm leading-loose;
10
10
  }
11
- .rokkit rkt-field rkt-toggle rkt-item p {
11
+ [data-style='rokkit'] rk-field rk-switch rk-item p {
12
12
  @apply justify-center;
13
13
  }
14
14
 
15
- .rokkit .horizontal > rkt-field radio-group {
15
+ [data-style='rokkit'] .horizontal > rk-field radio-group {
16
16
  @apply md:flex-row md:gap-4;
17
17
  }
@@ -1,119 +1,130 @@
1
- /* Styles for ' rkt-input-range' class */
2
- .rokkit rkt-input-range rkt-range-track {
1
+ /* Styles for ' rk-input-range' class */
2
+ [data-style='rokkit'] rk-input-range rk-range-track {
3
3
  @apply relative mt-2 h-2;
4
4
  }
5
- .rokkit rkt-input-range rkt-range-track rkt-range-track-bar {
5
+ [data-style='rokkit'] rk-input-range rk-range-track rk-range-track-bar {
6
6
  @apply bg-neutral-muted border-neutral-muted box-border rounded-full border;
7
7
  }
8
- .rokkit rkt-input-range rkt-range-track selected-bar {
8
+ [data-style='rokkit'] rk-input-range rk-range-track selected-bar {
9
9
  @apply top-0px bottom-0px from-primary to-secondary border-secondary rounded-full border bg-gradient-to-r;
10
10
  }
11
- .rokkit rkt-input-range rkt-range-track rkt-thumb {
11
+ [data-style='rokkit'] rk-input-range rk-range-track rk-thumb {
12
12
  @apply rounded-sm focus:outline-none;
13
13
  }
14
- /* .rokkit rkt-input-range rkt-tick p {
14
+ /* [data-style="rokkit"] rk-input-range rk-tick p {
15
15
  @apply text-neutral-800;
16
16
  } */
17
- .rokkit .bookend rkt-range-track rkt-range-track-bar::before,
18
- .rokkit .bookend rkt-range-track rkt-range-track-bar::after {
17
+ [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::before,
18
+ [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::after {
19
19
  content: '';
20
20
  @apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
21
21
  }
22
- .rokkit .bookend rkt-range-track rkt-range-track-bar::before {
22
+ [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::before {
23
23
  @apply -left-1px;
24
24
  }
25
- .rokkit .bookend rkt-range-track rkt-range-track-bar::after {
25
+ [data-style='rokkit'] .bookend rk-range-track rk-range-track-bar::after {
26
26
  @apply -right-2px;
27
27
  }
28
28
 
29
29
  /* Styles for 'tick' class */
30
- /* .rokkit rkt-tick {
30
+ /* [data-style="rokkit"] rk-tick {
31
31
  @apply h-6;
32
32
  } */
33
- .rokkit rkt-tick rkt-tick-bar {
33
+ [data-style='rokkit'] rk-tick rk-tick-bar {
34
34
  @apply border-neutral h-full;
35
35
  }
36
- .rokkit rkt-tick p {
36
+ [data-style='rokkit'] rk-tick p {
37
37
  @apply items-top text-neutral-600;
38
38
  font-size: 8px;
39
39
  }
40
40
 
41
41
  /* Styles for 'thumb' class */
42
- .rokkit rkt-thumb {
42
+ [data-style='rokkit'] rk-thumb {
43
43
  @apply from-primary to-secondary border-secondary border bg-gradient-to-r shadow-xl;
44
44
  }
45
- .rokkit rkt-thumb.sliding::before {
45
+ [data-style='rokkit'] rk-thumb.sliding::before {
46
46
  content: '';
47
47
  @apply bg-secondary absolute bottom-0 left-0 right-0 top-0 rounded-sm opacity-30;
48
48
  transform: scale(2, 2);
49
49
  }
50
50
 
51
51
  /* Styles for 'button[role='switch']' class */
52
- .rokkit button[role='switch'] {
52
+ [data-style='rokkit'] button[role='switch'] {
53
53
  @apply h-8 min-h-6 w-16 rounded-full p-0;
54
54
  @apply bg-neutral-subtle border-neutral-subtle border;
55
55
  }
56
- .rokkit button[role='switch'] > rkt-mark {
56
+ [data-style='rokkit'] button[role='switch'] > rk-mark {
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
+ }
60
66
 
61
67
  /* Styles for 'rating' class */
62
- .rokkit rating {
68
+ [data-style='rokkit'] rating {
63
69
  @apply focus:outline-secondary h-9 justify-center rounded text-xl text-neutral-600 focus:outline;
64
70
  }
65
- .rokkit rating > icon {
71
+ [data-style='rokkit'] rating > icon {
66
72
  @apply w-8;
67
73
  }
68
- .rokkit rating:focus-within icon[aria-checked='true'] {
74
+ [data-style='rokkit'] rating:focus-within icon[aria-checked='true'] {
69
75
  @apply text-primary;
70
76
  }
71
- .rokkit rating icon.hovering > i {
77
+ [data-style='rokkit'] rating icon.hovering > i {
72
78
  @apply text-secondary;
73
79
  }
74
80
 
75
81
  /* Pill styles */
76
- .rokkit .pill {
82
+ [data-style='rokkit'] .pill {
77
83
  @apply bg-neutral-inset border-neutral-subtle flex-grow-0 rounded-full border px-2 py-1;
78
84
  }
79
- .rokkit .pill > icon[role='button'] {
85
+ [data-style='rokkit'] .pill > icon[role='button'] {
80
86
  @apply hover:bg-neutral-muted h-5 w-5 rounded-full hover:text-current focus:m-0 focus:rounded-full;
81
87
  }
82
88
 
83
- .rokkit .pill > rkt-item {
89
+ [data-style='rokkit'] .pill > rk-item {
84
90
  @apply gap-2 px-2 leading-6;
85
91
  }
86
- .rokkit .pill > rkt-item > img {
92
+ [data-style='rokkit'] .pill > rk-item > img {
87
93
  @apply h-4 w-4;
88
94
  }
89
95
 
90
96
  /* Styles for 'item' class */
91
- .rokkit rkt-item {
97
+ [data-style='rokkit'] rk-item,
98
+ [data-style='rokkit'] rk-list-item {
92
99
  @apply flex flex-shrink items-center gap-1;
93
100
  }
94
- .rokkit rkt-item > p {
101
+ [data-style='rokkit'] rk-item > p,
102
+ [data-style='rokkit'] rk-list-item > p {
95
103
  @apply flex-shrink text-ellipsis;
96
104
  }
97
105
 
98
106
  /* Image and link styles */
99
- .rokkit rkt-item > img,
100
- .rokkit rkt-item > a > img {
107
+ [data-style='rokkit'] rk-item > img,
108
+ [data-style='rokkit'] rk-item > a > img,
109
+ [data-style='rokkit'] rk-list-item > img,
110
+ [data-style='rokkit'] rk-list-item > a > img {
101
111
  @apply h-6 w-6;
102
112
  }
103
- .rokkit rkt-item > a {
113
+ [data-style='rokkit'] rk-item > a,
114
+ [data-style='rokkit'] rk-list-item > a {
104
115
  @apply gap-2;
105
116
  }
106
- .rokkit node rkt-item {
117
+ [data-style='rokkit'] rk-node rk-item {
107
118
  @apply gap-2 px-1;
108
119
  }
109
- /* rkt-crumbs styles */
110
- .rokkit rkt-crumbs {
120
+ /* rk-crumbs styles */
121
+ [data-style='rokkit'] rk-crumbs {
111
122
  @apply flex-grow gap-1;
112
123
  }
113
- .rokkit rkt-crumbs rkt-crumb.is-selected {
124
+ [data-style='rokkit'] rk-crumbs rk-crumb.is-selected {
114
125
  @apply text-secondary-700;
115
126
  }
116
127
 
117
- .rokkit rkt-day-of-month[aria-selected='true'] {
128
+ [data-style='rokkit'] rk-day-of-month[aria-selected='true'] {
118
129
  @apply from-primary to-secondary bg-gradient-to-r text-neutral-200 dark:text-neutral-800;
119
130
  }