Skip to content

Commit

Permalink
style: prettier constants decl
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Sep 6, 2023
1 parent f701f38 commit 0a1cd6c
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions constants/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
export type ColorBase = 'blue' | 'teal' | 'red' | 'yellow' | 'green' | 'grey'
export type ColorVariant =
| '900'
| '800'
| '700'
| '600'
| '500'
| '400'
| '300'
| '200'
| '100'
| '050'
export type ColorProp = `${ColorBase}${ColorVariant}` | 'white'

export type ColorBase = 'blue' | 'teal' | 'red' | 'yellow' | 'green' | 'grey';
export type ColorVariant = '900' | '800' | '700' | '600' | '500' | '400' | '300' | '200' | '100' | '050';
export type ColorProp = `${ColorBase}${ColorVariant}` | 'white';
export const colors: Record<ColorProp, string>

export const colors: Record<ColorProp, string>;

export type ElevantionVariant = 'e100' | 'e200' | 'e300' | 'e400';
export const elevations: Record<ElevantionVariant, string>;
export type ElevantionVariant = 'e100' | 'e200' | 'e300' | 'e400'
export const elevations: Record<ElevantionVariant, string>

export type SpacerVariant =
| 'dp4'
Expand All @@ -23,15 +32,25 @@ export type SpacerVariant =
| 'dp256'
| 'dp384'
| 'dp512'
| 'dp640';
export const spacersNum: Record<SpacerVariant, number>;
export const spacers: Record<SpacerVariant, string>;
| 'dp640'
export const spacersNum: Record<SpacerVariant, number>
export const spacers: Record<SpacerVariant, string>

export type LayerVariant = 'applicationTop' | 'blocking' | 'alert';
export const layer: Record<LayerVariant, number>;
export type LayerVariant = 'applicationTop' | 'blocking' | 'alert'
export const layer: Record<LayerVariant, number>

export type ThemeBase = 'primary' | 'secondary';
export type ThemeVariant = '900' | '800' | '700' | '600' | '500' | '400' | '300' | '200' | '100' | '050';
export type ThemeBase = 'primary' | 'secondary'
export type ThemeVariant =
| '900'
| '800'
| '700'
| '600'
| '500'
| '400'
| '300'
| '200'
| '100'
| '050'
export type ThemeProp =
| `${ThemeBase}${ThemeVariant}`
| 'default'
Expand All @@ -40,5 +59,5 @@ export type ThemeProp =
| 'warning'
| 'disabled'
| 'focus'
| 'fonts';
export const theme: Record<ThemeProp, string>;
| 'fonts'
export const theme: Record<ThemeProp, string>

0 comments on commit 0a1cd6c

Please sign in to comment.