-
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.
Refactor folder structure and Modify tokens (#151)
* Refactor folder structure * Modify text-style tokens * Add tokens for shadows
- Loading branch information
Showing
11 changed files
with
57 additions
and
48 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
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 |
---|---|---|
@@ -1,3 +1,28 @@ | ||
import { defineSemanticTokens } from '@pandacss/dev'; | ||
|
||
export const shadows = defineSemanticTokens.shadows({}); | ||
export const shadows = defineSemanticTokens.shadows({ | ||
xs: { | ||
value: { | ||
base: '0px 8px 4px -8px rgba(0, 0, 0, 0.20)', | ||
_dark: '0px 8px 4px -8px rgba(255, 255, 255, 0.20)', | ||
}, | ||
}, | ||
sm: { | ||
value: { | ||
base: '0px 8px 8px -8px rgba(0, 0, 0, 0.20)', | ||
_dark: '0px 8px 8px -8px rgba(255, 255, 255, 0.20)', | ||
}, | ||
}, | ||
md: { | ||
value: { | ||
base: '0px 8px 16px -8px rgba(0, 0, 0, 0.20)', | ||
_dark: '0px 8px 16px -8px rgba(255, 255, 255, 0.20)', | ||
}, | ||
}, | ||
lg: { | ||
value: { | ||
base: '0px 20px 24px -12px rgba(0, 0, 0, 0.20)', | ||
_dark: '0px 20px 24px -12px rgba(255, 255, 255, 0.20)', | ||
}, | ||
}, | ||
}); |
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { defineTextStyles } from '@pandacss/dev' | ||
import { defineTextStyles } from '@pandacss/dev'; | ||
|
||
export const textStyles = defineTextStyles({ | ||
xs: { value: { fontSize: 'xs', lineHeight: '1.125rem' } }, | ||
sm: { value: { fontSize: 'sm', lineHeight: '1.25rem' } }, | ||
md: { value: { fontSize: 'md', lineHeight: '1.5rem' } }, | ||
lg: { value: { fontSize: 'lg', lineHeight: '1.75rem' } }, | ||
xl: { value: { fontSize: 'xl', lineHeight: '1.875rem' } }, | ||
'2xl': { value: { fontSize: '2xl', lineHeight: '2rem' } }, | ||
'3xl': { value: { fontSize: '3xl', lineHeight: '2.375rem' } }, | ||
'4xl': { value: { fontSize: '4xl', lineHeight: '2.75rem', letterSpacing: '-0.02em' } }, | ||
'5xl': { value: { fontSize: '5xl', lineHeight: '3.75rem', letterSpacing: '-0.02em' } }, | ||
'6xl': { value: { fontSize: '6xl', lineHeight: '4.5rem', letterSpacing: '-0.02em' } }, | ||
'7xl': { value: { fontSize: '7xl', lineHeight: '5.75rem', letterSpacing: '-0.02em' } }, | ||
}) | ||
xs: { value: { fontSize: 'xs', lineHeight: '10px' } }, | ||
sm: { value: { fontSize: 'sm', lineHeight: '16px' } }, | ||
md: { value: { fontSize: 'md', lineHeight: '22px' } }, | ||
lg: { value: { fontSize: 'lg', lineHeight: '24px' } }, | ||
xl: { value: { fontSize: 'xl', lineHeight: '30px' } }, | ||
'2xl': { value: { fontSize: '2xl', lineHeight: '32px' } }, | ||
'3xl': { value: { fontSize: '3xl', lineHeight: '38px' } }, | ||
'4xl': { value: { fontSize: '4xl', lineHeight: '44px' } }, | ||
'5xl': { value: { fontSize: '5xl', lineHeight: '60px' } }, | ||
'6xl': { value: { fontSize: '6xl', lineHeight: '72px' } }, | ||
}); |
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
6 changes: 3 additions & 3 deletions
6
packages/core/src/button/Button.tsx → ...ges/core/src/components/button/Button.tsx
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
packages/core/src/flex/Flex.tsx → packages/core/src/components/flex/Flex.tsx
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
File renamed without changes.
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,2 @@ | ||
export * from './button'; | ||
export * from './flex'; |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './button'; | ||
export * from './flex'; | ||
export * from './components'; |