-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7048772
commit 88dc067
Showing
8 changed files
with
46 additions
and
257 deletions.
There are no files selected for viewing
97 changes: 0 additions & 97 deletions
97
packages/react-components/src/docs/components/Shadow/Shadow.tsx
This file was deleted.
Oops, something went wrong.
82 changes: 0 additions & 82 deletions
82
packages/react-components/src/docs/components/Shadow/ShadowExamples.module.scss
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
packages/react-components/src/docs/components/Shadow/ShadowExamples.tsx
This file was deleted.
Oops, something went wrong.
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
44 changes: 22 additions & 22 deletions
44
packages/react-components/src/docs/foundations/Shadow/Shadow.stories.mdx
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,29 +1,29 @@ | ||
import { Meta, Canvas } from '@storybook/addon-docs'; | ||
import { Shadow } from '../../components/Shadow/Shadow'; | ||
import { ShadowExamples } from '../../components/Shadow/ShadowExamples'; | ||
import { Meta } from '@storybook/addon-docs'; | ||
import { ShadowTable } from './ShadowTable'; | ||
import { ShadowTokens } from './constants'; | ||
|
||
<Meta title="Foundations/Shadow" /> | ||
|
||
# Shadow | ||
|
||
Shadows tokens in a design system add depth for a polished look and establishing hierarchy and predictability in user interface. | ||
|
||
<Canvas | ||
style={{ | ||
color: 'var(--content-default)', | ||
backgroundColor: 'var(--background)', | ||
}} | ||
> | ||
<Shadow /> | ||
</Canvas> | ||
|
||
## Examples | ||
|
||
<Canvas | ||
style={{ | ||
color: 'var(--content-default)', | ||
backgroundColor: 'var(--background)', | ||
}} | ||
> | ||
<ShadowExamples /> | ||
</Canvas> | ||
## Usage | ||
|
||
To use shadow tokens in your project, you need to import the `ShadowToken` constant from `@livechat/design-system-react-components`: | ||
|
||
```jsx | ||
import { ShadowToken } from '@livechat/design-system-react-components'; | ||
``` | ||
|
||
`ShadowToken` contains all the shadow tokens available in the design system. You can use them in your project by using the `var()` function in CSS: | ||
|
||
```css | ||
.my-element { | ||
box-shadow: var(${ShadowToken.PopOver}); | ||
} | ||
``` | ||
|
||
## Tokens | ||
|
||
<ShadowTable data={ShadowTokens} /> |
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