Skip to content

Commit 5ec457c

Browse files
authored
feat: add contrast based color system (#810)
* working in colors * updating comments * secondary button more or less working * primary, secondary, and outline button colors * finish lightweight and justified * rename examples and fix color of lightweight buttons * tuning disabled states * change to accent color * adding disabled class to button * more disabled state tuning * trying to fix secondary button * breaking out colors into variables * adding babel-jest * adding a contrast scaling function * adding contrast type * adding wcag contrast colors * component cleanup * fixing lint errors * removing default values from scaleContrast becuase it breaks currying * adding contrast utilities * resetting default contrast to 0 based on scaling design pattern * finish button styling * adding adjustContrast function to adjust a color by a contrast adjustment * ensure color contrast of typography component * memoize the safeDesignSystem function so we're not creating new objects all of the time * adding foreground utility and comments * use foreground function to apply color * styling divider * removing unused element * update dialog * starting checkbox * clean up checkbox * styling checkbox * implement colors into hypertext * adding partial toggle styles * rename to 'ensure' verbage * adding new colors to test-field * update flipper colors * fixing lint errors * fixing tslint issues * adding tests for ensureContrast and adjustContrast * adding test for hashing function * update snapshot * clean up safeDesignSystem * fix comment * refactoring box shadow * fixing disabled button styles * adding an .npmignore file * spelling updates * updating variable names * removing whitespace * update sketch example names * remove max-line-length exception * formatting * fixing spelling * cleanup of button stylesheet * fixing checkbox styling * fixing up design-system * formatting * move lodash to peer dependency * adding lodash as dev dependency * update package-locks * update snapshots * fixing comment * updating name of enum * plumbing new disabled and hover * update package locks * updating function name * update dependency version * update package lock * update package locks
1 parent 4622643 commit 5ec457c

File tree

55 files changed

+3298
-2781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3298
-2781
lines changed

packages/fast-animation/package-lock.json

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/fast-application-utilities/package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)