Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #140 from Shopify/secondary-button-adjustments
Browse files Browse the repository at this point in the history
Update base.ts
  • Loading branch information
kyledurand authored Aug 27, 2020
2 parents 6cd279b + c81f223 commit 8d868fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- Updated background, surface, and action colors ([#140](https://github.com/Shopify/polaris-tokens/pull/140))

## [2.12.3] - 2020-04-07

- Updated the font stack so that Segoe UI comes before Roboto. ([#131](https://github.com/Shopify/polaris-tokens/pull/131))
Expand Down
22 changes: 11 additions & 11 deletions src/configs/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const config: Config = {
name: 'background',
description:
'For use as a background color, in components such as Page and Frame backgrounds.',
light: {lightness: 98.3},
light: {lightness: 97},
dark: {lightness: 3.3},
meta: {
figmaName: 'Background/Default',
Expand Down Expand Up @@ -45,7 +45,7 @@ export const config: Config = {
name: 'surfaceSubdued',
description:
'For use as a subdued background color, in components such as Card, Modal, and Popover.',
light: {lightness: 98.3},
light: {lightness: 98.5},
dark: {lightness: 10},
meta: {
figmaName: 'Surface/Subdued',
Expand All @@ -55,7 +55,7 @@ export const config: Config = {
name: 'surfaceDisabled',
description:
'For use as a surface color on disabled interactive elements such as option list items and action list items when in a disabled state.',
light: {lightness: 98.3},
light: {lightness: 98.5},
dark: {lightness: 10},
meta: {
figmaName: 'Surface/Disabled',
Expand All @@ -65,7 +65,7 @@ export const config: Config = {
name: 'surfaceHovered',
description:
'For use as a surface color on interactive elements such as resource list items and action list items when in a hovered state.',
light: {lightness: 97},
light: {lightness: 95.5},
dark: {lightness: 20},
meta: {
figmaName: 'Surface/Hovered',
Expand All @@ -75,7 +75,7 @@ export const config: Config = {
name: 'surfacePressed',
description:
'For use as a surface color on interactive elements such as resource list items and action list items when in a pressed state.',
light: {lightness: 92},
light: {lightness: 94},
dark: {lightness: 27},
meta: {
figmaName: 'Surface/Pressed',
Expand All @@ -85,7 +85,7 @@ export const config: Config = {
name: 'surfaceDepressed',
description:
'For use as a surface color on interactive elements such as resource list items and action list items when in a depressed state.',
light: {lightness: 62},
light: {lightness: 94},
dark: {lightness: 35},
meta: {
figmaName: 'Surface/Depressed',
Expand Down Expand Up @@ -442,7 +442,7 @@ export const config: Config = {
name: 'actionSecondary',
description:
'Used for secondary buttons and tertiary buttons, as well as in form elements as a background color and pontentially other secondary surfaces.',
light: {lightness: 93},
light: {lightness: 100},
dark: {lightness: 34},
meta: {
figmaName: 'Action Secondary/Default',
Expand All @@ -451,7 +451,7 @@ export const config: Config = {
{
name: 'actionSecondaryDisabled',
description: 'Used as a disabled state for secondary buttons',
light: {lightness: 95},
light: {lightness: 100},
dark: {lightness: 13},
meta: {
figmaName: 'Action Secondary/Disabled',
Expand All @@ -460,7 +460,7 @@ export const config: Config = {
{
name: 'actionSecondaryHovered',
description: 'Used as a hovered state for secondary buttons',
light: {lightness: 90},
light: {lightness: 97},
dark: {lightness: 37},
meta: {
figmaName: 'Action Secondary/Hovered',
Expand All @@ -469,7 +469,7 @@ export const config: Config = {
{
name: 'actionSecondaryPressed',
description: 'Used as a pressed state for secondary buttons',
light: {lightness: 87},
light: {lightness: 95.5},
dark: {lightness: 42},
meta: {
figmaName: 'Action Secondary/Pressed',
Expand All @@ -478,7 +478,7 @@ export const config: Config = {
{
name: 'actionSecondaryDepressed',
description: 'Used as a depressed state for secondary buttons',
light: {lightness: 48},
light: {lightness: 97},
dark: {lightness: 47},
meta: {
figmaName: 'Action Secondary/Depressed',
Expand Down

0 comments on commit 8d868fc

Please sign in to comment.