Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update design tokens (postman colors) #778

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions token-gen/scripts/move-to-storybook.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,23 @@ export const theme = extendTheme(baseTheme, {
}
})


// react/.storybook/colorThemes/index.ts
const storybookColorThemeDest = path.join(__dirname, '../../react/.storybook/colorThemes/index.ts')
const storybookColorThemeDest = path.join(
__dirname,
'../../react/.storybook/colorThemes/index.ts',
)
let storybookColorThemeIndex = ``
// Create index theme file for Storybook
products.forEach(product => {
storybookColorThemeIndex += `import { theme as ${camelCase(product)}Theme } from './${product}/theme'\n`
products.forEach((product) => {
storybookColorThemeIndex += `import { theme as ${camelCase(
product,
)}Theme } from './${product}/theme'\n`
})
storybookColorThemeIndex += `\nexport const THEME_MAP: Record<string, typeof defaultTheme> = {`
products.forEach(product => {
storybookColorThemeIndex += `\n ${camelCase(product)}: ${camelCase(product)}Theme,`
products.forEach((product) => {
storybookColorThemeIndex += `\n ${camelCase(product)}: ${camelCase(
product,
)}Theme,`
})
storybookColorThemeIndex += `\n}\n`
fs.writeFileSync(storybookColorThemeDest, storybookColorThemeIndex)
2 changes: 1 addition & 1 deletion token-gen/themes/Armoury/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Armoury/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Armoury/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Armoury/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Armoury/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/AskGov/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/AskGov/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/AskGov/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/AskGov/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/AskGov/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BETA dark/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BETA dark/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BETA dark/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BETA dark/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BETA dark/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BbBear/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BbBear/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BbBear/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BbBear/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/BbBear/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/CalSG/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/CalSG/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/CalSG/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/CalSG/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/CalSG/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Care360/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Care360/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Care360/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Care360/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Care360/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Careers/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Careers/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Careers/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Careers/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Careers/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Distribute/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Distribute/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Distribute/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Distribute/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Distribute/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/ERPX/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/ERPX/shadows.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const shadows = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/ERPX/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const spacing = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/ERPX/textStyles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const textStyles = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/ERPX/typography.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const typography = {
Expand Down
2 changes: 1 addition & 1 deletion token-gen/themes/Engage/colors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Tue, 08 Oct 2024 07:57:33 GMT
* Generated on Thu, 24 Oct 2024 07:48:17 GMT
*/

export const colors = {
Expand Down
Loading
Loading