Skip to content

Commit 98c9b9b

Browse files
author
Kubit
committed
Improve storybook´s foundations section
1 parent 59fa4e3 commit 98c9b9b

File tree

3 files changed

+28
-18
lines changed

3 files changed

+28
-18
lines changed

src/storybook/components/colors/colors.styled.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ export const ColorsTitleStyled = styled.h2`
1313

1414
export const ColorsContainerStyled = styled.div`
1515
margin-top: 30px;
16+
display: flex;
17+
flex-direction: column;
18+
gap: 2rem;
1619
`;
1720

1821
export const ColorsColorDataStyled = styled.div`
1922
display: flex;
2023
justify-content: space-between;
21-
margin-bottom: 50px;
2224
border-bottom: 1px solid #d7d7d7;
23-
padding-bottom: 10px;
25+
padding-bottom: 20px;
2426
padding-left: 20px;
2527
padding-right: 20px;
2628
align-items: center;
@@ -36,11 +38,13 @@ export const ColorsCicleStyled = styled.div`
3638
width: 40px;
3739
height: 40px;
3840
border-radius: 100%;
41+
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
3942
`;
4043

4144
export const ColorsNameStyled = styled.div`
4245
display: flex;
4346
flex-direction: column;
47+
gap: 5px;
4448
`;
4549

4650
export const ColorsHexNameStyled = styled.div`

src/storybook/components/colors/colors.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const Colors = (): JSX.Element[] | JSX.Element => {
2020
if (themeObject === undefined || !themeObject) {
2121
return (
2222
<div>
23-
<h1>Illustrations</h1>
24-
<p>There are no illustrations for the selected theme ({theme})</p>
23+
<h1>Colors</h1>
24+
<p>There are no colors for the selected theme ({theme})</p>
2525
</div>
2626
);
2727
}
@@ -41,12 +41,12 @@ export const Colors = (): JSX.Element[] | JSX.Element => {
4141
}}
4242
/>
4343
<ColorsNameStyled>
44-
<span>color name</span>
44+
<b>color name</b>
4545
<span>{_key}</span>
4646
</ColorsNameStyled>
4747
</ColorsCircleNameStyled>
4848
<ColorsHexNameStyled>
49-
<span>Hex</span>
49+
<b>Hex</b>
5050
<span>{value as ReactNode}</span>
5151
</ColorsHexNameStyled>
5252
</ColorsColorDataStyled>

src/storybook/components/icons/icons.styled.ts

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,35 @@ import styled from 'styled-components';
22

33
export const IconsStyled = styled.div`
44
display: flex;
5-
gap: 30px;
65
flex-wrap: wrap;
7-
justify-content: center;
86
`;
97

108
export const IconsDataStyled = styled.div`
11-
display: inline-flex;
9+
width: 20%;
10+
display: flex;
1211
flex-direction: column;
13-
gap: 10px;
12+
-webkit-box-align: center;
1413
align-items: center;
15-
flex-wrap: wrap;
16-
width: calc(100% / 4);
14+
-webkit-box-pack: center;
15+
justify-content: center;
16+
padding: 2.5rem 1rem 1rem;
17+
gap: 3rem;
18+
background-color: rgb(255, 255, 255);
19+
border: 1px solid rgb(209, 209, 209);
20+
word-break: break-all;
1721
`;
1822

1923
export const IconsInputStyled = styled.input`
20-
border: 1px solid rgba(153, 153, 153, 0.4);
21-
height: 50px;
2224
width: 100%;
23-
border-radius: 28px;
24-
padding: 0 28px;
25-
margin-bottom: 50px;
25+
border: 1px solid rgb(0, 0, 0);
26+
padding: 0.5rem;
27+
position: sticky;
28+
top: 10px;
29+
background-color: rgb(255, 255, 255);
30+
z-index: 1;
31+
margin-bottom: 2rem;
2632
`;
2733

2834
export const IconNameStyled = styled.span`
29-
font-size: 14px;
35+
font-size: 12px;
3036
`;

0 commit comments

Comments
 (0)