Skip to content

A lightweight interactive color-switching app built using Lynx.js React. Tap the screen to cycle through beautiful backgrounds—from solid colors to multi-color gradients. Perfect as a visual demo or playful UI inspiration.

Notifications You must be signed in to change notification settings

mahmud-r-farhan/Lynx-React-Screen-Test-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lynx React Color Tap App

A lightweight interactive color-switching app built using Lynx.js React. Tap the screen to cycle through beautiful backgrounds—from solid colors to multi-color gradients. Perfect as a visual demo or playful UI inspiration.

Features

  • 27 color states: solid, 2-color, 3-color, 4-color, and 5-color gradients

  • Smooth transitions and a pulsing text animation

  • Works cross-platform: Web, iOS, Android (via Lynx)


Setup & Installation

# Clone the project
git clone https://github.com/mahmud-r-farhan/Lynx-React-Screen-Test-App
cd Lynx-React-Screen-Test-App

# Install dependencies
npm install

Project Structure

Lynx-React-Screen-Test-App/
├── src/
│ 	├── App.css 		# Styles & gradients
│ 	├── App.jsx 		# Main App logic
│ 	└── App.scss 		# Styles & gradients
├── lynx.config.json 	# Lynx configuration
├── package.json
├── README.md
└── vitest.config.js


Customizing Colors

Open App.css and modify or extend these classes:

/* Example: Adding a new color gradient */
.color-27 {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

Then, update the maxColors value in App.jsx:

const maxColors = 28; // updated to include new color

Developing Locally

Start the Web Preview

npm run dev

This will open the app in your Mobile using LynxExplorer.


Building for Platforms

Web Build

lynx build:web

Output is in dist/web/


iOS Build

lynx build:ios
  1. Ensure you have Xcode and a Mac system.

  2. Open the .xcworkspace file inside dist/ios/ in Xcode.

  3. Run on simulator or device.


Android Build

lynx build:android
  1. Requires Android Studio & SDKs installed.

  2. Open the Android project inside dist/android/.

  3. Run via emulator or connected device.


Enhancements Task

  • Add haptic feedback on tap (via Lynx's native modules)

Credits

Built with ❤️ using Lynx.js React by Mahmud

About

A lightweight interactive color-switching app built using Lynx.js React. Tap the screen to cycle through beautiful backgrounds—from solid colors to multi-color gradients. Perfect as a visual demo or playful UI inspiration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published