All Projects → PatilSiddhesh → Holi

PatilSiddhesh / Holi

Licence: MIT license
Holi is a lightweight Jetpack Compose library of colors, gradients and cool utility functions for all your palette needs!

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Holi

Wiggles
🐶 Beautiful Puppy adoption app with Jetpack Compose #AndroidDevChallenge
Stars: ✭ 365 (+128.13%)
Mutual labels:  jetpack, declarative-ui, jetpack-compose
Coffeegram
Android app using Jetpack Compose together with StateFlow and MVI
Stars: ✭ 155 (-3.12%)
Mutual labels:  jetpack, declarative-ui, jetpack-compose
Jetpack-compose-sample
Forget about bunch of XML files for maintaining UIs. Jetpack Compose is Android’s modern toolkit for building native UI. Here is a small example to get started.
Stars: ✭ 29 (-81.87%)
Mutual labels:  jetpack, declarative-ui, jetpack-compose
JetComposer
Collection of UIs and Animations built with Jetpack Compose for Android
Stars: ✭ 294 (+83.75%)
Mutual labels:  jetpack, declarative-ui, jetpack-compose
Composecookbook
A Collection on all Jetpack compose UI elements, Layouts, Widgets and Demo screens to see it's potential
Stars: ✭ 3,516 (+2097.5%)
Mutual labels:  jetpack, declarative-ui, jetpack-compose
SSComposeCookBook
A Collection of major Jetpack compose UI components which are commonly used.🎉🔝👌
Stars: ✭ 386 (+141.25%)
Mutual labels:  declarative-ui, jetpack-compose
Flower-App-Jetpack-Compose
This sample is created to elaborate this article, it contains the UI of the flower app from our dribble collection
Stars: ✭ 73 (-54.37%)
Mutual labels:  declarative-ui, jetpack-compose
PCard
Demo project to showcase adding payment card details using JetPack Compose
Stars: ✭ 61 (-61.87%)
Mutual labels:  jetpack, jetpack-compose
GitReposCompose
GitReposCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android. This demo app uses Github public API for fetching public repositories.
Stars: ✭ 32 (-80%)
Mutual labels:  jetpack, jetpack-compose
Compose-ShoppingList
Jetpack compose shopping list app
Stars: ✭ 52 (-67.5%)
Mutual labels:  jetpack, declarative-ui
Jetpack Compose News
基于Jetpack Compose实现的一款集新闻、视频、美图、音乐、天气等功能的资讯App,持续完善中...
Stars: ✭ 58 (-63.75%)
Mutual labels:  jetpack, jetpack-compose
Strict-DataBinding
善用 DataBinding 彻底解决 “View 实例的 Null 安全一致性问题”
Stars: ✭ 84 (-47.5%)
Mutual labels:  jetpack, jetpack-compose
Compose-Settings
Android #JetpackCompose Settings library
Stars: ✭ 188 (+17.5%)
Mutual labels:  jetpack, jetpack-compose
Awesome-Android-Open-Source-Projects
👓 A curated list of awesome android projects by open-source contributors.
Stars: ✭ 401 (+150.63%)
Mutual labels:  jetpack, jetpack-compose
Delish
Delish, a Food Recipes App in Jetpack Compose and Hilt based on modern Android tech-stacks and MVI clean architecture.
Stars: ✭ 356 (+122.5%)
Mutual labels:  jetpack, jetpack-compose
Scout
Scout is a kotlin multiplatform application that allows users to search and save games to lists to be browsed later.
Stars: ✭ 28 (-82.5%)
Mutual labels:  jetpack, jetpack-compose
SSJetpackComposeSwipeableView
SSJetpackComposeSwipeableView is a small library which provides support for the swipeable views. You can use this in your lazyColumns or can add a simple view which contains swipe to edit/delete functionality.
Stars: ✭ 57 (-64.37%)
Mutual labels:  jetpack, jetpack-compose
Einsen
🎯 Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.
Stars: ✭ 821 (+413.13%)
Mutual labels:  declarative-ui, jetpack-compose
compose-ratingbar
A ratingbar composable for jetpack compose 🚀🌟
Stars: ✭ 89 (-44.37%)
Mutual labels:  jetpack, jetpack-compose
arkitekt
Arkitekt is a set of architectural tools based on Android Architecture Components, which gives you a solid base to implement the concise, testable and solid application.
Stars: ✭ 114 (-28.75%)
Mutual labels:  jetpack, jetpack-compose

Holi

A library of colors, gradients and utils built using Jetpack Compose for Android

License MIT Maven Central

Features

  • A wide collection of colors from different palettes for easy access in your pet projects
  • Provides easy gradient building functions that all your composable brushes need
  • Just 28 KB in size! Over 450 predefined colors and endless gradients.

Color Palettes

  • Material Colors
  • Flat Colors
  • Cool Colors
  • Dracula Colors

Color palette showcase

Cool Colors Material colors Flat colors Dracula colors

Gradient mixer showcase

Directional Gradients Directional multi color gradients

Using colors

You can simply pick colors by using the container objects for each palette and profit.

Eg.

   MaterialColor.RED
   CoolColor.FIREBRICK
   FlatColor.EMERLAND
   DraculaColor.YELLOW

Palette references

Using Gradients

Using gradients is super easy with Holi, just use GradientMixer and choose from various gradient brush generating functions.

1. Mixing two colors

   GradientMixer.bottomLeftToTopRight(MaterialColor.RED,MaterialColor.GREEN)

2. Mixing more than two colors

   GradientMixer.topRightToBottomLeft(
    listOf(MaterialColor.RED,
    MaterialColor.GREEN,
    MaterialColor.PURPLE)
    )

3. Reversing gradients

   GradientMixer.rightToLeft(FlatColor.CARROT,FlatColor.POMEGRANATE,reversed = true)

Holi's GradientMixer is a container for gradient (Compose Brush) generating functions. These functions act as wrappers around Compose's gradient generators so that you don't have to figure out offset values with their directions. The idea behind this gradient mixer is easy access to gradient building.

How to use

Holi is available on MavenCentral, declare maven central in your repositories and implement the latest version in dependencies.

Step 1. Add to repositories

allprojects {
    repositories {
        mavenCentral()
    }
}

Step 2. Add in dependencies

dependencies {

    implementation 'com.siddroid:holi:0.0.7'
    
}

Licensing

  MIT License
 
  Copyright (c) 2021 Siddhesh Patil, Siddroid.com
 
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, andor sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:
 
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
 
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
 

Disclaimer

Holi uses color palettes from the reference sites, these colors / swatches are free to use. A big thanks to the maintainers for making these color palettes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].