astralkit 0.3.0 → 0.3.1
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 +37 -0
- package/astralkit-theme.css +7 -1
- package/package.json +11 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the `astralkit` SDK package.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.3.1] — 2026-04-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `peerDependencies` declaration: `tailwindcss >= 3.0.0`. Installing `astralkit` in a project without Tailwind now surfaces a clear peer-dep warning instead of silent breakage.
|
|
12
|
+
- File header comment on `astralkit-theme.css` explicitly marks it as the Tailwind v3 legacy file. Points readers at the `astralkit/theme-v3` export path and explains the v4 alternative.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- No functional changes from `0.3.0` — this is a metadata + documentation patch.
|
|
16
|
+
|
|
17
|
+
## [0.3.0] — 2026-04-18
|
|
18
|
+
|
|
19
|
+
### Changed (breaking behavior fix)
|
|
20
|
+
- **`astralkit/theme` export now resolves to the Tailwind v4 file (`astralkit-theme-v4.css`).** Previously it pointed at `astralkit-theme.css` (the v3 `:root {}` file), which meant Tailwind v4 users were loading tokens that weren't registered with Tailwind's `@theme` system. Utilities like `bg-ak-primary` and `text-ak-text` were only working because the separate `astralkit-utilities.css` contains its own `@theme` blocks; the theme import was effectively dead weight.
|
|
21
|
+
- If you were relying on `@import "astralkit/theme"` resolving to the v3 `:root` syntax (e.g., in a Tailwind v3 project), import `astralkit/theme-v3` explicitly instead.
|
|
22
|
+
- If you're on Tailwind v4, no action needed — the new default is what you should have been getting all along.
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
- New `astralkit/theme-v3` export — explicit path to the Tailwind v3 legacy file (`astralkit-theme.css`).
|
|
26
|
+
- `astralkit/theme-v4` export retained (unchanged) — still points at the v4 file. Existing imports keep working.
|
|
27
|
+
- v4 theme refinements across 12 commits of token architecture work (including rail/panel elevated color overrides, sidebar token tuning, avatar size/badge tokens, and Phase A token standardization).
|
|
28
|
+
- `primitives/.npmignore` — excludes `*.backup` and `*.pre-v4-split` scratch files from published tarballs. The `0.3.0` release removed ~220 kB of v3-migration scratch that was accidentally shipping in earlier versions.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
- Tailwind v3 plugin registration (via CLI init) now covers additional `plugins: [...]` formatting variants.
|
|
32
|
+
|
|
33
|
+
## [0.2.0] — 2026-04-02
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
- Initial public release on npm.
|
|
37
|
+
- Design tokens (theme CSS), utilities CSS, palette presets, primitives folder, `cn()` helper, Tailwind v3/v4 configs.
|
package/astralkit-theme.css
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/* ══════════════════════════════════════════════════════════
|
|
3
|
-
AstralKit Design Tokens
|
|
3
|
+
AstralKit Design Tokens — Tailwind v3 (LEGACY)
|
|
4
|
+
|
|
5
|
+
Imported via `astralkit/theme-v3`. For new projects on
|
|
6
|
+
Tailwind v4, use `astralkit/theme` (which resolves to the
|
|
7
|
+
@theme-based v4 file). This file uses :root CSS variables
|
|
8
|
+
because Tailwind v3 doesn't support the @theme directive.
|
|
9
|
+
|
|
4
10
|
Default: Black & white neutral theme.
|
|
5
11
|
Override any variable in your own :root block to brand it.
|
|
6
12
|
══════════════════════════════════════════════════════════ */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astralkit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Design tokens and component primitives for accessible UI — Tailwind CSS v4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,12 +25,21 @@
|
|
|
25
25
|
"ai-rules.md",
|
|
26
26
|
"lib/",
|
|
27
27
|
"LICENSE",
|
|
28
|
-
"README.md"
|
|
28
|
+
"README.md",
|
|
29
|
+
"CHANGELOG.md"
|
|
29
30
|
],
|
|
30
31
|
"dependencies": {
|
|
31
32
|
"clsx": "^2.1.0",
|
|
32
33
|
"tailwind-merge": "^2.2.0"
|
|
33
34
|
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"tailwindcss": ">=3.0.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependenciesMeta": {
|
|
39
|
+
"tailwindcss": {
|
|
40
|
+
"optional": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
34
43
|
"keywords": ["astralkit", "design-tokens", "tailwind", "css", "ui"],
|
|
35
44
|
"homepage": "https://astralkit.com",
|
|
36
45
|
"repository": {
|