1.0.4 • Published 3 years ago

gaydients v1.0.4

Weekly downloads
7
License
GPL-3.0
Repository
github
Last release
3 years ago

gaydients

gaydients is a collection of lgbtqiap+ gradients made with css. they help make the web gay. free and always will be.

view examples at gaydients.lgbt

installation

install with npm:

npm install gaydients --save

install with yarn:

yarn add gaydients

getting started

there's a few ways to use gaydients, depending on your use case.

if you're using any of the css-in-js flavors, the best way is to just import the styles as an object:

import gaydients from 'gaydients';

this gives you access to each of values ready for you to use:

{
  prideFlag: ...
  prideGradient: ...
  transFlag: ...
  transGradient: ...
  enbyFlag: ...
  enbyGradient: ...
  genderqueerFlag: ...
  genderqueerGradient: ...
  aceFlag: ...
  aceGradient: ...
  pansexualFlag: ...
  pansexualGradient: ...
  aroFlag: ...
  aroGradient: ...
  agenderFlag: ...
  agenderGradient: ...
  intersexFlag: ...
  intersexGradient: ...
  bisexualFlag: ...
  bisexualGradient: ...
  rainbowFlag: ...
  rainbowGradient: ...
  blackTransFlag: ...
  blackTransGradient: ...
  genderfluidFlag: ...
  genderfluidGradient: ...
}

you can also just import the ones you need:

import {transFlag, enbyFlag} from 'gaydients';

classes

there's also convenient classes you can use for default flags and gradients.

just import the sass:

@import "~gaydients/gaydients.scss";
class namedescription
.gaydient-pride-flagpride flag background
.gaydient-pride-gradientpride gradient background
.gaydient-trans-flagtrans flag background
.gaydient-trans-gradienttrans gradient background
.gaydient-enby-flagenby flag background
.gaydient-enby-gradientenby gradient background
.gaydient-genderqueer-flaggenderqueer flag background
.gaydient-genderqueer-gradientgenderqueer gradient background
.gaydient-ace-flagace flag background
.gaydient-ace-gradientace gradient background
.gaydient-rainbow-flagpansexual flag background
.gaydient-pansexual-gradientpansexual gradient background
.gaydient-aro-flagaro flag background
.gaydient-aro-gradientaro gradient background
.gaydient-agender-flagagender flag background
.gaydient-agender-gradientagender gradient background
.gaydient-intersex-flagintersex flag background
.gaydient-intersex-gradientintersex gradient background
.gaydient-bisexual-flagbisexual flag background
.gaydient-bisexual-gradientbisexual gradient background
.gaydient-rainbow-flagrainbow flag background
.gaydient-rainbow-gradientrainbow gradient background
.gaydient-black-trans-flagBlack trans flag background
.gaydient-black-trans-gradientBlack trans gradient background
.gaydient-genderfluid-flaggenderfluid flag background
.gaydient-genderfluid-gradientgenderfluid gradient background

you can also set change the .gaydient class prefix by setting $gaydients-class-prefix to whatever you want.

documentation

below are the available functions to build out flags.

gaydient-pride

function used to generate pride flag

parameterdefault valuedescriptiontype
$black#000000black portionhex
$brown#72501Epurple portionhex
$red#ff0018red portionhex
$orange#ffa52corange portionhex
$yellow#ffff41yellow portionhex
$green#008018green portionhex
$blue#0000f9blue portionhex
$purple#86007dpurple portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-pride-black: ...
$gaydients-pride-brown: ...
$gaydients-pride-red: ...
$gaydients-pride-orange: ...
$gaydients-pride-yellow: ...
$gaydients-pride-green: ...
$gaydients-pride-blue: ...
$gaydients-pride-purple: ...
$gaydients-pride-opacity: ...
$gaydients-pride-degrees: ...
$gaydients-pride-chunk: ...

gaydient-trans

function used to generate trans flag

parameterdefault valuedescriptiontype
$blue#55cdfcblue portionhex
$pink#f7a8b8pink portionhex
$white#fffwhite portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-trans-blue: ...
$gaydients-trans-pink: ...
$gaydients-trans-white: ...
$gaydients-trans-opacity: ...
$gaydients-trans-degrees: ...
$gaydients-trans-chunk: ...

gaydient-enby

function used to generate non-binary flag

parameterdefault valuedescriptiontype
$yellow#fff433yellow portionhex
$white#fffwhite portionhex
$purple#9b59d0purple portionhex
$black#000black portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-enby-yellow: ...
$gaydients-enby-white: ...
$gaydients-enby-purple: ...
$gaydients-enby-black: ...
$gaydients-enby-opacity: ...
$gaydients-enby-degrees: ...
$gaydients-enby-chunk: ...

gaydient-genderqueer

function used to generate genderqueer flag

parameterdefault valuedescriptiontype
$lavender#b77fddlavendar portionhex
$white#fffwhite portionhex
$green#48821egreen portionhex
$black#000black portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-genderqueer-lavender: ...
$gaydients-genderqueer-white: ...
$gaydients-genderqueer-green: ...
$gaydients-genderqueer-opacity: ...
$gaydients-genderqueer-degrees: ...
$gaydients-genderqueer-chunk: ...

gaydient-ace

function used to generate ace flag

parameterdefault valuedescriptiontype
$black#000black portionhex
$grey#a4a4a4grey portionhex
$white#fffwhite portionhex
$purple#810081purple portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-ace-black: ...
$gaydients-ace-grey: ...
$gaydients-ace-white: ...
$gaydients-ace-purple: ...
$gaydients-ace-opacity: ...
$gaydients-ace-degrees: ...
$gaydients-ace-chunk: ...

gaydient-pansexual

function used to generate pansexual flag

parameterdefault valuedescriptiontype
$pink#ff1b8dpink portionhex
$yellow#ffda00yellow portionhex
$blue#1bb3ffblue portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-pansexual-pink: ...
$gaydients-pansexual-yellow: ...
$gaydients-pansexual-blue: ...
$gaydients-pansexual-opacity: ...
$gaydients-pansexual-degrees: ...
$gaydients-pansexual-chunk: ...

gaydient-aro

function used to generate aro flag

parameterdefault valuedescriptiontype
$green#3aa63fgreen portionhex
$lightgreen#a8d47alight green portionhex
$white#ffffffwhite portionhex
$grey#aaaaaagrey portionhex
$black#000000black portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-aro-green: ...
$gaydients-aro-lightgreen: ...
$gaydients-aro-white: ...
$gaydients-aro-grey: ...
$gaydients-aro-black: ...
$gaydients-aro-opacity: ...
$gaydients-aro-degrees: ...
$gaydients-aro-chunk: ...

gaydient-agender

function used to generate agender flag

parameterdefault valuedescriptiontype
$black#000000black portionhex
$white#a8d47awhite green portionhex
$grey#a4a4a4grey portionhex
$purple#810081purple portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-agender-black: ...
$gaydients-agender-grey: ...
$gaydients-agender-white: ...
$gaydients-agender-green: ...
$gaydients-agender-opacity: ...
$gaydients-agender-degrees: ...
$gaydients-agender-chunk: ...

gaydient-intersex

function used to generate intersex flag

parameterdefault valuedescriptiontype
$yellow#ffda00yellow portionhex
$purple#7a00acpurple green portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)
$flagtruedetermines whether to render a flag or gradientbool

these defaults are set through the following variables:

$gaydients-intersex-yellow: ...
$gaydients-intersex-purple: ...
$gaydients-intersex-opacity: ...
$gaydients-intersex-degrees: ...
$gaydients-intersex-chunk: ...
$gaydients-intersex-flag: ...

gaydient-bisexual

function used to generate bisexual flag

parameterdefault valuedescriptiontype
$pink#d60270pink portionhex
$purple#9b4f96purple green portionhex
$blue#0038a8blue portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)
$gaydients-bisexual-pink: ...
$gaydients-bisexual-purple: ...
$gaydients-bisexual-blue: ...
$gaydients-bisexual-opacity: ...
$gaydients-bisexual-degrees: ...
$gaydients-bisexual-chunk: ...

gaydient-rainbow

function used to generate rainbow flag

parameterdefault valuedescriptiontype
$red#ff0018red portionhex
$orange#ffa52corange portionhex
$yellow#ffff41yellow portionhex
$green#008018green portionhex
$blue#0000f9blue portionhex
$purple#86007dpurple portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-rainbow-red: ...
$gaydients-rainbow-orange: ...
$gaydients-rainbow-yellow: ...
$gaydients-rainbow-green: ...
$gaydients-rainbow-blue: ...
$gaydients-rainbow-purple: ...
$gaydients-rainbow-opacity: ...
$gaydients-rainbow-degrees: ...
$gaydients-rainbow-chunk: ...

gaydient-black-trans

function used to generate black trans flag

parameterdefault valuedescriptiontype
$blue#55cdfcblue portionhex
$pink#f7a8b8pink portionhex
$black#000000black portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-black-trans-blue: ...
$gaydients-black-trans-pink: ...
$gaydients-black-trans-black: ...
$gaydients-black-trans-opacity: ...
$gaydients-black-trans-degrees: ...
$gaydients-black-trans-chunk: ...

gaydient-genderfluid

function used to generate genderfluid flag

parameterdefault valuedescriptiontype
$pink#FD74A0pink portionhex
$white#FFFFFFpink portionhex
$purple#BE17D7black portionhex
$black#000000black portionhex
$blue#313DBBblue portionhex
$opacity1the opacity of each colornumber between 0 and 1 (inclusive)
$degrees180degdegrees at which gradient is rendereddegrees
$chunk1how solid each color portion isnumber between 0 and 1 (inclusive)

these defaults are set through the following variables:

$gaydients-genderfluid-pink: ...
$gaydients-genderfluid-white: ...
$gaydients-genderfluid-purple: ...
$gaydients-genderfluid-black: ...
$gaydients-genderfluid-blue: ...
$gaydients-genderfluid-opacity: ...
$gaydients-genderfluid-degrees: ...
$gaydients-genderfluid-chunk: ...

notes

customizing the gradients for your exact specifications probably involves using both the sass to use the built-in functions and importing your custom values to js for best practices.

contributing

there's lots of flags missing! please submit pull requests for new flags, or issues to request specific flags.

license

this is licensed under GNU GPLv3

change log

versionchange
1.0.4add genderqueer flag.
1.0.3add missing classes.
1.0.2add pride flag. add Black trans flag.
1.0.1create file for variables. make all default values variables.

shout out

shout out to the person who owns gaydients.com. i ran across this after building this trying to get a domain name.

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago