Repository navigation
Releases: tenphi/cookbook
Release list
Cookbook v0.23.0
Minor Changes
-
#147
66fd40aThanks @tenphi! - Use Tasty element identities for owned anatomy and modifiers for state, while preserving stable root classes and Logo’s root class prop. Simplify Markdown conditions and move diff/copy state to its owning code-block wrapper. Keep hero buttons and pagination links stationary on hover, preserve customized pagination borders, and give minimal actions outline geometry with a transparent border.Variant and syntax category overrides express conditions in property state maps. See the migration guide for sub-element/modifier replacements and shared prose states.
Unify responsive aliases as
@sm,@md, and@lg, matching wider viewports; use negation for narrower layouts. Preserve the existing thresholds. Use native:is(:popover-open)for popovers and direct media conditions for component-specific thresholds. Remove the unused shell and medium-layout aliases; the migration guide covers renamed and removed aliases, including custom breakpoint definitions.Upgrade the shared Tasty dependency to 3.9.10, preserving environment checks in production consumers.
Cookbook v0.22.1
Cookbook v0.22.0
Cookbook v0.21.4
Cookbook v0.21.2
Patch Changes
-
#135
00f14deThanks @tenphi! - Move built-in styles into component-owned modules and initialize document foundations from the page shell, so replacing Header preserves fonts and unrelated styling. Keep named theme customization on actual component parts, and collect CodeGroup's generated-content styles independently.Use shared appearance states for scheme-dependent component styling, including automatic hero and logo selection with explicit theme choices taking precedence over system preferences.
Upgrade Tasty to 3.9.6 and its ESLint plugin to 1.5.1.
Enable shorthand-property diagnostics for component-owned styles and register renderer-local style helpers so global bridges receive the same validation. Use registered warning palette roles for Markdown warning alerts.
Support named component inheritance through extendComponent(name, base, options), preserving inherited props and compound parts. Export a configurable Button foundation shared by search, mobile-menu, and consumer buttons.
Unify built-in and consumer component creation and theme customization with defineComponent, removing the separate customizeComponent wrapper.
Require zero ESLint warnings locally and in the CI and release gates. Migrate native properties to Tasty shorthands and specialized typography presets while preserving the cascade; document narrow exceptions for shared style composition and build-only SVG encoding.
Enable selector-state warnings and move supported attribute and pseudo-class conditions into property state maps. Give copy controls and popover panels explicit Tasty identities so partial anatomy overrides remain scoped. Preserve prose spacing and conditional omissions, with narrow documented exceptions for unsupported pseudo-element conditions and empty legacy customization hooks.
Use built-in data-element identities for owned Header, Footer, and logo anatomy, and remove data-tasty-anatomy markers. Model heading levels as root states. Consume paired spacing tokens through blockMargin/blockPadding so single-edge state changes preserve the other edge without native longhand exceptions.
Use Tasty ESLint plugin 1.5.1, which recommends mergeStyles for shallow style composition, and fix its containing-element diagnostics by moving root variants into property state maps. Use element-name selector shorthand, update the public anatomy reference, and verify both new rules in packed ESLint and Oxlint consumers.
Cookbook v0.21.1
Cookbook v0.21.0
Minor Changes
- #130
299fa57Thanks @tenphi! - Remove legacy theme compatibility paths. Palette configuration, dependencies,
and resolved color properties now use canonical lowercase Glaze names such as
text-softandaccent-text. Configure design tokens with Tasty$namekeys;
the old--namekeys now report a validation error. Custom style overrides must
be consumed throughdefineComponent()orresolveComponentStyles()instead of
the automaticdata-tasty-anatomybridge. See the upgrade guide for migration.
Patch Changes
- #132
338a8f5Thanks @tenphi! - Set the mobile viewport to the device width with an initial scale of one while
preserving browser zoom. Render the search field with the page so the first
opening focuses immediately, keep search results lazy, and wait for the search
dialog's fade-out before closing. Publish the search field and engine control
style anatomy for theme customization. Remove the search backdrop's dimming,
blur, and transition on mobile, where the dialog fills the screen.
Cookbook v0.20.5
Patch Changes
- #128
367bed1Thanks @tenphi! - Showcase Spanish, Russian, Japanese, and Simplified Chinese on the Cookbook home and Getting Started pages. Keep untranslated guides reachable through English fallback links and localize the header navigation. Render the language and version selectors with a shared, configurable, server-rendered popover, including a mobile sidebar placement for language. Align their transitions with the Appearance and links menus and refine the globe icon.