-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update Structure for Figma Variables (#30)
Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>
- Loading branch information
1 parent
5bc6aed
commit 325759a
Showing
39 changed files
with
16,730 additions
and
4,035 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
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,22 @@ | ||
import type { StorybookConfig } from "@storybook/react-vite"; | ||
|
||
const config: StorybookConfig = { | ||
stories: [ | ||
"../stories/**/*.mdx", | ||
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)", | ||
], | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-onboarding", | ||
"@storybook/addon-interactions", | ||
], | ||
framework: { | ||
name: "@storybook/react-vite", | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: "tag", | ||
}, | ||
}; | ||
export default config; |
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 @@ | ||
import type { Preview } from "@storybook/react"; | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default preview; |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
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,27 +1,52 @@ | ||
import * as Tokens from '../../dist/dark/tokens.es6.js'; | ||
import * as TokensTheme from '../../dist/dark/theme.es6.js'; | ||
import * as TokensTheme from '../../dist/dark/nested.es6.js'; | ||
import type { | ||
ColorTypes, | ||
ElevationTypes, | ||
FontTypes, | ||
ContentTypes, | ||
BorderTypes, | ||
BackgroundTypes, | ||
InteractionTypes, | ||
ActionTypes, | ||
ButtonTypes, | ||
} from '../../dist/dark/theme.js'; | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
} from '../../dist/dark/nested.d.ts'; | ||
|
||
const Colors: ColorTypes = TokensTheme.default.Color; | ||
const Elevation: ElevationTypes = TokensTheme.default.Elevation; | ||
const Fonts: FontTypes = TokensTheme.default.Font; | ||
const Content: ContentTypes = TokensTheme.default.Content; | ||
const Border: BorderTypes = TokensTheme.default.Border; | ||
const Background: BackgroundTypes = TokensTheme.default.Background; | ||
const Interaction: InteractionTypes = TokensTheme.default.Interaction; | ||
const Actions: ActionTypes = TokensTheme.default.Action; | ||
const Button: ButtonTypes = TokensTheme.default.Button; | ||
const { | ||
Color, | ||
Elevation, | ||
Font, | ||
Spacing | ||
} = TokensTheme.default.Global; | ||
|
||
export { Tokens, Colors, Elevation, Fonts, Content, Border, Background, Interaction, Actions, Button }; | ||
export type { ColorTypes, ElevationTypes, FontTypes, ContentTypes, BorderTypes, BackgroundTypes, InteractionTypes, ActionTypes, ButtonTypes }; | ||
const { | ||
Action, | ||
Background, | ||
Border, | ||
Content, | ||
Interaction, | ||
} = TokensTheme.default.Alias; | ||
|
||
const { | ||
Appbar, | ||
Button, | ||
Container, | ||
Table, | ||
} = TokensTheme.default.Component; | ||
|
||
export { | ||
Action, | ||
Appbar, | ||
Background, | ||
Border, | ||
Button, | ||
Color, | ||
Container, | ||
Content, | ||
Elevation, | ||
Font, | ||
Interaction, | ||
Spacing, | ||
Table, | ||
Tokens | ||
}; | ||
|
||
export type { | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
}; |
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,52 @@ | ||
import * as Tokens from '../../dist/densedDark/tokens.es6.js'; | ||
import * as TokensTheme from '../../dist/densedDark/nested.es6.js'; | ||
import type { | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
} from '../../dist/densedDark/nested.d.ts'; | ||
|
||
const { | ||
Color, | ||
Elevation, | ||
Font, | ||
Spacing | ||
} = TokensTheme.default.Global; | ||
|
||
const { | ||
Action, | ||
Background, | ||
Border, | ||
Content, | ||
Interaction, | ||
} = TokensTheme.default.Alias; | ||
|
||
const { | ||
Appbar, | ||
Button, | ||
Container, | ||
Table, | ||
} = TokensTheme.default.Component; | ||
|
||
export { | ||
Action, | ||
Appbar, | ||
Background, | ||
Border, | ||
Button, | ||
Color, | ||
Container, | ||
Content, | ||
Elevation, | ||
Font, | ||
Interaction, | ||
Spacing, | ||
Table, | ||
Tokens | ||
}; | ||
|
||
export type { | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
}; |
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,52 @@ | ||
import * as Tokens from '../../dist/densedLight/tokens.es6.js'; | ||
import * as TokensTheme from '../../dist/densedLight/nested.es6.js'; | ||
import type { | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
} from '../../dist/densedLight/nested.d.ts'; | ||
|
||
const { | ||
Color, | ||
Elevation, | ||
Font, | ||
Spacing | ||
} = TokensTheme.default.Global; | ||
|
||
const { | ||
Action, | ||
Background, | ||
Border, | ||
Content, | ||
Interaction, | ||
} = TokensTheme.default.Alias; | ||
|
||
const { | ||
Appbar, | ||
Button, | ||
Container, | ||
Table, | ||
} = TokensTheme.default.Component; | ||
|
||
export { | ||
Action, | ||
Appbar, | ||
Background, | ||
Border, | ||
Button, | ||
Color, | ||
Container, | ||
Content, | ||
Elevation, | ||
Font, | ||
Interaction, | ||
Spacing, | ||
Table, | ||
Tokens | ||
}; | ||
|
||
export type { | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
}; |
This file was deleted.
Oops, something went wrong.
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,27 +1,52 @@ | ||
import * as Tokens from '../dist/tokens.es6.js'; | ||
import * as TokensTheme from '../dist/theme.es6.js'; | ||
import * as TokensTheme from '../dist/nested.es6.js'; | ||
import type { | ||
ColorTypes, | ||
ElevationTypes, | ||
FontTypes, | ||
ContentTypes, | ||
BorderTypes, | ||
BackgroundTypes, | ||
InteractionTypes, | ||
ActionTypes, | ||
ButtonTypes, | ||
} from '../dist/theme.js'; | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
} from '../dist/nested.d.ts'; | ||
|
||
const Colors: ColorTypes = TokensTheme.default.Color; | ||
const Elevation: ElevationTypes = TokensTheme.default.Elevation; | ||
const Fonts: FontTypes = TokensTheme.default.Font; | ||
const Content: ContentTypes = TokensTheme.default.Content; | ||
const Border: BorderTypes = TokensTheme.default.Border; | ||
const Background: BackgroundTypes = TokensTheme.default.Background; | ||
const Interaction: InteractionTypes = TokensTheme.default.Interaction; | ||
const Actions: ActionTypes = TokensTheme.default.Action; | ||
const Button: ButtonTypes = TokensTheme.default.Button; | ||
const { | ||
Color, | ||
Elevation, | ||
Font, | ||
Spacing | ||
} = TokensTheme.default.Global; | ||
|
||
export { Tokens, Colors, Elevation, Fonts, Content, Border, Background, Interaction, Actions, Button }; | ||
export type { ColorTypes, ElevationTypes, FontTypes, ContentTypes, BorderTypes, BackgroundTypes, InteractionTypes, ActionTypes, ButtonTypes }; | ||
const { | ||
Action, | ||
Background, | ||
Border, | ||
Content, | ||
Interaction, | ||
} = TokensTheme.default.Alias; | ||
|
||
const { | ||
Appbar, | ||
Button, | ||
Container, | ||
Table, | ||
} = TokensTheme.default.Component; | ||
|
||
export { | ||
Action, | ||
Appbar, | ||
Background, | ||
Border, | ||
Button, | ||
Color, | ||
Container, | ||
Content, | ||
Elevation, | ||
Font, | ||
Interaction, | ||
Spacing, | ||
Table, | ||
Tokens | ||
}; | ||
|
||
export type { | ||
AliasTypes, | ||
ComponentTypes, | ||
GlobalTypes | ||
}; |
Oops, something went wrong.