All Projects → bernaferrari → RandomColorScheme

bernaferrari / RandomColorScheme

Licence: MIT license
Flutter plugin to help experiment with different Color Schemes without pain.

Programming Languages

dart
5743 projects
ruby
36898 projects - #4 most used programming language
HTML
75241 projects
swift
15916 projects

Projects that are alternatives of or similar to RandomColorScheme

typora-hivacruz-theme
A Typora theme forked from Cobalt to match my other color schemes.
Stars: ✭ 38 (-50.65%)
Mutual labels:  color-scheme
flutter-auth-ui
flutter-auth-ui is an authentication library for flutter web applications. It uses Firebase auth as security as a service (SECaaS) provider. It implements UI to register user, validate email, sign in, sign out, restore password, access firestore..
Stars: ✭ 59 (-23.38%)
Mutual labels:  flutter-web
vim-colors-sketching
A minimal light colorscheme for Vim/Neovim
Stars: ✭ 21 (-72.73%)
Mutual labels:  color-scheme
photobooth
Google I/O 2021 Photo Booth built with Flutter and Firebase
Stars: ✭ 832 (+980.52%)
Mutual labels:  flutter-web
material-colors
Material colorscheme
Stars: ✭ 25 (-67.53%)
Mutual labels:  color-scheme
kosmikoa.nvim
A dark color scheme for Neovim with support for LSP, Treesitter. This mirror is deprecated. Use the repo at https://sr.ht/~novakane/kosmikoa.nvim/
Stars: ✭ 23 (-70.13%)
Mutual labels:  color-scheme
awesome-nord
This repository contains community-created ports and themes of this color palette for all our beloved applications.
Stars: ✭ 34 (-55.84%)
Mutual labels:  color-scheme
Portfolio-Demo-1
A portfolio build by using flutter for web.
Stars: ✭ 74 (-3.9%)
Mutual labels:  flutter-web
SwiftTheming
A powerful lightweight theme 🎨 manager for SwiftUI
Stars: ✭ 38 (-50.65%)
Mutual labels:  color-scheme
color-system
🎨 Easiest way to get a universal color palette
Stars: ✭ 21 (-72.73%)
Mutual labels:  color-scheme
vim-lighthaus
A Lighthaus theme for (n)vim, vim-airline and lightline
Stars: ✭ 33 (-57.14%)
Mutual labels:  color-scheme
flutter art
Flutter art is a collection of apps where I try to build generative art projects .
Stars: ✭ 30 (-61.04%)
Mutual labels:  flutter-web
Portfolio
A responsive portfolio app made with flutter web.
Stars: ✭ 43 (-44.16%)
Mutual labels:  flutter-web
QtCreator-Color-Schemes
Color schemes for the QtCreator text editor
Stars: ✭ 64 (-16.88%)
Mutual labels:  color-scheme
tvthemes
ggplot2 themes and palettes based on your favorite TV shows
Stars: ✭ 120 (+55.84%)
Mutual labels:  color-scheme
cake-atom-syntax
Yummy syntax theme for Atom
Stars: ✭ 17 (-77.92%)
Mutual labels:  color-scheme
SwiftColorWheel
Delightful color picker wheel for iOS in Swift.
Stars: ✭ 37 (-51.95%)
Mutual labels:  color-scheme
taeseung vimrc
Taeseung Lee's vim setting
Stars: ✭ 16 (-79.22%)
Mutual labels:  color-scheme
sabuni
Light Colorscheme for IntelliJ IDEA
Stars: ✭ 14 (-81.82%)
Mutual labels:  color-scheme
seo renderer
A Flutter Web Plugin to display Text Widget as Html for SEO purpose
Stars: ✭ 103 (+33.77%)
Mutual labels:  flutter-web

Image of Random Color Scheme

Random Color Scheme

Making a coherent Material Design theme is hard. This is a Flutter plugin that generates a random color pallet based on Material Design while respecting WCAG guidelines.

The idea is for you to (temporarily) replace your ColorScheme() with a randomColorSchemeLight() or randomColorSchemeDark(). On each run, hot refresh or hot restart, the app is going to look different. The theme is printed in terminal, so you can easily copy and paste back into your project with the colors that you want to stay.

The interactive sample allows you to see how it works and the reasoning behind:

Random Color Scheme

Usage

In the pubspec.yaml of your flutter project, add the following dependency:

pub package

dependencies:
  random_color_scheme: ^VERSION

In your project, just replace the ColorScheme.dark(...) with randomColorSchemeDark(). If you want a light theme, there is a randomColorSchemeLight().

import 'package:random_colorscheme/random_color_scheme.dart';

Theme(
  data: ThemeData(
    colorScheme: randomColorSchemeDark(),
  ),
  child: MyApp(),
)

How it works

This started in my Color Studio project. I started looking at the Material Design Guidelines on color for both light and dark theme. After extracting some colors (like the Primary, Secondary and Owl Study), I decided to see how similar were they, in what range are they and how they behave together. Then, I used HSLuv with a random number generator and rules detected from my observation. The final adjustments were made when tweaking the sample. HSLuv is great because only the Lightness attribute affects WCAG calculated contrast, so all themes are guaranteed to pass a minimum accessibility threshold.

Function listing

  • randomColorSchemeDark(seed: null | int): ColorScheme
  • randomColorSchemeLight(seed: null | int): ColorScheme
  • randomColorScheme(seed: null | int, isDark: bool): ColorScheme

Seed: an integer which guarantees the random function is always going to have the same output (i.e., the same ColorScheme). It is optional.

Reporting Issues

If you have any suggestions or feedback, issues and pull requests are welcome. You can report here.

License

Copyright 2020 Bernardo Ferrari

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, and/or 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.
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].