@regardio/brand 0.7.6 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +35 -3
  2. package/dist/components/button.d.mts +21 -0
  3. package/dist/components/button.mjs +13 -0
  4. package/dist/components/button.stories.d.mts +13750 -0
  5. package/dist/components/button.stories.mjs +81 -0
  6. package/dist/generated/icons/regardio-compass-icon.mjs +3 -5
  7. package/dist/generated/icons/regardio-ensemble-icon-color-full.mjs +118 -132
  8. package/dist/generated/icons/regardio-ensemble-icon-color.mjs +119 -133
  9. package/dist/generated/icons/regardio-ensemble-icon-mono.mjs +59 -30
  10. package/dist/generated/icons/regardio-icon-color-full.mjs +1 -3
  11. package/dist/generated/icons/regardio-icon-color.mjs +1 -3
  12. package/dist/generated/icons/regardio-icon-mono.mjs +4 -6
  13. package/dist/generated/icons/regardio-logo-color-light.mjs +1 -3
  14. package/dist/generated/icons/regardio-logo-color.mjs +3 -5
  15. package/dist/generated/icons/regardio-logo-mono-light.mjs +1 -3
  16. package/dist/generated/icons/regardio-logo-mono.mjs +2 -4
  17. package/dist/generated/icons/regardio-system-bridge-icon.mjs +2 -4
  18. package/dist/generated/icons/regardio-system-circle-icon.mjs +3 -5
  19. package/dist/generated/icons/regardio-system-facet-icon.mjs +3 -5
  20. package/dist/generated/icons/regardio-system-icon.mjs +1 -3
  21. package/dist/generated/icons/regardio-system-plan-icon.mjs +2 -4
  22. package/dist/generated/icons/regardio-system-pursuit-icon.mjs +3 -5
  23. package/dist/generated/icons/regardio-system-spark-icon.mjs +1 -3
  24. package/dist/generated/icons/regardio-system-zest-icon.d.mts +14 -0
  25. package/dist/generated/icons/regardio-system-zest-icon.mjs +19 -0
  26. package/dist/generated/sprites/compass-sprite-provider.mjs +190 -215
  27. package/dist/generated/sprites/compass-sprite.d.mts +1 -1
  28. package/dist/generated/sprites/compass-sprite.mjs +1 -3
  29. package/dist/styles/base.css +76 -0
  30. package/dist/styles/colors.css +178 -0
  31. package/dist/styles/grid.css +60 -0
  32. package/dist/styles/index.css +27 -0
  33. package/dist/styles/storybook.css +2 -0
  34. package/dist/styles/tokens.css +134 -0
  35. package/dist/styles/typography.css +140 -0
  36. package/package.json +53 -34
  37. package/src/components/button.stories.tsx +83 -0
  38. package/src/components/button.tsx +38 -0
  39. package/src/styles/base.css +76 -0
  40. package/src/styles/grid.css +60 -0
  41. package/src/styles/index.css +27 -0
  42. package/src/styles/storybook.css +2 -0
  43. package/src/styles/tokens.css +134 -0
  44. package/src/styles/typography.css +140 -0
package/README.md CHANGED
@@ -2,9 +2,12 @@
2
2
 
3
3
  > **Design system and branding for the Regardio ecosystem**
4
4
 
5
- Regardio Brand provides the visual identity, design tokens, and brand guidelines
6
- for all Regardio applications. The package includes both raw SVG files and
7
- ready-to-use React components.
5
+ Regardio Brand provides the visual identity, design tokens, brand guidelines,
6
+ and branded components for all Regardio applications. The package includes:
7
+
8
+ - **Design system** - Colors, typography, tokens, grid layout system
9
+ - **Branded components** - Button and other UI components with Regardio visual identity
10
+ - **Brand assets** - SVG files and React components for logos, icons, sprites
8
11
 
9
12
  ## Installation
10
13
 
@@ -12,6 +15,16 @@ ready-to-use React components.
12
15
  pnpm add @regardio/brand
13
16
  ```
14
17
 
18
+ ## Branded Components
19
+
20
+ Regardio branded components represent the Regardio visual identity (flat blue, no border, ample padding, Georama bold font). Use these consistently across all Regardio applications.
21
+
22
+ ```tsx
23
+ import { Button } from '@regardio/brand/button';
24
+
25
+ <Button variant="primary">Click me</Button>
26
+ ```
27
+
15
28
  ## Asset Catalog
16
29
 
17
30
  Run Storybook to browse the complete asset catalog:
@@ -124,6 +137,23 @@ Each color has shades from `50` (lightest) to `950` (darkest):
124
137
  The compass sprites use these colors via Tailwind classes (e.g., `fill-green-300`),
125
138
  so the color scheme must be loaded for sprites to render correctly.
126
139
 
140
+ ### Grid System
141
+
142
+ Regardio's standard container and grid layout utilities:
143
+
144
+ ```tsx
145
+ import "@regardio/brand/styles";
146
+
147
+ <div className="u-container">
148
+ <div className="u-grid">
149
+ <div className="u-grid-half">Column 1</div>
150
+ <div className="u-grid-half">Column 2</div>
151
+ </div>
152
+ </div>
153
+ ```
154
+
155
+ See [Grid System documentation](./docs/grid-system.md) for complete usage guide.
156
+
127
157
  ## Scripts
128
158
 
129
159
  | Script | Description |
@@ -141,6 +171,8 @@ so the color scheme must be loaded for sprites to render correctly.
141
171
 
142
172
  | Export | Description |
143
173
  |--------|-------------|
174
+ | `@regardio/brand/button` | Branded button component |
175
+ | `@regardio/brand/styles` | Complete design system (colors, tokens, typography, grid) |
144
176
  | `@regardio/brand/colors.css` | Tailwind v4 theme with Regardio color palette |
145
177
  | `@regardio/brand/icons/*` | Icon and logo React components |
146
178
  | `@regardio/brand/sprites/*` | Compass sprite components |
@@ -0,0 +1,21 @@
1
+ import { Button as Button$1, ButtonVariant } from "@regardio/react/button";
2
+ import { ComponentProps } from "react";
3
+
4
+ //#region src/components/button.d.ts
5
+ /**
6
+ * Regardio branded button component
7
+ *
8
+ * Design: Flat blue, no border, ample padding, Georama bold font
9
+ * This represents the Regardio visual identity and should be used
10
+ * consistently across all Regardio applications.
11
+ */
12
+ interface ButtonProps extends ComponentProps<typeof Button$1> {
13
+ className?: string;
14
+ }
15
+ declare const Button: ({
16
+ children,
17
+ className,
18
+ ...props
19
+ }: ButtonProps) => React.JSX.Element;
20
+ //#endregion
21
+ export { Button, ButtonProps, type ButtonVariant };
@@ -0,0 +1,13 @@
1
+ import { Button as Button$1 } from "@regardio/react/button";
2
+ import { cn } from "@regardio/tailwind/utils";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/components/button.tsx
5
+ const Button = ({ children, className, ...props }) => {
6
+ return /* @__PURE__ */ jsx(Button$1, {
7
+ className: cn("px-6", "py-3", "text-base", "font-bold", "rounded-lg", "focus-visible:ring-2", "focus-visible:ring-ring", "focus-visible:ring-offset-2", className),
8
+ ...props,
9
+ children
10
+ });
11
+ };
12
+ //#endregion
13
+ export { Button };