@gridkitjs/theme-css 0.0.0-dev-20261126174127 → 0.0.0-dev-20261126182315
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 +1 -1
- package/src/forms.css +29 -4
- package/src/presets/spreadsheet.css +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridkitjs/theme-css",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20261126182315",
|
|
4
4
|
"description": "Plain-CSS theme for GridKit — palette tokens, dark mode and grid styles, no Tailwind needed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blagoja Blazhevski",
|
package/src/forms.css
CHANGED
|
@@ -1209,16 +1209,41 @@
|
|
|
1209
1209
|
outline-offset: 2px;
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
+
/* The summary already takes `--gridkit-font-size`, so its title scales from it. */
|
|
1212
1213
|
.gridkit-forms-message-summary-title {
|
|
1213
1214
|
margin: 0;
|
|
1214
|
-
font-size: var(
|
|
1215
|
-
--gridkit-forms-section-title-font-size,
|
|
1216
|
-
calc(var(--gridkit-font-size) * 1.125)
|
|
1217
|
-
);
|
|
1215
|
+
font-size: var(--gridkit-forms-section-title-font-size, 1.125em);
|
|
1218
1216
|
font-weight: var(--gridkit-forms-section-title-font-weight, 600);
|
|
1219
1217
|
line-height: 1.3;
|
|
1220
1218
|
}
|
|
1221
1219
|
|
|
1220
|
+
/*
|
|
1221
|
+
* `--gridkit-font-size` may be relative to the parent (a preset sets
|
|
1222
|
+
* `0.875em`), so only the outermost forms element takes it: one inside
|
|
1223
|
+
* another keeps the size it inherits rather than shrinking it again, and
|
|
1224
|
+
* a section title inside a form scales from the form's size.
|
|
1225
|
+
*/
|
|
1226
|
+
:where(
|
|
1227
|
+
.gridkit-forms-form,
|
|
1228
|
+
.gridkit-forms-field,
|
|
1229
|
+
.gridkit-forms-text-input,
|
|
1230
|
+
.gridkit-forms-search-input,
|
|
1231
|
+
.gridkit-forms-message-summary
|
|
1232
|
+
)
|
|
1233
|
+
:is(
|
|
1234
|
+
.gridkit-forms-form,
|
|
1235
|
+
.gridkit-forms-field,
|
|
1236
|
+
.gridkit-forms-text-input,
|
|
1237
|
+
.gridkit-forms-search-input,
|
|
1238
|
+
.gridkit-forms-message-summary
|
|
1239
|
+
) {
|
|
1240
|
+
font-size: inherit;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
.gridkit-forms-form .gridkit-forms-section-title {
|
|
1244
|
+
font-size: var(--gridkit-forms-section-title-font-size, 1.125em);
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1222
1247
|
.gridkit-forms-message-summary-counts {
|
|
1223
1248
|
margin: 0;
|
|
1224
1249
|
font-size: var(--gridkit-hint-font-size);
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
--gridkit-selected-strong-dark: oklch(0.37 0.07 150);
|
|
33
33
|
--gridkit-header-bg-light: oklch(0.94 0 0);
|
|
34
34
|
--gridkit-header-bg-dark: oklch(0.27 0 0);
|
|
35
|
+
--gridkit-info-light: oklch(from var(--gridkit-accent-light) l c 250);
|
|
36
|
+
--gridkit-info-dark: oklch(from var(--gridkit-accent-dark) l c 250);
|
|
35
37
|
--gridkit-overlay-shadow-color-light: oklch(0 0 0 / 0.2);
|
|
36
38
|
--gridkit-overlay-shadow-color-dark: oklch(0 0 0 / 0.4);
|
|
37
39
|
|