Skip to content

Commit

Permalink
[PBNTR-187] [PBNTR-250] Power Centra in Playbook Part 2 (Change Varia…
Browse files Browse the repository at this point in the history
…ble Settings) (#3134)

**What does this PR do?** A clear and concise description with your
runway ticket url.

- Updates typography variables to align closer to Proxima
- Fixes graphs using improper font weight
- Fixes button sizes from rem to px's

**Screenshots:** Screenshots to visualize your addition/change
<img width="1437" alt="image"
src="https://github.com/powerhome/playbook/assets/863031/249ee81c-54d9-4453-ade9-8361e53440ad">



**How to test?** Steps to confirm the desired behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See addition/change


#### Checklist:
- [ ] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new
kit`, `deprecated`, or `breaking`. See [Changelog &
Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels)
for details.
- [ ] **DEPLOY** I have added the `milano` label to show I'm ready for a
review.
- [ ] **TESTS** I have added test coverage to my code.

---------

Co-authored-by: nickamantia <nick.amantia@powerhrg.com>
Co-authored-by: Carlos Lima <carloslimasd@gmail.com>
Co-authored-by: Jasper Furniss <jasper.furniss@powerhrg.com>
  • Loading branch information
4 people committed Jul 10, 2024
1 parent b3557a0 commit 774b484
Show file tree
Hide file tree
Showing 75 changed files with 103 additions and 294 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
129 changes: 33 additions & 96 deletions examples/playbook-rails-webpack/app/assets/stylesheets/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,97 +1,34 @@
@font-face {
src: font-url('ProximaNova-Regular.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 500;

}
@font-face {
src: font-url('ProximaNova-Light.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 400;

}
@font-face {
src: font-url('ProximaNova-Thin.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 100;

}
@font-face {
src: font-url('ProximaNova-Semibold.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 600;

}
@font-face {
src: font-url('ProximaNova-Bold.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 700;

}
@font-face {
src: font-url('ProximaNova-Extrabld.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 800;

}
@font-face {
src: font-url('ProximaNova-Black.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 900;

}
@font-face {
src: font-url('ProximaNova-RegularIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 500;

}
@font-face {
src: font-url('ProximaNova-LightIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 400;

}
@font-face {
src: font-url('ProximaNova-ThinIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 100;

}
@font-face {
src: font-url('ProximaNova-SemiboldIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 600;

}
@font-face {
src: font-url('ProximaNova-BoldIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 700;

}
@font-face {
src: font-url('ProximaNova-ExtrabldIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 800;

}
@font-face {
src: font-url('ProximaNova-BlackIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 900;
}
src: font-url('PowerCentra-Light.woff2') format('woff2');
font-family: 'Power Centra';
font-style: normal;
font-weight: 300;
}

@font-face {
src: font-url('PowerCentra-Book.woff2') format('woff2');
font-family: 'Power Centra';
font-style: normal;
font-weight: 400;
}

@font-face {
src: font-url('PowerCentra-BookItalic.woff2') format('woff2');
font-family: 'Power Centra';
font-style: italic;
font-weight: 400;
}

@font-face {
src: font-url('PowerCentra-Bold.woff2') format('woff2');
font-family: 'Power Centra';
font-style: normal;
font-weight: 700;
}

@font-face {
src: font-url('PowerCentra-BoldItalic.woff2') format('woff2');
font-family: 'Power Centra';
font-style: italic;
font-weight: 700;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
112 changes: 24 additions & 88 deletions examples/playbook-rails/app/assets/stylesheets/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,98 +1,34 @@
@font-face {
src: font-url('ProximaNova-Regular.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 500;

src: font-url('PowerCentra-Light.woff2') format('woff2');
font-family: 'Power Centra';
font-style: normal;
font-weight: 300;
}

@font-face {
src: font-url('ProximaNova-Light.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 400;

src: font-url('PowerCentra-Book.woff2') format('woff2');
font-family: 'Power Centra';
font-style: normal;
font-weight: 400;
}

@font-face {
src: font-url('ProximaNova-Thin.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 100;

src: font-url('PowerCentra-BookItalic.woff2') format('woff2');
font-family: 'Power Centra';
font-style: italic;
font-weight: 400;
}

@font-face {
src: font-url('ProximaNova-Semibold.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 600;

src: font-url('PowerCentra-Bold.woff2') format('woff2');
font-family: 'Power Centra';
font-style: normal;
font-weight: 700;
}

@font-face {
src: font-url('ProximaNova-Bold.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 700;

}
@font-face {
src: font-url('ProximaNova-Extrabld.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 800;

}
@font-face {
src: font-url('ProximaNova-Black.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: normal;
font-weight: 900;

}
@font-face {
src: font-url('ProximaNova-RegularIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 500;

}
@font-face {
src: font-url('ProximaNova-LightIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 400;

}
@font-face {
src: font-url('ProximaNova-ThinIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 100;

}
@font-face {
src: font-url('ProximaNova-SemiboldIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 600;

}
@font-face {
src: font-url('ProximaNova-BoldIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 700;

}
@font-face {
src: font-url('ProximaNova-ExtrabldIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 800;

}
@font-face {
src: font-url('ProximaNova-BlackIt.woff2') format('woff2');
font-family: 'Proxima Nova';
font-style: italic;
font-weight: 900;

src: font-url('PowerCentra-BoldItalic.woff2') format('woff2');
font-family: 'Power Centra';
font-style: italic;
font-weight: 700;
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const KitDocs = ({ source, exampleTitle, css }) => {
style={{
backgroundColor: "white",
border: "none",
fontFamily: "Proxima Nova",
fontFamily: "Power Centra",
}}
>
<div style={{ width: "100%" }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Sandbox({ backgroundColor = "white" }) {
className={`sandbox-layout`}
style={{
border: "none",
fontFamily: "Proxima Nova",
fontFamily: "Power Centra",
}}
>
<Flex orientation='column' alignSelf='stretch'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
}
.sample-ui-link-wrapper {
max-width: 275px;
max-width: 295px;
cursor: pointer;
.dropdown-icon {
color: $primary;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 774b484

Please sign in to comment.