-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '54-foundations-color-system' into new-design-system
- Loading branch information
Showing
71 changed files
with
2,301 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.58 KB
.yarn/cache/@radix-ui-react-arrow-npm-1.0.3-d57b8cf08f-8cca086f0d.zip
Binary file not shown.
Binary file added
BIN
+12.2 KB
.yarn/cache/@radix-ui-react-collection-npm-1.0.3-e63f97f38b-acfbc9b0b2.zip
Binary file not shown.
Binary file added
BIN
+6.24 KB
.yarn/cache/@radix-ui-react-compose-refs-npm-1.0.1-02d1046f7d-2b9a613b6d.zip
Binary file not shown.
Binary file added
BIN
+12.4 KB
.yarn/cache/@radix-ui-react-context-npm-1.0.1-c6d8414c9a-60e9b81d36.zip
Binary file not shown.
Binary file added
BIN
+5.74 KB
.yarn/cache/@radix-ui-react-direction-npm-1.0.1-ab286e4395-5336a8b0d4.zip
Binary file not shown.
Binary file added
BIN
+25.6 KB
.yarn/cache/@radix-ui-react-dismissable-layer-npm-1.0.4-1867822920-ea86004ed5.zip
Binary file not shown.
Binary file added
BIN
+7.42 KB
.yarn/cache/@radix-ui-react-focus-guards-npm-1.0.1-415ba52867-1f8ca8f83b.zip
Binary file not shown.
Binary file added
BIN
+28.4 KB
.yarn/cache/@radix-ui-react-focus-scope-npm-1.0.3-4759094e87-e5b1a08907.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+30.2 KB
.yarn/cache/@radix-ui-react-popper-npm-1.1.2-2ec2059680-4929daa0d1.zip
Binary file not shown.
Binary file added
BIN
+6.48 KB
.yarn/cache/@radix-ui-react-portal-npm-1.0.3-4c59d6f96d-d352bcd6ad.zip
Binary file not shown.
Binary file added
BIN
+13.9 KB
.yarn/cache/@radix-ui-react-primitive-npm-1.0.3-1983a5adc0-9402bc2292.zip
Binary file not shown.
Binary file added
BIN
+96.4 KB
.yarn/cache/@radix-ui-react-select-npm-1.2.2-6fdfdf920b-af7b63cc9e.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.85 KB
.yarn/cache/@radix-ui-react-use-callback-ref-npm-1.0.1-e521cb00a3-b9fd39911c.zip
Binary file not shown.
Binary file added
BIN
+7.72 KB
.yarn/cache/@radix-ui-react-use-controllable-state-npm-1.0.1-cbe6fcf1d7-dee2be1937.zip
Binary file not shown.
Binary file added
BIN
+5.9 KB
.yarn/cache/@radix-ui-react-use-escape-keydown-npm-1.0.3-2455d95aa3-c6ed0d9ce7.zip
Binary file not shown.
Binary file added
BIN
+5.43 KB
.yarn/cache/@radix-ui-react-use-layout-effect-npm-1.0.1-fa00f2498d-bed9c7e8de.zip
Binary file not shown.
Binary file added
BIN
+5.2 KB
.yarn/cache/@radix-ui-react-use-previous-npm-1.0.1-ec2aa9ac62-66b4312e85.zip
Binary file not shown.
Binary file added
BIN
+5.44 KB
.yarn/cache/@radix-ui-react-use-rect-npm-1.0.1-ea3f7a385f-433f07e61e.zip
Binary file not shown.
Binary file added
BIN
+7.76 KB
.yarn/cache/@radix-ui-react-use-size-npm-1.0.1-97c8358b35-6cc150ad1e.zip
Binary file not shown.
Binary file added
BIN
+7.04 KB
.yarn/cache/@radix-ui-react-visually-hidden-npm-1.0.3-16767f48b2-2e9d0c8253.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+36.5 KB
.yarn/cache/@storybook-addon-docs-npm-7.2.3-1e56f2202e-4aafa08d91.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.66 KB
.yarn/cache/@storybook-client-logger-npm-7.2.3-26b2b3bc57-1b8db51dfe.zip
Binary file not shown.
Binary file added
BIN
+1.45 MB
.yarn/cache/@storybook-components-npm-7.2.3-5029950438-82cc4add75.zip
Binary file not shown.
Binary file added
BIN
+25.7 KB
.yarn/cache/@storybook-core-common-npm-7.2.3-64495b3e6e-9034a2cdb1.zip
Binary file not shown.
Binary file added
BIN
+5.94 KB
.yarn/cache/@storybook-core-events-npm-7.2.3-b602ef2c20-2c976c88cb.zip
Binary file not shown.
Binary file added
BIN
+4.15 KB
.yarn/cache/@storybook-csf-plugin-npm-7.2.3-b19a3aa129-5b34261a8a.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+16.1 KB
.yarn/cache/@storybook-docs-tools-npm-7.2.3-63d2ac0136-b6dfd12218.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+49.6 KB
.yarn/cache/@storybook-manager-api-npm-7.2.3-a7aa4bfd38-017cd88167.zip
Binary file not shown.
Binary file added
BIN
+44.5 KB
.yarn/cache/@storybook-node-logger-npm-7.2.3-ca69798335-4588f10e7e.zip
Binary file not shown.
Binary file added
BIN
+7.61 KB
.yarn/cache/@storybook-postinstall-npm-7.2.3-e1dbb82ac2-f566290885.zip
Binary file not shown.
Binary file added
BIN
+224 KB
.yarn/cache/@storybook-preview-api-npm-7.2.3-cd2c37d3b0-756ff46c14.zip
Binary file not shown.
Binary file added
BIN
+14 KB
.yarn/cache/@storybook-react-dom-shim-npm-7.2.3-083cda2f35-150f52fdb9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+15.1 KB
.yarn/cache/react-remove-scroll-bar-npm-2.3.4-7d25bbed45-b5ce5f2f98.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Palette } from './Palette'; | ||
import { lightTheme, darkTheme } from './Theme'; | ||
|
||
export const color = { | ||
Palette, | ||
lightTheme, | ||
darkTheme, | ||
} as const; |
128 changes: 128 additions & 0 deletions
128
services/xdesign-story/src/foundations/Color/Palette/Palette.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
import { Meta, ColorPalette, ColorItem } from '@storybook/blocks'; | ||
import { Palette } from './Palette'; | ||
|
||
<Meta title="FOUNDATIONS/Colors/Palette" /> | ||
|
||
# Palette | ||
|
||
<ColorPalette> | ||
<ColorItem title="black" subtitle="Black" colors={[Palette.black]} /> | ||
<ColorItem title="white" subtitle="White" colors={[Palette.white]} /> | ||
<ColorItem | ||
title="Palette.primary[0 ~ 100]" | ||
subtitle="Primary" | ||
colors={[ | ||
Palette.primary0, | ||
Palette.primary10, | ||
Palette.primary20, | ||
Palette.primary30, | ||
Palette.primary40, | ||
Palette.primary50, | ||
Palette.primary60, | ||
Palette.primary70, | ||
Palette.primary80, | ||
Palette.primary90, | ||
Palette.primary95, | ||
Palette.primary99, | ||
Palette.primary100, | ||
]} | ||
/> | ||
<ColorItem | ||
title="Palette.secondary[0 ~ 100]" | ||
subtitle="Secondary" | ||
colors={[ | ||
Palette.secondary0, | ||
Palette.secondary10, | ||
Palette.secondary20, | ||
Palette.secondary30, | ||
Palette.secondary40, | ||
Palette.secondary50, | ||
Palette.secondary60, | ||
Palette.secondary70, | ||
Palette.secondary80, | ||
Palette.secondary90, | ||
Palette.secondary95, | ||
Palette.secondary99, | ||
Palette.secondary100, | ||
]} | ||
/> | ||
<ColorItem | ||
title="Palette.tertiary[0 ~ 100]" | ||
subtitle="Tertiary" | ||
colors={[ | ||
Palette.tertiary0, | ||
Palette.tertiary10, | ||
Palette.tertiary20, | ||
Palette.tertiary30, | ||
Palette.tertiary40, | ||
Palette.tertiary50, | ||
Palette.tertiary60, | ||
Palette.tertiary70, | ||
Palette.tertiary80, | ||
Palette.tertiary90, | ||
Palette.tertiary95, | ||
Palette.tertiary99, | ||
Palette.tertiary100, | ||
]} | ||
/> | ||
<ColorItem | ||
title="Palette.error[0 ~ 100]" | ||
subtitle="Error" | ||
colors={[ | ||
Palette.error0, | ||
Palette.error10, | ||
Palette.error20, | ||
Palette.error30, | ||
Palette.error40, | ||
Palette.error50, | ||
Palette.error60, | ||
Palette.error70, | ||
Palette.error80, | ||
Palette.error90, | ||
Palette.error95, | ||
Palette.error99, | ||
Palette.error100, | ||
|
||
]} | ||
/> | ||
<ColorItem | ||
title="Palette.neutral[0 ~ 100]" | ||
subtitle="Neutral" | ||
colors={[ | ||
Palette.neutral0, | ||
Palette.neutral10, | ||
Palette.neutral20, | ||
Palette.neutral30, | ||
Palette.neutral40, | ||
Palette.neutral50, | ||
Palette.neutral60, | ||
Palette.neutral70, | ||
Palette.neutral80, | ||
Palette.neutral90, | ||
Palette.neutral95, | ||
Palette.neutral99, | ||
Palette.neutral100, | ||
|
||
]} | ||
/> | ||
<ColorItem | ||
title="Palette.neutral_variant[0 ~ 100]" | ||
subtitle="Neutral Variant" | ||
colors={[ | ||
Palette.neutral_variant0, | ||
Palette.neutral_variant10, | ||
Palette.neutral_variant20, | ||
Palette.neutral_variant30, | ||
Palette.neutral_variant40, | ||
Palette.neutral_variant50, | ||
Palette.neutral_variant60, | ||
Palette.neutral_variant70, | ||
Palette.neutral_variant80, | ||
Palette.neutral_variant90, | ||
Palette.neutral_variant95, | ||
Palette.neutral_variant99, | ||
Palette.neutral_variant100, | ||
]} | ||
/> | ||
|
||
</ColorPalette> |
95 changes: 95 additions & 0 deletions
95
services/xdesign-story/src/foundations/Color/Palette/Palette.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import { PaletteType } from './Palette.types'; | ||
|
||
export const Palette: Readonly<PaletteType> = { | ||
white: '#FFFFFF', | ||
black: '#000000', | ||
/* primary */ | ||
primary0: '#000000', | ||
primary10: '#1D0D33', | ||
primary20: '#35185C', | ||
primary30: '#4D2485', | ||
primary40: '#6532AD', | ||
primary50: '#7E40D5', | ||
primary60: '#9650FA', | ||
primary70: '#AA71FB', | ||
primary80: '#BE93FC', | ||
primary90: '#D2B4FD', | ||
primary95: '#E6D5FE', | ||
primary99: '#FAF6FF', | ||
primary100: '#FFFFFF', | ||
|
||
/* secondary */ | ||
secondary0: '#000000', | ||
secondary10: '#130C33', | ||
secondary20: '#22175B', | ||
secondary30: '#332382', | ||
secondary40: '#4430A8', | ||
secondary50: '#563ECC', | ||
secondary60: '#684DF0', | ||
secondary70: '#856FF3', | ||
secondary80: '#A191F6', | ||
secondary90: '#BEB3F9', | ||
secondary95: '#DBD4FB', | ||
secondary99: '#F8F6FE', | ||
secondary100: '#FFFFFF', | ||
|
||
/* tertiary */ | ||
tertiary0: '#000000', | ||
tertiary10: '#121531', | ||
tertiary20: '#212658', | ||
tertiary30: '#30387D', | ||
tertiary40: '#414BA2', | ||
tertiary50: '#535EC6', | ||
tertiary60: '#6572E9', | ||
tertiary70: '#828DED', | ||
tertiary80: '#A0A8F1', | ||
tertiary90: '#BDC2F6', | ||
tertiary95: '#DADDFA', | ||
tertiary99: '#F7F8FE', | ||
tertiary100: '#FFFFFF', | ||
|
||
/* error */ | ||
error0: '#000000', | ||
error10: '#410E0B', | ||
error20: '#601410', | ||
error30: '#8C1D18', | ||
error40: '#B3261E', | ||
error50: '#DC362E', | ||
error60: '#E46962', | ||
error70: '#EC928E', | ||
error80: '#F2B8B5', | ||
error90: '#F9DEDC', | ||
error95: '#FCEEEE', | ||
error99: '#FFFBF9', | ||
error100: '#FFFFFF', | ||
|
||
/* neutral */ | ||
neutral0: '#000000', | ||
neutral10: '#1C1B1F', | ||
neutral20: '#313033', | ||
neutral30: '#484649', | ||
neutral40: '#605D62', | ||
neutral50: '#787579', | ||
neutral60: '#939094', | ||
neutral70: '#AEAAAE', | ||
neutral80: '#C9C5CA', | ||
neutral90: '#E6E1E5', | ||
neutral95: '#F4EFF4', | ||
neutral99: '#FFFBFE', | ||
neutral100: '#FFFFFF', | ||
|
||
/* neutral_variant */ | ||
neutral_variant0: '#000000', | ||
neutral_variant10: '#1D1A22', | ||
neutral_variant20: '#322F37', | ||
neutral_variant30: '#49454F', | ||
neutral_variant40: '#605D66', | ||
neutral_variant50: '#79747E', | ||
neutral_variant60: '#938F99', | ||
neutral_variant70: '#AEA9B4', | ||
neutral_variant80: '#CAC4D0', | ||
neutral_variant90: '#E7E0EC', | ||
neutral_variant95: '#F5EEFA', | ||
neutral_variant99: '#FFFBFE', | ||
neutral_variant100: '#FFFFFF', | ||
}; |
26 changes: 26 additions & 0 deletions
26
services/xdesign-story/src/foundations/Color/Palette/Palette.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const knownColorGroupNames = [ | ||
'primary', | ||
'secondary', | ||
'tertiary', | ||
'error', | ||
'neutral', | ||
'neutral_variant', | ||
] as const; | ||
|
||
export type KnownColorGroup = (typeof knownColorGroupNames)[number]; | ||
type MakeTokenSet< | ||
TGroup extends KnownColorGroup, | ||
TLightness extends number[], | ||
> = `${TGroup}${TLightness[number]}`; | ||
|
||
export type ColorToken = | ||
| 'white' | ||
| 'black' | ||
| MakeTokenSet<'primary', [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100]> | ||
| MakeTokenSet<'secondary', [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100]> | ||
| MakeTokenSet<'tertiary', [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100]> | ||
| MakeTokenSet<'error', [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100]> | ||
| MakeTokenSet<'neutral', [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100]> | ||
| MakeTokenSet<'neutral_variant', [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100]>; | ||
|
||
export type PaletteType = Record<ColorToken, string>; |
2 changes: 2 additions & 0 deletions
2
services/xdesign-story/src/foundations/Color/Palette/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { Palette } from './Palette'; | ||
export type { PaletteType, KnownColorGroup, ColorToken } from './Palette.types'; |
Oops, something went wrong.