|
| 1 | +import { Meta, ColorPalette, ColorItem } from "@storybook/blocks"; |
| 2 | +import colors from "../configs/color-palette.json"; |
| 3 | + |
| 4 | +<Meta title="LFX Components/Themes/Color Palette" /> |
| 5 | + |
| 6 | +# Color Palette |
| 7 | + |
| 8 | +Our design system's color palette helps maintain consistent styling across the application. |
| 9 | + |
| 10 | +<ColorPalette> |
| 11 | + <ColorItem |
| 12 | + title="bg-primary" |
| 13 | + subtitle="Background Primary" |
| 14 | + colors={{ |
| 15 | + WildWatermelon: colors.blue[500], |
| 16 | + }} |
| 17 | + /> |
| 18 | + <ColorItem |
| 19 | + title="bg-secondary" |
| 20 | + subtitle="Background Secondary" |
| 21 | + colors={{ |
| 22 | + Blue: colors.blue[50], |
| 23 | + }} |
| 24 | + /> |
| 25 | + <ColorItem |
| 26 | + title="bg-message" |
| 27 | + subtitle="Background Message" |
| 28 | + colors={{ |
| 29 | + Notice: colors.blue[50], |
| 30 | + Warning: colors.orange[50], |
| 31 | + Success: colors.green[50], |
| 32 | + Error: colors.red[50], |
| 33 | + }} |
| 34 | + /> |
| 35 | + |
| 36 | +<ColorItem |
| 37 | + title="bg-grey" |
| 38 | + subtitle="Background Grey" |
| 39 | + colors={{ |
| 40 | + 50: colors.grey[50], |
| 41 | + 100: colors.grey[100], |
| 42 | + 200: colors.grey[200], |
| 43 | + 300: colors.grey[300], |
| 44 | + 400: colors.grey[400], |
| 45 | + 500: colors.grey[500], |
| 46 | + 600: colors.grey[600], |
| 47 | + 700: colors.grey[700], |
| 48 | + 800: colors.grey[800], |
| 49 | + 900: colors.grey[900], |
| 50 | + 1000: colors.grey[1000], |
| 51 | + }} |
| 52 | +/> |
| 53 | + |
| 54 | +<ColorItem |
| 55 | + title="bg-blue" |
| 56 | + subtitle="Background Blue" |
| 57 | + colors={{ |
| 58 | + 50: colors.blue[50], |
| 59 | + 100: colors.blue[100], |
| 60 | + 200: colors.blue[200], |
| 61 | + 300: colors.blue[300], |
| 62 | + 400: colors.blue[400], |
| 63 | + 500: colors.blue[500], |
| 64 | + 600: colors.blue[600], |
| 65 | + 700: colors.blue[700], |
| 66 | + 800: colors.blue[800], |
| 67 | + 900: colors.blue[900], |
| 68 | + 1000: colors.blue[1000], |
| 69 | + }} |
| 70 | +/> |
| 71 | + |
| 72 | +<ColorItem |
| 73 | + title="bg-green" |
| 74 | + subtitle="Background Green" |
| 75 | + colors={{ |
| 76 | + 50: colors.green[50], |
| 77 | + 100: colors.green[100], |
| 78 | + 200: colors.green[200], |
| 79 | + 300: colors.green[300], |
| 80 | + 400: colors.green[400], |
| 81 | + 500: colors.green[500], |
| 82 | + 600: colors.green[600], |
| 83 | + 700: colors.green[700], |
| 84 | + 800: colors.green[800], |
| 85 | + 900: colors.green[900], |
| 86 | + 1000: colors.green[1000], |
| 87 | + }} |
| 88 | +/> |
| 89 | + |
| 90 | +<ColorItem |
| 91 | + title="bg-red" |
| 92 | + subtitle="Background Red" |
| 93 | + colors={{ |
| 94 | + 50: colors.red[50], |
| 95 | + 100: colors.red[100], |
| 96 | + 200: colors.red[200], |
| 97 | + 300: colors.red[300], |
| 98 | + 400: colors.red[400], |
| 99 | + 500: colors.red[500], |
| 100 | + 600: colors.red[600], |
| 101 | + 700: colors.red[700], |
| 102 | + 800: colors.red[800], |
| 103 | + 900: colors.red[900], |
| 104 | + }} |
| 105 | +/> |
| 106 | + |
| 107 | +<ColorItem |
| 108 | + title="bg-yellow" |
| 109 | + subtitle="Background Yellow" |
| 110 | + colors={{ |
| 111 | + 50: colors.yellow[50], |
| 112 | + 100: colors.yellow[100], |
| 113 | + 200: colors.yellow[200], |
| 114 | + 300: colors.yellow[300], |
| 115 | + 400: colors.yellow[400], |
| 116 | + 500: colors.yellow[500], |
| 117 | + 600: colors.yellow[600], |
| 118 | + 700: colors.yellow[700], |
| 119 | + 800: colors.yellow[800], |
| 120 | + 900: colors.yellow[900], |
| 121 | + 1000: colors.yellow[1000], |
| 122 | + }} |
| 123 | +/> |
| 124 | + |
| 125 | + <ColorItem |
| 126 | + title="bg-orange" |
| 127 | + subtitle="Background Orange" |
| 128 | + colors={{ |
| 129 | + 50: colors.orange[50], |
| 130 | + 100: colors.orange[100], |
| 131 | + 200: colors.orange[200], |
| 132 | + 300: colors.orange[300], |
| 133 | + 400: colors.orange[400], |
| 134 | + 500: colors.orange[500], |
| 135 | + 600: colors.orange[600], |
| 136 | + 700: colors.orange[700], |
| 137 | + 800: colors.orange[800], |
| 138 | + 900: colors.orange[900], |
| 139 | + 1000: colors.orange[1000], |
| 140 | + }} |
| 141 | + /> |
| 142 | +</ColorPalette> |
0 commit comments