Skip to content

Commit

Permalink
feat: update design tokens (postman colors) (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanthkumaar authored Nov 15, 2024
1 parent 24495eb commit 60f6262
Show file tree
Hide file tree
Showing 173 changed files with 293 additions and 286 deletions.
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

0 comments on commit 60f6262

Please sign in to comment.