Changelog
All notable changes will be documented in this file.
[Unreleased]
[0.43.1] - 2024-11-23
Fixed
- NumberInput: Fixed an issue where the grid layout was not applied correctly.
[0.43.0] - 2024-11-18
Changed
- Color Tokens: The
accentcolor concept has been removed. Components now rely on the built-incolorPaletteprop for color customization. This change aligns with how Panda CSS envisions the use of its virtual color system..
Previously, color tokens were organized like this:
colorPalette.1
└── accent.1
└── amber.1
├── amber.light.1
└── amber.dark.1The accent layer was unnecessary and has been removed:
colorPalette.1
└── amber.1
├── amber.light.1
└── amber.dark.1Here's how this change impacts usage:
- <Box color="accent.default" />
+ <Box color="colorPalette.default" />- Improved consistency and scalability by refining the Park UI Preset setup in the Panda configuration. Learn more in the docs.
import { defineConfig } from '@pandacss/dev'
```diff
import { defineConfig } from '@pandacss/dev'
import { createPreset } from '@park-ui/panda-preset'
+import amber from '@park-ui/panda-preset/colors/amber'
+import sand from '@park-ui/panda-preset/colors/sand'
export default defineConfig({
preflight: true,
presets: [
- '@pandacss/preset-base',
createPreset({
- accentColor: 'amber',
- grayColor: 'sand',
- borderRadius: 'sm',
+ accentColor: amber,
+ grayColor: sand,
+ radius: 'sm',
}),
],
include: ['./src/**/*.{js,jsx,ts,tsx,vue}'],
jsxFramework: 'react', // or 'solid' or 'vue'
outdir: 'styled-system',
})[0.42.0] - 2024-08-01
Added
- Input, Textarea: Now support usage within the
Fieldcomponent.
Changed
- CLI: Installation of components using the CLI no longer requires a
tsconfig.jsonfile. This is particularly beneficial for setups likenxworkspaces that do not include atsconfig.jsonfile.
The CLI now prompts the following:
➜ Which JS framework do you use? [React / Solid / Vue]
➜ Where would you like to store your components? [./src/components/ui]Adding a component will create the following folder structure:
➜ /src/components/ui/
|-- styled/
| |-- utils/
| | `-- create-style-context.ts
| `-- button.tsx
`-- button.tsxFixed
- Textarea: Fixed an issue where the
invalidstate was not rendered correctly. - Tooltip: Set a proper
z-indexvalue to ensure the tooltip is displayed above other elements. - Input: Fixed an issue where the horizontal padding was not applied correctly.
- Resolved a warning related to the undefined usage of
colors.red.9.
[0.41.0] - 2024-07-28
Added
- Added new semantic tokens:
fg.errorandborder.errorfor styling error states. - Added support for
invalidstate in theInputcomponent. - Added
_invalidcondition to the list of supported conditions.
Changed
- Updated the
Buttoncomponent to support loading states.
Fixed
- Resolved an issue where Panda sometimes did not recognize style props on
IconButtoncomponents.
[0.40.0] - 2024-07-27
Added
- Added
Spinnercomponent.
Fixed
- Fixed an issue where forcing a color mode on a component sometimes did not work as expected.
Removed
- Removed the
icon-buttonrecipe in favor of reusing thebuttonrecipe.
[0.39.0] - 2024-07-15
Added
- Added support for forcing all components to render in either dark or light mode.
export const App = () => {
return (
<Box className="dark">
{/* Renders a Popover component always in dark mode */}
<Popover />
</Box>
)
}[0.38.1] - 2024-06-25
Fixed
- Prepared recipes for
QrCode,SignaturePadandFieldcomponents.
[0.38.0] - 2024-06-06
We are excited to announce that in this release, we have migrated all components to the new Ark UI 3.0.0 API. This update includes several breaking changes, so please make sure to update your code snippets accordingly.
Changed
- Optimized type checking for
Heading,IconandTextcomponents for faster performance.
Fixed
- Resolved an issue with the
Avatarcomponent where the image did not display as round after loading.
[0.37.1] - 2024-05-19
Fixed
- Set
white-space: prefor theCodeandKbcomponent to prevent text wrapping.
[0.37.0] - 2024-04-10
Added
- Added
onandoffto the list of supported conditions.
Changed
- Improved the
hoverconditions to only activate on non-touch devices.
Fixed
- Fixed an issue where the
NumberInputcomponent rendered a border incorrectly. - Fixed an issue where the
ToggleGroupcomponent did not appear to work correctly on touch devices.
[0.36.1] - 2024-03-06
Changed
- Replaced
startwithflex-startdue to mixed support in some browsers.
[0.36.0] - 2024-02-27
Added
- Introduced the
Collapsiblecomponent.
Changed
- Updated the
Accordionto leverage the newCollapsiblecomponent from Ark UI (version 2.20+).
[0.35.2] - 2024-02-19
Fixed
- Fixed an issue with the
Switchnot being rendered correctly when a size was specified.
[0.35.1] - 2024-02-16
Fixed
- Replaced
{colors.white}and{colors.black}withblackandwhitein color references to prevent false positive error messages.
[0.35.0] - 2024-02-16
Added
- Added
TreeViewcomponent. - Added
Clipboardcomponent.
[0.34.1] - 2024-02-12
Fixed
- Resolved an issue that you had to add the
accentandgraycolors to theadditionalColorsoption in thecreatePresetfunction to make them available in the CSS bundle.
[0.34.0] - 2024-02-08
Added
Introduced a new additionalColors option in the createPreset function to decrease the CSS bundle
size effectively. By default, the preset includes only the gray and accent colors. This maybe a
breaking change for some users, so please update your configuration accordingly.
Example configuration:
import { defineConfig } from '@pandacss/dev'
import { createPreset } from '@park-ui/panda-preset'
export default defineConfig({
presets: [
'@pandacss/preset-base',
createPreset({
accentColor: 'amber',
grayColor: 'sand',
additionalColors: ['red', 'green'],
}),
],
// Additional configuration...
})To add all available colors, use this wildcard:
createPreset({
additionalColors: ['*'],
}),[0.33.0] - 2024-02-01
Changed
- Replaced
headingrecipe in favor oftextrecipe. Please update your code snippets accordingly.
[0.32.0] - 2024-01-31
This release marks an important milestone for Park UI as we have upgraded to the new major version 2.0 of Ark UI. Please update your dependencies accordingly.
Changed
- Updated all code snippets to match the new Ark UI 2.0.0 API.
- Updated the
TagsInputrecipe to use the newItemPreviewpart.
Fixed
- Fixed an issue that the initials in
Avatarwere not centered correctly.
[0.31.0] - 2024-01-26
Added
- Added new
Skeletoncomponent.
Fixed
- Resolved an issue with
SegmentControlthat theindicatorwas sometimes not rendered correctly.
[0.30.1] - 2024-01-23
Fixed
- Fixed a problem where the
enclosedvariant of theTabscomponent was rendered slightly too big
[0.30.0] - 2024-01-22
Added
- Added new
enclosedvariant to theTabscomponent.
Fixed
- Resolved an issue with the
Cardcomponent where the content would overflow the card.
[0.29.0] - 2024-01-19
We are excited to announce that in this release, we have revised several components to feature a closed Component API:
AvatarCheckboxNumber InputPaginationPin InputRating GroupSliderSwitch
For more information on the reasoning behind this change, please refer to the GitHub Issue.
Added
- Introduced styles for the
Progresscomponent (Preview). - Implemented support to render the
RatingGroupin various colors. - Added a hover color to the items in
SegmentControl. - Launched Storybooks for all components across each framework.
Changed
- Enhanced typings for all components, aiming for an improved TypeScript experience.
Fixed
- Fixed an issue in the
PinInputcomponent where the input width was incorrect. - Addressed a bug in the
Selectcomponent where a disabled item incorrectly displayed a hover color.
[0.28.0] - 2024-01-01
Changed
- Renamed
placementprop tovariantinDrawercomponent for better consistency with other CSS frameworks. - Renamed
LabeltoFormLabel - Revised
Avatarcomponent. Check out the docs for more details.
Fixed
- Resolved an issue that
Avatardid not render correctly when no image was provided.
[0.27.0] - 2023-12-19
Added
- Added new
Buttonvariantsubtle.
Fixed
- Fixed an issue with
RatingGroupwhere the rating icons were not resized correctly.
[0.26.2] - 2023-12-15
Fixed
- Declared
@pandacss/devand@pandacss/typesas peer dependencies to avoid TypeScript errors.
Changed
- Updated import paths for more precise module referencing to help with tree-shaking.
// before
import { Avatar as ArkAvatar } from '@ark-ui/react'
// after
import { Avatar as ArkAvatar } from '@ark-ui/react/avatar'[0.26.1] - 2023-12-14
Fixed
- Resolved an issue with ruby color values in semantic tokens
[0.26.0] - 2023-12-13
Changed
- Integrated latest version of Ark UI 1.2.0
- Due to an issue with Next.js and React Server Components, we've revised the export method for multi-part components.
// before
import { Avatar } from '~/components/ui/avatar'
// after
import * as Avatar from '~/components/ui/avatar'
function MyAvatar() {
return (
<Avatar.Root {...props}>
<Avatar.Fallback>PA</Avatar.Fallback>
<Avatar.Image src="https://i.pravatar.cc/300" alt="avatar" />
</Avatar.Root>
)
}Fixed
- Resolved an issue where the exported component props were not typed correctly
// before
export type ButtonProps = typeof Button
// after
export type ButtonProps = HTMLStyledProps<typeof Button>[0.25.0] - 2023-12-01
Added
- Added
Kbdcomponent. - Added
accent.textto the list of semantic tokens. This token is used do display text in interactive elements like buttons and links. - Added support to render components with different colors. Pass the
colorPaletteprop to the component to change its visual style. See the example below for more details.
<Button colorPalette="red">Danger</Button>Changed
- Resolved an issue with
Tablemarkup where thetheadelement was not rendered correctly.
Fixed
- Resolved an issue that caused the
Dialogto show up in the wrong position when the page was scrolled.
Removed
- Removed
border.accentfrom the list of semantic tokens. Useaccent.defaultorcolorPalette.defaultinstead.
[0.24.0] - 2023-11-21
Added
- Added
FileUploadcomponent.
Fixed
- Resolved an issue with the
Dialogcomponent where the scrollbar would cause a layout shift.
[0.23.0] - 2023-11-17
Added
- Added
focusVisiblestyles to theCheckboxcomponent. - Added
disabledstyles to theAccordioncomponent.
[0.22.0] - 2023-11-09
With the introduction of Ark UI 1.0 support, this version implements significant changes, resulting
in several breaking updates. Key component revisions include: Accordion, ColorPicker,
DatePicker, Dialog, RadioGroup, SegmentGroup, TagsInput, Toast, and ToggleGroup.
Added
- Added
indeterminatestyles to theCheckboxcomponent.
Changed
- Revised
Slidercomponent.
Removed
RangeSlidercomponent has been removed in favor of theSlidercomponent.
[0.21.0] - 2023-11-05
Added
- Added
Linkcomponent.
Changed
- Changed the background color of text that is selected by the user to match the
accentcolor. - Revised
IconButtoncomponent. - Revised
Codecomponent.
[0.20.0] - 2023-10-22
Added
- Added a default export to
@park-ui/panda-presetfor easier configuration. This will useneutralas accent and gray color withborderRadiusofsm.
import { defineConfig } from '@pandacss/dev'
export default defineConfig({
presets: ['@pandacss/preset-base', '@park-ui/panda-preset'],
// ...
})To customize the Park UI preset, use the createPreset function as shown below:
import { defineConfig } from '@pandacss/dev'
import { createPreset } from '@park-ui/panda-preset'
export default defineConfig({
presets: [
'@pandacss/preset-base',
createPreset({
accentColor: 'amber',
grayColor: 'sand',
borderRadius: 'none',
}),
],
// ...
})Changed
- Tweaked semantic color tokens for a more consistent look and feel.
[0.19.0] - 2023-10-19
This is one of the biggest releases of Park UI so far. We've introduced a new way to configure
presets, which will make it easier to customize the theme to your needs. We've also replaced the
default colors from @pandacss/preset-base with Radix Colors.
The overall look and feel of Park UI has been improved as well. We've revised the Card and
Drawer components and tweaked many of the existing components to make them more consistent.
We've also started to work on a Taildwind CSS plugin that will allow you to use Park UI as a plugin in your Tailwind CSS project. This is still a work in progress, but we're excited to share it with you soon.
In the light of these changes, we've renamed the @park-ui/presets package to
@park-ui/panda-preset. We will continue to support the old package name for the time being, but we
recommend that you update your configuration to use the new package name.
Added
createPresetfunction introduced for more convenient and flexible preset configuration. See the examples below for more details.- Replaced default colors from
@pandacss/preset-basewith Radix Colors. This will allow us to provide more consistent colors when switching between light and dark mode.
Changed
- Revised
Cardcomponent. - Revised
Drawercomponent.
Examples
Before: Extending Theme
import { defineConfig } from '@pandacss/dev'
export default defineConfig({
presets: ['@pandacss/preset-base', '@park-ui/panda-preset'],
theme: {
extend: {
tokens: {
colors: {
grayPalette: {
25: { value: '#fcfcfc' },
// etc ..
},
},
},
semanticTokens: {
colors: {
accent: {
default: { value: { base: '{colors.indigo.500}', _dark: '{colors.indigo.200}' } },
// etc ..
},
},
},
},
},
// ...
})After: Using createPreset
import { defineConfig } from '@pandacss/dev'
import { createPreset } from '@park-ui/panda-preset'
export default defineConfig({
presets: [
'@pandacss/preset-base',
createPreset({
accentColor: 'amber',
grayColor: 'sand',
borderRadius: 'md',
}),
],
// ...
})[0.18.0] - 2023-10-12
Added
- Added support for component dot notation, e.g.,
<Accordion.Content />alongside<AccordionContent />.
Changed
- BREAKING: Use
@pandacss/preset-baseas preset instead of@pandacss/dev/presets.
[0.17.0] - 2023-10-04
Added
- Added support for icons in the
Badgecomponent.
Changed
- Revised
Alertcomponent.
[0.16.0] - 2023-09-27
Added
- Added open and close animation to the
Tooltipcomponent. - Added
outlinevariant andlgsize to theTabscomponent.
Changed
- Improved
horizontalandverticalorientation inTabs.
[0.15.0] - 2023-09-21
Added
- Added
ghostvariant to theCodecomponent.
Changed
- BREAKING: Renamed
buttonvariants to match their visual style:primarytosolid,secondarytooutlineandtertiarytoghost.
[0.14.0] - 2023-09-21
Added
- Added
Tablecomponent.
[0.13.0] - 2023-09-19
Added
- Added
Iconcomponent. - Added
ghostvariant to theSelectcomponent.
Changed
- Revised
Menucomponent.
[0.12.0] - 2023-09-14
Added
- Added open and close animations to the
Menucomponent. - Added
ToggleGroupcomponent.
Changed
- Revised
NumberInputcomponent. - Revised
Selectcomponent. - Revised
Comboboxcomponent.
[0.11.0] - 2023-09-08
Changed
- Revised
PinInputcomponent.
[0.10.0] - 2023-09-03
Added
- Added support for the
disabledstate in theRadioGroup,SegmentGroupandTabscomponents.
Changed
- Improved responsiveness of the
Tabscomponent by usingoverflow: auto
[0.9.0] - 2023-08-29
Added
- Added
Cardcomponent. - Added a
2xssize token with a value of16remor256px. - Added new variant
outlineto theRadioButtonGroupcomponent.
Changed
- Revised
Selectcomponent to match the visual style of theInputcomponent.
Fixed
- Resolved an issue with the
Textarearecipe where the resize handle would be hidden. - Resolved an issue with the
RadioButtonGroupcomponent where the radio buttons would be misaligned when the text was longer than the specified width.
[0.8.1] - 2023-08-17
Fixed
- Resolved a bug in the
Articlecomponent where the font size didn't adjust appropriately in responsive modes.
[0.8.0] - 2023-08-17
Added
- Introduced a new
4.5and14token for enhancedspacingandsizes. - Added
Articlecomponent to effortlessly style Markdown or CMS-generated HTML.
Changed
- Replaced
fontSizewithheightandwidthto set icon sizing inButtonfor a greater compatibility with other icon libraries.
[0.7.1] - 2023-08-16
Changed
- Provided a dedicated recipe for the
RangeSlidercomponent instead of using theSliderrecipe.
[0.7.0] - 2023-08-15
Added
25hue levels added for all grays palettes.- Added
noneand2xsborder radius tokens. - Added
{radii.l1},{radii.l2}and{radii.l3}to the semantic tokens border radii.
[0.6.0] - 2023-08-13
Added
- Added
Codecomponent to display inline code snippets. - Input elements like
Input,Textarea,NumberInputetc. useaccentcolor when focused.
Changed
- Renamed box shadow token
outlinetoaccent. - Renamed
tablistpart tolistinTabsrecipe. - Changed the color of the column header in
DatePickertofg.subtle.
Removed
- The
iconprop has been removed fromIconButtonas it would affect compatibility with the Ark UIasChildprop. Code snippets have been updated accordingly.
[0.5.0] - 2023-08-10
Added
- Added
DatePickercomponent.
[0.4.0] - 2023-08-10
Added
- Added
labelstyles forSelectcomponent.
Changed
- All relevant recipes now use the new defineSlotRecipe in Panda CSS to help organize the styles.
0.3.1 - 2023-08-09
Fixed
- Resolved an issue with bundling the
@park-ui/panda-presetpackage.
[0.3.0] - 2023-08-09
Added
- Added
accent.default,accent.emphasizedandaccent.fgto the list of semantic tokens. Interative elements like buttons and links will use these colors for their background and foreground colors.
Changed
- All recipes now use semantic tokens for their colors.
- Changed
outlinefromneutral.500toneutral.700in light mode andneutral.500toneutral.300in dark mode to improve contrast.
Removed
- Removed
bg.accentandfg.accentfrom the list of semantic tokens.
0.2.0 - 2023-08-06
Added
- Added
Drawercomponent. - Added new
easingsoptions:easings.default,easings.emphasized-in,easings.emphasized-out.
Changed
- Changed animation for
Modalcomponents. - Changed
transitionTimingFunctionfor all relevant components to the neweasings.default. - Tweaked
bg.canvasto be slightly darker inlightmode.
0.1.0 - 2023-08-02
Added
- Initial Release of Park UI