0.0.70 • Published 5 months ago

aspect-ui v0.0.70

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Aspect UI

Aspect UI is an open-source React component library designed to help developers build stunning user interfaces with ease. It provides a collection of reusable components that are customizable and easy to integrate into any React application.

Table of Contents

Installation

Vite React Application

Setting Up Aspect UI in a Vite React Application

Step 1: Create a Vite React Application**

npm create vite@latest my-project -- --template react
cd my-project

Step 2: Install Tailwind CSS

npm i autoprefixer postcss tailwindcss
npx tailwindcss init -p

Step 3: Install Aspect UI

npm install aspect-ui

Or with Yarn

yarn add aspect-ui

Step 4: Configure Tailwind CSS

Edit your tailwind.config.js file:

import { AspectUITheme } from 'aspect-ui/AspectUITheme'

const config = {
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
  theme: {},
}

export default AspectUITheme(config)

Step 5: Add Tailwind CSS to your CSS file

@import 'aspect-ui/css';
@tailwind base;
@tailwind components;
@tailwind utilities;

Next JS Application

Integrating Aspect UI into a Next.js application.

Step 1: Create a Next.js Application

npx create-next-app@latest

Ensure that you select Tailwind CSS as a dependency during setup.

Step 2: Install Aspect UI

npm install aspect-ui

Or with Yarn

yarn add aspect-ui

Step 3: Configure Tailwind CSS

Edit your tailwind.config.js file:

import { AspectUITheme } from 'aspect-ui/AspectUITheme'

module.exports = {
  content: [
    './app/**/*.{js,ts,jsx,tsx,mdx}',
    './pages/**/*.{js,ts,jsx,tsx,mdx}',
    './components/**/*.{js,ts,jsx,tsx,mdx}',

    // Or if using `src` directory:
    './src/**/*.{js,ts,jsx,tsx,mdx}'
  ],
  theme: {
    extend: {}
  },
  plugins: []
}

export default AspectUITheme(config)

Step 4: Add Tailwind CSS to your CSS file

@import 'aspect-ui/css';
@tailwind base;
@tailwind components;
@tailwind utilities;

Usage

import { Button } from 'aspect-ui'
const App = () => {
  return <Button>Button</Button>
}
export default App

Components

Aspect UI offers a variety of components to help you build your application. For detailed usage and examples of each component, refer to our component documentation.

Contributing

If you want to contribute to Aspect UI, you can follow the contributing guide.

License

Aspect UI is licensed under the MIT License. See the LICENSE file for more information.

0.0.70

5 months ago

0.0.67

5 months ago

0.0.68

5 months ago

0.0.69

5 months ago

0.0.66

5 months ago

0.0.65

5 months ago

0.0.62

5 months ago

0.0.63

5 months ago

0.0.64

5 months ago

0.0.60

5 months ago

0.0.61

5 months ago

0.0.59

6 months ago

0.0.58

6 months ago

0.0.56

6 months ago

0.0.57

6 months ago

0.0.51

6 months ago

0.0.52

6 months ago

0.0.53

6 months ago

0.0.54

6 months ago

0.0.55

6 months ago

0.0.50

6 months ago

0.0.48

7 months ago

0.0.49

7 months ago

0.0.40

7 months ago

0.0.41

7 months ago

0.0.42

7 months ago

0.0.43

7 months ago

0.0.44

7 months ago

0.0.45

7 months ago

0.0.46

7 months ago

0.0.47

7 months ago

0.0.38

7 months ago

0.0.39

7 months ago

0.0.37

7 months ago

0.0.35

7 months ago

0.0.36

7 months ago

0.0.20

8 months ago

0.0.21

8 months ago

0.0.22

8 months ago

0.0.23

8 months ago

0.0.24

8 months ago

0.0.25

8 months ago

0.0.15

8 months ago

0.0.16

8 months ago

0.0.17

8 months ago

0.0.18

8 months ago

0.0.19

8 months ago

0.0.30

8 months ago

0.0.31

8 months ago

0.0.32

8 months ago

0.0.10

8 months ago

0.0.33

8 months ago

0.0.11

8 months ago

0.0.34

8 months ago

0.0.12

8 months ago

0.0.13

8 months ago

0.0.14

8 months ago

0.0.26

8 months ago

0.0.27

8 months ago

0.0.28

8 months ago

0.0.29

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.6

8 months ago

0.0.1

8 months ago