1.0.7 • Published 3 years ago

pretty-pretty v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Pretty-Pretty

Pretty-Pretty is a UI component library of ready-made components like Buttons, Cards and more.

Installation

Use the node package manager npm to install Pretty-Pretty.

npm i pretty-pretty

Usage

Card

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;

Result

alt text

Buttons

Normal Type

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;

Result

alt text

Get Started Type

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;

Result

alt text

Contributing

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.

License

MIT

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago