@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
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Typography System
3
+ * Fluid typography using viewport-based scaling with Georama Variable font
4
+ * Scales automatically between 320px and 2560px viewports
5
+ */
6
+
7
+ @import "@fontsource-variable/georama";
8
+
9
+ @theme {
10
+ /* Font families */
11
+ --font-sans: "Georama Variable", ui-sans-serif, system-ui, sans-serif;
12
+ --font-mono:
13
+ ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
14
+
15
+ /* Fluid font sizes - viewport-based scaling */
16
+ /* Base: 16px at 320px viewport, scales to 18px at 2560px */
17
+ --font-size-xs: clamp(0.75rem, 0.7455rem + 0.0196vw, 0.84rem);
18
+ --font-size-sm: clamp(0.875rem, 0.8696rem + 0.0234vw, 0.98rem);
19
+ --font-size-base: clamp(1rem, 0.9937rem + 0.0272vw, 1.125rem);
20
+ --font-size-lg: clamp(1.125rem, 1.1179rem + 0.0308vw, 1.266rem);
21
+ --font-size-xl: clamp(1.25rem, 1.242rem + 0.0348vw, 1.406rem);
22
+ --font-size-2xl: clamp(1.5rem, 1.4902rem + 0.0424vw, 1.688rem);
23
+ --font-size-3xl: clamp(1.875rem, 1.8627rem + 0.0533vw, 2.109rem);
24
+ --font-size-4xl: clamp(2.25rem, 2.2353rem + 0.0641vw, 2.531rem);
25
+ --font-size-5xl: clamp(3rem, 2.9804rem + 0.0848vw, 3.375rem);
26
+ --font-size-6xl: clamp(3.75rem, 3.7255rem + 0.106vw, 4.219rem);
27
+ --font-size-7xl: clamp(4.5rem, 4.4706rem + 0.1272vw, 5.063rem);
28
+ --font-size-8xl: clamp(6rem, 5.9608rem + 0.1696vw, 6.75rem);
29
+ --font-size-9xl: clamp(8rem, 7.9412rem + 0.2544vw, 9rem);
30
+
31
+ /* Line heights */
32
+ --line-height-none: 1;
33
+ --line-height-tight: 1.25;
34
+ --line-height-snug: 1.375;
35
+ --line-height-normal: 1.5;
36
+ --line-height-relaxed: 1.625;
37
+ --line-height-loose: 2;
38
+
39
+ /* Letter spacing */
40
+ --letter-spacing-tighter: -0.05em;
41
+ --letter-spacing-tight: -0.025em;
42
+ --letter-spacing-normal: 0em;
43
+ --letter-spacing-wide: 0.025em;
44
+ --letter-spacing-wider: 0.05em;
45
+ --letter-spacing-widest: 0.1em;
46
+ }
47
+
48
+ @layer base {
49
+ /* Fluid root font size - scales from 16px at 320px to 27px at 2560px */
50
+ /* This makes ALL rem values fluid throughout the system */
51
+ html {
52
+ font-size: clamp(16px, 14.429px + 0.4911vw, 27px);
53
+ }
54
+
55
+ body {
56
+ font-family: var(--font-sans);
57
+ font-size: var(--font-size-base);
58
+ font-feature-settings:
59
+ "liga" 1,
60
+ "dlig" 1,
61
+ "calt" 1,
62
+ "hlig" 1;
63
+ font-variant-ligatures: common-ligatures discretionary-ligatures contextual historical-ligatures;
64
+ -webkit-font-smoothing: antialiased;
65
+ -moz-osx-font-smoothing: grayscale;
66
+ line-height: var(--line-height-normal);
67
+ }
68
+
69
+ /* Headings with fluid sizing */
70
+ h1 {
71
+ font-size: var(--font-size-5xl);
72
+ font-weight: 700;
73
+ line-height: var(--line-height-tight);
74
+ letter-spacing: var(--letter-spacing-tight);
75
+ }
76
+
77
+ h2 {
78
+ font-size: var(--font-size-4xl);
79
+ font-weight: 700;
80
+ line-height: var(--line-height-tight);
81
+ letter-spacing: var(--letter-spacing-tight);
82
+ }
83
+
84
+ h3 {
85
+ font-size: var(--font-size-3xl);
86
+ font-weight: 600;
87
+ line-height: var(--line-height-snug);
88
+ }
89
+
90
+ h4 {
91
+ font-size: var(--font-size-2xl);
92
+ font-weight: 600;
93
+ line-height: var(--line-height-snug);
94
+ }
95
+
96
+ h5 {
97
+ font-size: var(--font-size-xl);
98
+ font-weight: 600;
99
+ line-height: var(--line-height-snug);
100
+ }
101
+
102
+ h6 {
103
+ font-size: var(--font-size-lg);
104
+ font-weight: 600;
105
+ line-height: var(--line-height-normal);
106
+ }
107
+
108
+ /* Code styling */
109
+ code {
110
+ padding: 2px 7px;
111
+ font-family: var(--font-mono);
112
+ font-size: 0.9em;
113
+ background: color-mix(in oklab, var(--color-background-muted) 82%, var(--color-background) 18%);
114
+ border: 1px solid var(--color-border);
115
+ border-radius: 0.375rem;
116
+ }
117
+
118
+ pre code {
119
+ padding: 0;
120
+ font-size: inherit;
121
+ color: inherit;
122
+ background: transparent;
123
+ border: 0;
124
+ border-radius: 0;
125
+ }
126
+
127
+ pre {
128
+ padding: 1rem;
129
+ overflow-x: auto;
130
+ font-family: var(--font-mono);
131
+ background: var(--color-muted);
132
+ border: 1px solid var(--color-border);
133
+ border-radius: 0.5rem;
134
+ }
135
+
136
+ .dark pre {
137
+ color: var(--color-gray-100);
138
+ background: oklch(15% 0.02 190);
139
+ }
140
+ }