@keenmate/pure-css 1.0.0-rc02 → 1.0.0-rc03
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/CHANGELOG.md +26 -0
- package/README.md +5 -25
- package/dist/css/base.css +5 -5
- package/dist/css/pure-css.css +5 -5
- package/package.json +1 -1
- package/src/scss/_base-css-variables.scss +6 -6
- package/src/scss/variables/_colors.scss +6 -6
- package/src/scss/variables/_layout.scss +2 -5
- package/src/scss/variables/_system.scss +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to `@keenmate/pure-css` are documented here. Format based on
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
5
5
|
|
|
6
|
+
## [1.0.0-rc03] — 2026-08-21 [PUBLISHED]
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- **BREAKING — renamed the top-bar region tokens from `header` to `navbar`.** The
|
|
11
|
+
foundation's top-region tokens named the bar as a *component block* rather than a
|
|
12
|
+
layout region, which read as misleading once pure-admin's navbar component dropped its
|
|
13
|
+
legacy `pa-header__*` block naming. Renamed:
|
|
14
|
+
- SCSS variables: `$header-height` → `$navbar-height`, `$header-bg` → `$navbar-bg`,
|
|
15
|
+
`$header-border-color` → `$navbar-border-color`, `$header-text` → `$navbar-text`,
|
|
16
|
+
`$header-text-secondary` → `$navbar-text-secondary`,
|
|
17
|
+
`$header-profile-name-color` → `$navbar-profile-name-color`,
|
|
18
|
+
`$z-index-header` → `$z-index-navbar`.
|
|
19
|
+
- CSS variables: `--pa-header-bg` → `--pa-navbar-bg`,
|
|
20
|
+
`--pa-header-border-color` → `--pa-navbar-border-color`,
|
|
21
|
+
`--pa-header-text` → `--pa-navbar-text`,
|
|
22
|
+
`--pa-header-text-secondary` → `--pa-navbar-text-secondary`,
|
|
23
|
+
`--pa-header-profile-name-color` → `--pa-navbar-profile-name-color`.
|
|
24
|
+
- `$footer-height` still mirrors the bar height (now `$navbar-height`); component-header
|
|
25
|
+
tokens (`$card-header-*`, `$table-header-*`) are unaffected.
|
|
26
|
+
|
|
27
|
+
### Removed
|
|
28
|
+
|
|
29
|
+
- **Dead `$header-brand-padding-left` variable.** Superseded by the navbar's flex `gap`;
|
|
30
|
+
no live rule consumed it (only a stale comment referenced it).
|
|
31
|
+
|
|
6
32
|
## [1.0.0-rc02] — 2026-08-05 [PUBLISHED]
|
|
7
33
|
|
|
8
34
|
### Added
|
package/README.md
CHANGED
|
@@ -4,6 +4,11 @@ The KeenMate CSS **foundation** — the `--base-*` theming contract, the flexbox
|
|
|
4
4
|
utility classes — extracted from [`@keenmate/pure-admin-core`](https://github.com/KeenMate/pure-admin)
|
|
5
5
|
so it can be consumed on its own.
|
|
6
6
|
|
|
7
|
+
## What's New in 1.0.0-rc03
|
|
8
|
+
|
|
9
|
+
- **Theming contract — top-bar region tokens renamed from `header` to `navbar` (BREAKING).** The foundation's top-region tokens named the bar as a *component block* (`header`) rather than the layout region it actually is, which read as misleading once pure-admin's navbar component dropped its legacy `pa-header__*` block naming. Every top-bar token is renamed on both sides of the cascade: the `$header-*` SCSS source variables (`$header-height` → `$navbar-height`, `$header-bg` → `$navbar-bg`, `$header-border-color`, `$header-text`, `$header-text-secondary`, `$header-profile-name-color`, and `$z-index-header` → `$z-index-navbar`) and the emitted `--pa-header-*` custom properties (`--pa-navbar-bg`, `--pa-navbar-border-color`, `--pa-navbar-text`, `--pa-navbar-text-secondary`, `--pa-navbar-profile-name-color`). Consumers reading the old names must update — `$footer-height` still mirrors the bar height (now `$navbar-height`), and the component-header tokens (`$card-header-*`, `$table-header-*`) are deliberately untouched since those *are* component blocks.
|
|
10
|
+
- **Removed the dead `$header-brand-padding-left` variable.** It was superseded by the navbar's flex `gap`; no live rule consumed it — only a stale comment still referenced it — so it's gone from the source of truth.
|
|
11
|
+
|
|
7
12
|
## What's New in 1.0.0-rc02
|
|
8
13
|
|
|
9
14
|
- **Reboot layer — the 10px base is now built in.** pure-css ships
|
|
@@ -18,31 +23,6 @@ so it can be consumed on its own.
|
|
|
18
23
|
pure-admin-core, so a standalone pure-css page gets the same scrollbars as a
|
|
19
24
|
full admin app. In the bundle, or cherry-pick `scrollbars.css` / `./scrollbars`.
|
|
20
25
|
|
|
21
|
-
## What's New in 1.0.0-rc01
|
|
22
|
-
|
|
23
|
-
- **The KeenMate CSS foundation, now standalone.** The `--base-*` theming
|
|
24
|
-
contract, the PureCSS grid, and the utility classes — extracted from
|
|
25
|
-
`@keenmate/pure-admin-core` so a docs site, marketing page, or component host
|
|
26
|
-
can use the foundation without the 40+ admin components.
|
|
27
|
-
- **One theming layer everyone shares.** `--base-*` is the single source of
|
|
28
|
-
truth; `pure-admin-core`, its `--pa-*` component variables, and every KeenMate
|
|
29
|
-
web/Svelte component derive from it via fallback chains — so one block of
|
|
30
|
-
`--base-*` overrides re-themes all of them at once.
|
|
31
|
-
- **Link targets.** `pure-css.css` (everything) or cherry-pick `base.css`
|
|
32
|
-
(variables only), `reboot.css` (reset + 10px base), `scrollbars.css`,
|
|
33
|
-
`grid.css`, `utilities.css`.
|
|
34
|
-
- **The native `.pa-row` / `.pa-col` grid** — flexbox columns in 5% percentage
|
|
35
|
-
increments plus intuitive fractions (`.pa-col-1-3`, `.pa-col-2-3`, …), with
|
|
36
|
-
container-query responsive variants (`.pa-col-md-*`) and RTL-aware gutters.
|
|
37
|
-
(This replaces the legacy PureCSS `.pure-g` / `.pure-u-*` grid, which
|
|
38
|
-
pure-admin had already stopped using.)
|
|
39
|
-
- **New `.gap-*` / `.gap-x-*` / `.gap-y-*` utilities** on the same spacing scale
|
|
40
|
-
as the margin/padding helpers — the one spacing family core lacked.
|
|
41
|
-
- **Self-sufficient border/rounded utilities.** `.border` / `.rounded` consume
|
|
42
|
-
the emitted `--pa-border-*` variables, so `base.css` + `utilities.css` render
|
|
43
|
-
correct borders and radii standalone — no host stylesheet required.
|
|
44
|
-
- **`dist/` is committed** — vendor the built CSS with no Sass toolchain.
|
|
45
|
-
|
|
46
26
|
## Why
|
|
47
27
|
|
|
48
28
|
Any surface that isn't a full admin app — a docs site, a marketing page, a standalone widget host —
|
package/dist/css/base.css
CHANGED
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
--pa-detail-row-label: rgba(255, 255, 255, 0.75);
|
|
133
133
|
--pa-detail-title: rgba(255, 255, 255, 0.55);
|
|
134
134
|
--pa-detail-shadow: 0 1.4rem 3.6rem rgba(0, 0, 0, 0.55);
|
|
135
|
-
--pa-
|
|
136
|
-
--pa-
|
|
137
|
-
--pa-
|
|
138
|
-
--pa-
|
|
139
|
-
--pa-
|
|
135
|
+
--pa-navbar-bg: #ffffff;
|
|
136
|
+
--pa-navbar-border-color: #e1e5e9;
|
|
137
|
+
--pa-navbar-text: #2c3e50;
|
|
138
|
+
--pa-navbar-text-secondary: #6c757d;
|
|
139
|
+
--pa-navbar-profile-name-color: #2c3e50;
|
|
140
140
|
--pa-sidebar-bg: #f8f9fa;
|
|
141
141
|
--pa-sidebar-text: #2c3e50;
|
|
142
142
|
--pa-sidebar-text-secondary: #6c757d;
|
package/dist/css/pure-css.css
CHANGED
|
@@ -4795,11 +4795,11 @@ label {
|
|
|
4795
4795
|
--pa-detail-row-label: rgba(255, 255, 255, 0.75);
|
|
4796
4796
|
--pa-detail-title: rgba(255, 255, 255, 0.55);
|
|
4797
4797
|
--pa-detail-shadow: 0 1.4rem 3.6rem rgba(0, 0, 0, 0.55);
|
|
4798
|
-
--pa-
|
|
4799
|
-
--pa-
|
|
4800
|
-
--pa-
|
|
4801
|
-
--pa-
|
|
4802
|
-
--pa-
|
|
4798
|
+
--pa-navbar-bg: #ffffff;
|
|
4799
|
+
--pa-navbar-border-color: #e1e5e9;
|
|
4800
|
+
--pa-navbar-text: #2c3e50;
|
|
4801
|
+
--pa-navbar-text-secondary: #6c757d;
|
|
4802
|
+
--pa-navbar-profile-name-color: #2c3e50;
|
|
4803
4803
|
--pa-sidebar-bg: #f8f9fa;
|
|
4804
4804
|
--pa-sidebar-text: #2c3e50;
|
|
4805
4805
|
--pa-sidebar-text-secondary: #6c757d;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keenmate/pure-css",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc03",
|
|
4
4
|
"description": "The KeenMate CSS foundation — --base-* theming contract, PureCSS grid and utility classes. Extracted from pure-admin-core so docs sites, standalone pages and every web/svelte component share one theming layer.",
|
|
5
5
|
"style": "dist/css/pure-css.css",
|
|
6
6
|
"exports": {
|
|
@@ -378,12 +378,12 @@
|
|
|
378
378
|
// LAYOUT COLORS
|
|
379
379
|
// =========================================================================
|
|
380
380
|
|
|
381
|
-
//
|
|
382
|
-
--pa-
|
|
383
|
-
--pa-
|
|
384
|
-
--pa-
|
|
385
|
-
--pa-
|
|
386
|
-
--pa-
|
|
381
|
+
// Navbar
|
|
382
|
+
--pa-navbar-bg: #{$navbar-bg};
|
|
383
|
+
--pa-navbar-border-color: #{$navbar-border-color};
|
|
384
|
+
--pa-navbar-text: #{$navbar-text};
|
|
385
|
+
--pa-navbar-text-secondary: #{$navbar-text-secondary};
|
|
386
|
+
--pa-navbar-profile-name-color: #{$navbar-profile-name-color};
|
|
387
387
|
|
|
388
388
|
// Sidebar
|
|
389
389
|
--pa-sidebar-bg: #{$sidebar-bg};
|
|
@@ -19,12 +19,12 @@ $text-color-1: $base-text-color-1 !default;
|
|
|
19
19
|
$text-color-2: $base-text-color-2 !default;
|
|
20
20
|
$border-color: $base-border-color !default;
|
|
21
21
|
|
|
22
|
-
//
|
|
23
|
-
$
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
22
|
+
// Navbar colors
|
|
23
|
+
$navbar-bg: $base-main-bg !default;
|
|
24
|
+
$navbar-border-color: $base-border-color !default;
|
|
25
|
+
$navbar-text: $base-text-color-1 !default;
|
|
26
|
+
$navbar-text-secondary: $base-text-color-2 !default;
|
|
27
|
+
$navbar-profile-name-color: $base-text-color-1 !default;
|
|
28
28
|
|
|
29
29
|
// Sidebar colors
|
|
30
30
|
$sidebar-bg: $base-page-bg !default;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// NOTE: 10px rem base - all rem values are now in 10px units (1rem = 10px)
|
|
7
7
|
|
|
8
8
|
// Layout dimensions
|
|
9
|
-
$
|
|
10
|
-
$footer-height: $
|
|
9
|
+
$navbar-height: 4.8rem !default; // 48px (was 3rem)
|
|
10
|
+
$footer-height: $navbar-height !default; // Same as navbar
|
|
11
11
|
$sidebar-width: 28.8rem !default; // 288px (was 18rem)
|
|
12
12
|
$sidebar-max-width: 40rem !default; // 400px (was 25rem)
|
|
13
13
|
$sidebar-collapsed-width: 6.4rem !default; // 64px (was 4rem)
|
|
@@ -33,9 +33,6 @@ $burger-bar-spacing: 4px !default;
|
|
|
33
33
|
$burger-transform-offset: 3px !default;
|
|
34
34
|
$burger-menu-margin-left: 0.3rem !default; // ~3px (was 0.2rem)
|
|
35
35
|
|
|
36
|
-
// Header brand
|
|
37
|
-
$header-brand-padding-left: 2.1rem !default; // ~21px (was 1.3rem)
|
|
38
|
-
|
|
39
36
|
// Responsive breakpoints
|
|
40
37
|
$mobile-breakpoint: 768px !default;
|
|
41
38
|
$tablet-breakpoint: 1024px !default;
|
|
@@ -16,8 +16,8 @@ $z-index-base: 0 !default;
|
|
|
16
16
|
$z-index-content: 1000 !default;
|
|
17
17
|
$z-index-sidebar: 2000 !default;
|
|
18
18
|
$z-index-sidebar-fixed: 3000 !default;
|
|
19
|
-
$z-index-detail-panel-card: 3500 !default; // Card overlay detail panel (below
|
|
20
|
-
$z-index-
|
|
19
|
+
$z-index-detail-panel-card: 3500 !default; // Card overlay detail panel (below navbar)
|
|
20
|
+
$z-index-navbar: 4000 !default;
|
|
21
21
|
$z-index-profile-panel: 5000 !default;
|
|
22
22
|
$z-index-modal-backdrop: 6000 !default;
|
|
23
23
|
$z-index-modal: 7000 !default;
|