-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
471 additions
and
8 deletions.
There are no files selected for viewing
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
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,5 @@ | ||
export const parameters = { | ||
designToken: { | ||
defaultTab: 'Colors', | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
# ui | ||
# UI | ||
|
||
This library was generated with [Nx](https://nx.dev). | ||
This Library is a UI lib only and should contain as little business logic as possible. | ||
|
||
## Running unit tests | ||
|
||
Run `nx test ui` to execute the unit tests. | ||
|
||
## Running Storybook | ||
|
||
Run `nx storybook ui` to startup storybook locally |
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
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
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 |
---|---|---|
@@ -1,10 +1,83 @@ | ||
:root { | ||
--color-white: #fff; | ||
/** | ||
* @tokens Primary Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-primary: #009EF6; | ||
--color-primary-active: #0095E8; | ||
--color-primary-light: #ECF8FF; | ||
|
||
/** | ||
* @tokens Success Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-success: #50CD89; | ||
--color-success-active: #47BE7D; | ||
--color-success-light: #E8FFF3; | ||
|
||
/** | ||
* @tokens Danger Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-danger: #F1416C; | ||
--color-danger-active: #D9214E; | ||
--color-danger-light: #FFF5F8; | ||
|
||
/** | ||
* @tokens Warning Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-warning: #FFC700; | ||
--color-warning-active: #F1BC00; | ||
--color-warning-light: #FFF8DD; | ||
|
||
/** | ||
* @tokens Info Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-info: #7239EA; | ||
--color-info-active: #5014D0; | ||
--color-info-light: #F8F5FF; | ||
|
||
/** | ||
* @tokens White Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-white: #FFFFFF; | ||
--color-white-active: #F5F8FA; | ||
--color-dark: #181C32; | ||
|
||
/** | ||
* @tokens Gray Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-gray-100: #F9F9F9; | ||
--color-gray-200: #F1F1F2; | ||
--color-gray-300: #E1E3EA; | ||
--color-gray-400: #D8D8E5; | ||
--color-gray-500: #A1A5B7; | ||
--color-gray-600: #7E8299; | ||
--color-gray-700: #5E6278; | ||
--color-gray-800: #3F4254; | ||
--color-gray-900: #181C32; | ||
|
||
/** | ||
* @tokens Legacy Colors | ||
* @presenter Color | ||
*/ | ||
|
||
--color-orange: #ff5d22; | ||
--color-veryLightGray: #f5f5f5; | ||
--color-lightGray: #e5e4e4; | ||
--color-gray: gray; | ||
--color-darkBlue: #221638; | ||
--color-green: green; | ||
--color-red: red; | ||
} | ||
}; |
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,43 @@ | ||
import { Meta } from '@storybook/addon-docs'; | ||
import { DesignTokenDocBlock } from 'storybook-design-token'; | ||
|
||
<Meta title="Design Tokens/Colors" /> | ||
|
||
# Colors | ||
|
||
The colors are extracted from the UI Kit which is the source of truth! | ||
|
||
https://www.figma.com/file/isN32dov8RbpPy9tO91IBA/Metronic-UI-Kit-1.1?type=design&node-id=8593-3020&mode=design&t=Ye7DuwBx5CKeLC7o-0 | ||
|
||
## Primary Colors | ||
|
||
<DesignTokenDocBlock categoryName="Primary Colors" showSearch={false}/> | ||
|
||
## Success Colors | ||
|
||
<DesignTokenDocBlock categoryName="Success Colors" showSearch={false}/> | ||
|
||
## Danger Colors | ||
|
||
<DesignTokenDocBlock categoryName="Danger Colors" showSearch={false}/> | ||
|
||
## Warning Colors | ||
|
||
<DesignTokenDocBlock categoryName="Warning Colors" showSearch={false}/> | ||
|
||
## Info Colors | ||
|
||
<DesignTokenDocBlock categoryName="Info Colors" showSearch={false}/> | ||
|
||
## White Colors | ||
|
||
<DesignTokenDocBlock categoryName="White Colors" showSearch={false}/> | ||
|
||
## Gray colors | ||
|
||
<DesignTokenDocBlock categoryName="Gray Colors" showSearch={false}/> | ||
|
||
## Legacy Colors | ||
|
||
<DesignTokenDocBlock categoryName="Legacy Colors" showSearch={false}/> | ||
|
Oops, something went wrong.