-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define
layerStyles
for ease of use downstream (#202)
* feat(layer-styles): add base for layer styles in aniref preset * chore: add 950 for brand.secondary color palette * chore: add TODO comment for layerStyles * ci(changeset): add changeset for layerStyles addition * chore: remove unnecessary comment * chore: add TODO comment for layerStyles * refactor: update layerStyles and Button recipe * ci(changesets): add changeset for button recipe update * chore: remove unnecessary button layer style from preset * chore: remove incorrect TODO comment about layer style implementation * feat: add accent gradient to layer styles * ci(changesets): add changeset for banner recipe update * chore: update layer style naming conventions * fix: update descriptions for layer styles * chore: update layer style naming conventions * fix(Button): update recipe for ghost variant disabled styles * chore(Banner): remove unnecessary variants from recipe * build(deps): update framer-motion dep
- Loading branch information
1 parent
d448429
commit 5dcc96e
Showing
12 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@animareflection/ui": minor | ||
--- | ||
|
||
Defined `layerStyles` in aniref preset to allow for prop use downstream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@animareflection/ui": patch | ||
--- | ||
|
||
Updated `Button` recipe styles for consistent sizing across variants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@animareflection/ui": patch | ||
--- | ||
|
||
Remove variants from `Banner` recipe in favor of `defaultGradient` layer style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { defineLayerStyles } from "@pandacss/dev"; | ||
|
||
const layerStyles = defineLayerStyles({ | ||
defaultGradient: { | ||
description: "layer styles for accent gradient", | ||
value: { | ||
background: | ||
// TODO update when colorPalette composition strategy is implemented | ||
"linear-gradient(to right, token(colors.brand.secondary.500), token(colors.accent.default))", | ||
}, | ||
}, | ||
subtleGradient: { | ||
description: "layer styles for subtle gradient", | ||
value: { | ||
background: { | ||
base: "linear-gradient(to right, token(colors.brand.secondary.50), token(colors.brand.primary.50))", | ||
_dark: | ||
"linear-gradient(to right, token(colors.brand.secondary.950), token(colors.brand.primary.950))", | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
export default layerStyles; |
5dcc96e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for ui-storybook ready!
✅ Preview
https://ui-storybook-pkmogn79k-animareflection.vercel.app
Built with commit 5dcc96e.
This pull request is being automatically deployed with vercel-action