Skip to content

Commit

Permalink
Merge pull request #27 from tokens-studio/add-enums
Browse files Browse the repository at this point in the history
Add enums for complex token types
  • Loading branch information
jorenbroekema authored Jul 3, 2023
2 parents 4f0e779 + 1bd2eaf commit 05b9ef8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-poets-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tokens-studio/types': patch
---

Add enums for complex token values
5 changes: 5 additions & 0 deletions src/constants/BorderValues.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum BorderValues {
BORDER_COLOR = 'color',
BORDER_WIDTH = 'width',
BORDER_STYLE = 'style',
}
9 changes: 9 additions & 0 deletions src/constants/BoxShadowValues.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export enum BoxShadowValues {
TYPE = 'type',
COLOR = 'color',
X = 'x',
Y = 'y',
BLUR = 'blur',
SPREAD = 'spread',
BLEND_MODE = 'blendMode',
}
11 changes: 11 additions & 0 deletions src/constants/TypographyValues.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export enum TypographyValues {
FONT_FAMILY = 'fontFamily',
FONT_WEIGHT = 'fontWeight',
LINE_HEIGHT = 'lineHeight',
FONT_SIZE = 'fontSize',
LETTER_SPACING = 'letterSpacing',
PARAGRAPH_SPACING = 'paragraphSpacing',
PARAGRAPH_INDENT = 'paragraphIndent',
TEXT_DECORATION = 'textDecoration',
TEXT_CASE = 'textCase',
}
4 changes: 4 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ export * from './Modifier.js';
export * from './ThemeObject.js';
export * from './UsedTokenSetsMap.js';
export * from './valueTypes.js';
export * from '../constants/BorderValues.js';
export * from '../constants/BoxShadowValues.js';
export * from '../constants/TypographyValues.js';

0 comments on commit 05b9ef8

Please sign in to comment.