0.0.11-epsilom β€’ Published 3 months ago

phaselis v0.0.11-epsilom

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

Phaselis Framework 🎨

A powerful, customizable, and beautiful UI component library for React Native applications. Phaselis provides a comprehensive set of pre-built components that help you build stunning mobile applications faster.

✨ Features

  • 🎯 20+ Ready-to-use Components: From basic buttons to complex form elements
  • 🎨 Customizable Theming: Built-in light and dark themes with easy customization
  • πŸ“± Cross-Platform: Works seamlessly on both iOS and Android
  • πŸ”§ TypeScript Support: Full TypeScript support with detailed type definitions
  • 🎭 Style Variants: Multiple style variants for each component
  • πŸš€ Performance Optimized: Minimal build size and optimal runtime performance

πŸ“¦ Installation

With CLI

npx create-phaselis-app

Manual Installation

Please visit Manual Installation Guide.

NPM Installation

To install the library, follow these steps:

  1. Add the library to your project:

    npm install phaselis
  2. Navigate to the iOS directory and install the CocoaPods dependencies:

    cd ios
    pod install
  3. Clean the build folder and rebuild the project:

    xcodebuild clean
  4. Open the .xcworkspace file in Xcode and run your project.

For more information, refer to the CocoaPods documentation.

πŸ“š Documentation

For detailed documentation and examples, visit our documentation site.

πŸ”§ Setup

  1. Import and configure the PhaselisProvider:
import { Provider as PhaselisProvider, lightTheme, darkTheme } from "phaselis";

function App() {
  return (
    <PhaselisProvider theme={isDarkMode ? darkTheme : lightTheme}>
      <YourApp />
    </PhaselisProvider>
  );
}
  1. Configure Unistyles:
import { lightTheme, darkTheme } from "phaselis";
import { UnistylesRegistry } from "react-native-unistyles";

type AppThemes = {
  light: typeof lightTheme;
  dark: typeof darkTheme;
};

declare module "react-native-unistyles" {
  export interface UnistylesThemes extends AppThemes {}
}

UnistylesRegistry.addThemes({
  light: lightTheme,
  dark: darkTheme,
}).addConfig({
  adaptiveThemes: true,
  initialTheme: "light",
});

🎯 Components

Phaselis includes a wide range of components:

Component Documentation

πŸ’… Styling

Phaselis components are highly customizable through:

  • Theme customization
  • Style props
  • Variant props
  • Shadow support
  • Linear gradient support

Example:

<Button
  primary
  style={{
    container: {
      backgroundColor: "yellow",
      shadows: [
        {
          color: "#FCF596",
          opacity: 0.8,
          radius: 12,
          offset: [-5, -3],
        },
      ],
    },
    text: {
      color: "white",
    },
  }}
>
  Custom Button
</Button>

🀝 Contributing

We welcome contributions! Please read our contributing guidelines before submitting pull requests.

0.0.9-zeta

6 months ago

0.0.2-alpha.8

7 months ago

0.0.10-theta

5 months ago

0.0.2-alpha.7

7 months ago

0.0.2-alpha.9

7 months ago

0.0.11-gamma

3 months ago

0.0.2-alpha.2

7 months ago

0.0.2-alpha.1

7 months ago

0.0.2-alpha.4

7 months ago

0.0.2-alpha.3

7 months ago

0.0.2-alpha.6

7 months ago

0.0.2-alpha.5

7 months ago

0.0.10-beta

5 months ago

0.0.10-eta

4 months ago

0.0.9-gamma

6 months ago

0.0.10-epsilon

4 months ago

0.0.10-zeta

4 months ago

0.0.10-alpha

5 months ago

0.0.9-alpha

6 months ago

0.0.2-alpha.10

7 months ago

0.0.11-beta

4 months ago

0.0.9-delta

6 months ago

0.0.10-delta

4 months ago

0.0.11-theta

4 months ago

0.0.9-fabric.1

6 months ago

0.0.3-alpha.1

7 months ago

0.0.3-alpha.0

7 months ago

0.0.10

6 months ago

0.0.11-alpha

4 months ago

0.0.11

4 months ago

0.0.9-beta

6 months ago

0.0.9-fabric

6 months ago

0.0.1

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.9

6 months ago

0.0.11-epsilom

3 months ago

0.0.9-epsilon

6 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.1-alpha.11

8 months ago

0.0.1-alpha.10

8 months ago

0.0.2-alpha.0

8 months ago

0.0.1-alpha.9

9 months ago

0.0.1-alpha.8

9 months ago

0.0.1-alpha.7

9 months ago

0.0.1-alpha.6

9 months ago

0.0.1-alpha.5

9 months ago

0.0.1-alpha.4

9 months ago

0.0.1-alpha.3

9 months ago

0.0.1-alpha.2

9 months ago

0.0.1-alpha.1

9 months ago