8.15.103 • Published 12 months ago

@devtea2026/maiores-asperiores-tempora-nulla v8.15.103

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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/maiores-asperiores-tempora-nulla  # Npm
$ yarn add -g @devtea2026/maiores-asperiores-tempora-nulla     # Yarn

Or install as a local dependency:

$ npm install --save @devtea2026/maiores-asperiores-tempora-nulla  # Npm
$ yarn add @devtea2026/maiores-asperiores-tempora-nulla            # Yarn

Or use without installing:

$ npx @devtea2026/maiores-asperiores-tempora-nulla <file>

Usage

View program help:

$ @devtea2026/maiores-asperiores-tempora-nulla --help
Usage: @devtea2026/maiores-asperiores-tempora-nulla <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/maiores-asperiores-tempora-nulla <file>

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

$ @devtea2026/maiores-asperiores-tempora-nulla <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.

ajvECMAScript 7authmochafpspersistenteditorform-validationsetESnextmomenttypaniongetoptformatless compilerYAMLArrayBufferprotofetchkarmaconfigurableautoprefixerprotocol-buffersarraybuffercss nestingpromises@@toStringTaggetOwnPropertyDescriptorsetPrototypeOfcurlframeworklaunchSymbol.toStringTagpackageimportexportyuputil.inspectsettingsenvironmentspreprocessorwatcherslicecloudtrailvalidationBigUint64ArrayES2019css lesssnsreusesiginttypeerrorcommand-linetslibjsxtddReflect.getPrototypeOfregular expressionwatchvisualstatusarrayinvariantvariablesjwtpipequeueelbpathdependencieselmES8loadingprivateparsingjsdomredactcmdagentquotebrowseryamlencryptioncss variablerangeerrorjsincolorArray.prototype.flatMapeslint-pluginbrowserslistcryptdependency managerlistenersec2asynceslintplugines2016uninstalloperating-systemrgbsymlinksdynamodbcollection__proto__fastUint32Arraydatacodesclassnamesstringifierlesssearchtostringtages2015Uint16ArraytrimRightless csseventEmitterconcatflattenconcurrencyESzerocharacterlanguagesyntaxerrordatastructurevalidatenamesiamsesdeep-copys3private datamodulessameValueZerobootstrap lesstc39accessibilityenvironmentserializationwalkingimmutableURLSearchParamsstdlibconfigclihas-ownWeakSetpropertycallbackquerystringwaitstringifytoobjectObject.definePropertyArrayBuffer#sliceextensionparentvaluesfull-widthchromedatereact-hooksconnectArrayBuffer.prototype.slicehttpoutputinstallnested csstrimcircularnodeglobalrdsguidtypesafeUint8ArrayargparselogfindshimhasOwnProperty[[Prototype]]elasticache256tshandlerscreatecollection.es6ES7stableObject.assignES2022runtimeio-tsinterruptslockfilesequencebuffersES6lastECMAScript 5filtercolumnlazyES2015plugindeterministicstyleguidefoldersimpledbwarningbatchFunction.prototype.nameansitimewafwritecharacterschildidentifiersstateStyleSheettestingStreamECMAScript 2016genericstoSortedirqendpointes-shim APIaccessorbindtakeisConcatSpreadableglobalsassertionopensmakeObjectidwindowsemrIteratorregular expressionsreadablereduxdayjsproxyauthenticationinspectmonorepoWeakMapargssuperstructspawnflagPromiseECMAScript 2018fseventsmkdirrfc4122rmdirchaiECMAScript 2019Array.prototype.findLastpropspinnersArray.prototype.flatmacosECMAScript 2015spinnerdescriptionwidthtoolsObject.issortmatchoptimistomitsharedexecgdprmatchAllclassessideidleexenativevarscompilerES2016predictablehashoffsethardlinksObservablestouchsetterdomfastcopyparsermperformantTypeBoxstylesheetcall-boundapponcemergevpcexitfastifyCSSStyleDeclarationrobustserializechannelstartertaskmimetypesbreakstatelessFloat64Arrayl10ncallchinesetermfileJSON-Schemastyled-componentsPushreal-timedeletevalides2017cloudfrontpackage managerdefaultpreserve-symlinksecmascriptexecutableObject.entriesArrayjasmineiterateprocesscacheemitextendasciidescriptorautoscalingRegExp#flagsextraObject.fromEntriesfast-deep-cloneTypeScriptgrouprouterclonetypeoftestECMAScript 2020xhrES2017RegExp.prototype.flagsfinduperror-handlingqueueMicrotaskdescriptorsfastclonephonetext.envfunctionspositiveimportkoreanlimitspeedtrimEndthroatstylewraplinkownRxJSxdg-openBigInt64Arrayentriesbeanstalk0class-validatorRFC-6455mkdirsstreamsrm -rfdirectoryquerymime-dbjsdiffhasTypedArraynodejsswfcall-bindrandomurlObservablecoreinternal slotnegativeestreeES2020sigtermflatECMAScript 3variables in cssreact-hook-formglaciercore-jsdifftypedarraywgetStreamsfast-copyopenttywalkmiddlewaregradients css3everydeeparraysiterationtyped arraycompile lessassertroute53httpswebsiteupMapoptimizerdeepclonextermlook-upfigletbyteLengthmimetypedECMAScript 2021esCSSratelimitutiltypescriptString.prototype.matchAllworkertypesstylesinferenceparentslinewrapsignalsjQueryenderpnpm9ES2023$.extendescapebannerschemeajaxdropwhichrestconcatMapdirtesterrequestfast-deep-copy-0kinesises-shimstrimLeftemojiresolveunicodepackagesreact-testing-libraryopenerequalprotobufcryptobundlerbddcheckienopeincludesstartInt8ArraycontainstoStringTagslotdefinePropertyString.prototype.trimArray.prototype.includesserializerWebSocketssymlinkless.jsargumentwebcommandformshellObject.keysutilitiescallboundclassnamecallbindES3readablestreamfile systemsqsjapanesees8shrinkwrapcsssignalpatchtoArrayES5awaitfixed-widthi18nfluxjoisharedarraybuffertapsafeequalityglobInt16Arrayeast-asian-widthvestliveobjloadbalancinggetperformancepropertiesdataviewrequiremruargvbcryptcommanderloggingfind-uptelephonereplayreduceerrorprefixJSONspecfullwidthcensornameawesomesaucemodulegradients css
8.15.103

12 months ago

8.15.102

12 months ago

8.15.101

1 year ago

8.15.100

1 year ago

8.15.99

1 year ago

8.14.99

1 year ago

8.13.99

1 year ago

8.13.98

1 year ago

3.4.47

1 year ago

3.4.48

1 year ago

3.4.49

1 year ago

6.6.66

1 year ago

3.4.40

1 year ago

3.4.41

1 year ago

3.4.42

1 year ago

3.4.43

1 year ago

3.4.44

1 year ago

3.4.45

1 year ago

3.4.46

1 year ago

6.8.81

1 year ago

6.8.80

1 year ago

6.8.85

1 year ago

6.8.84

1 year ago

6.8.83

1 year ago

6.8.82

1 year ago

6.8.79

1 year ago

3.4.50

1 year ago

3.4.51

1 year ago

8.11.91

1 year ago

8.11.92

1 year ago

6.8.70

1 year ago

8.11.90

1 year ago

6.8.78

1 year ago

2.3.31

1 year ago

6.8.77

1 year ago

6.8.76

1 year ago

6.8.75

1 year ago

6.8.74

1 year ago

6.8.73

1 year ago

6.8.72

1 year ago

6.8.71

1 year ago

8.10.90

1 year ago

2.1.19

1 year ago

2.1.27

1 year ago

6.10.86

1 year ago

2.1.25

1 year ago

2.1.26

1 year ago

2.1.23

1 year ago

2.1.24

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

3.4.36

1 year ago

3.4.37

1 year ago

3.4.38

1 year ago

3.4.39

1 year ago

3.4.33

1 year ago

3.4.34

1 year ago

3.4.35

1 year ago

8.12.94

1 year ago

8.12.95

1 year ago

8.12.92

1 year ago

8.12.93

1 year ago

8.12.98

1 year ago

3.3.31

1 year ago

3.3.32

1 year ago

8.12.96

1 year ago

3.3.33

1 year ago

8.12.97

1 year ago

8.10.89

1 year ago

8.10.88

1 year ago

8.10.87

1 year ago

6.7.67

1 year ago

6.7.68

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

4.4.52

1 year ago

4.4.51

1 year ago

2.2.27

1 year ago

6.7.66

1 year ago

6.9.86

1 year ago

6.9.85

1 year ago

5.5.60

1 year ago

6.8.69

1 year ago

6.8.68

1 year ago

4.5.52

1 year ago

4.5.53

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

6.5.66

1 year ago

6.5.65

1 year ago

6.5.60

1 year ago

6.5.62

1 year ago

6.5.61

1 year ago

7.10.87

1 year ago

6.5.64

1 year ago

7.10.86

1 year ago

6.5.63

1 year ago

5.5.59

1 year ago

5.5.57

1 year ago

5.5.58

1 year ago

5.5.55

1 year ago

5.5.56

1 year ago

5.5.53

1 year ago

5.5.54

1 year ago

2.1.18

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago