-
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.
Add base colors configuration and types
- Loading branch information
alexfromearth
authored and
Aleksey Shirokov
committed
Jul 2, 2022
1 parent
2d1e0f9
commit 99b4a63
Showing
3 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { IBaseColors } from './types'; | ||
|
||
export const baseColors: IBaseColors = { | ||
washington: { | ||
base: '#151515', | ||
a: '#575757', | ||
b: '#A9A9A9', | ||
c: '#D1D1D1', | ||
d: '#EBEBEB', | ||
e: '#F5F5F5', | ||
f: '#F9F9F9', | ||
}, | ||
podgorica: { | ||
base: '#6A983C', | ||
a: '#46760A', | ||
b: '#92C064', | ||
c: '#C8DEB3', | ||
d: '#F4F8EC', | ||
}, | ||
moscow: { | ||
base: '#D0A866', | ||
a: '#B28A48', | ||
b: '#ECD2A6', | ||
c: '#FAEDD8', | ||
d: '#FFF9F0', | ||
}, | ||
amsterdam: { | ||
base: '#E6704B', | ||
a: '#C7522D', | ||
b: '#EB8D70', | ||
c: '#F7C6B7', | ||
d: '#FFF1ED', | ||
}, | ||
vienna: { | ||
base: '#37D0D6', | ||
a: '#19B2B8', | ||
b: '#7CD0D3', | ||
c: '#B9E6E8', | ||
d: '#ECF6F6', | ||
}, | ||
}; |
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 { baseColors } from './commonStyles'; | ||
export type { IColorNames, IBaseColors } from './types'; |
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,15 @@ | ||
type IColorNamesWithoutWashington = 'podgorica' | 'moscow' | 'amsterdam' | 'vienna'; | ||
export type IColorNames = 'washington' | IColorNamesWithoutWashington; | ||
type IColorShades = 'a' | 'b' | 'c' | 'd'; | ||
|
||
type IColor<T extends string = IColorShades> = { | ||
[key in T]: string; | ||
} & { | ||
base: string; | ||
}; | ||
|
||
export type IBaseColors = { | ||
[key in IColorNamesWithoutWashington]: IColor; | ||
} & { | ||
washington: IColor<IColorShades | 'e' | 'f'>; | ||
}; |