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.
-
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)
# 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
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
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
npm run dev
This will open the app in your Mobile using LynxExplorer.
lynx build:web
Output is in dist/web/
lynx build:ios
-
Ensure you have Xcode and a Mac system.
-
Open the
.xcworkspace
file insidedist/ios/
in Xcode. -
Run on simulator or device.
lynx build:android
-
Requires Android Studio & SDKs installed.
-
Open the Android project inside
dist/android/
. -
Run via emulator or connected device.
- Add haptic feedback on tap (via Lynx's native modules)
Built with ❤️ using Lynx.js React by Mahmud