@rokkit/themes 1.0.0-next.125 → 1.0.0-next.128
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/README.md +118 -9
- package/build.mjs +237 -0
- package/package.json +43 -28
- package/src/base/breadcrumbs.css +46 -0
- package/src/base/button.css +247 -0
- package/src/base/card.css +36 -0
- package/src/base/carousel.css +122 -12
- package/src/base/connector.css +92 -0
- package/src/base/display.css +91 -0
- package/src/base/floating-action.css +388 -0
- package/src/base/floating-navigation.css +381 -0
- package/src/base/grid.css +93 -0
- package/src/base/index.css +39 -0
- package/src/base/input.css +198 -39
- package/src/base/item.css +78 -0
- package/src/base/list.css +179 -0
- package/src/base/menu.css +274 -0
- package/src/base/pill.css +57 -0
- package/src/base/progress.css +28 -15
- package/src/base/range.css +121 -0
- package/src/base/rating.css +40 -0
- package/src/base/reveal.css +37 -0
- package/src/base/search-filter.css +132 -0
- package/src/base/select.css +411 -0
- package/src/base/shine.css +14 -0
- package/src/base/stepper.css +140 -0
- package/src/base/switch.css +152 -0
- package/src/base/table.css +143 -33
- package/src/base/tabs.css +171 -0
- package/src/base/tilt.css +14 -0
- package/src/base/timeline.css +84 -0
- package/src/base/toggle.css +138 -0
- package/src/base/toolbar.css +337 -0
- package/src/base/tree.css +195 -11
- package/src/base/upload-progress.css +155 -0
- package/src/base/upload-target.css +67 -0
- package/src/glass/button.css +152 -0
- package/src/glass/floating-action.css +61 -0
- package/src/glass/floating-navigation.css +74 -0
- package/src/glass/index.css +23 -0
- package/src/glass/input.css +124 -0
- package/src/glass/list.css +122 -0
- package/src/glass/menu.css +92 -0
- package/src/glass/range.css +61 -0
- package/src/glass/search-filter.css +49 -0
- package/src/glass/select.css +178 -0
- package/src/glass/switch.css +28 -0
- package/src/glass/table.css +87 -0
- package/src/glass/tabs.css +58 -0
- package/src/glass/timeline.css +46 -0
- package/src/glass/toggle.css +48 -0
- package/src/glass/toolbar.css +84 -0
- package/src/glass/tree.css +104 -0
- package/src/index.css +18 -0
- package/src/index.js +25 -2
- package/src/material/button.css +153 -0
- package/src/material/floating-action.css +60 -0
- package/src/material/floating-navigation.css +74 -0
- package/src/material/index.css +23 -0
- package/src/material/input.css +118 -40
- package/src/material/list.css +90 -64
- package/src/material/menu.css +92 -0
- package/src/material/range.css +62 -0
- package/src/material/search-filter.css +49 -0
- package/src/material/select.css +170 -0
- package/src/material/switch.css +28 -0
- package/src/material/table.css +87 -0
- package/src/material/tabs.css +62 -0
- package/src/material/timeline.css +46 -0
- package/src/material/toggle.css +48 -0
- package/src/material/toolbar.css +84 -0
- package/src/material/tree.css +100 -0
- package/src/minimal/button.css +152 -0
- package/src/minimal/floating-action.css +59 -0
- package/src/minimal/floating-navigation.css +70 -0
- package/src/minimal/index.css +23 -0
- package/src/minimal/input.css +81 -120
- package/src/minimal/list.css +90 -104
- package/src/minimal/menu.css +88 -0
- package/src/minimal/range.css +61 -0
- package/src/minimal/search-filter.css +49 -0
- package/src/minimal/select.css +168 -0
- package/src/minimal/switch.css +28 -0
- package/src/minimal/table.css +87 -0
- package/src/minimal/tabs.css +53 -31
- package/src/minimal/timeline.css +45 -0
- package/src/minimal/toggle.css +48 -0
- package/src/minimal/toolbar.css +84 -0
- package/src/minimal/tree.css +100 -0
- package/src/rokkit/button.css +225 -0
- package/src/rokkit/connector.css +11 -0
- package/src/rokkit/floating-action.css +65 -0
- package/src/rokkit/floating-navigation.css +83 -0
- package/src/rokkit/grid.css +46 -0
- package/src/rokkit/index.css +27 -0
- package/src/rokkit/input.css +130 -0
- package/src/rokkit/list.css +127 -0
- package/src/rokkit/menu.css +93 -0
- package/src/rokkit/range.css +62 -0
- package/src/rokkit/search-filter.css +49 -0
- package/src/rokkit/select.css +185 -0
- package/src/rokkit/switch.css +28 -0
- package/src/rokkit/table.css +68 -38
- package/src/rokkit/tabs.css +82 -0
- package/src/rokkit/timeline.css +46 -0
- package/src/rokkit/toggle.css +36 -52
- package/src/rokkit/toolbar.css +84 -0
- package/src/rokkit/tree.css +123 -0
- package/src/rokkit/upload-progress.css +102 -0
- package/src/rokkit/upload-target.css +50 -0
- package/src/base/alert.css +0 -30
- package/src/base/animation.css +0 -37
- package/src/base/atoms.css +0 -58
- package/src/base/core.css +0 -107
- package/src/base/layout.css +0 -65
- package/src/base/molecules.css +0 -109
- package/src/base/organisms.css +0 -66
- package/src/base/scrollbar.css +0 -16
- package/src/base/toggles.css +0 -17
- package/src/base.css +0 -13
- package/src/markdown.css +0 -955
- package/src/material/base.css +0 -12
- package/src/material/form.css +0 -30
- package/src/material.css +0 -9
- package/src/minimal/base.css +0 -8
- package/src/minimal/form.css +0 -87
- package/src/minimal.css +0 -11
- package/src/mixins/mixins.scss +0 -66
- package/src/mixins/palette.scss +0 -48
- package/src/prism.css +0 -102
- package/src/rokkit/alert.css +0 -4
- package/src/rokkit/atoms.css +0 -52
- package/src/rokkit/carousel.css +0 -19
- package/src/rokkit/layout.css +0 -17
- package/src/rokkit/molecules.css +0 -124
- package/src/rokkit/organisms.css +0 -307
- package/src/rokkit.css +0 -11
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button - Minimal Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Clean, understated styling with subtle borders.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Default Style (filled)
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='minimal'] [data-button][data-style='default'][data-variant='default'],
|
|
12
|
+
[data-style='minimal'] [data-button]:not([data-style])[data-variant='default'],
|
|
13
|
+
[data-style='minimal'] [data-button][data-style='default']:not([data-variant]),
|
|
14
|
+
[data-style='minimal'] [data-button]:not([data-style]):not([data-variant]) {
|
|
15
|
+
@apply bg-surface-z2 border-surface-z4 text-surface-z8 border;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-style='minimal'] [data-button][data-style='default'][data-variant='primary'],
|
|
19
|
+
[data-style='minimal'] [data-button]:not([data-style])[data-variant='primary'] {
|
|
20
|
+
@apply bg-primary-z5 text-on-primary border-transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='minimal'] [data-button][data-style='default'][data-variant='secondary'],
|
|
24
|
+
[data-style='minimal'] [data-button]:not([data-style])[data-variant='secondary'] {
|
|
25
|
+
@apply bg-secondary-z4 text-on-secondary border-transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-style='minimal'] [data-button][data-style='default'][data-variant='danger'],
|
|
29
|
+
[data-style='minimal'] [data-button]:not([data-style])[data-variant='danger'] {
|
|
30
|
+
@apply bg-danger-z4 text-on-danger border-transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* =============================================================================
|
|
34
|
+
Outline Style
|
|
35
|
+
============================================================================= */
|
|
36
|
+
|
|
37
|
+
[data-style='minimal'] [data-button][data-style='outline'][data-variant='default'],
|
|
38
|
+
[data-style='minimal'] [data-button][data-style='outline']:not([data-variant]) {
|
|
39
|
+
@apply border-surface-z4 text-surface-z7 border bg-transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-style='minimal'] [data-button][data-style='outline'][data-variant='primary'] {
|
|
43
|
+
@apply border-primary-z4 text-primary-z6 border bg-transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-style='minimal'] [data-button][data-style='outline'][data-variant='secondary'] {
|
|
47
|
+
@apply border-secondary-z4 text-secondary-z6 border bg-transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-style='minimal'] [data-button][data-style='outline'][data-variant='danger'] {
|
|
51
|
+
@apply border-danger-z4 text-danger-z4 border bg-transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* =============================================================================
|
|
55
|
+
Ghost Style
|
|
56
|
+
============================================================================= */
|
|
57
|
+
|
|
58
|
+
[data-style='minimal'] [data-button][data-style='ghost'] {
|
|
59
|
+
@apply border-transparent bg-transparent;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-style='minimal'] [data-button][data-style='ghost'][data-variant='default'],
|
|
63
|
+
[data-style='minimal'] [data-button][data-style='ghost']:not([data-variant]) {
|
|
64
|
+
@apply text-surface-z7;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-style='minimal'] [data-button][data-style='ghost'][data-variant='primary'] {
|
|
68
|
+
@apply text-primary-z6;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-style='minimal'] [data-button][data-style='ghost'][data-variant='secondary'] {
|
|
72
|
+
@apply text-secondary-z6;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-style='minimal'] [data-button][data-style='ghost'][data-variant='danger'] {
|
|
76
|
+
@apply text-danger-z4;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* =============================================================================
|
|
80
|
+
Gradient Style
|
|
81
|
+
============================================================================= */
|
|
82
|
+
|
|
83
|
+
[data-style='minimal'] [data-button][data-style='gradient'][data-variant='default'],
|
|
84
|
+
[data-style='minimal'] [data-button][data-style='gradient']:not([data-variant]) {
|
|
85
|
+
@apply from-surface-z3 to-surface-z1 text-surface-z10 bg-gradient-to-br;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-style='minimal'] [data-button][data-style='gradient'][data-variant='primary'] {
|
|
89
|
+
@apply from-primary-z5 to-primary-z3 text-on-primary bg-gradient-to-br;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-style='minimal'] [data-button][data-style='gradient'][data-variant='secondary'] {
|
|
93
|
+
@apply from-secondary-z5 to-secondary-z3 text-on-secondary bg-gradient-to-br;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-style='minimal'] [data-button][data-style='gradient'][data-variant='danger'] {
|
|
97
|
+
@apply from-danger-z5 to-danger-z3 text-on-danger bg-gradient-to-br;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[data-style='minimal'] [data-button][data-style='gradient']:hover:not(:disabled):not([data-disabled]) {
|
|
101
|
+
filter: brightness(1.05);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* =============================================================================
|
|
105
|
+
Link Style
|
|
106
|
+
============================================================================= */
|
|
107
|
+
|
|
108
|
+
[data-style='minimal'] [data-button][data-style='link'][data-variant='default'],
|
|
109
|
+
[data-style='minimal'] [data-button][data-style='link']:not([data-variant]) {
|
|
110
|
+
@apply text-surface-z7;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-style='minimal'] [data-button][data-style='link'][data-variant='primary'] {
|
|
114
|
+
@apply text-primary-z6;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
[data-style='minimal'] [data-button][data-style='link'][data-variant='secondary'] {
|
|
118
|
+
@apply text-secondary-z6;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-style='minimal'] [data-button][data-style='link'][data-variant='danger'] {
|
|
122
|
+
@apply text-danger-z4;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-style='minimal'] [data-button][data-style='link']:hover:not(:disabled):not([data-disabled]) {
|
|
126
|
+
@apply text-surface-z9;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* =============================================================================
|
|
130
|
+
Hover States
|
|
131
|
+
============================================================================= */
|
|
132
|
+
|
|
133
|
+
[data-style='minimal'] [data-button][data-style='default']:hover:not(:disabled):not([data-disabled]),
|
|
134
|
+
[data-style='minimal'] [data-button]:not([data-style]):hover:not(:disabled):not([data-disabled]) {
|
|
135
|
+
@apply bg-surface-z3 border-surface-z5;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-style='minimal'] [data-button][data-style='outline']:hover:not(:disabled):not([data-disabled]) {
|
|
139
|
+
@apply bg-surface-z1 border-surface-z5;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-style='minimal'] [data-button][data-style='ghost']:hover:not(:disabled):not([data-disabled]) {
|
|
143
|
+
@apply bg-surface-z2;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* =============================================================================
|
|
147
|
+
Focus
|
|
148
|
+
============================================================================= */
|
|
149
|
+
|
|
150
|
+
[data-style='minimal'] [data-button]:focus-visible {
|
|
151
|
+
@apply outline-none ring-1 ring-surface-z5;
|
|
152
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingAction - Minimal Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Clean, understated styling with subtle borders.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
FAB Trigger Button
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='minimal'] [data-fab-trigger] {
|
|
12
|
+
@apply bg-surface-z1 text-surface-z8 border-surface-z4 border;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-style='minimal'] [data-fab-trigger]:hover:not(:disabled) {
|
|
16
|
+
@apply bg-surface-z2 text-surface-z10 border-surface-z5;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-style='minimal'] [data-fab-trigger]:focus-visible {
|
|
20
|
+
@apply outline-none ring-1 ring-surface-z5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='minimal'] [data-fab][data-open='true'] [data-fab-trigger] {
|
|
24
|
+
@apply bg-surface-z3 border-surface-z5;
|
|
25
|
+
transform: rotate(45deg);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* =============================================================================
|
|
29
|
+
FAB Items
|
|
30
|
+
============================================================================= */
|
|
31
|
+
|
|
32
|
+
[data-style='minimal'] [data-fab-item] {
|
|
33
|
+
@apply bg-surface-z1 text-surface-z7 border-surface-z4 border;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-style='minimal'] [data-fab-item]:hover:not(:disabled) {
|
|
37
|
+
@apply bg-surface-z2 text-surface-z9 border-surface-z5;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-style='minimal'] [data-fab-item]:focus-visible {
|
|
41
|
+
@apply outline-none ring-1 ring-surface-z5;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Item icon */
|
|
45
|
+
[data-style='minimal'] [data-fab-item] [data-fab-item-icon] {
|
|
46
|
+
@apply text-surface-z6;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-style='minimal'] [data-fab-item]:hover:not(:disabled) [data-fab-item-icon] {
|
|
50
|
+
@apply text-surface-z8;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* =============================================================================
|
|
54
|
+
Backdrop
|
|
55
|
+
============================================================================= */
|
|
56
|
+
|
|
57
|
+
[data-style='minimal'] [data-fab-backdrop] {
|
|
58
|
+
background: rgba(0, 0, 0, 0.2);
|
|
59
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingNavigation - Minimal Theme Styles
|
|
3
|
+
*
|
|
4
|
+
* Clean, understated styling with subtle borders.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* =============================================================================
|
|
8
|
+
Container
|
|
9
|
+
============================================================================= */
|
|
10
|
+
|
|
11
|
+
[data-style='minimal'] [data-floating-nav] {
|
|
12
|
+
@apply bg-surface-z1 border-surface-z4 border;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* =============================================================================
|
|
16
|
+
Header
|
|
17
|
+
============================================================================= */
|
|
18
|
+
|
|
19
|
+
[data-style='minimal'] [data-floating-nav-title] {
|
|
20
|
+
@apply text-surface-z5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-style='minimal'] [data-floating-nav-pin] {
|
|
24
|
+
@apply text-surface-z5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-style='minimal'] [data-floating-nav-pin]:hover {
|
|
28
|
+
@apply text-surface-z8;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-style='minimal'] [data-floating-nav-pin][aria-pressed='true'] {
|
|
32
|
+
@apply text-surface-z9;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* =============================================================================
|
|
36
|
+
Items
|
|
37
|
+
============================================================================= */
|
|
38
|
+
|
|
39
|
+
[data-style='minimal'] [data-floating-nav-item] {
|
|
40
|
+
@apply text-surface-z7;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-style='minimal'] [data-floating-nav-item]:hover {
|
|
44
|
+
@apply bg-surface-z2 text-surface-z9;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-style='minimal'] [data-floating-nav-item][data-active] {
|
|
48
|
+
@apply text-surface-z10 bg-surface-z2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-style='minimal'] [data-floating-nav-item]:focus-visible {
|
|
52
|
+
@apply outline-none ring-1 ring-surface-z5;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Icon */
|
|
56
|
+
[data-style='minimal'] [data-floating-nav-icon] {
|
|
57
|
+
@apply text-surface-z6;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[data-style='minimal'] [data-floating-nav-item][data-active] [data-floating-nav-icon] {
|
|
61
|
+
@apply text-surface-z10;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* =============================================================================
|
|
65
|
+
Active Indicator
|
|
66
|
+
============================================================================= */
|
|
67
|
+
|
|
68
|
+
[data-style='minimal'] [data-floating-nav-indicator] {
|
|
69
|
+
@apply bg-surface-z8;
|
|
70
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @rokkit/themes - Minimal Theme
|
|
3
|
+
*
|
|
4
|
+
* Clean, understated visual styling with subtle borders and soft backgrounds.
|
|
5
|
+
* Use with data-style="minimal" wrapper.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import './button.css';
|
|
9
|
+
@import './toolbar.css';
|
|
10
|
+
@import './tabs.css';
|
|
11
|
+
@import './toggle.css';
|
|
12
|
+
@import './switch.css';
|
|
13
|
+
@import './list.css';
|
|
14
|
+
@import './tree.css';
|
|
15
|
+
@import './select.css';
|
|
16
|
+
@import './menu.css';
|
|
17
|
+
@import './floating-action.css';
|
|
18
|
+
@import './input.css';
|
|
19
|
+
@import './table.css';
|
|
20
|
+
@import './search-filter.css';
|
|
21
|
+
@import './range.css';
|
|
22
|
+
@import './timeline.css';
|
|
23
|
+
@import './floating-navigation.css';
|
package/src/minimal/input.css
CHANGED
|
@@ -1,154 +1,115 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Minimal Theme - Form field and input styles
|
|
2
|
+
* Underline-based input styling with clean, minimal appearance.
|
|
3
|
+
*/
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
[data-style='minimal']
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/* Input root: transparent background, bottom border only */
|
|
6
|
+
[data-style='minimal'] [data-input-root] {
|
|
7
|
+
@apply flex items-center border-b border-surface-z3 bg-transparent p-0 transition-all relative;
|
|
8
|
+
border-radius: 0;
|
|
9
|
+
background-image: none;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@apply border-surface-z3 hover:text-primary select-none rounded-md border-l border-r px-2 leading-tight;
|
|
14
|
-
}
|
|
15
|
-
[data-style='minimal'] fieldset rk-icon {
|
|
16
|
-
@apply text-2xl;
|
|
12
|
+
/* Override rokkit default gradient on focus */
|
|
13
|
+
[data-style='minimal'] [data-input-root]:focus-within {
|
|
14
|
+
@apply border-b-secondary-600 bg-transparent;
|
|
15
|
+
background-image: none;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
/* Inputs inside wrapper */
|
|
19
|
+
[data-style='minimal'] [data-input-root] input:not([type='checkbox'], [type='radio'], [type='color']),
|
|
20
|
+
[data-style='minimal'] [data-input-root] textarea,
|
|
21
|
+
[data-style='minimal'] [data-input-root] select {
|
|
22
|
+
@apply bg-transparent text-surface-z9 w-full border-none px-1 py-1.5 outline-none transition-all;
|
|
23
|
+
font-size: 0.875rem;
|
|
24
|
+
line-height: 1.25rem;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
|
-
[data-style='minimal'] input-
|
|
24
|
-
@apply
|
|
25
|
-
@apply focus-within:border-b-secondary-600;
|
|
26
|
-
}
|
|
27
|
-
[data-style='minimal'] input-field:focus-within label {
|
|
28
|
-
@apply text-secondary-600;
|
|
29
|
-
}
|
|
30
|
-
[data-style='minimal'] input-field span {
|
|
31
|
-
@apply border-surface-z3 bg-surface-z1 aspect-square h-full border-r px-1;
|
|
32
|
-
}
|
|
33
|
-
[data-style='minimal'] input-field input,
|
|
34
|
-
[data-style='minimal'] input-field textarea,
|
|
35
|
-
[data-style='minimal'] input-field select,
|
|
36
|
-
[data-style='minimal'] input-field > field > :not(icon) {
|
|
37
|
-
@apply flex-grow border-0 bg-transparent focus:outline-none;
|
|
27
|
+
[data-style='minimal'] [data-input-root] textarea {
|
|
28
|
+
@apply resize-vertical min-h-20 py-2;
|
|
38
29
|
}
|
|
39
30
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
/* Select inside input-root: match text input appearance */
|
|
32
|
+
[data-style='minimal'] [data-input-root] [data-select-trigger] {
|
|
33
|
+
@apply bg-transparent text-surface-z9 border-none rounded-none px-1 shadow-none ring-0 focus:outline-none;
|
|
34
|
+
font-size: 0.875rem;
|
|
35
|
+
background-image: none;
|
|
36
|
+
transition: color 150ms ease;
|
|
45
37
|
}
|
|
46
38
|
|
|
47
|
-
[data-style='minimal'] input-
|
|
48
|
-
@apply bg-
|
|
39
|
+
[data-style='minimal'] [data-input-root] [data-select-trigger]:hover:not(:disabled) {
|
|
40
|
+
@apply bg-transparent;
|
|
41
|
+
background-image: none;
|
|
49
42
|
}
|
|
50
43
|
|
|
51
|
-
[data-style='minimal'] input-
|
|
52
|
-
@apply
|
|
53
|
-
}
|
|
54
|
-
[data-style='minimal'] input-range range-track span {
|
|
55
|
-
@apply bg-surface-z2 border-surface-z3 box-border rounded-full;
|
|
44
|
+
[data-style='minimal'] [data-input-root] [data-select][data-open='true'] [data-select-trigger] {
|
|
45
|
+
@apply border-none ring-0 shadow-none bg-transparent;
|
|
56
46
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@apply rounded-full;
|
|
47
|
+
|
|
48
|
+
/* Labels: smaller, uppercase */
|
|
49
|
+
[data-style='minimal'] [data-field] > label {
|
|
50
|
+
@apply text-surface-z6 text-xs uppercase tracking-wide;
|
|
62
51
|
}
|
|
63
52
|
|
|
64
|
-
[data-style='minimal']
|
|
65
|
-
|
|
66
|
-
@apply bg-primary-100;
|
|
53
|
+
[data-style='minimal'] [data-form-root] label {
|
|
54
|
+
@apply text-surface-z6 text-xs uppercase tracking-wide;
|
|
67
55
|
}
|
|
68
56
|
|
|
69
|
-
|
|
70
|
-
[data-style='minimal']
|
|
71
|
-
|
|
72
|
-
@apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
|
|
57
|
+
/* Focused label: secondary color */
|
|
58
|
+
[data-style='minimal'] [data-field]:has([data-input-root]:focus-within) > label {
|
|
59
|
+
@apply text-secondary-600;
|
|
73
60
|
}
|
|
74
|
-
|
|
75
|
-
|
|
61
|
+
|
|
62
|
+
/* Field root */
|
|
63
|
+
[data-style='minimal'] [data-field-root] {
|
|
64
|
+
@apply gap-0.5;
|
|
76
65
|
}
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
|
|
67
|
+
/* Info field value */
|
|
68
|
+
[data-style='minimal'] [data-field-info] {
|
|
69
|
+
@apply text-primary-z6;
|
|
79
70
|
}
|
|
80
71
|
|
|
81
|
-
/*
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
[data-style='minimal'] tick span {
|
|
85
|
-
@apply border-surface h-full;
|
|
72
|
+
/* Separator */
|
|
73
|
+
[data-style='minimal'] [data-form-separator] {
|
|
74
|
+
@apply border-surface-z3;
|
|
86
75
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
76
|
+
|
|
77
|
+
/* Disabled state */
|
|
78
|
+
[data-style='minimal'] [data-field-disabled] [data-input-root] {
|
|
79
|
+
@apply border-surface-z3 opacity-50 cursor-not-allowed;
|
|
90
80
|
}
|
|
91
81
|
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
/* Error state */
|
|
83
|
+
[data-style='minimal'] [data-field-state='fail'] [data-input-root] {
|
|
84
|
+
@apply border-danger-z4;
|
|
94
85
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
|
|
87
|
+
/* Description */
|
|
88
|
+
[data-style='minimal'] [data-description] {
|
|
89
|
+
@apply text-surface-z6 mt-0.5 text-xs;
|
|
99
90
|
}
|
|
100
91
|
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
/* Message */
|
|
93
|
+
[data-style='minimal'] [data-message] {
|
|
94
|
+
@apply text-danger-z6 text-xs mt-0.5;
|
|
103
95
|
}
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
|
|
97
|
+
/* Checkbox */
|
|
98
|
+
[data-style='minimal'] [data-checkbox-icon] {
|
|
99
|
+
@apply text-surface-z5 text-lg;
|
|
106
100
|
}
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
|
|
102
|
+
[data-style='minimal'] [data-checkbox-root][data-variant='custom']:has(input:checked) [data-checkbox-icon] {
|
|
103
|
+
@apply text-secondary-600;
|
|
109
104
|
}
|
|
110
105
|
|
|
111
|
-
|
|
106
|
+
/* Checkbox label: secondary on focus (checkbox has no input-root) */
|
|
107
|
+
[data-style='minimal'] [data-field-type='checkbox'] [data-field]:has(:focus-within) > label {
|
|
112
108
|
@apply text-secondary-600;
|
|
113
109
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
message {
|
|
122
|
-
@apply text-error bg-error rounded-md;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
.info {
|
|
126
|
-
input,
|
|
127
|
-
textarea,
|
|
128
|
-
select {
|
|
129
|
-
@apply text-info border-info;
|
|
130
|
-
}
|
|
131
|
-
message {
|
|
132
|
-
@apply text-info bg-info rounded-md;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
.warn {
|
|
136
|
-
input,
|
|
137
|
-
textarea,
|
|
138
|
-
select {
|
|
139
|
-
@apply text-warn border-warn bg-warn;
|
|
140
|
-
}
|
|
141
|
-
message {
|
|
142
|
-
@apply text-warn bg-warn rounded-md;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
.pass {
|
|
146
|
-
input,
|
|
147
|
-
textarea,
|
|
148
|
-
select {
|
|
149
|
-
@apply text-pass border-pass bg-pass;
|
|
150
|
-
}
|
|
151
|
-
message {
|
|
152
|
-
@apply text-pass bg-pass rounded-md;
|
|
153
|
-
}
|
|
154
|
-
} */
|
|
110
|
+
|
|
111
|
+
/* Placeholders */
|
|
112
|
+
[data-style='minimal'] [data-input-root] input::placeholder,
|
|
113
|
+
[data-style='minimal'] [data-input-root] textarea::placeholder {
|
|
114
|
+
@apply text-surface-z4;
|
|
115
|
+
}
|