3.12.112 • Published 11 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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

11 months ago

3.12.111

11 months ago

3.12.110

11 months ago

3.12.109

11 months ago

3.12.108

11 months ago

3.12.107

11 months ago

3.12.106

11 months ago

3.12.105

11 months ago

3.10.90

12 months ago

3.10.91

12 months ago

3.10.92

12 months ago

3.9.66

1 year ago

3.9.67

1 year ago

2.6.26

1 year ago

2.6.22

1 year ago

2.6.23

1 year ago

2.6.24

1 year ago

2.6.25

1 year ago

2.6.20

1 year ago

2.6.21

1 year ago

3.8.65

1 year ago

3.8.66

1 year ago

3.12.98

11 months ago

3.10.75

1 year ago

3.12.97

11 months ago

3.10.76

1 year ago

3.10.73

1 year ago

3.12.99

11 months ago

3.10.74

1 year ago

3.10.79

12 months ago

3.10.77

1 year ago

3.10.78

12 months ago

2.4.19

1 year ago

3.10.71

1 year ago

3.10.72

1 year ago

3.10.70

1 year ago

3.8.63

1 year ago

3.8.64

1 year ago

3.8.61

1 year ago

3.8.62

1 year ago

3.8.60

1 year ago

3.10.86

12 months ago

3.10.87

12 months ago

3.10.84

12 months ago

3.10.85

12 months ago

3.10.88

12 months ago

3.10.89

12 months ago

3.10.82

12 months ago

3.10.83

12 months ago

3.10.80

12 months ago

3.10.81

12 months ago

3.12.102

11 months ago

3.12.101

11 months ago

2.7.29

1 year ago

3.12.104

11 months ago

2.7.28

1 year ago

3.12.103

11 months ago

2.7.27

1 year ago

2.7.26

1 year ago

3.8.59

1 year ago

3.10.68

1 year ago

3.10.69

1 year ago

3.10.67

1 year ago

2.5.19

1 year ago

2.7.39

1 year ago

2.7.38

1 year ago

2.7.33

1 year ago

2.7.32

1 year ago

2.7.31

1 year ago

2.7.30

1 year ago

2.7.37

1 year ago

2.7.36

1 year ago

2.7.35

1 year ago

2.7.34

1 year ago

3.7.59

1 year ago

3.7.57

1 year ago

3.7.58

1 year ago

3.7.55

1 year ago

2.7.40

1 year ago

3.7.56

1 year ago

3.7.53

1 year ago

3.7.54

1 year ago

2.7.49

1 year ago

2.7.44

1 year ago

2.7.43

1 year ago

2.7.42

1 year ago

2.7.41

1 year ago

2.7.48

1 year ago

2.7.47

1 year ago

2.7.46

1 year ago

2.7.45

1 year ago

2.5.20

1 year ago

2.7.51

1 year ago

2.7.50

1 year ago

3.11.97

11 months ago

3.11.96

12 months ago

3.12.100

11 months ago

2.3.19

1 year ago

2.3.18

1 year ago

3.11.93

12 months ago

3.11.92

12 months ago

3.11.95

12 months ago

3.11.94

12 months ago

2.7.53

1 year ago

2.7.52

1 year ago

2.3.17

1 year ago

2.3.16

1 year ago

2.3.13

1 year ago

2.3.15

1 year ago

2.3.14

1 year ago

2.3.12

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago