@zvndev/yable-themes 0.1.0
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 +187 -0
- package/dist/base.css +2706 -0
- package/dist/index.css +4 -0
- package/dist/rtl.css +180 -0
- package/dist/tailwind.css +69 -0
- package/dist/themes/compact.css +178 -0
- package/dist/themes/default.css +127 -0
- package/dist/themes/forest.css +204 -0
- package/dist/themes/midnight.css +235 -0
- package/dist/themes/mono.css +227 -0
- package/dist/themes/ocean.css +209 -0
- package/dist/themes/rose.css +204 -0
- package/dist/themes/stripe.css +167 -0
- package/dist/tokens.css +299 -0
- package/dist/utilities.css +517 -0
- package/package.json +38 -0
- package/src/tailwind-preset.ts +80 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
@zvndev/yable-themes — Forest Theme
|
|
3
|
+
Grounded and organic. Deep sage, warm earth, olive undertones.
|
|
4
|
+
Not neon green — think aged moss, warm clay, worn leather.
|
|
5
|
+
Borders are warm gray-green, headers are olive-sage.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
import '@zvndev/yable-themes'
|
|
9
|
+
import '@zvndev/yable-themes/forest.css'
|
|
10
|
+
<Table theme="forest" />
|
|
11
|
+
============================================================================ */
|
|
12
|
+
|
|
13
|
+
.yable-theme-forest,
|
|
14
|
+
.yable[data-theme="forest"] {
|
|
15
|
+
/* Surface — warm off-white with the faintest green warmth */
|
|
16
|
+
--yable-bg: #fbfcf9;
|
|
17
|
+
--yable-bg-header: #f3f5ef;
|
|
18
|
+
--yable-bg-footer: #f3f5ef;
|
|
19
|
+
--yable-bg-row: transparent;
|
|
20
|
+
--yable-bg-row-alt: rgba(90, 110, 78, 0.015);
|
|
21
|
+
--yable-bg-row-hover: rgba(90, 110, 78, 0.03);
|
|
22
|
+
--yable-bg-row-selected: rgba(90, 130, 60, 0.06);
|
|
23
|
+
--yable-bg-row-expanded: rgba(90, 110, 78, 0.015);
|
|
24
|
+
--yable-bg-cell-editing: #ffffff;
|
|
25
|
+
--yable-bg-pinned: #f7f9f4;
|
|
26
|
+
--yable-bg-row-drag-over: rgba(90, 130, 60, 0.08);
|
|
27
|
+
|
|
28
|
+
/* Text — warm olive-gray, earthy */
|
|
29
|
+
--yable-text-primary: #1c2118;
|
|
30
|
+
--yable-text-secondary: #5d6b55;
|
|
31
|
+
--yable-text-tertiary: #8b9783;
|
|
32
|
+
--yable-text-header: #4d6340;
|
|
33
|
+
--yable-text-disabled: #c2cabb;
|
|
34
|
+
--yable-text-link: #4d7a3e;
|
|
35
|
+
--yable-text-placeholder: #8b9783;
|
|
36
|
+
|
|
37
|
+
/* Borders — warm gray-green, organic feel */
|
|
38
|
+
--yable-border-color: #e2e7dc;
|
|
39
|
+
--yable-border-color-strong: #c8d1c0;
|
|
40
|
+
--yable-border-radius: 6px;
|
|
41
|
+
--yable-border-radius-lg: 10px;
|
|
42
|
+
|
|
43
|
+
/* Accent — sage-green, not emerald */
|
|
44
|
+
--yable-accent: #5a8a4a;
|
|
45
|
+
--yable-accent-hover: #4a7340;
|
|
46
|
+
--yable-accent-light: rgba(90, 138, 74, 0.06);
|
|
47
|
+
--yable-accent-text: #ffffff;
|
|
48
|
+
|
|
49
|
+
/* Focus */
|
|
50
|
+
--yable-focus-ring: 0 0 0 2px #fbfcf9, 0 0 0 4px rgba(90, 138, 74, 0.3);
|
|
51
|
+
|
|
52
|
+
/* Shadows — warm and earthy */
|
|
53
|
+
--yable-shadow: 0 1px 2px rgba(60, 70, 50, 0.05);
|
|
54
|
+
--yable-shadow-lg: 0 6px 20px rgba(60, 70, 50, 0.07);
|
|
55
|
+
--yable-shadow-pinned: 4px 0 10px -2px rgba(60, 70, 50, 0.05);
|
|
56
|
+
|
|
57
|
+
/* Scrollbar */
|
|
58
|
+
--yable-scrollbar-thumb: rgba(90, 110, 78, 0.18);
|
|
59
|
+
--yable-scrollbar-track: transparent;
|
|
60
|
+
|
|
61
|
+
/* Spacing */
|
|
62
|
+
--yable-cell-padding-x: 14px;
|
|
63
|
+
--yable-cell-padding-y: 10px;
|
|
64
|
+
--yable-header-padding-x: 14px;
|
|
65
|
+
--yable-header-padding-y: 11px;
|
|
66
|
+
|
|
67
|
+
/* Form */
|
|
68
|
+
--yable-input-border: #c8d1c0;
|
|
69
|
+
--yable-input-border-hover: #9daa92;
|
|
70
|
+
--yable-input-shadow-focus: 0 0 0 3px rgba(90, 138, 74, 0.08);
|
|
71
|
+
|
|
72
|
+
/* Checkbox */
|
|
73
|
+
--yable-checkbox-border: #c8d1c0;
|
|
74
|
+
--yable-checkbox-radius: 3px;
|
|
75
|
+
|
|
76
|
+
/* Pagination */
|
|
77
|
+
--yable-pagination-button-radius: 6px;
|
|
78
|
+
--yable-pagination-button-bg-hover: rgba(90, 110, 78, 0.06);
|
|
79
|
+
|
|
80
|
+
/* Loading */
|
|
81
|
+
--yable-loading-shimmer: linear-gradient(
|
|
82
|
+
90deg,
|
|
83
|
+
rgba(90, 110, 78, 0.025) 25%,
|
|
84
|
+
rgba(90, 110, 78, 0.05) 37%,
|
|
85
|
+
rgba(90, 110, 78, 0.025) 63%
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Header — olive-sage, grounded authority */
|
|
90
|
+
.yable-theme-forest .yable-th,
|
|
91
|
+
.yable[data-theme="forest"] .yable-th {
|
|
92
|
+
text-transform: none;
|
|
93
|
+
letter-spacing: normal;
|
|
94
|
+
font-size: var(--yable-font-size-sm);
|
|
95
|
+
font-weight: var(--yable-font-weight-medium);
|
|
96
|
+
color: var(--yable-text-header);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.yable-theme-forest .yable-tr:not(:last-child) .yable-td,
|
|
100
|
+
.yable[data-theme="forest"] .yable-tr:not(:last-child) .yable-td {
|
|
101
|
+
border-bottom-color: var(--yable-border-color);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ── Forest Dark Mode ───────────────────────────────────────────────────── */
|
|
105
|
+
|
|
106
|
+
@media (prefers-color-scheme: dark) {
|
|
107
|
+
.yable-theme-forest:not([data-yable-theme="light"]),
|
|
108
|
+
.yable[data-theme="forest"]:not([data-yable-theme="light"]) {
|
|
109
|
+
--yable-bg: #0c100b;
|
|
110
|
+
--yable-bg-header: #131812;
|
|
111
|
+
--yable-bg-footer: #131812;
|
|
112
|
+
--yable-bg-row-alt: rgba(90, 138, 74, 0.025);
|
|
113
|
+
--yable-bg-row-hover: rgba(90, 138, 74, 0.05);
|
|
114
|
+
--yable-bg-row-selected: rgba(90, 138, 74, 0.1);
|
|
115
|
+
--yable-bg-row-expanded: rgba(90, 138, 74, 0.02);
|
|
116
|
+
--yable-bg-cell-editing: #171e15;
|
|
117
|
+
--yable-bg-pinned: #10140f;
|
|
118
|
+
--yable-bg-row-drag-over: rgba(90, 138, 74, 0.12);
|
|
119
|
+
|
|
120
|
+
--yable-text-primary: #dae3d5;
|
|
121
|
+
--yable-text-secondary: #85997d;
|
|
122
|
+
--yable-text-tertiary: #556c4e;
|
|
123
|
+
--yable-text-header: #8fc07e;
|
|
124
|
+
|
|
125
|
+
--yable-border-color: #1e2a1b;
|
|
126
|
+
--yable-border-color-strong: #2d3e28;
|
|
127
|
+
|
|
128
|
+
--yable-accent: #7ab868;
|
|
129
|
+
--yable-accent-hover: #96ce88;
|
|
130
|
+
--yable-accent-light: rgba(122, 184, 104, 0.1);
|
|
131
|
+
|
|
132
|
+
--yable-focus-ring: 0 0 0 2px #0c100b, 0 0 0 4px rgba(122, 184, 104, 0.35);
|
|
133
|
+
|
|
134
|
+
--yable-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
135
|
+
--yable-shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.5);
|
|
136
|
+
|
|
137
|
+
--yable-scrollbar-thumb: rgba(122, 184, 104, 0.18);
|
|
138
|
+
--yable-scrollbar-track: rgba(255, 255, 255, 0.02);
|
|
139
|
+
|
|
140
|
+
--yable-input-border: #2d3e28;
|
|
141
|
+
--yable-input-border-hover: #3f5a38;
|
|
142
|
+
--yable-input-bg-focus: #171e15;
|
|
143
|
+
--yable-checkbox-border: #3f5a38;
|
|
144
|
+
--yable-checkbox-bg: #1e2a1b;
|
|
145
|
+
|
|
146
|
+
--yable-pagination-button-bg-hover: rgba(122, 184, 104, 0.08);
|
|
147
|
+
|
|
148
|
+
--yable-loading-shimmer: linear-gradient(
|
|
149
|
+
90deg,
|
|
150
|
+
rgba(122, 184, 104, 0.02) 25%,
|
|
151
|
+
rgba(122, 184, 104, 0.05) 37%,
|
|
152
|
+
rgba(122, 184, 104, 0.02) 63%
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[data-yable-theme="dark"] .yable-theme-forest,
|
|
158
|
+
[data-yable-theme="dark"] .yable[data-theme="forest"] {
|
|
159
|
+
--yable-bg: #0c100b;
|
|
160
|
+
--yable-bg-header: #131812;
|
|
161
|
+
--yable-bg-footer: #131812;
|
|
162
|
+
--yable-bg-row-alt: rgba(90, 138, 74, 0.025);
|
|
163
|
+
--yable-bg-row-hover: rgba(90, 138, 74, 0.05);
|
|
164
|
+
--yable-bg-row-selected: rgba(90, 138, 74, 0.1);
|
|
165
|
+
--yable-bg-row-expanded: rgba(90, 138, 74, 0.02);
|
|
166
|
+
--yable-bg-cell-editing: #171e15;
|
|
167
|
+
--yable-bg-pinned: #10140f;
|
|
168
|
+
--yable-bg-row-drag-over: rgba(90, 138, 74, 0.12);
|
|
169
|
+
|
|
170
|
+
--yable-text-primary: #dae3d5;
|
|
171
|
+
--yable-text-secondary: #85997d;
|
|
172
|
+
--yable-text-tertiary: #556c4e;
|
|
173
|
+
--yable-text-header: #8fc07e;
|
|
174
|
+
|
|
175
|
+
--yable-border-color: #1e2a1b;
|
|
176
|
+
--yable-border-color-strong: #2d3e28;
|
|
177
|
+
|
|
178
|
+
--yable-accent: #7ab868;
|
|
179
|
+
--yable-accent-hover: #96ce88;
|
|
180
|
+
--yable-accent-light: rgba(122, 184, 104, 0.1);
|
|
181
|
+
|
|
182
|
+
--yable-focus-ring: 0 0 0 2px #0c100b, 0 0 0 4px rgba(122, 184, 104, 0.35);
|
|
183
|
+
|
|
184
|
+
--yable-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
185
|
+
--yable-shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.5);
|
|
186
|
+
|
|
187
|
+
--yable-scrollbar-thumb: rgba(122, 184, 104, 0.18);
|
|
188
|
+
--yable-scrollbar-track: rgba(255, 255, 255, 0.02);
|
|
189
|
+
|
|
190
|
+
--yable-input-border: #2d3e28;
|
|
191
|
+
--yable-input-border-hover: #3f5a38;
|
|
192
|
+
--yable-input-bg-focus: #171e15;
|
|
193
|
+
--yable-checkbox-border: #3f5a38;
|
|
194
|
+
--yable-checkbox-bg: #1e2a1b;
|
|
195
|
+
|
|
196
|
+
--yable-pagination-button-bg-hover: rgba(122, 184, 104, 0.08);
|
|
197
|
+
|
|
198
|
+
--yable-loading-shimmer: linear-gradient(
|
|
199
|
+
90deg,
|
|
200
|
+
rgba(122, 184, 104, 0.02) 25%,
|
|
201
|
+
rgba(122, 184, 104, 0.05) 37%,
|
|
202
|
+
rgba(122, 184, 104, 0.02) 63%
|
|
203
|
+
);
|
|
204
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
@zvndev/yable-themes — Midnight Theme
|
|
3
|
+
Deep navy with electric blue glow. Inspired by VS Code, GitHub dark,
|
|
4
|
+
and modern developer tools. Headers feel alive with subtle blue tint.
|
|
5
|
+
Active states carry a soft luminous glow.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
import '@zvndev/yable-themes'
|
|
9
|
+
import '@zvndev/yable-themes/midnight.css'
|
|
10
|
+
<Table theme="midnight" />
|
|
11
|
+
============================================================================ */
|
|
12
|
+
|
|
13
|
+
.yable-theme-midnight,
|
|
14
|
+
.yable[data-theme="midnight"] {
|
|
15
|
+
/* Surface — truly deep navy, not just dark gray */
|
|
16
|
+
--yable-bg: #080b16;
|
|
17
|
+
--yable-bg-header: #0d1025;
|
|
18
|
+
--yable-bg-footer: #0d1025;
|
|
19
|
+
--yable-bg-row: transparent;
|
|
20
|
+
--yable-bg-row-alt: rgba(56, 139, 253, 0.02);
|
|
21
|
+
--yable-bg-row-hover: rgba(56, 139, 253, 0.05);
|
|
22
|
+
--yable-bg-row-selected: rgba(56, 139, 253, 0.1);
|
|
23
|
+
--yable-bg-row-expanded: rgba(56, 139, 253, 0.025);
|
|
24
|
+
--yable-bg-cell-editing: #0f1330;
|
|
25
|
+
--yable-bg-pinned: #0a0d1e;
|
|
26
|
+
--yable-bg-row-drag-over: rgba(56, 139, 253, 0.12);
|
|
27
|
+
|
|
28
|
+
/* Text — high-contrast whites with cool blue undertones */
|
|
29
|
+
--yable-text-primary: #e6edf3;
|
|
30
|
+
--yable-text-secondary: #8b949e;
|
|
31
|
+
--yable-text-tertiary: #484f58;
|
|
32
|
+
--yable-text-header: #79c0ff;
|
|
33
|
+
--yable-text-disabled: #30363d;
|
|
34
|
+
--yable-text-link: #58a6ff;
|
|
35
|
+
--yable-text-placeholder: #484f58;
|
|
36
|
+
|
|
37
|
+
/* Borders — subtle blue-tinted navy edges */
|
|
38
|
+
--yable-border-color: #161b33;
|
|
39
|
+
--yable-border-color-strong: #21283d;
|
|
40
|
+
--yable-border-radius: 6px;
|
|
41
|
+
--yable-border-radius-lg: 10px;
|
|
42
|
+
|
|
43
|
+
/* Accent — electric blue, GitHub-style */
|
|
44
|
+
--yable-accent: #388bfd;
|
|
45
|
+
--yable-accent-hover: #58a6ff;
|
|
46
|
+
--yable-accent-light: rgba(56, 139, 253, 0.12);
|
|
47
|
+
--yable-accent-text: #ffffff;
|
|
48
|
+
|
|
49
|
+
/* Focus — electric blue glow ring */
|
|
50
|
+
--yable-focus-ring: 0 0 0 2px #080b16, 0 0 0 4px rgba(56, 139, 253, 0.5);
|
|
51
|
+
|
|
52
|
+
/* Shadows — deep with subtle blue luminance */
|
|
53
|
+
--yable-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 1px rgba(56, 139, 253, 0.06);
|
|
54
|
+
--yable-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(56, 139, 253, 0.08);
|
|
55
|
+
--yable-shadow-pinned: 4px 0 12px -2px rgba(0, 0, 0, 0.5);
|
|
56
|
+
|
|
57
|
+
/* Scrollbar */
|
|
58
|
+
--yable-scrollbar-thumb: rgba(56, 139, 253, 0.2);
|
|
59
|
+
--yable-scrollbar-track: rgba(255, 255, 255, 0.02);
|
|
60
|
+
|
|
61
|
+
/* Spacing — comfortable for long coding sessions */
|
|
62
|
+
--yable-cell-padding-x: 14px;
|
|
63
|
+
--yable-cell-padding-y: 10px;
|
|
64
|
+
--yable-header-padding-x: 14px;
|
|
65
|
+
--yable-header-padding-y: 11px;
|
|
66
|
+
|
|
67
|
+
/* Sizing */
|
|
68
|
+
--yable-row-min-height: 40px;
|
|
69
|
+
--yable-header-min-height: 40px;
|
|
70
|
+
|
|
71
|
+
/* Typography — monospace-friendly sizing */
|
|
72
|
+
--yable-font-size: 13px;
|
|
73
|
+
--yable-font-size-sm: 12px;
|
|
74
|
+
--yable-font-size-header: 11px;
|
|
75
|
+
|
|
76
|
+
/* Form controls */
|
|
77
|
+
--yable-input-bg: rgba(255, 255, 255, 0.025);
|
|
78
|
+
--yable-input-bg-hover: rgba(255, 255, 255, 0.05);
|
|
79
|
+
--yable-input-bg-focus: #0f1330;
|
|
80
|
+
--yable-input-border: #21283d;
|
|
81
|
+
--yable-input-border-hover: #30395a;
|
|
82
|
+
--yable-input-border-focus: var(--yable-accent);
|
|
83
|
+
--yable-input-shadow-focus: 0 0 0 3px rgba(56, 139, 253, 0.15);
|
|
84
|
+
|
|
85
|
+
/* Checkbox */
|
|
86
|
+
--yable-checkbox-border: #30395a;
|
|
87
|
+
--yable-checkbox-bg: #161b33;
|
|
88
|
+
|
|
89
|
+
/* Pagination */
|
|
90
|
+
--yable-pagination-button-radius: 6px;
|
|
91
|
+
--yable-pagination-button-bg-hover: rgba(56, 139, 253, 0.08);
|
|
92
|
+
|
|
93
|
+
/* Loading */
|
|
94
|
+
--yable-loading-shimmer: linear-gradient(
|
|
95
|
+
90deg,
|
|
96
|
+
rgba(56, 139, 253, 0.02) 25%,
|
|
97
|
+
rgba(56, 139, 253, 0.05) 37%,
|
|
98
|
+
rgba(56, 139, 253, 0.02) 63%
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
/* Cell flash — cool blue palette */
|
|
102
|
+
--yable-flash-up-color: rgba(56, 211, 159, 0.25);
|
|
103
|
+
--yable-flash-down-color: rgba(248, 81, 73, 0.25);
|
|
104
|
+
--yable-flash-change-color: rgba(56, 139, 253, 0.2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Header — alive with blue tint, crisp and technical */
|
|
108
|
+
.yable-theme-midnight .yable-th,
|
|
109
|
+
.yable[data-theme="midnight"] .yable-th {
|
|
110
|
+
text-transform: none;
|
|
111
|
+
letter-spacing: 0.02em;
|
|
112
|
+
font-size: var(--yable-font-size-header);
|
|
113
|
+
font-weight: var(--yable-font-weight-medium);
|
|
114
|
+
color: var(--yable-text-header);
|
|
115
|
+
border-bottom: 1px solid var(--yable-border-color-strong);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Rows — razor-thin navy separators */
|
|
119
|
+
.yable-theme-midnight .yable-tr:not(:last-child) .yable-td,
|
|
120
|
+
.yable[data-theme="midnight"] .yable-tr:not(:last-child) .yable-td {
|
|
121
|
+
border-bottom: 1px solid var(--yable-border-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Outer border — defined but not heavy */
|
|
125
|
+
.yable-theme-midnight,
|
|
126
|
+
.yable[data-theme="midnight"] {
|
|
127
|
+
border: 1px solid var(--yable-border-color-strong);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* ── Midnight Light Variant ─────────────────────────────────────────────── */
|
|
131
|
+
/* Light midnight: steel blue surfaces, deep blue accents — still technical */
|
|
132
|
+
|
|
133
|
+
[data-yable-theme="light"] .yable-theme-midnight,
|
|
134
|
+
[data-yable-theme="light"] .yable[data-theme="midnight"] {
|
|
135
|
+
--yable-bg: #f8f9fc;
|
|
136
|
+
--yable-bg-header: #eef1f8;
|
|
137
|
+
--yable-bg-footer: #eef1f8;
|
|
138
|
+
--yable-bg-row-alt: rgba(30, 58, 138, 0.015);
|
|
139
|
+
--yable-bg-row-hover: rgba(30, 58, 138, 0.03);
|
|
140
|
+
--yable-bg-row-selected: rgba(56, 139, 253, 0.07);
|
|
141
|
+
--yable-bg-row-expanded: rgba(30, 58, 138, 0.015);
|
|
142
|
+
--yable-bg-cell-editing: #ffffff;
|
|
143
|
+
--yable-bg-pinned: #f2f4fa;
|
|
144
|
+
--yable-bg-row-drag-over: rgba(56, 139, 253, 0.1);
|
|
145
|
+
|
|
146
|
+
--yable-text-primary: #1e293b;
|
|
147
|
+
--yable-text-secondary: #64748b;
|
|
148
|
+
--yable-text-tertiary: #94a3b8;
|
|
149
|
+
--yable-text-header: #1e40af;
|
|
150
|
+
--yable-text-disabled: #cbd5e1;
|
|
151
|
+
--yable-text-placeholder: #94a3b8;
|
|
152
|
+
|
|
153
|
+
--yable-border-color: #dfe4ef;
|
|
154
|
+
--yable-border-color-strong: #c1c9db;
|
|
155
|
+
|
|
156
|
+
--yable-accent: #2563eb;
|
|
157
|
+
--yable-accent-hover: #1d4ed8;
|
|
158
|
+
--yable-accent-light: rgba(37, 99, 235, 0.06);
|
|
159
|
+
|
|
160
|
+
--yable-focus-ring: 0 0 0 2px #f8f9fc, 0 0 0 4px rgba(37, 99, 235, 0.35);
|
|
161
|
+
|
|
162
|
+
--yable-shadow: 0 1px 2px rgba(30, 58, 138, 0.06);
|
|
163
|
+
--yable-shadow-lg: 0 4px 12px rgba(30, 58, 138, 0.1);
|
|
164
|
+
|
|
165
|
+
--yable-scrollbar-thumb: rgba(30, 58, 138, 0.15);
|
|
166
|
+
--yable-scrollbar-track: transparent;
|
|
167
|
+
|
|
168
|
+
--yable-input-bg: transparent;
|
|
169
|
+
--yable-input-bg-hover: rgba(0, 0, 0, 0.025);
|
|
170
|
+
--yable-input-bg-focus: #ffffff;
|
|
171
|
+
--yable-input-border: #c1c9db;
|
|
172
|
+
--yable-input-border-hover: #94a3b8;
|
|
173
|
+
--yable-checkbox-border: #94a3b8;
|
|
174
|
+
--yable-checkbox-bg: #ffffff;
|
|
175
|
+
|
|
176
|
+
--yable-loading-shimmer: linear-gradient(
|
|
177
|
+
90deg,
|
|
178
|
+
rgba(30, 58, 138, 0.03) 25%,
|
|
179
|
+
rgba(30, 58, 138, 0.06) 37%,
|
|
180
|
+
rgba(30, 58, 138, 0.03) 63%
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@media (prefers-color-scheme: light) {
|
|
185
|
+
.yable-theme-midnight:not([data-yable-theme="dark"]),
|
|
186
|
+
.yable[data-theme="midnight"]:not([data-yable-theme="dark"]) {
|
|
187
|
+
--yable-bg: #f8f9fc;
|
|
188
|
+
--yable-bg-header: #eef1f8;
|
|
189
|
+
--yable-bg-footer: #eef1f8;
|
|
190
|
+
--yable-bg-row-alt: rgba(30, 58, 138, 0.015);
|
|
191
|
+
--yable-bg-row-hover: rgba(30, 58, 138, 0.03);
|
|
192
|
+
--yable-bg-row-selected: rgba(56, 139, 253, 0.07);
|
|
193
|
+
--yable-bg-row-expanded: rgba(30, 58, 138, 0.015);
|
|
194
|
+
--yable-bg-cell-editing: #ffffff;
|
|
195
|
+
--yable-bg-pinned: #f2f4fa;
|
|
196
|
+
--yable-bg-row-drag-over: rgba(56, 139, 253, 0.1);
|
|
197
|
+
|
|
198
|
+
--yable-text-primary: #1e293b;
|
|
199
|
+
--yable-text-secondary: #64748b;
|
|
200
|
+
--yable-text-tertiary: #94a3b8;
|
|
201
|
+
--yable-text-header: #1e40af;
|
|
202
|
+
--yable-text-disabled: #cbd5e1;
|
|
203
|
+
--yable-text-placeholder: #94a3b8;
|
|
204
|
+
|
|
205
|
+
--yable-border-color: #dfe4ef;
|
|
206
|
+
--yable-border-color-strong: #c1c9db;
|
|
207
|
+
|
|
208
|
+
--yable-accent: #2563eb;
|
|
209
|
+
--yable-accent-hover: #1d4ed8;
|
|
210
|
+
--yable-accent-light: rgba(37, 99, 235, 0.06);
|
|
211
|
+
|
|
212
|
+
--yable-focus-ring: 0 0 0 2px #f8f9fc, 0 0 0 4px rgba(37, 99, 235, 0.35);
|
|
213
|
+
|
|
214
|
+
--yable-shadow: 0 1px 2px rgba(30, 58, 138, 0.06);
|
|
215
|
+
--yable-shadow-lg: 0 4px 12px rgba(30, 58, 138, 0.1);
|
|
216
|
+
|
|
217
|
+
--yable-scrollbar-thumb: rgba(30, 58, 138, 0.15);
|
|
218
|
+
--yable-scrollbar-track: transparent;
|
|
219
|
+
|
|
220
|
+
--yable-input-bg: transparent;
|
|
221
|
+
--yable-input-bg-hover: rgba(0, 0, 0, 0.025);
|
|
222
|
+
--yable-input-bg-focus: #ffffff;
|
|
223
|
+
--yable-input-border: #c1c9db;
|
|
224
|
+
--yable-input-border-hover: #94a3b8;
|
|
225
|
+
--yable-checkbox-border: #94a3b8;
|
|
226
|
+
--yable-checkbox-bg: #ffffff;
|
|
227
|
+
|
|
228
|
+
--yable-loading-shimmer: linear-gradient(
|
|
229
|
+
90deg,
|
|
230
|
+
rgba(30, 58, 138, 0.03) 25%,
|
|
231
|
+
rgba(30, 58, 138, 0.06) 37%,
|
|
232
|
+
rgba(30, 58, 138, 0.03) 63%
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
@zvndev/yable-themes — Mono Theme
|
|
3
|
+
Swiss design. Zero color. Pure typography. Maximum contrast.
|
|
4
|
+
The accent IS black (light) or white (dark). Borders are surgical.
|
|
5
|
+
This theme makes the data and typography the absolute hero.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
import '@zvndev/yable-themes'
|
|
9
|
+
import '@zvndev/yable-themes/mono.css'
|
|
10
|
+
<Table theme="mono" />
|
|
11
|
+
============================================================================ */
|
|
12
|
+
|
|
13
|
+
.yable-theme-mono,
|
|
14
|
+
.yable[data-theme="mono"] {
|
|
15
|
+
/* Surface — true white, no warmth, no coolness */
|
|
16
|
+
--yable-bg: #ffffff;
|
|
17
|
+
--yable-bg-header: #f7f7f7;
|
|
18
|
+
--yable-bg-footer: #f7f7f7;
|
|
19
|
+
--yable-bg-row: transparent;
|
|
20
|
+
--yable-bg-row-alt: rgba(0, 0, 0, 0.012);
|
|
21
|
+
--yable-bg-row-hover: rgba(0, 0, 0, 0.025);
|
|
22
|
+
--yable-bg-row-selected: rgba(0, 0, 0, 0.05);
|
|
23
|
+
--yable-bg-row-expanded: rgba(0, 0, 0, 0.012);
|
|
24
|
+
--yable-bg-cell-editing: #ffffff;
|
|
25
|
+
--yable-bg-pinned: #fafafa;
|
|
26
|
+
--yable-bg-row-drag-over: rgba(0, 0, 0, 0.06);
|
|
27
|
+
|
|
28
|
+
/* Text — pure black scale, no blue or warm tint */
|
|
29
|
+
--yable-text-primary: #0a0a0a;
|
|
30
|
+
--yable-text-secondary: #666666;
|
|
31
|
+
--yable-text-tertiary: #999999;
|
|
32
|
+
--yable-text-header: #333333;
|
|
33
|
+
--yable-text-disabled: #cccccc;
|
|
34
|
+
--yable-text-link: #0a0a0a;
|
|
35
|
+
--yable-text-placeholder: #999999;
|
|
36
|
+
|
|
37
|
+
/* Borders — surgical precision, exact gray */
|
|
38
|
+
--yable-border-color: #e5e5e5;
|
|
39
|
+
--yable-border-color-strong: #d0d0d0;
|
|
40
|
+
--yable-border-radius: 4px;
|
|
41
|
+
--yable-border-radius-sm: 2px;
|
|
42
|
+
--yable-border-radius-lg: 6px;
|
|
43
|
+
|
|
44
|
+
/* Accent — pure black. Zero color. Typography-first. */
|
|
45
|
+
--yable-accent: #000000;
|
|
46
|
+
--yable-accent-hover: #333333;
|
|
47
|
+
--yable-accent-light: rgba(0, 0, 0, 0.04);
|
|
48
|
+
--yable-accent-text: #ffffff;
|
|
49
|
+
|
|
50
|
+
/* Focus — crisp black ring */
|
|
51
|
+
--yable-focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
|
|
52
|
+
|
|
53
|
+
/* Shadows — minimal, structural */
|
|
54
|
+
--yable-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
55
|
+
--yable-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06);
|
|
56
|
+
--yable-shadow-pinned: 4px 0 8px -2px rgba(0, 0, 0, 0.04);
|
|
57
|
+
|
|
58
|
+
/* Scrollbar */
|
|
59
|
+
--yable-scrollbar-thumb: rgba(0, 0, 0, 0.2);
|
|
60
|
+
--yable-scrollbar-track: transparent;
|
|
61
|
+
|
|
62
|
+
/* Spacing — tight, data-dense */
|
|
63
|
+
--yable-cell-padding-x: 14px;
|
|
64
|
+
--yable-cell-padding-y: 9px;
|
|
65
|
+
--yable-header-padding-x: 14px;
|
|
66
|
+
--yable-header-padding-y: 10px;
|
|
67
|
+
|
|
68
|
+
/* Typography — slightly larger for readability, typography IS the design */
|
|
69
|
+
--yable-font-size: 13.5px;
|
|
70
|
+
--yable-font-size-sm: 12px;
|
|
71
|
+
--yable-font-size-header: 10px;
|
|
72
|
+
--yable-line-height: 1.5;
|
|
73
|
+
|
|
74
|
+
/* Form */
|
|
75
|
+
--yable-input-border: #d0d0d0;
|
|
76
|
+
--yable-input-border-hover: #999999;
|
|
77
|
+
--yable-input-shadow-focus: 0 0 0 2px rgba(0, 0, 0, 0.08);
|
|
78
|
+
|
|
79
|
+
/* Checkbox */
|
|
80
|
+
--yable-checkbox-border: #d0d0d0;
|
|
81
|
+
--yable-checkbox-radius: 2px;
|
|
82
|
+
|
|
83
|
+
/* Pagination */
|
|
84
|
+
--yable-pagination-button-radius: 3px;
|
|
85
|
+
--yable-pagination-button-bg-hover: rgba(0, 0, 0, 0.04);
|
|
86
|
+
|
|
87
|
+
/* Loading */
|
|
88
|
+
--yable-loading-shimmer: linear-gradient(
|
|
89
|
+
90deg,
|
|
90
|
+
rgba(0, 0, 0, 0.02) 25%,
|
|
91
|
+
rgba(0, 0, 0, 0.04) 37%,
|
|
92
|
+
rgba(0, 0, 0, 0.02) 63%
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Header — uppercase, tight tracking, Swiss typographic precision */
|
|
97
|
+
.yable-theme-mono .yable-th,
|
|
98
|
+
.yable[data-theme="mono"] .yable-th {
|
|
99
|
+
text-transform: uppercase;
|
|
100
|
+
letter-spacing: 0.08em;
|
|
101
|
+
font-size: var(--yable-font-size-header);
|
|
102
|
+
font-weight: var(--yable-font-weight-semibold);
|
|
103
|
+
color: var(--yable-text-secondary);
|
|
104
|
+
border-bottom: 1px solid var(--yable-border-color-strong);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Rows — precise 1px rule */
|
|
108
|
+
.yable-theme-mono .yable-tr:not(:last-child) .yable-td,
|
|
109
|
+
.yable[data-theme="mono"] .yable-tr:not(:last-child) .yable-td {
|
|
110
|
+
border-bottom: 1px solid var(--yable-border-color);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Outer border — clean frame */
|
|
114
|
+
.yable-theme-mono,
|
|
115
|
+
.yable[data-theme="mono"] {
|
|
116
|
+
border: 1px solid var(--yable-border-color-strong);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* ── Mono Dark Mode ─────────────────────────────────────────────────────── */
|
|
120
|
+
|
|
121
|
+
@media (prefers-color-scheme: dark) {
|
|
122
|
+
.yable-theme-mono:not([data-yable-theme="light"]),
|
|
123
|
+
.yable[data-theme="mono"]:not([data-yable-theme="light"]) {
|
|
124
|
+
--yable-bg: #0a0a0a;
|
|
125
|
+
--yable-bg-header: #141414;
|
|
126
|
+
--yable-bg-footer: #141414;
|
|
127
|
+
--yable-bg-row-alt: rgba(255, 255, 255, 0.02);
|
|
128
|
+
--yable-bg-row-hover: rgba(255, 255, 255, 0.035);
|
|
129
|
+
--yable-bg-row-selected: rgba(255, 255, 255, 0.06);
|
|
130
|
+
--yable-bg-row-expanded: rgba(255, 255, 255, 0.015);
|
|
131
|
+
--yable-bg-cell-editing: #1a1a1a;
|
|
132
|
+
--yable-bg-pinned: #111111;
|
|
133
|
+
--yable-bg-row-drag-over: rgba(255, 255, 255, 0.07);
|
|
134
|
+
|
|
135
|
+
--yable-text-primary: #f5f5f5;
|
|
136
|
+
--yable-text-secondary: #999999;
|
|
137
|
+
--yable-text-tertiary: #666666;
|
|
138
|
+
--yable-text-header: #cccccc;
|
|
139
|
+
--yable-text-disabled: #444444;
|
|
140
|
+
--yable-text-link: #f5f5f5;
|
|
141
|
+
|
|
142
|
+
--yable-border-color: #262626;
|
|
143
|
+
--yable-border-color-strong: #393939;
|
|
144
|
+
|
|
145
|
+
/* Accent — pure white in dark mode. Inverted Swiss. */
|
|
146
|
+
--yable-accent: #ffffff;
|
|
147
|
+
--yable-accent-hover: #e5e5e5;
|
|
148
|
+
--yable-accent-light: rgba(255, 255, 255, 0.06);
|
|
149
|
+
--yable-accent-text: #0a0a0a;
|
|
150
|
+
|
|
151
|
+
--yable-focus-ring: 0 0 0 2px #0a0a0a, 0 0 0 4px #ffffff;
|
|
152
|
+
|
|
153
|
+
--yable-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
154
|
+
--yable-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.6);
|
|
155
|
+
|
|
156
|
+
--yable-scrollbar-thumb: rgba(255, 255, 255, 0.2);
|
|
157
|
+
--yable-scrollbar-track: transparent;
|
|
158
|
+
|
|
159
|
+
--yable-input-border: #393939;
|
|
160
|
+
--yable-input-border-hover: #555555;
|
|
161
|
+
--yable-input-bg-focus: #1a1a1a;
|
|
162
|
+
--yable-checkbox-border: #555555;
|
|
163
|
+
--yable-checkbox-bg: #262626;
|
|
164
|
+
|
|
165
|
+
--yable-pagination-button-bg-hover: rgba(255, 255, 255, 0.05);
|
|
166
|
+
|
|
167
|
+
--yable-loading-shimmer: linear-gradient(
|
|
168
|
+
90deg,
|
|
169
|
+
rgba(255, 255, 255, 0.02) 25%,
|
|
170
|
+
rgba(255, 255, 255, 0.04) 37%,
|
|
171
|
+
rgba(255, 255, 255, 0.02) 63%
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[data-yable-theme="dark"] .yable-theme-mono,
|
|
177
|
+
[data-yable-theme="dark"] .yable[data-theme="mono"] {
|
|
178
|
+
--yable-bg: #0a0a0a;
|
|
179
|
+
--yable-bg-header: #141414;
|
|
180
|
+
--yable-bg-footer: #141414;
|
|
181
|
+
--yable-bg-row-alt: rgba(255, 255, 255, 0.02);
|
|
182
|
+
--yable-bg-row-hover: rgba(255, 255, 255, 0.035);
|
|
183
|
+
--yable-bg-row-selected: rgba(255, 255, 255, 0.06);
|
|
184
|
+
--yable-bg-row-expanded: rgba(255, 255, 255, 0.015);
|
|
185
|
+
--yable-bg-cell-editing: #1a1a1a;
|
|
186
|
+
--yable-bg-pinned: #111111;
|
|
187
|
+
--yable-bg-row-drag-over: rgba(255, 255, 255, 0.07);
|
|
188
|
+
|
|
189
|
+
--yable-text-primary: #f5f5f5;
|
|
190
|
+
--yable-text-secondary: #999999;
|
|
191
|
+
--yable-text-tertiary: #666666;
|
|
192
|
+
--yable-text-header: #cccccc;
|
|
193
|
+
--yable-text-disabled: #444444;
|
|
194
|
+
--yable-text-link: #f5f5f5;
|
|
195
|
+
|
|
196
|
+
--yable-border-color: #262626;
|
|
197
|
+
--yable-border-color-strong: #393939;
|
|
198
|
+
|
|
199
|
+
/* Accent — pure white in dark mode. Inverted Swiss. */
|
|
200
|
+
--yable-accent: #ffffff;
|
|
201
|
+
--yable-accent-hover: #e5e5e5;
|
|
202
|
+
--yable-accent-light: rgba(255, 255, 255, 0.06);
|
|
203
|
+
--yable-accent-text: #0a0a0a;
|
|
204
|
+
|
|
205
|
+
--yable-focus-ring: 0 0 0 2px #0a0a0a, 0 0 0 4px #ffffff;
|
|
206
|
+
|
|
207
|
+
--yable-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
208
|
+
--yable-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.6);
|
|
209
|
+
|
|
210
|
+
--yable-scrollbar-thumb: rgba(255, 255, 255, 0.2);
|
|
211
|
+
--yable-scrollbar-track: transparent;
|
|
212
|
+
|
|
213
|
+
--yable-input-border: #393939;
|
|
214
|
+
--yable-input-border-hover: #555555;
|
|
215
|
+
--yable-input-bg-focus: #1a1a1a;
|
|
216
|
+
--yable-checkbox-border: #555555;
|
|
217
|
+
--yable-checkbox-bg: #262626;
|
|
218
|
+
|
|
219
|
+
--yable-pagination-button-bg-hover: rgba(255, 255, 255, 0.05);
|
|
220
|
+
|
|
221
|
+
--yable-loading-shimmer: linear-gradient(
|
|
222
|
+
90deg,
|
|
223
|
+
rgba(255, 255, 255, 0.02) 25%,
|
|
224
|
+
rgba(255, 255, 255, 0.04) 37%,
|
|
225
|
+
rgba(255, 255, 255, 0.02) 63%
|
|
226
|
+
);
|
|
227
|
+
}
|