Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added variable for border radius to system/styleguide #52

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ align-items: center;

.about .content{
border-radius: 16px;
background-color: var(--color-gray-3);
background-color: var(--color-gray-2);
}

.portfolio-project-nav {
Expand Down Expand Up @@ -385,7 +385,7 @@ align-items: center;
}

.about img{
border-radius: 24px;
border-radius: var(--border-radius-xlarge);
}

/*--------------------------------------------------------------
Expand Down
57 changes: 51 additions & 6 deletions styleguide.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@
flex: 0 1 180px;
margin-bottom: 30px;
}

.space {
width: 200px;
background-color: var(--color-information);
border-style: solid;
border-width: 1px 0px;
border-color: var(--color-gray-10);
display: flex;
flex: 0 1 180px;
margin-bottom: 30px;
}

.color p{
font-size: 14px;
Expand All @@ -65,6 +76,13 @@
color: black;
}

.space p{
font-size: 14px;
position: relative;
margin-top: 8px;
color: black;
}

.table_component {
overflow: auto;
width: 100%;
Expand Down Expand Up @@ -107,12 +125,6 @@ <h4 style="font: var(--typography-heading-3)">Textstyles</h4>

<div class="table_component" role="region" tabindex="0">
<table>
<!-- <thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</thead> -->
<tbody>
<tr>
<td>Headline <br> 700 48px/62px "Montserrat"</td>
Expand Down Expand Up @@ -216,6 +228,39 @@ <h4 style="font: var(--typography-subtitle)">Greyscale colors</h4>
<div class="color" style="background-color: var(--color-gray-10);"><p>gray-10</p></div>
</div>

<!-- BLOCK -->
<div style="height: 60px;"></div>

<!-- BORDER RADIUS -->
<h4 style="font: var(--typography-heading-3)">Border Radius</h4>
<hr style="margin: 16px 0 40px 0;">

<div class="color-grid">
<div class="color" style="border-radius: var(--border-radius-small); border-style: solid; border-width: 2px; border-color: #c7c7c7;"><p>small</p></div>
<div class="color" style="border-radius: var(--border-radius-medium); border-style: solid; border-width: 2px; border-color: #c7c7c7;"><p>medium</p></div>
<div class="color" style="border-radius: var(--border-radius-large); border-style: solid; border-width: 2px; border-color: #c7c7c7;"><p>large</p></div>
<div class="color" style="border-radius: var(--border-radius-xlarge); border-style: solid; border-width: 2px; border-color: #c7c7c7;"><p>xlarge</p></div>
</div>

<!-- BLOCK -->
<div style="height: 60px;"></div>

<!-- BORDER RADIUS -->
<h4 style="font: var(--typography-heading-3)">Spacing</h4>
<hr style="margin: 16px 0 40px 0;">

<div class="color-grid">
<div class="space" style="height: var(--space-8);"><p>space-8</p></div>
<div class="space" style="height: var(--space-16);"><p>space-16</p></div>
<div class="space" style="height: var(--space-24);"><p>space-24</p></div>
<div class="space" style="height: var(--space-32);"><p>space-32</p></div>
<div class="space" style="height: var(--space-40);"><p>space-40</p></div>
<div class="space" style="height: var(--space-48);"><p>space-48</p></div>
<div class="space" style="height: var(--space-64);"><p>space-64</p></div>
<div class="space" style="height: var(--space-72);"><p>space-72</p></div>
</div>


</body>

</html>
1 change: 1 addition & 0 deletions tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
--border-radius-small: calc(var(--base-unit) * 1);
--border-radius-medium: calc(var(--base-unit) * 2);
--border-radius-large: calc(var(--base-unit) * 4);
--border-radius-xlarge: calc(var(--base-unit) * 6);

/* Transition
================================================================= */
Expand Down