Pretty-Pretty is a UI component library of ready-made components like Buttons, Cards and more.
Use the node package manager npm to install Pretty-Pretty.
npm i pretty-pretty
import { PrettyCard } from "pretty-pretty";
function App() {
return (
<PrettyCard style={{ margin: "50px", width: "30%" }}>
<span style={{ fontSize: "14px", fontWeight: "normal" }}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
</span>
</PrettyCard>
);
}
export default App;
import { PrettyBtn } from "pretty-pretty";
function App() {
return (
<div style={{ margin: "100px" }}>
<div style={{ display: "flex", flexDirection: "column" }}>
<div style={{ display: "flex", flexDirection: "column" }}>
<span style={{ fontSize: "12px" }}>PRIMARY_FILLED_LARGE</span> <br />
<PrettyBtn variant="PRIMARY_FILLED_LARGE" />
</div>
<div
style={{
display: "flex",
flexDirection: "column",
marginTop: "40px",
}}
>
<span style={{ fontSize: "12px" }}>SECONDARY_LARGE</span>
<br />
<PrettyBtn variant="SECONDARY_LARGE" />
</div>
</div>
</div>
);
}
export default App;
import { PrettyBtn } from "pretty-pretty";
function App() {
return (
<div style={{ margin: "100px" }}>
<div style={{ display: "flex", flexDirection: "column" }}>
<div style={{ display: "flex", flexDirection: "column" }}>
<span style={{ fontSize: "12px" }}>GET_STARTED_PRIMARY</span> <br />
<PrettyBtn variant="GET_STARTED_PRIMARY" />
</div>
<div
style={{
display: "flex",
flexDirection: "column",
marginTop: "40px",
}}
>
<span style={{ fontSize: "12px" }}>GET_STARTED_SECONDARY</span>
<br />
<PrettyBtn variant="GET_STARTED_SECONDARY" />
</div>
</div>
</div>
);
}
export default App;
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.