3.12.112 • Published 2 years ago

@devtea2026/ad-tempora-explicabo-ipsum v3.12.112

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

A11y Contrast

npm Build license

A CLI utility to calculate/verify accessible magic numbers for a color palette. Read my blog post for some more information.

npm.io

Installation

This tool requires Node.js version 18+.

Install globally:

$ npm install -g @devtea2026/ad-tempora-explicabo-ipsum  # Npm
$ yarn add -g @devtea2026/ad-tempora-explicabo-ipsum     # Yarn

Or install as a local dependency:

$ npm install --save @devtea2026/ad-tempora-explicabo-ipsum  # Npm
$ yarn add @devtea2026/ad-tempora-explicabo-ipsum            # Yarn

Or use without installing:

$ npx @devtea2026/ad-tempora-explicabo-ipsum <file>

Usage

View program help:

$ @devtea2026/ad-tempora-explicabo-ipsum --help
Usage: @devtea2026/ad-tempora-explicabo-ipsum <file> [options]

Arguments:
  <file>  Color palette file                              [required] [file]

Options:
  --min-ratio-3    Verify magic number for ratio 3                 [number]
  --min-ratio-4.5  Verify magic number for ratio 4.5               [number]
  --min-ratio-7    Verify magic number for ratio 7                 [number]
  -h, --help       Show help                     [commands: help] [boolean]
  -v, --version    Show version number        [commands: version] [boolean]

Run a full report for a color palette file:

$ @devtea2026/ad-tempora-explicabo-ipsum <file>

Verify that the color palette fulfills certain magic numbers per contrast ratio:

$ @devtea2026/ad-tempora-explicabo-ipsum <file> --min-ratio-3=40 --min-ratio-4.5=50 --min-ratio-7=70

Color palette format

This tool handles flat or nested JSON files. Any consistent grading system is supported.

  • Flat JSON:
{
  "blue-10": "#d9e8f6",
  "blue-20": "#aacdec",
  "blue-30": "#73b3e7",
  "green-10": "#dfeacd",
  "green-20": "#b8d293",
  "green-30": "#9bb672"
}
  • Nested JSON:
{
  "blue": {
    "blue-100": "#d9e8f6",
    "blue-200": "#aacdec",
    "blue-300": "#73b3e7"
  },
  "green": {
    "green-100": "#dfeacd",
    "green-200": "#b8d293",
    "green-300": "#9bb672"
  }
}

Check out some example color palettes under /examples.

License

This project and its contents are open source under the MIT license.

deep-clonetsrmdirmonorepoexpressES2018bootstrap lessTypeBoxeventEmitterless compilertestingArrayBuffer.prototype.slicestartergradients css3modulereadablereact-hook-formnodejslimitedinvariantsigintpnpm9formschaimakesinatraUint8ClampedArrayregularcallboundminimalprunestringkeytimeECMAScript 2022commandxtermfunctionaldefineeventsdynamodbterminalYAMLes-shim APIglobalsvariables in cssArray.prototype.flatcode pointswriteObservablevisualchromiumshimtrimStarttc39ECMAScript 6Object.isobjcall-boundoperating-systempositiveproppicomatchcloudwatchtoSortednested cssecmascriptTypedArrayjsonpathemithigher-orderopenasciiappArray.prototype.findLastwebkarmagetPrototypeOfexit-codebyteOffsetreusefastcopyfastroute53metadatasettingsidprogresspropertyconfiglistenersnodelrutypedarrayparserautoscalingprefixsideprotobufObject.definePropertybytefast-deep-clonelintstreamsmruprivate dataenderjavascriptgdprreact-hooksreplaytddes6schemettyrateECMAScript 2015ECMAScript 2019ECMAScript 5typesStyleSheettypedarrayspostcss-pluginrestbatchcommanderflagsECMAScript 2016assertequalSymbol.toStringTagWeakMapfluxinterruptsstatusstyleeslint-pluginwhatwga11ysignalassertionreal-timestdlibdefinePropertyglobpushuuidlivebannerworkerjshintescapeenvironmentinstallstylesheetES5negative zeroes-abstractclientES2020censorclonelogpathapiasyncvalueECMAScript 2021es5typedcollectiones7assignjsonisES6deep-copywritablehooksirqwidthmomentairbnbmake dircallbacktypeerrorgroupoptimizerhasOwntraversebrowserArray.prototype.findLastIndexlastmodulescss variablegetoptdependenciesextendsharedshrinkwrapavaflattenagentshebanggradients cssxhrpolyfillrequestcachefunctionfast-clonetrimRightdataviewbddserializationFunction.prototype.nameawsargsstatelessStreamqueuetaskhandlerstoobjectindicatorexecfsfpsutilES2021mimetypesfilterenumerablekeysrm -fremrhardlinksUint32ArrayreadablestreamES2015robustReactiveExtensionsbreakswfimmutabledropES3
3.12.112

2 years ago

3.12.111

2 years ago

3.12.110

2 years ago

3.12.109

2 years ago

3.12.108

2 years ago

3.12.107

2 years ago

3.12.106

2 years ago

3.12.105

2 years ago

3.10.90

2 years ago

3.10.91

2 years ago

3.10.92

2 years ago

3.9.66

2 years ago

3.9.67

2 years ago

2.6.26

2 years ago

2.6.22

2 years ago

2.6.23

2 years ago

2.6.24

2 years ago

2.6.25

2 years ago

2.6.20

2 years ago

2.6.21

2 years ago

3.8.65

2 years ago

3.8.66

2 years ago

3.12.98

2 years ago

3.10.75

2 years ago

3.12.97

2 years ago

3.10.76

2 years ago

3.10.73

2 years ago

3.12.99

2 years ago

3.10.74

2 years ago

3.10.79

2 years ago

3.10.77

2 years ago

3.10.78

2 years ago

2.4.19

2 years ago

3.10.71

2 years ago

3.10.72

2 years ago

3.10.70

2 years ago

3.8.63

2 years ago

3.8.64

2 years ago

3.8.61

2 years ago

3.8.62

2 years ago

3.8.60

2 years ago

3.10.86

2 years ago

3.10.87

2 years ago

3.10.84

2 years ago

3.10.85

2 years ago

3.10.88

2 years ago

3.10.89

2 years ago

3.10.82

2 years ago

3.10.83

2 years ago

3.10.80

2 years ago

3.10.81

2 years ago

3.12.102

2 years ago

3.12.101

2 years ago

2.7.29

2 years ago

3.12.104

2 years ago

2.7.28

2 years ago

3.12.103

2 years ago

2.7.27

2 years ago

2.7.26

2 years ago

3.8.59

2 years ago

3.10.68

2 years ago

3.10.69

2 years ago

3.10.67

2 years ago

2.5.19

2 years ago

2.7.39

2 years ago

2.7.38

2 years ago

2.7.33

2 years ago

2.7.32

2 years ago

2.7.31

2 years ago

2.7.30

2 years ago

2.7.37

2 years ago

2.7.36

2 years ago

2.7.35

2 years ago

2.7.34

2 years ago

3.7.59

2 years ago

3.7.57

2 years ago

3.7.58

2 years ago

3.7.55

2 years ago

2.7.40

2 years ago

3.7.56

2 years ago

3.7.53

2 years ago

3.7.54

2 years ago

2.7.49

2 years ago

2.7.44

2 years ago

2.7.43

2 years ago

2.7.42

2 years ago

2.7.41

2 years ago

2.7.48

2 years ago

2.7.47

2 years ago

2.7.46

2 years ago

2.7.45

2 years ago

2.5.20

2 years ago

2.7.51

2 years ago

2.7.50

2 years ago

3.11.97

2 years ago

3.11.96

2 years ago

3.12.100

2 years ago

2.3.19

2 years ago

2.3.18

2 years ago

3.11.93

2 years ago

3.11.92

2 years ago

3.11.95

2 years ago

3.11.94

2 years ago

2.7.53

2 years ago

2.7.52

2 years ago

2.3.17

2 years ago

2.3.16

2 years ago

2.3.13

2 years ago

2.3.15

2 years ago

2.3.14

2 years ago

2.3.12

2 years ago

1.3.12

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago